@import url('../assets/fonts/pretendard.css');
@import url('../assets/fonts/google.css');

:root {
  --ink-deep: #231C16;
  --ink-soft: #3A2F25;
  --ink-mute: #6B5E4F;
  --paper-warm: #FFFCF7;
  --paper-edge: #F4EBE0;
  --paper-line: rgba(35, 28, 22, .08);
  --seal-red: #A22A1F;

  --mok-green: #3F5B3A;
  --hwa-red: #B14536;
  --to-ocher: #B59458;
  --geum-grey: #B7B5AE;
  --su-indigo: #2E3B4A;

  --font-hangul: "Pretendard Variable", "Apple SD Gothic Neo", system-ui, sans-serif;
  --font-han: "Source Han Serif KR", "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --font-serif-en: "Cormorant Garamond", Georgia, serif;
  --font-sans-en: "Optima", "Source Han Sans KR", sans-serif;

  --gap-section-m: 80px;
  --gap-section-d: 120px;
  --pad-page-m: 20px;
  --pad-page-d: 56px;
  --max-content: 720px;
  --max-wide: 1080px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html, body { background: var(--paper-warm); color: var(--ink-deep); font-family: var(--font-hangul); font-weight: 350; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body { overflow-x: hidden; min-height: 100vh; font-size: 15px; }
@media (min-width: 768px) { body { font-size: 16px; } }

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--paper-line); margin: 0; }

.han { font-family: var(--font-han); font-weight: 400; letter-spacing: .02em; }
.serif-en { font-family: var(--font-serif-en); font-style: italic; font-weight: 400; }
.label-en { font-family: var(--font-sans-en); font-variant: small-caps; letter-spacing: .12em; color: var(--ink-mute); font-size: 11px; }

.eyebrow { font-family: var(--font-han); color: var(--seal-red); font-size: 13px; font-weight: 400; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 14px; height: 1px; background: var(--seal-red); display: inline-block; }

/* Nav --------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 80; background: rgba(255, 252, 247, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--paper-line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad-page-m); max-width: var(--max-wide); margin: 0 auto; }
.nav-brand { display: flex; align-items: baseline; gap: 10px; }
.nav-brand .han { font-size: 22px; color: var(--seal-red); }
.nav-brand .sub { font-size: 11px; letter-spacing: .14em; color: var(--ink-mute); }
.nav-cta { font-size: 13px; padding: 8px 14px; border: 1px solid var(--ink-deep); border-radius: 999px; color: var(--ink-deep); transition: background .2s var(--ease); }
.nav-cta:hover { background: var(--ink-deep); color: var(--paper-warm); }
@media (min-width: 768px) { .nav-inner { padding: 18px var(--pad-page-d); } .nav-brand .han { font-size: 26px; } }

/* Page wrappers ----------------------------------------- */
main { max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--pad-page-m); }
section { padding: var(--gap-section-m) 0; }
section:first-of-type { padding-top: 56px; }
@media (min-width: 768px) { main { padding: 0 var(--pad-page-d); } section { padding: var(--gap-section-d) 0; } }

.content-block { max-width: var(--max-content); margin: 0 auto; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-family: var(--font-han); font-size: 22px; font-weight: 400; line-height: 1.25; margin-top: 8px; }
.section-head .sub { margin-top: 12px; color: var(--ink-soft); }
@media (min-width: 768px) { .section-head { margin-bottom: 48px; } .section-head h2 { font-size: 32px; } }

