/* 지음 스튜디오 — design_handoff_jieum_site 토큰 그대로.
   규칙: 모서리 반경 0, 그림자 없음, 그라디언트 없음, 이모지 없음.
   배경은 한지/먹 2종만. 새 색을 만들지 말 것. */

:root {
  --paper:      #F0E7D4;
  --paper-2:    #FBF7EE;
  --ink:        #201C17;
  --ink-hover:  #332C24;
  --vermilion:  #C7402C;
  --vermilion-h:#A9351F;
  --teal:       #1C6E62;
  --gardenia:   #E0A93B;
  --stone:      #857B6E;
  --text:       #5E564C;
  --text-2:     #453F37;
  --text-dark:  #C4B8A6;
  --line:       #DFD1B4;
  --line-card:  #E1D5BB;
  --line-chip:  #C7BBA0;
  --line-dark:  #4A423A;
  --line-foot:  #352E26;
  --caption-dark:#6E655A;
  --on-primary: #F7F0DF;

  --serif: 'Nanum Myeongjo', serif;
  --sans:  'Noto Sans KR', sans-serif;
  --hanja: 'Noto Serif KR', serif;
  --mono:  'Spline Sans Mono', monospace;

  --pad-x: 32px;
  --pad-y: clamp(64px, 8vw, 104px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  /* 한글은 기본값이면 단어 한가운데서 줄이 끊깁니다. 어절 단위로 끊도록. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 800; margin: 0; }
p { margin: 0; }

a { color: var(--vermilion); text-decoration: none; transition: color 120ms ease; }

:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- 공통 조각 ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--stone);
  margin: 0;
}
.eyebrow-lg   { font-size: 13px; letter-spacing: 0.26em; }
.eyebrow-sm   { font-size: 12px; letter-spacing: 0.16em; margin-top: 12px; }
.eyebrow-wide { font-size: 15px; letter-spacing: 0.22em; }
.eyebrow-spec { margin-top: 30px; letter-spacing: 0.1em; }
.eyebrow-vermilion { color: var(--vermilion); }
.eyebrow-teal      { color: var(--teal); }
.eyebrow-gardenia  { color: var(--gardenia); letter-spacing: 0.2em; }

.body { font-size: 17px; line-height: 1.85; color: var(--text); text-wrap: pretty; }
.body-lg { font-size: 19px; line-height: 1.95; }
.body-dark { color: var(--text-dark); }

.section-title {
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.25;
  margin: 16px 0 56px;
}
.section-title.tight { margin-bottom: 24px; }
.section-title.flush { margin-bottom: 0; }

.tag { font-family: var(--mono); font-size: 13px; color: var(--vermilion); margin-top: 14px; }

.chips { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  border: 1px solid var(--line-chip); padding: 9px 16px;
}
.chip-dark { border-color: var(--line-dark); color: #9A9083; }
/* 아직 나오지 않은 것 표시 (제목 옆에 붙는 작은 칩) */
.chip-soon { font-size: 11px; padding: 5px 10px; letter-spacing: 0.08em;
  border-color: var(--vermilion); color: var(--vermilion); align-self: center; }

.btn-row { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 16px; line-height: 1.2;
  padding: 17px 30px; border: 1px solid transparent; cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn-primary { background: var(--vermilion); color: var(--on-primary); }
.btn-primary:hover { background: var(--vermilion-h); color: var(--on-primary); }
.btn-ghost { border-color: var(--line-dark); color: var(--paper); }
.btn-ghost:hover { border-color: var(--gardenia); color: var(--gardenia); }
.btn-sm { padding: 11px 20px; font-size: 14px; letter-spacing: 0.02em; }

.section { padding: var(--pad-y) var(--pad-x); }
[id] { scroll-margin-top: 84px; }   /* sticky 헤더에 제목이 가리지 않도록 */
.section > .wrap { padding: 0; }
.section-paper  { background: var(--paper); }
.section-paper2 { background: var(--paper-2); }
.section-divide   { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-divide-t { border-top: 1px solid var(--line); }
.section-divide-b { border-bottom: 1px solid var(--line); }

/* 사진 자리 — 실제 사진이 오면 이 div를 <img class="slot">로 교체 */
.slot {
  min-width: 0;
  background: var(--paper-2);
  border: 1px solid var(--line-card);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--stone); text-align: center; padding: 16px;
}
img.slot { object-fit: cover; width: 100%; height: 100%; }
.slot-story   { aspect-ratio: 5 / 3; }
/* 앱 화면은 이미지 안에 이미 폰 모양이 들어 있어 테두리·배경을 두지 않는다 */
.slot-app     { aspect-ratio: 42 / 46; border: 0; background: none; }

/* ---------- 헤더 ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(240, 231, 212, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  padding: 18px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.logo img { width: 38px; height: 38px; }
.logo-name { font-family: var(--serif); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 15px; }
.nav a { color: var(--text); }
.nav a:hover { color: var(--vermilion); }
.nav .btn { color: var(--on-primary); }

/* ---------- 히어로 ---------- */

.hero { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 120px) var(--pad-x) clamp(72px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 80px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance;
}
.hero-body { margin-top: 34px; max-width: 620px; font-size: 19px; line-height: 1.9; color: var(--text-dark); text-wrap: pretty; }
.hero .btn-row { margin-top: 44px; }
.hero-seal { display: flex; justify-content: center; }
.hero-seal img { width: 330px; height: 330px; }

/* ---------- 브랜드의 뜻 ---------- */

.meaning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.meaning { min-width: 0; border-top: 3px solid var(--rule); padding-top: 26px; }
.meaning-word { font-family: var(--serif); font-weight: 800; font-size: clamp(36px, 3.8vw, 46px); }
.meaning-word.hanja { font-family: var(--hanja); font-weight: 900; }
.meaning .body { margin-top: 18px; }

/* ---------- 창작자 ---------- */

.founder-solo { max-width: 760px; }

/* ---------- 이야기 ---------- */

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-lede { max-width: 520px; font-size: 16px; line-height: 1.85; color: #6B6156; text-wrap: pretty; }
.story-grid { margin-top: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.story { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.title-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.title-row .eyebrow-sm { margin-top: 0; }
.story-title { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.story .body { margin-top: 14px; }

/* ---------- 도구와 놀이 ---------- */

.flagship {
  background: var(--ink); color: var(--paper);
  padding: clamp(32px, 4.5vw, 56px);
  display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: center;
}
.flagship > * { min-width: 0; }
.flagship-title { font-size: clamp(38px, 4.6vw, 54px); line-height: 1.15; margin: 16px 0 8px; }
.flagship .body { margin-top: 26px; max-width: 560px; font-size: 18px; line-height: 1.9; }
.flagship .chips { margin-top: 32px; }

.card-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  min-width: 0; background: var(--paper-2); border: 1px solid var(--line-card);
  padding: 34px; display: flex; flex-direction: column; gap: 16px;
}
.card-title { font-size: 26px; line-height: 1.2; }
.card .eyebrow-sm { margin-top: 0; }
.card .body { font-size: 16px; }
.card-tag { margin-top: auto; font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.card-link { font-family: var(--mono); font-size: 12px; color: var(--teal); }
.card-link:hover { color: var(--vermilion); }

/* ---------- 다운로드 ---------- */

.download-grid { display: grid; grid-template-columns: 1fr 460px; gap: 80px; align-items: center; }
.download-grid > * { min-width: 0; }
.download-grid .body-lg { max-width: 600px; font-size: 18px; line-height: 1.9; }

.store-row { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.store {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--paper); border: none;
  padding: 16px 26px; cursor: pointer;
  font-family: var(--sans); text-align: left;
  transition: background-color 120ms ease;
}
.store:hover { background: var(--ink-hover); color: var(--paper); }
.store-icon { width: 26px; height: 26px; flex: none; }
.store-top { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: #9A9083; }
.store-name { display: block; font-size: 17px; margin-top: 2px; }

.notice {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--teal); color: var(--teal); padding: 12px 18px; font-size: 15px;
}
.notice-mark { font-family: var(--mono); font-size: 13px; }

.download-seal { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.download-seal img { width: 190px; height: 190px; }
.pledge { text-align: center; font-family: var(--serif); font-size: 24px; line-height: 1.7; color: var(--ink); }

/* ---------- 푸터 ---------- */

.footer { background: var(--ink); color: var(--text-dark); padding: 72px var(--pad-x) 48px; }
.footer-top { display: flex; justify-content: space-between; gap: 56px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-name { font-family: var(--serif); font-weight: 800; font-size: 24px; color: var(--paper); }
.footer-brand .eyebrow-sm { margin-top: 6px; letter-spacing: 0.24em; font-size: 11px; }
.footer-motto { margin-top: 26px; font-family: var(--serif); font-size: 28px; color: var(--gardenia); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; font-size: 15px; line-height: 2.1; }
.footer-cols .eyebrow-sm { margin: 0 0 10px; letter-spacing: 0.18em; font-size: 11px; }
.footer-links { display: flex; flex-direction: column; gap: 2px; }
.footer-links a { color: var(--text-dark); }
.footer-links a:hover { color: var(--gardenia); }
.footer-bottom {
  margin-top: 56px; border-top: 1px solid var(--line-foot); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--caption-dark);
}

/* ---------- 반응형 (시안 미정의 — 구현자 완성분) ---------- */

@media (max-width: 1024px) {
  .hero-grid,
  .flagship,
  .download-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-seal img { width: min(240px, 55vw); height: auto; }
  .download-seal { align-items: flex-start; }
  .pledge { text-align: left; }
}

@media (max-width: 768px) {
  :root { --pad-x: 20px; }
  .nav a:not(.btn) { display: none; }   /* 모바일: 로고 + 다운로드 CTA만 */
  .nav { gap: 0; }
  .meaning-grid,
  .story-grid,
  .card-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-title { margin-bottom: 40px; }
  .store { flex: 1 1 100%; }
  .btn { width: 100%; }
  .nav .btn { width: auto; padding: 13px 20px; }
  .card-link { width: 100%; }
  /* 터치 타깃 44px 확보 */
  .logo { min-height: 44px; }
  .footer-links a { min-height: 44px; display: flex; align-items: center; }
}
