/*
 * Shared stylesheet for the prerendered transparency pages:
 *   /about  /contact  /editorial-policy  /corrections  /authors  /authors/<slug>
 *
 * These pages are plain static HTML served directly by Firebase Hosting, ahead
 * of the SPA catch-all rewrite. They must be fully legible in raw HTML, so
 * nothing here is required for the content to make sense — this file only
 * styles it. Palette matches the editorial (blog) surface: parchment ground,
 * brand navy accent.
 */

:root {
  --bg: #ece6d6;
  --surface: #fbf8f1;
  --surface-alt: #f4efe3;
  --text: #0b0b0a;
  --text-soft: #4b463d;
  --text-muted: #6f695d;
  --accent: #1d3f86;
  --accent-deep: #132a60;
  --line: rgba(11, 11, 10, 0.14);
  --line-soft: rgba(11, 11, 10, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.wrap {
  width: 100%;
  max-width: 748px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ─────────────────────────────────────────────── */

.site-head {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(251, 248, 241, 0.6);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Manrope, "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.035em;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(29, 63, 134, 0.1);
  color: var(--accent-deep);
  font-size: 0.82rem;
  letter-spacing: -0.05em;
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.site-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-left: auto;
  font-size: 0.86rem;
  font-weight: 600;
}

.site-head nav a {
  color: var(--text-soft);
  text-decoration: none;
}

.site-head nav a:hover,
.site-head nav a[aria-current="page"] {
  color: var(--accent-deep);
}

/* ── Content ────────────────────────────────────────────── */

main {
  display: block;
  padding: 44px 0 24px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

h1 {
  margin: 0 0 14px;
  font-family: Manrope, "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 5.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.standfirst {
  margin: 0 0 34px;
  font-size: 1.12rem;
  line-height: 1.66;
  color: var(--text-soft);
}

h2 {
  margin: 44px 0 12px;
  font-family: Manrope, "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

h3 {
  margin: 30px 0 8px;
  font-family: Manrope, "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 18px;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

li {
  margin-bottom: 9px;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

strong {
  font-weight: 700;
}

hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
}

/* ── Blocks ─────────────────────────────────────────────── */

.panel {
  margin: 24px 0;
  padding: 20px 22px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(11, 11, 10, 0.05), 0 12px 30px rgba(11, 11, 10, 0.04);
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.panel--quiet {
  background: var(--surface-alt);
  box-shadow: none;
  border: 1px solid var(--line-soft);
}

/* Owner-completion markers. Deliberately loud: these are unfinished facts, and
   an unfinished fact must never be mistaken for a finished one. */
.todo {
  display: inline-block;
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  background: rgba(155, 106, 20, 0.14);
  color: #7a5310;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.contact-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-list .label {
  display: block;
  font-family: Manrope, "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.contact-list .addr {
  display: inline-block;
  margin-top: 2px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.94rem;
  font-weight: 500;
}

.contact-list p {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.meta-row {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.person .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(29, 63, 134, 0.1);
  color: var(--accent-deep);
  font-family: Manrope, "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.person .role {
  margin: 0;
  font-weight: 600;
  color: var(--text-soft);
}

.log-empty {
  margin: 24px 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-soft);
}

.log-empty > :last-child {
  margin-bottom: 0;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-foot {
  margin-top: 56px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
  font-weight: 600;
}

.site-foot nav a {
  color: var(--text-soft);
  text-decoration: none;
}

.site-foot nav a:hover {
  color: var(--accent-deep);
}

.site-foot p {
  margin: 0 0 8px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-head nav {
    margin-left: 0;
    width: 100%;
  }
}
