/* Shared styles for the main page and portfolio collection. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: #f7f8f5;
  color: #19352d;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #278865;
  outline-offset: 5px;
}
.wrap {
  max-width: 1344px;
  width: calc(100% - 96px);
  margin: auto;
}
.header {
  height: 100px;
  border-bottom: 1px solid #dae0d7;
}
.header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  background: #245d45;
  color: #fff;
  border-radius: 9px;
  font-size: 22px;
}
.logo small {
  font-weight: 400;
  color: #879288;
  font-size: 14px;
  letter-spacing: 0;
  margin-left: 12px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5c6e60;
}
.status::before {
  content: "";
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #58956c;
}
.header-link {
  border-bottom: 1px solid #19352d;
  padding-bottom: 3px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #658171;
  margin-bottom: 20px;
}
.footer {
  border-top: 1px solid #d9dfd5;
  padding: 30px 0;
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: #849184;
  font-size: 14px;
}
.footer b {
  color: #19352d;
  font-size: 15px;
}
.footer a {
  color: #45623c;
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer .footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid #245c46;
  border-radius: 8px;
  color: #245c46;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.footer .footer-button:hover {
  background: #edf1e9;
}
.footer .footer-button-kakao {
  border-color: #fee500;
  background: #fee500;
  color: #191919;
}
.footer .footer-button-kakao:hover {
  border-color: #f4dc00;
  background: #f4dc00;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 10px;
  left: 10px;
  background: #fff;
  padding: 10px;
  z-index: 50;
}
.flagship-badge {
  padding: 3px 7px;
  border-radius: 4px;
  background: #c7f36b;
  color: #1b3324;
  font-size: 12px;
  white-space: nowrap;
}

/* Shared site navigation. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 88px;
  background: #f7f8f5f5;
  backdrop-filter: blur(12px);
}
.site-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a {
  padding-block: 9px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #245d45;
  text-decoration: underline;
  text-underline-offset: 8px;
}
.site-nav .nav-contact {
  background: #245d45;
  color: white;
  padding: 11px 17px;
  border-radius: 6px;
}
.site-nav .nav-contact:hover,
.site-nav .nav-contact:focus-visible {
  background: #193f30;
  color: #fff;
  text-decoration: none;
}
.nav-toggle {
  display: none;
  border: 1px solid #c6d2c6;
  background: transparent;
  color: #19352d;
  border-radius: 6px;
  padding: 8px 12px;
}
.site-header .wrap {
  gap: 12px;
  justify-content: flex-start;
}
.site-header .logo {
  flex-shrink: 0;
}
.site-nav {
  order: 1;
  margin-left: auto;
}
.header-kakao {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #fee500;
  color: #191919;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  touch-action: manipulation;
}
.header-kakao:hover {
  background: #f4dc00;
}
.nav-toggle {
  order: 3;
  touch-action: manipulation;
}

/* Shared 1300px preview modal. Page headings must not style this component. */
html.demo-modal-open {
  overflow: hidden;
}
.demo-modal {
  width: min(1300px, calc(100vw - 40px));
  max-width: none;
  height: calc(100dvh - 48px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid #dce2d7;
  border-radius: 12px;
  background: #fff;
  color: #19352d;
  overflow: hidden;
  box-shadow: 0 24px 90px #0005;
}
.demo-modal[open] {
  display: flex;
  flex-direction: column;
}
.demo-modal::backdrop {
  background: #101c18b8;
}
.demo-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 22px;
  border-bottom: 1px solid #dce2d7;
  background: #f7f8f5;
  flex-shrink: 0;
}
.demo-modal-toolbar h2 {
  margin: 0;
  min-width: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
.demo-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.demo-open-window,
.demo-modal-close {
  padding: 10px 16px;
  border: 1px solid #cbd5c8;
  border-radius: 6px;
  background: #fff;
  color: #19352d;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}
.demo-open-window {
  background: #245d45;
  border-color: #245d45;
  color: #fff;
}
.demo-modal-frame {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  border: 0;
  background: #fff;
}
.demo-modal-loading {
  padding: 12px 22px;
  font-size: 15px;
  color: #61725f;
}
@media (max-width: 1100px) {
  .site-nav {
    gap: 16px;
    font-size: 14px;
  }
}
@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .header-right .status {
    display: none;
  }
}
@media (max-width: 1200px) {
  .header-kakao {
    margin-left: auto;
    padding: 10px;
  }
  .header-kakao-label {
    display: none;
  }
  .site-nav {
    order: 4;
    margin-left: 0;
  }
  .site-header {
    height: auto;
    min-height: 76px;
  }
  .site-header .wrap {
    flex-wrap: wrap;
    min-height: 76px;
    padding-block: 14px;
  }
  .site-nav {
    width: 100%;
    padding: 12px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav a {
    display: block;
    padding: 14px 16px;
    min-height: 48px;
    border-radius: 6px;
  }
  .site-nav a + a {
    margin-top: 4px;
  }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: #eaf0e5;
    text-decoration: none;
  }
  .site-nav .nav-contact {
    margin-top: 12px;
    padding: 14px 16px;
    color: #fff;
    background: #245d45;
  }
  .nav-ready .site-header {
    height: 76px;
  }
  .nav-ready .site-header .wrap {
    flex-wrap: nowrap;
    padding-block: 0;
  }
  .nav-ready .nav-toggle {
    display: block;
    min-height: 44px;
    flex-shrink: 0;
  }
  .nav-ready .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    padding: 12px 24px 20px;
    max-height: calc(100dvh - 77px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #f7f8f5;
    border-bottom: 1px solid #dae0d7;
    box-shadow: 0 16px 24px #19352d14;
  }
  .nav-ready .site-nav.is-open {
    display: flex;
  }
}
@media (max-width: 650px) {
  html {
    scroll-padding-top: 92px;
  }
  body {
    font-size: 17px;
  }
  .wrap {
    width: calc(100% - 36px);
  }
  .logo {
    font-size: 23px;
  }
  .logo small {
    display: none;
  }
  .header-right {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-nav {
    font-size: 15px;
  }
  .demo-modal {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 8px;
  }
  .demo-modal-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  .demo-modal-toolbar h2 {
    font-size: 16px;
  }
  .demo-modal-actions {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 400px) {
  .site-header .wrap {
    width: calc(100% - 24px);
    gap: 8px;
  }
  .site-header .logo {
    font-size: 19px;
    gap: 6px;
    letter-spacing: -1px;
  }
  .nav-toggle {
    padding-inline: 8px;
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
