/* The second website -- deliberately minimal (no web-font download, no
   JS, no framework), same lean-by-default reasoning as public_site's
   own site.css. Georgia/system-serif for headlines and article body is
   a genuine LCP/CLS advantage here, not just a look: zero font
   download, zero layout shift from a swapped-in webfont.

   Placeholder-quality visual pass, confirmed with the user: warm
   editorial neutrals, deliberately distinct from the comparison site's
   cool navy/indigo tool palette. The real brand pass (logo, tagline,
   dedicated color system) for both sites together is a separate,
   later exercise once both sites are live. */

:root {
  --text: #2a2521;
  --muted: #706558;
  --faint: #9b8f80;
  --border: #e8e0d3;
  --border-strong: #d8cbb8;
  --bg: #faf7f1;
  --surface: #ffffff;
  --accent: #a8542e;
  --accent-tint: #f5e6db;
  --accent-contrast: #ffffff;
  --shadow: 0 1px 2px rgba(42, 37, 33, 0.05), 0 8px 24px -12px rgba(42, 37, 33, 0.16);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--accent); }

/* ── header ─────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
/* Same real tap-target discipline confirmed on public_site (Lighthouse
   mobile standard, >=48x48px) -- built in from the start here rather
   than audited-and-fixed after the fact. */
.brand-mark {
  display: inline-flex; align-items: center; min-height: 48px;
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  text-decoration: none; color: var(--text);
}
.site-header nav { display: flex; gap: 1.4rem; }
.site-header nav a {
  display: inline-flex; align-items: center; min-height: 48px;
  text-decoration: none; color: var(--muted); font-size: 0.88rem; font-weight: 600;
}
.lang-switch {
  display: inline-flex; align-items: center; min-height: 48px;
  font-size: 0.78rem; color: var(--faint); border: 1px solid var(--border);
  border-radius: 6px; padding: 0 0.5rem;
}

/* ── page-as-panel, same technique as public_site's own main rule ── */
main {
  max-width: 780px;
  margin: 2rem auto;
  padding: 0;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}

/* ── homepage: featured article ────────────────────────────────── */
.featured {
  display: block; text-decoration: none; color: inherit;
  padding: 2.4rem 2rem 2rem; border-bottom: 1px solid var(--border);
}
.featured h1 {
  font-family: var(--serif); font-size: 2rem; line-height: 1.2;
  color: var(--text); margin: 0.6rem 0 1rem;
}
.featured .dek {
  font-family: var(--sans); font-size: 0.98rem; line-height: 1.55;
  color: var(--muted); max-width: 60ch; margin: 0;
}
.featured.empty-state h1 { font-size: 1.6rem; margin: 0 0 0.5rem; }

.section-title {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint);
  padding: 1.6rem 2rem 0.8rem; margin: 0;
}

/* ── article lists (homepage "more recent" + category pages) ─────── */
.article-list { list-style: none; margin: 0; padding: 0 2rem; }
.article-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.article-list li:last-child { border-bottom: none; }
.article-list a {
  display: inline-flex; align-items: center; min-height: 48px;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  color: var(--text); text-decoration: none;
}
.article-list a:hover { color: var(--accent); }
.article-list p {
  font-family: var(--sans); font-size: 0.88rem; color: var(--muted);
  margin: 0.3rem 0 0; max-width: 62ch;
}

/* ── category teasers ─────────────────────────────────────────── */
.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding: 0.4rem 2rem 2.2rem;
}
.category-card {
  display: block; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.1rem 1.2rem; text-decoration: none;
  min-height: 48px;
}
.category-name { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: var(--text); }
.category-count { font-family: var(--sans); font-size: 0.78rem; color: var(--faint); margin-top: 0.25rem; }
.category-empty { font-family: var(--sans); font-size: 0.76rem; color: var(--faint); font-style: italic; margin-top: 0.35rem; }

/* ── breadcrumbs (same tap-target-safe pattern as public_site) ──── */
.breadcrumbs {
  font-family: var(--sans); font-size: 0.85rem; color: var(--muted);
  padding: 1.4rem 2rem 0;
}
.breadcrumbs a {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0 0.2rem; margin: 0 -0.2rem; color: var(--muted); vertical-align: middle;
}

/* ── article detail ───────────────────────────────────────────── */
.article-detail { padding: 1.2rem 2rem 2.6rem; }
.article-detail h1 {
  font-family: var(--serif); font-size: 2.1rem; line-height: 1.2;
  color: var(--text); margin: 0.7rem 0 1rem;
}
.article-meta {
  font-family: var(--sans); font-size: 0.8rem; color: var(--faint);
  display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.6rem;
}
.lang-alts a {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--accent); font-weight: 600; text-decoration: none; margin: 0 0.1rem;
}
.dek {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  line-height: 1.55; color: var(--muted); margin-bottom: 1.8rem;
}
.article-body {
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.75;
  color: var(--text); max-width: 65ch;
}
.article-body p { margin: 0 0 1.3rem; }
.crosslink {
  font-family: var(--sans); background: var(--accent-tint); border-radius: 10px;
  padding: 1.1rem 1.3rem; margin: 2.2rem 0 0; font-size: 0.9rem; color: var(--text);
  max-width: 65ch;
}
.crosslink a {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--accent); font-weight: 700; text-decoration: none;
}

/* ── pagination, empty states ─────────────────────────────────── */
.pagination { display: flex; justify-content: space-between; padding: 1.2rem 2rem 2rem; font-family: var(--sans); }
.pagination a {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.88rem;
}
.empty-state { font-family: var(--sans); color: var(--muted); padding: 1rem 2rem 2.4rem; }

.site-footer {
  font-family: var(--sans); font-size: 0.8rem; color: var(--faint);
  text-align: center; padding: 1.6rem;
}

.error-page { max-width: 560px; margin: 4rem auto; padding: 0 1.5rem; text-align: center; font-family: var(--sans); }
.error-page a { display: inline-flex; align-items: center; min-height: 48px; }

/* ── mobile ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  main { margin: 0; border-radius: 0; max-width: 100%; }
  .site-header { padding: 0.9rem 1rem; flex-wrap: wrap; }
  .featured { padding: 1.8rem 1.2rem 1.5rem; }
  .featured h1 { font-size: 1.5rem; }
  .section-title { padding: 1.3rem 1.2rem 0.7rem; }
  .article-list { padding: 0 1.2rem; }
  .category-grid { grid-template-columns: 1fr; padding: 0.4rem 1.2rem 1.6rem; }
  .breadcrumbs { padding: 1.1rem 1.2rem 0; font-size: 0.8rem; }
  .article-detail { padding: 1rem 1.2rem 2rem; }
  .article-detail h1 { font-size: 1.6rem; }
  .article-body { font-size: 1.08rem; }
  .pagination { padding: 1rem 1.2rem 1.6rem; }
}
