/* Hallmark stamp
   theme    custom "밤과 종이": 기준 색상각 268(하루한돌의 밤). 종이는 그 색으로 아주 옅게 물들인 흰색,
            하루한돌 구역만 밤 색 면, 강조는 하루한돌 금빛 하나(그 구역의 버튼에만).
   type     제목과 본문 모두 Pretendard 가변 서체(400~700). 쓰는 글자만 잘라 직접 호스팅한다(npm run fonts).
            굵기는 400, 600(버튼), 700(제목) 세 가지만 쓴다.
   posture  첫 화면은 왼쪽 정렬 글 + 오른쪽 실제 제품 화면(정사각). 아래는 밤(하루한돌), 종이(OpenEvents)로
            면을 바꿔 가며 나눈다(구분선 반복 없음).
   chrome   머리: 워드마크 하나, 고정하지 않음, 메뉴 없음. 바닥: 위에 전체 폭 가는 선 하나 + 한 줄(저작권, 처리방침, 문의).
   theme    라이트 한 벌만 낸다. 밤 구역이 페이지 안의 어두운 면 역할을 한다.
   waive 80 하루한돌 심볼은 그림이 아니라 제품의 실제 브랜드 자산이다(harudol scripts/build-brand.mjs가 앱의 돌 질감 값으로 만든다).
   answer F4 채운 버튼이 두 가지(먹색, 금빛)다. 금빛은 하루한돌 구역에서 그 서비스의 행동 색으로만 쓴다. */

@font-face {
  font-family: "Pretendard";
  src: url("/fonts/pretendard-subset.woff2") format("woff2-variations"), url("/fonts/pretendard-subset.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* 색: 모두 여기서만 정한다 */
  --paper: oklch(97.4% 0.006 268);
  --paper-raised: oklch(94.2% 0.01 268);
  --ink: oklch(22% 0.03 268);
  --ink-2: oklch(44% 0.025 268);
  --line: oklch(22% 0.03 268 / 0.14);
  --night: oklch(19% 0.045 272);
  --night-ink: oklch(95% 0.012 85);
  --night-ink-2: oklch(78% 0.022 272);
  --gold: oklch(81% 0.15 80);
  --gold-hover: oklch(86% 0.13 82);
  --gold-ink: oklch(19% 0.045 272);
  --focus: oklch(50% 0.2 264);
  --focus-on-night: oklch(86% 0.13 82);

  /* 글꼴 */
  --font-body: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-display: var(--font-body);

  /* 간격 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* 글자 크기: 몇 단계만, 서로 멀리 */
  --text-small: 14px;
  --text-body: 17px;
  --text-lede: 20px;
  --text-h3: 22px;
  --text-list: 20px;
  --text-h2: clamp(34px, 1.2rem + 2.4vw, 52px);
  --text-h1: clamp(34px, 1.1rem + 2.9vw, 56px);

  --radius-control: 10px;
  --radius-media: 20px;
  --masthead: 72px;
  --container: 1360px;
  --gutter: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--text-body) / 1.65 var(--font-body);
  word-break: keep-all;
  overflow-wrap: break-word;
  caret-color: var(--focus);
  scrollbar-color: var(--ink-2) var(--paper);
}
::selection { background: var(--gold); color: var(--gold-ink); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--space-4); top: var(--space-2); z-index: 10; background: var(--ink); color: var(--paper); padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}

/* 머리 */
.masthead { display: flex; align-items: center; height: var(--masthead); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 18px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.mark { display: inline-flex; gap: var(--space-1); }
.mark i { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); }
.mark i:last-child { border-radius: 50%; }

