/* The Japan Table — affiliate content site (working title)
   Design goal: fast, readable, trustworthy (E-E-A-T). No external fonts, no heavy JS.
   Brand name appears as the literal string "The Japan Table" — find-replace to rebrand. */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #221f1c;
  --muted: #6b6560;
  --faint: #8f8880;
  --line: #e7e1d7;
  --accent: #9c4a2f;        /* clay / terracotta */
  --accent-ink: #7d3a23;
  --accent-soft: #f3e7df;
  --focus: #2b6cb0;
  --maxw: 720px;
  --radius: 10px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17150f;
    --surface: #1f1c16;
    --ink: #ece7dd;
    --muted: #a9a196;
    --faint: #8a8378;
    --line: #322d24;
    --accent: #d98f6a;
    --accent-ink: #e5a685;
    --accent-soft: #2a2118;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 60px;
}
.brand { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .2px; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }

/* Hero (home) */
.hero { padding: 56px 0 24px; }
.hero .kicker { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 6vw, 44px); line-height: 1.12; margin: 0 0 14px; }
.hero p { color: var(--muted); font-size: 19px; margin: 0; max-width: 60ch; }

/* Cards / guide list */
.guides { display: grid; gap: 18px; padding: 12px 0 8px; }
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card .tag { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card h3 { font-family: var(--serif); font-size: 22px; margin: 6px 0 6px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

/* Article */
main { padding-bottom: 64px; }
article.post { padding-top: 28px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
article.post h1 { font-family: var(--serif); font-size: clamp(28px, 5.5vw, 40px); line-height: 1.15; margin: 8px 0 10px; }
.byline { color: var(--faint); font-size: 14px; margin: 0 0 24px; }
article.post h2 { font-family: var(--serif); font-size: 26px; margin: 40px 0 12px; padding-top: 8px; }
article.post h3 { font-size: 20px; margin: 28px 0 8px; }
article.post p, article.post li { font-family: var(--serif); font-size: 19px; }
article.post ul, article.post ol { padding-left: 22px; }
article.post li { margin: 6px 0; }
article.post strong { font-weight: 700; }

/* Disclosure + callouts */
.disclosure {
  background: var(--accent-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 12px 16px; font-family: var(--sans); font-size: 14.5px; color: var(--muted);
  margin: 0 0 26px;
}
.note {
  background: var(--surface); border: 1px dashed var(--line); border-radius: 8px;
  padding: 10px 14px; font-family: var(--sans); font-size: 14px; color: var(--faint); margin: 18px 0;
}
.paid { font-family: var(--sans); font-size: 12px; color: var(--faint); }

/* Quick picks */
.picks { display: grid; gap: 12px; margin: 18px 0 8px; }
.pick {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
}
.pick .label { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.pick .name { font-family: var(--serif); font-weight: 700; }

/* CTA (affiliate placeholder) */
.cta {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 15px;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 9px 16px; border-radius: 8px; margin: 4px 0;
}
.cta:hover { background: var(--accent-ink); color: #fff; }
.cta[href="#"]::after { content: ""; }

/* Comparison table */
.table-scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-family: var(--sans); font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--accent-soft); color: var(--ink); font-size: 13px; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { font-family: var(--sans); font-weight: 600; cursor: pointer; font-size: 17px; }
.faq p { margin: 8px 0 4px; }

/* TODO placeholder blocks (visible in draft) */
.todo {
  background: repeating-linear-gradient(45deg, var(--accent-soft), var(--accent-soft) 10px, transparent 10px, transparent 20px);
  border: 1px dashed var(--accent); border-radius: 8px; padding: 10px 14px;
  font-family: var(--sans); font-size: 13px; color: var(--accent-ink); margin: 16px 0;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 30px 0 40px; margin-top: 40px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--ink); }
.site-footer .fine { color: var(--faint); font-size: 13px; margin-top: 14px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; }