/* § 1 Hero ---------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: baseline; }
.hero-meta .edition { font-family: var(--font-sans-en); font-variant: small-caps; letter-spacing: .12em; font-size: 11px; color: var(--ink-mute); }
.hero-meta .price { font-family: var(--font-han); font-size: 22px; font-weight: 400; color: var(--ink-deep); }
.hero-meta .price small { font-family: var(--font-hangul); font-size: 11px; color: var(--ink-mute); margin-left: 8px; font-weight: 350; }
.hero-meta .price-note { font-family: var(--font-hangul); font-size: 11px; padding: 4px 12px; background: rgba(162, 42, 31, .06); border: 1px solid rgba(162, 42, 31, .25); border-radius: 999px; color: var(--seal-red); white-space: nowrap; font-weight: 400; }
.hero-meta .dispatch { font-size: 12px; color: var(--ink-mute); }

.hero-h1 { font-family: var(--font-han); font-size: 32px; font-weight: 400; line-height: 1.15; margin-top: 24px; letter-spacing: -.01em; }
.hero-h1 .eb { display: block; color: var(--seal-red); font-size: 18px; margin-bottom: 8px; letter-spacing: .04em; }
.hero-pre-sub { margin-top: 16px; color: var(--ink-mute); font-size: 14px; }
.hero-sub { margin-top: 6px; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

.cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; background: var(--ink-deep); color: var(--paper-warm); border-radius: 999px; font-family: var(--font-hangul); font-size: 15px; font-weight: 400; letter-spacing: -.005em; transition: transform .2s var(--ease), background .2s var(--ease); margin-top: 28px; min-height: 48px; }
.cta:hover { background: var(--seal-red); transform: translateY(-1px); }
.cta .arr { display: inline-block; transition: transform .2s var(--ease); }
.cta:hover .arr { transform: translateX(2px); }
.cta.ghost { background: transparent; color: var(--ink-deep); border: 1px solid var(--ink-deep); margin-left: 0; }
.cta.ghost:hover { background: var(--ink-deep); color: var(--paper-warm); }
.cta-sub { font-size: 14px; padding: 12px 22px; min-height: 44px; }
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-group .cta { margin-top: 0; }
@media (max-width: 480px) { .cta-group { flex-direction: column; align-items: stretch; } .cta-group .cta { justify-content: center; } }

.hero-figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--paper-edge); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-seal { position: absolute; bottom: 16px; right: 16px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(255, 252, 247, .96); border-radius: 50%; font-family: var(--font-han); color: var(--seal-red); font-size: 22px; }

@media (min-width: 768px) {
  .hero { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .hero-h1 { font-size: 48px; }
  .hero-h1 .eb { font-size: 22px; }
  .hero-meta .price { font-size: 26px; }
  .hero-figure { aspect-ratio: 4 / 5; }
}

/* § 2 The Reading --------------------------------------- */
.reading-cards { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
.reading-card { padding: 24px; background: var(--paper-warm); border: 1px solid var(--paper-line); border-radius: 4px; }
.reading-card h3 { font-family: var(--font-han); font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.reading-card .han-tag { font-family: var(--font-han); color: var(--seal-red); font-size: 22px; margin-right: 6px; vertical-align: -.05em; }
.reading-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
@media (min-width: 768px) { .reading-cards { grid-template-columns: 1fr 1fr 1fr; gap: 24px; } .reading-card { padding: 28px; } }

.examples { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.example { padding: 16px; border: 1px solid var(--paper-line); border-radius: 4px; text-align: center; background: var(--paper-warm); }
.example .ex-id { font-family: var(--font-sans-en); font-variant: small-caps; letter-spacing: .14em; font-size: 10px; color: var(--ink-mute); }
.example .ex-han { font-family: var(--font-han); font-size: 18px; color: var(--seal-red); margin: 8px 0; }
.example .ex-note { font-size: 12px; color: var(--ink-soft); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.dot-mok { background: var(--mok-green); } .dot-hwa { background: var(--hwa-red); } .dot-to { background: var(--to-ocher); } .dot-geum { background: var(--geum-grey); } .dot-su { background: var(--su-indigo); }

.reading-method { margin-top: 48px; padding: 28px; background: var(--paper-edge); border-radius: 4px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.reading-method .han-line { color: var(--seal-red); }

/* § 3 Spec ---------------------------------------------- */
.spec-list { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 32px; border-top: 1px solid var(--paper-line); }
.spec-row { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--paper-line); align-items: baseline; }
.spec-row .label { font-family: var(--font-han); font-size: 14px; color: var(--seal-red); font-weight: 400; }
.spec-row .value { font-size: 14px; color: var(--ink-soft); word-break: keep-all; overflow-wrap: anywhere; }
.spec-figure { margin-top: 28px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--paper-edge); }
.spec-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .spec-figure { margin-top: 36px; aspect-ratio: 16 / 9; } }

.ruby { font-family: var(--font-hangul); font-size: .8em; color: var(--ink-mute); letter-spacing: 0; margin-left: 2px; vertical-align: .05em; }

@media (min-width: 768px) { .spec-row { grid-template-columns: 160px 1fr; padding: 22px 0; } .spec-row .label { font-size: 15px; } .spec-row .value { font-size: 15px; } }

/* § 4 Quiet Work ---------------------------------------- */
.quiet-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
.quiet-row { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.quiet-row .photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--paper-edge); }
.quiet-row .photo img { width: 100%; height: 100%; object-fit: cover; }
.quiet-row .text .moment { font-family: var(--font-han); color: var(--seal-red); font-size: 16px; margin-bottom: 8px; }
.quiet-row .text p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
@media (min-width: 768px) {
  .quiet-row { grid-template-columns: 1fr 1.4fr; gap: 40px; }
  .quiet-row:nth-child(even) { grid-template-columns: 1.4fr 1fr; }
  .quiet-row:nth-child(even) .photo { order: 2; }
  .quiet-row .text .moment { font-size: 18px; }
}

/* § 5 Maker Note ---------------------------------------- */
.maker { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.maker-figure { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--paper-edge); }
.maker-figure img { width: 100%; height: 100%; object-fit: cover; }
.maker-body { font-size: 15px; color: var(--ink-soft); line-height: 1.75; }
.maker-sign { margin-top: 28px; font-family: var(--font-serif-en); font-style: italic; color: var(--ink-mute); font-size: 16px; }
.maker-sign::before { content: "—  "; }
@media (min-width: 768px) { .maker { grid-template-columns: 1.2fr 1fr; gap: 48px; } .maker-body { font-size: 16px; } }

/* § 6 FAQ ----------------------------------------------- */
.faq-list { margin-top: 32px; border-top: 1px solid var(--paper-line); }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-item summary { padding: 20px 0; cursor: pointer; display: flex; align-items: baseline; gap: 14px; list-style: none; font-family: var(--font-han); font-size: 15px; color: var(--ink-deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; font-family: var(--font-sans-en); font-variant: small-caps; letter-spacing: .12em; color: var(--seal-red); font-size: 12px; }
.faq-item summary::after { content: "+"; margin-left: auto; color: var(--ink-mute); font-size: 16px; transition: transform .2s var(--ease); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 0 22px 24px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
@media (min-width: 768px) { .faq-item summary { font-size: 16px; padding: 24px 0; } .faq-item .answer { font-size: 15px; } }

/* Sticky CTA (mobile) ----------------------------------- */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; background: rgba(255, 252, 247, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--paper-line); padding: 12px 16px env(safe-area-inset-bottom); display: none; align-items: center; gap: 12px; transform: translateY(100%); transition: transform .3s var(--ease); }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .info { flex: 1; display: flex; flex-direction: column; }
.sticky-cta .price { font-family: var(--font-han); font-size: 16px; color: var(--ink-deep); }
.sticky-cta .meta { font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.sticky-cta .cta { margin: 0; padding: 12px 18px; font-size: 14px; }
@media (max-width: 767.98px) { .sticky-cta { display: flex; } }

/* Footer ------------------------------------------------ */
footer { margin-top: 80px; padding: 56px var(--pad-page-m) 100px; background: var(--paper-edge); }
.footer-inner { max-width: var(--max-wide); margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.footer-brand { display: flex; align-items: baseline; gap: 12px; }
.footer-brand .han { font-size: 22px; color: var(--seal-red); }
.footer-brand .desc { font-size: 13px; color: var(--ink-soft); }
.footer-info { font-size: 12px; color: var(--ink-mute); line-height: 1.7; }
.footer-info a { border-bottom: 1px solid var(--paper-line); }
@media (min-width: 768px) {
  footer { padding: 80px var(--pad-page-d) 80px; margin-top: 120px; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* Modal Processing Pivot -------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(35, 28, 22, .72); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-panel { background: var(--paper-warm); border-radius: 4px; max-width: 460px; width: 100%; max-height: 92vh; overflow-y: auto; padding: 28px 24px; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--ink-mute); border-radius: 50%; transition: background .2s var(--ease); }
.modal-close:hover { background: var(--paper-edge); }

.modal-step { display: none; }
.modal-step.active { display: block; }

.modal h3 { font-family: var(--font-han); font-size: 18px; font-weight: 400; margin-bottom: 14px; }
.modal p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

.saju-form { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: var(--ink-mute); }
.field input, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--paper-line); border-radius: 4px; background: var(--paper-warm); font: inherit; font-size: 14px; min-height: 48px; }
.field input:focus, .field select:focus { outline: 2px solid var(--seal-red); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-radio { display: flex; gap: 14px; padding: 6px 0; }
.field-radio label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-deep); cursor: pointer; }
.field-note { font-size: 12px; color: var(--ink-mute); padding: 10px 14px; background: var(--paper-edge); border-radius: 4px; }

.modal .cta { width: 100%; justify-content: center; margin-top: 16px; }

.processing { text-align: center; padding: 28px 0; }
.processing .dots { display: flex; justify-content: center; gap: 8px; margin: 20px 0; }
.processing .dots span { width: 10px; height: 10px; border-radius: 50%; animation: pulse 1.4s var(--ease) infinite; }
.processing .dots span:nth-child(1) { background: var(--mok-green); }
.processing .dots span:nth-child(2) { background: var(--hwa-red); animation-delay: .15s; }
.processing .dots span:nth-child(3) { background: var(--to-ocher); animation-delay: .3s; }
.processing .dots span:nth-child(4) { background: var(--geum-grey); animation-delay: .45s; }
.processing .dots span:nth-child(5) { background: var(--su-indigo); animation-delay: .6s; }
@keyframes pulse { 0%, 100% { opacity: .4; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .processing .dots span { animation: none; opacity: .8; } }

.reveal-body { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }
.reveal-body p + p { margin-top: 12px; }
.reveal-body strong { color: var(--ink-deep); font-weight: 500; }

.success { text-align: center; padding: 20px 0; }
.success h3 { color: var(--seal-red); margin-bottom: 12px; }

/* Anim helpers ------------------------------------------ */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