/* 버튼 */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: var(--space-5);
  border-radius: var(--radius-control);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 120ms ease-out, transform 120ms ease-out;
}
.btn:hover { background: var(--paper-raised); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn-ink:hover { background: var(--ink-2); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: none; }
.btn-gold:hover { background: var(--gold-hover); }
.band-night :focus-visible { outline-color: var(--focus-on-night); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* 첫 화면 */
.hero {
  display: grid;
  gap: var(--space-7);
  padding-block: var(--space-6) var(--space-8);
}
.hero-text { display: grid; gap: var(--space-5); align-content: center; min-width: 0; }
.hero h1 { font-size: var(--text-h1); line-height: 1.28; }
.lede { font-size: var(--text-lede); line-height: 1.6; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.hero .actions { margin-top: var(--space-2); }
.hero-figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-media); background: var(--night); color: var(--night-ink); }
figcaption { margin-top: var(--space-3); font-size: var(--text-small); color: var(--ink-2); }

@media (min-width: 960px) {
  .hero {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--space-5);
    align-items: center;
    min-height: clamp(560px, calc(100svh - var(--masthead)), 820px);
    padding-block: var(--space-5);
  }
  .hero-text { grid-column: 1 / span 7; padding-right: var(--space-6); }
  .hero-figure { grid-column: 8 / span 5; }
}

/* 서비스 구역 */
.band { padding-block: var(--space-9); }
.band-night { background: var(--night); color: var(--night-ink); }
.band-paper { background: var(--paper); padding-block: var(--space-10); }
.band-grid { display: grid; gap: var(--space-7); }
.band-text { display: grid; gap: var(--space-4); align-content: start; min-width: 0; max-width: 36em; }
.band-text p { text-wrap: pretty; }
.band h2 { font-size: var(--text-h2); line-height: 1.15; }
.band h3 { font-size: var(--text-h3); line-height: 1.35; margin-top: var(--space-5); }
.deck { font-family: var(--font-display); font-weight: 400; font-size: var(--text-lede); line-height: 1.45; margin-top: calc(var(--space-2) * -1); margin-bottom: var(--space-3); }
.band-text .actions { margin-top: var(--space-4); }
.band-night .band-text p:not(.deck):not(.actions) { color: var(--night-ink-2); }
.band-paper .band-text p:not(.deck):not(.actions) { color: var(--ink-2); }

.harudol-symbol { width: min(100%, 440px); border-radius: 22%; }

@media (min-width: 960px) {
  .band-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); align-items: center; }
  .band-night .harudol-symbol { grid-column: 1 / span 5; }
  .band-night .band-text { grid-column: 7 / span 6; }
  .band-grid-oe { align-items: start; }
  .band-grid-oe .band-text { grid-column: 1 / span 5; }
  .band-grid-oe .questions { grid-column: 7 / span 6; }
}
@media (max-width: 959px) {
  .band { padding-block: var(--space-8); }
  .harudol-symbol { width: min(64%, 280px); }
}

/* 12가지 질문 */
.questions h3 { margin-top: 0; margin-bottom: var(--space-5); }
.questions ol { counter-reset: q; display: grid; gap: var(--space-3) var(--space-5); }
.questions li {
  counter-increment: q;
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr);
  align-items: baseline;
  font-family: var(--font-display);
  font-size: var(--text-list);
  line-height: 1.4;
}
.questions li::before {
  content: counter(q);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
@media (min-width: 640px) {
  .questions ol { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(6, auto); }
}

/* 바닥 */
.footer { border-top: 1px solid var(--line); }
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-6) calc(var(--space-7) + env(safe-area-inset-bottom));
  font-size: var(--text-small);
  color: var(--ink-2);
}
.footer-links { display: flex; gap: var(--space-5); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* 문서 페이지 (개인정보처리방침) */
.doc { max-width: 760px; padding-block: var(--space-7) var(--space-9); }
.doc h1 { font-size: var(--text-h2); line-height: 1.2; }
.doc .meta { margin-top: var(--space-3); font-size: var(--text-small); color: var(--ink-2); }
.doc h2 { margin-top: var(--space-8); margin-bottom: var(--space-1); font-size: var(--text-h3); line-height: 1.35; }
.doc p, .doc li { margin-top: var(--space-3); line-height: 1.75; text-wrap: pretty; }
.doc ul { margin: 0; padding-left: 1.2em; list-style: disc; }
.doc a { color: var(--focus); }
.doc code { font-family: inherit; }
.doc table { width: 100%; margin-top: var(--space-4); border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; white-space: nowrap; }

/* 404 */
.notfound { display: grid; gap: var(--space-4); justify-items: start; padding-block: var(--space-9) var(--space-10); }
.notfound h1 { font-size: var(--text-h2); line-height: 1.2; }
.notfound p { color: var(--ink-2); }
.notfound .btn { margin-top: var(--space-3); }
