/* =====================================================================
 * 1. 공통 스타일 — 색, 글자, 키보드 탐색
 * ===================================================================== */
:root {
  color-scheme: light;
  --paper: #f3f7f2;
  --ink: #202922;
  --muted: #4e5c53;
  --rule: #d0d7cd;
  --green: #0b614b;
  --green-dark: #064635;
  --page-gutter: clamp(1.15rem, 4vw, 3rem);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 0.15rem solid var(--green);
  outline-offset: 0.35rem;
}

::selection {
  background: #b7d8bb;
  color: var(--ink);
}

.shell {
  width: min(calc(100% - var(--page-gutter) * 2), 71rem);
  margin-inline: auto;
}

/* =====================================================================
 * 2. 브랜드와 제품 탐색 — 헤더와 첫 화면
 * ===================================================================== */
.site-header {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-block-end: 1px solid var(--rule);
}

.wordmark {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3.1vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  text-decoration: none;
}

.wordmark span { color: var(--green); }

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .6rem;
  color: var(--green);
  font-size: .98rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .35em;
}

.site-header nav a:hover { color: var(--green-dark); }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.25rem, 6vw, 6rem);
  min-height: clamp(29rem, 52vw, 37rem);
  padding-block: clamp(3rem, 8vw, 7rem);
}

.intro h1 {
  font-size: clamp(2.55rem, 5.6vw, 4.9rem);
  line-height: 1.14;
  font-weight: 750;
  letter-spacing: -.04em;
  word-break: keep-all;
}

.intro p {
  margin-top: 1.65rem;
  max-width: 33ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.21rem);
  line-height: 1.7;
  word-break: keep-all;
}

/* =====================================================================
 * 3. 기록을 상징하는 종이 — 소개 영역의 장식
 * ===================================================================== */
.paperwork {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 27rem;
  min-width: 0;
  aspect-ratio: 1.18;
  justify-self: center;
}

.paperwork::before {
  position: absolute;
  inset: 8% 10%;
  border-radius: 50%;
  background: #e8ede1;
  content: "";
}

.leaf {
  grid-area: 1 / 1;
  border-radius: 3% 3% 8% 3%;
  transform-origin: 48% 85%;
  width: 44%;
  aspect-ratio: .8;
}

.leaf-back {
  background: #185644;
  transform: translate(-17%, -8%) rotate(-25deg);
}

.leaf-middle {
  background: #7da68a;
  transform: translate(13%, -12%) rotate(19deg);
}

.leaf-front {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 8%;
  padding: 18% 12% 0;
  background: #fdfdf7;
  box-shadow: 0 .6rem 1.2rem #152e2630;
  transform: translate(9%, 4%) rotate(-3deg);
}

.leaf-front i {
  border-top: 1px solid #8da795;
}

.leaf-front i:first-child { border-color: #0b614b; }

.leaf-front i:last-child { width: 75%; }

/* =====================================================================
 * 4. 제품 및 모바일 레이아웃 — 목록과 공식 링크
 * ===================================================================== */
.products {
  padding-block: 1.6rem clamp(3.5rem, 8vw, 7.5rem);
  border-block-start: 1px solid var(--rule);
}

.products h2 {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--muted);
}

.product {
  display: grid;
  grid-template-columns: minmax(7rem, .6fr) minmax(10rem, 1.2fr) max-content;
  align-items: center;
  gap: 1.2rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: .85rem;
  background: #e9eee5;
}

.product h3 {
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.product p {
  max-width: 50ch;
  color: var(--muted);
  word-break: keep-all;
}

.product-link {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  justify-self: start;
  min-height: 2.75rem;
  padding: .65rem .9rem;
  border-radius: .45rem;
  background: var(--green);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}

.product-link:hover { background: var(--green-dark); }

.route-arrow {
  width: .68rem;
  height: .68rem;
  border-block-start: 1.5px solid currentColor;
  border-inline-end: 1.5px solid currentColor;
  transform: rotate(12deg);
}

.site-footer {
  min-height: 5rem;
  display: flex;
  align-items: center;
  border-block-start: 1px solid var(--rule);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 48rem) {
  .intro {
    gap: .75rem;
    min-height: 0;
  }

  .product {
    grid-template-columns: 1fr 1.7fr;
  }

  .product-link { grid-column: 2; }
}

@media (max-width: 33rem) {
  .site-header { min-height: 4.25rem; }

  .intro {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-block: 3rem 1.5rem;
  }

  .intro p { margin-top: 1.1rem; }

  .paperwork { max-width: 17rem; }

  .product { grid-template-columns: 1fr; }

  .product-link { grid-column: auto; }
}
