/* Golden Hour's public pages: support, privacy, terms.
   Same ink-on-paper palette as the app, plus Baloo 2 for the headings.
   Body text stays on the system font — legal prose is long, and the
   hand-drawn face is for the parts you actually look at. */

:root {
  --paper: #fffdf7;
  --ink: #1c1c1e;
  --ink-soft: #55555a;
  --butter: #ffd95e;
  --rule: #e8e2d2;
  --measure: 34rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1rem 5rem;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.wrap { max-width: var(--measure); margin: 0 auto; }

/* ── masthead ─────────────────────────────────────────────── */

header { padding: 2.5rem 0 1.5rem; }

.mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.mark svg { width: 34px; height: 34px; flex: none; }

.mark span {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

nav a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--rule); }
nav a:hover, nav a:focus { color: var(--ink); border-color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-color: var(--butter); border-bottom-width: 3px; }

/* ── language switch ──────────────────────────────────────── */

.langs {
  display: flex;
  gap: 0.35rem;
  margin: 1.6rem 0 0;
}

.langs button {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.25rem 0.7rem;
  color: var(--ink-soft);
  background: transparent;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--butter);
  border-color: var(--ink);
  font-weight: 600;
}

/* With JavaScript off, data-lang is never set and both languages show. */
html[data-lang="en"] [lang="ko"],
html[data-lang="ko"] [lang="en"] { display: none; }

/* ── type ─────────────────────────────────────────────────── */

h1 {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.4rem;
}

h2 {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.6rem 0 0.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

h3 { font-size: 1rem; margin: 1.6rem 0 0.3rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--ink); text-decoration-color: var(--butter); text-decoration-thickness: 2px; text-underline-offset: 2px; }

strong { font-weight: 650; }

.dek {
  font-family: "Indie Flower", cursive;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.8rem;
}

.stamp {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

/* ── boxes ────────────────────────────────────────────────── */

.note {
  margin: 1.8rem 0;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px 10px 16px 9px; /* a little wobble, like the app's boxes */
  box-shadow: 3px 3px 0 var(--butter);
}

.note :last-child { margin-bottom: 0; }

.note h3 { margin-top: 0; }

dl { margin: 0 0 1rem; }
dt { font-weight: 650; margin-top: 1.1rem; }
dd { margin: 0.2rem 0 0; color: var(--ink-soft); }

footer {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

footer a { color: var(--ink-soft); }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16161a;
    --ink: #f4f1e8;
    --ink-soft: #a8a49a;
    --rule: #33333a;
  }
  .note { background: #1f1f25; }
}
