/* toast.pizza — Earth on Hand's landing page, drawn by the owner's guide (Ocean & Sand, docs/design/ocean-and-sand):
   ivory and ink, the navy for numbers and underlines only, 1 px hairlines in place of cards, 2 px corners, a shadow
   on the book cover alone, Noto Serif KR with «어스온핸드» in EarthOnHand. No dark mode — the ground stays ivory. */

@font-face {
  font-family: "EarthOnHand";
  src: url("/fonts/EarthOnHand-wordmark-subset.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+C5B4, U+C2A4, U+C628, U+D578, U+B4DC;
}

:root {
  color-scheme: light;
  --bg: #faf8f3;
  --ink: #1a1916;
  --mute: #6f8390;
  --hair: #ebe2d0;
  --navy: #1f3a5f;
  --sand: #d9b98a;
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --side: 26px;
  --max: 100%;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.9375rem;           /* 15 */
  line-height: 1.75;
}

/* Korean breaks between words, never inside one («서비 / 스해요»); a run with no space still wraps rather than overflow. */
:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }

a { color: inherit; text-decoration-color: var(--navy); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
@media (hover: hover) { a:hover { color: var(--navy); } }

.brand { font-family: "EarthOnHand", var(--serif); letter-spacing: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--side); }

/* ── the top bar ── */
.top { border-bottom: 1px solid var(--hair); }
/* Each item keeps its words on one line: on a narrow phone the nav moves under the name, it never squeezes a name
   into a column a word wide (measured at 390, 2026-10-26). The service's wordmark leads; its English name joins it
   once there is room — the h1 under it always has both. */
.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 16px; min-height: 52px; }
.site-name { font-weight: 700; text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.site-name .brand { font-weight: 400; font-size: 1.125rem; }
.site-name-en { display: none; color: var(--mute); font-weight: 400; font-size: 0.8125rem; margin-left: 4px; }
.top-nav { display: flex; gap: 16px; font-size: 0.8125rem; }
.top-nav a { text-decoration: none; padding: 12px 0; white-space: nowrap; }

/* ── the hero ── */
.hero { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.label { margin: 0 0 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.wordmark { margin: 0; font-size: 1.75rem; font-weight: 700; line-height: 1.3; }   /* 28 */
.wordmark .brand { font-weight: 400; }
.wordmark-en { display: block; font-size: 1rem; font-weight: 600; color: var(--mute); letter-spacing: 0.02em; margin-top: 4px; }
.display { margin: 24px 0 0; font-size: 1.625rem; font-weight: 700; line-height: 1.35; }   /* 26 */
.display-ko { display: block; font-size: 1rem; font-weight: 600; color: var(--mute); margin-top: 4px; }
.lede { margin: 16px 0 0; }
.lede-ko { margin: 8px 0 0; color: var(--mute); font-size: 0.875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 2px;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
}
.button-ink { background: var(--ink); color: var(--bg); border: 1.5px solid var(--ink); }
.button-line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
@media (hover: hover) {
  .button-ink:hover { background: var(--navy); border-color: var(--navy); color: var(--bg); }
  .button-line:hover { border-color: var(--navy); color: var(--navy); }
}

.hero-cover { margin: 0; justify-self: center; max-width: 320px; }
.hero-cover img {
  display: block; width: 100%; height: auto; border-radius: 2px;
  box-shadow: 0 14px 32px rgba(26, 25, 22, 0.18), 0 2px 6px rgba(26, 25, 22, 0.08);   /* a book cover's shadow — the only one */
}
.hero-cover figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--mute); text-align: center; }
.hero-cover figcaption span { display: block; }

/* ── a part of the page: a hairline above it, no box ── */
.part { padding-top: 48px; padding-bottom: 8px; }
.part > h2 {
  margin: 0; padding-top: 24px; border-top: 1px solid var(--hair);
  font-size: 1.375rem; font-weight: 700; line-height: 1.4;   /* 22 */
}
.h-ko { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--mute); margin-top: 2px; }
.note { margin: 12px 0 0; font-size: 0.8125rem; color: var(--mute); }

.rows { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: row; }
.rows > li { padding: 20px 0; border-top: 1px solid var(--hair); counter-increment: row; }
.rows > li:first-child { border-top: 0; }
.rows h3 { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.45; }   /* 18 */
.rows:not(.rows-plain) h3::before { content: counter(row, decimal-leading-zero); color: var(--navy); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; display: block; margin-bottom: 4px; }
.rows p { margin: 6px 0 0; }
.rows .ko { color: var(--mute); font-size: 0.875rem; }

.screens {
  list-style: none; margin: 24px calc(var(--side) * -1) 0; padding: 0 var(--side) 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
}
.screens li { scroll-snap-align: start; }
.screens img { display: block; width: 100%; height: auto; border: 1px solid var(--hair); border-radius: 2px; }
.screens span { display: block; margin-top: 8px; font-size: 0.8125rem; color: var(--mute); }

.facts { margin: 16px 0 0; }
.facts > div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--hair); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: 0; }
.dd-ko { display: block; color: var(--mute); font-size: 0.875rem; }

.foot { margin-top: 64px; border-top: 1px solid var(--hair); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 24px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); font-size: 0.8125rem; color: var(--mute); }
.foot-row p { margin: 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-nav a { padding: 4px 0; }

/* ── S 600–767 ── */
@media (min-width: 600px) {
  :root { --side: 32px; }
  .site-name-en { display: inline; }   /* the English name beside the wordmark once there is room */
  .screens { grid-auto-columns: 40%; }
}

/* ── M 768–1199 ── */
@media (min-width: 768px) {
  :root { --side: 48px; --max: 960px; }
  .top-row { min-height: 64px; }
  .hero { grid-template-columns: 1fr 280px; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
  .wordmark { font-size: 2.25rem; }   /* 36 */
  .display { font-size: 2rem; }       /* 32 */
  .part > h2 { font-size: 1.5rem; }   /* 24 */
  .rows h3 { font-size: 1.25rem; }    /* 20 */
  .screens { margin: 24px 0 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; }
  .facts > div { grid-template-columns: 220px 1fr; gap: 24px; }
  .facts dt { padding-top: 3px; }
}

/* ── L 1200+ ── */
@media (min-width: 1200px) {
  :root { --side: 48px; --max: 1200px; }
  body { font-size: 1rem; }           /* 16 */
  .top-row { min-height: 72px; }
  .hero { grid-template-columns: 1fr 340px; gap: 96px; padding-top: 96px; padding-bottom: 96px; }
  .wordmark { font-size: 2.75rem; }   /* 44 */
  .display { font-size: 2.5rem; }     /* 40 */
  .part > h2 { font-size: 1.75rem; }  /* 28 */
  .rows h3 { font-size: 1.375rem; }   /* 22 */
  .hero-cover { max-width: 340px; }
  .top-nav, .foot-row { font-size: 0.875rem; }
}
