:root {
  color-scheme: light;
  --paper: #f7efe2;
  --surface: #fffaf0;
  --ink: #302116;
  --soft-ink: #645242;
  --line: #dac6ac;
  --cherry: #9b3428;
  --green: #344d38;
  font-family: system-ui, "Apple SD Gothic Neo", sans-serif;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 4px; }
.shell { width: min(100% - 72px, 1220px); margin-inline: auto; }
section { scroll-margin-top: 82px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header-inner { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.chapters { display: flex; align-items: stretch; gap: clamp(20px, 5vw, 53px); }
.chapters a { display: flex; align-items: center; min-height: 65px; padding: 4px 1px 0; border-bottom: 3px solid transparent; text-decoration: none; font-size: 15px; font-weight: 650; color: var(--soft-ink); }
.chapters a:hover, .chapters [aria-current] { border-color: var(--cherry); color: var(--cherry); }
.reading-track { height: 2px; position: absolute; inset: auto 0 -1px; pointer-events: none; }
.reading-progress { width: 100%; height: 100%; background: var(--cherry); transform: scaleX(0); transform-origin: left; }

.origin { padding-block: clamp(38px, 7vw, 90px) clamp(62px, 8vw, 110px); }
.hero { display: grid; grid-template-columns: minmax(325px, .86fr) minmax(0, 1.24fr); align-items: center; gap: clamp(28px, 5.5vw, 76px); }
.story-kicker { color: var(--cherry); font-weight: 760; font-size: 15px; margin: 0 0 15px; }
.hero h1, .chapter h2, .origin-detail h2 { font-family: "Noto Serif CJK KR", "Songti SC", "AppleMyungjo", "Batang", serif; font-weight: 740; letter-spacing: -.079em; word-break: keep-all; text-wrap: balance; }
.hero h1 { font-size: clamp(51px, 7.2vw, 112px); line-height: .99; margin: 0; }
.hero-lede { max-width: 390px; color: var(--soft-ink); line-height: 1.8; margin: 25px 0 28px; font-size: clamp(16px, 1.8vw, 19px); word-break: keep-all; }
.story-button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 17px; background: var(--cherry); color: white; border-radius: 3px; font-weight: 700; font-size: 15px; text-decoration: none; }
.story-button:hover { background: #7d2821; }
.hero-image { margin: 0; border: 1px solid #baa183; padding: 8px; background: #e6d8c1; box-shadow: 12px 13px 0 #e0cdb0; }
.hero-image img { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 6 / 5; object-position: 62% 49%; }
.hero-image figcaption { padding: 7px 4px 2px; color: #584432; font-size: 12px; }
.origin-detail { margin-top: clamp(49px, 8vw, 104px); border-top: 1px solid var(--line); padding-top: 28px; display: grid; grid-template-columns: 1fr minmax(225px, .48fr); gap: 28px; align-items: center; }
.origin-detail h2 { margin: 0 0 13px; font-size: clamp(29px, 4.3vw, 47px); line-height: 1.15; }
.origin-detail p, .chapter-copy > p:not(.story-kicker) { color: var(--soft-ink); line-height: 1.8; margin: 0; max-width: 630px; }
.origin-stat { padding: 13px 22px 16px; border-left: 1px solid var(--line); }
.origin-stat .sample-note { color: var(--cherry); font-size: 13px; font-weight: 740; }
.origin-stat .stat { font-family: Georgia, serif; font-size: 22px; line-height: 1.1; color: var(--ink); }
.stat strong { font-size: clamp(58px, 7vw, 94px); font-weight: 400; letter-spacing: -.08em; }

.band { background: #ecddc6; border-block: 1px solid var(--line); }
.chapter { padding-block: clamp(64px, 8vw, 115px); }
.chapter-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(27px, 7vw, 100px); align-items: center; }
.chapter h2 { font-size: clamp(37px, 5.7vw, 74px); line-height: 1.07; margin: 0 0 21px; }
.chapter-copy > p:not(.story-kicker) { font-size: clamp(16px, 1.75vw, 18px); word-break: keep-all; }
.source-link { text-decoration-color: #ad9681; text-underline-offset: 3px; font-size: .91em; }
.source-link:hover, .section-link:hover { color: var(--cherry); }
.section-link { display: inline-block; margin-top: 22px; color: var(--cherry); font-size: 15px; font-weight: 700; text-underline-offset: 5px; }
.data-sheet, .map-figure { margin: 0; background: var(--surface); border: 1px solid #ccb99c; padding: clamp(17px, 3.1vw, 35px); border-radius: 4px; }
.figure-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; }
.figure-heading h3 { margin: 0; font-size: clamp(18px, 2.2vw, 26px); letter-spacing: -.04em; }
.figure-unit { font-size: 13px; color: var(--soft-ink); }
.data-sheet figcaption, .map-figure figcaption { border-top: 1px solid var(--line); margin-top: 23px; padding-top: 13px; font-size: 14px; color: var(--soft-ink); line-height: 1.65; }
.data-sheet figcaption strong, .map-figure figcaption strong { color: var(--cherry); }

.mass-graphic { margin-top: 24px; }
.mass-row + .mass-row { margin-top: 16px; }
.mass-row p { margin: 0 0 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 15px; }
.mass-row p strong { font-family: Georgia, serif; font-weight: 550; font-size: 23px; white-space: nowrap; }
.mass-track { height: clamp(19px, 2.5vw, 29px); background: #eee1cf; border-right: 1px solid #baa180; background-image: linear-gradient(to right, #b89e7b55 1px, transparent 1px); background-size: 25% 100%; }
.mass-bar { height: 100%; }
.cherries { background: var(--cherry); width: 100%; }
.green { background: var(--green); width: 20%; }
.mass-ticks { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--soft-ink); }

.shipping-intro { align-items: end; margin-bottom: 23px; }
.shipping-intro h2 { margin-bottom: 0; }
.shipping-copy { padding-bottom: 3px; }
.map-frame { margin-top: 17px; position: relative; border: 1px solid #b8c0a5; background: #e5e9d8; }
#journey-map { display: block; width: 100%; height: auto; aspect-ratio: 960/430; }
.map-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.map-label { position: absolute; font-size: clamp(10px, 1.25vw, 15px); color: #31251b; font-weight: 740; text-shadow: 1px 1px #f9f5e9, -1px -1px #f9f5e9, 1px -1px #f9f5e9, -1px 1px #f9f5e9; white-space: nowrap; }
.map-label.is-left { translate: calc(-100% - 8px) -55%; }
.map-label.is-above { translate: -50% calc(-100% - 7px); }
.map-label.is-below { translate: -45% 7px; }
.map-label.is-ocean { color: #52604b; font-weight: 560; translate: -50% -50%; }
.legs { display: grid; grid-template-columns: repeat(4,minmax(0, 1fr)); border: 1px solid var(--line); border-top: 0; }
.legs button { min-height: 64px; text-align: start; background: transparent; border: 0; padding: 10px 12px; color: var(--ink); cursor: pointer; }
.legs button + button { border-left: 1px solid var(--line); }
.legs button:hover { background: #f4ebdc; }
.legs button[aria-pressed="true"] { box-shadow: inset 0 -3px var(--cherry); background: #f4e8d6; }
.legs button span { display: block; font-size: 13px; line-height: 1.35; }
.legs button strong { display: block; margin-top: 5px; font-size: 17px; }
.leg-detail { margin: 12px 0 0; color: var(--ink); line-height: 1.55; font-size: 14px; min-height: 2.1em; }

.final { background: #e6ddc8; }
.cup-sheet .figure-heading { margin-bottom: 21px; }
.recipe-values { display: grid; grid-template-columns: 1fr 1.35fr; gap: 14px; }
.recipe-key { font-size: 14px; font-weight: 700; }
.recipe-key::before { display: inline-block; width: .64em; height: .64em; margin-right: .42em; border-radius: 50%; content: ""; }
.grounds-key::before { background: #65432e; }
.water-key::before { background: #6b7956; }
.recipe-values p { font: 20px Georgia, serif; margin: 5px 0 18px; white-space: nowrap; }
.recipe-values strong { font-size: clamp(43px, 7vw, 79px); font-weight: 400; letter-spacing: -.07em; }
.ratio-bar { height: clamp(20px, 3vw, 29px); display: grid; grid-template-columns: 1fr 15fr; background: #6b7956; }
.ratio-bar span:first-child { background: #65432e; }
.ratio { color: var(--soft-ink); margin: 9px 0 0; font-size: 14px; }
.ratio strong { color: var(--ink); margin-left: 4px; }

.site-footer { padding-block: 25px 35px; display: flex; gap: 13px 22px; align-items: baseline; flex-wrap: wrap; justify-content: space-between; color: var(--soft-ink); font-size: 14px; }
.site-footer p { margin: 0; }
.site-footer a { font-weight: 700; text-underline-offset: 4px; }

@media (max-width: 780px) {
  .shell { width: min(100% - 36px, 660px); }
  .hero { grid-template-columns: 1fr; }
  .hero-image { margin-right: 8px; box-shadow: 8px 9px 0 #e0cdb0; }
  .hero-image img { aspect-ratio: 4 / 3; }
  .chapter-grid { grid-template-columns: 1fr; gap: 24px; }
  .origin-detail { grid-template-columns: 1fr; gap: 20px; }
  .origin-stat { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
}

@media (max-width: 480px) {
  .site-header-inner { gap: 14px; }
  .site-header .brand { font-size: 17px; }
  .brand-mark { width: 16px; margin-right: 6px; }
  .chapters { gap: 12px; }
  .chapters a { min-height: 60px; font-size: 13px; }
  .site-header-inner { min-height: 60px; }
  .map-figure { padding-inline: 12px; }
  .legs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legs button:nth-child(3) { border-left: 0; }
  .legs button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .map-label.is-below, .map-label.is-above { font-size: 9px; }
  .map-label.is-left { translate: calc(-100% - 4px) -55%; }
}

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