/* Layout: a journal title page. Narrow reading column, masthead on top,
   hairline-free blue bands for structure. Caslon for display (the face
   the Declaration was first printed in), Public Sans for text. */
:root {
  --ink: #12305f;        /* polity blue */
  --ink-soft: #3d5a8a;
  --paper: #ffffff;
  --wash: #eef3fb;       /* pale blue band */
  --text: #1a2233;
  --muted: #5b6678;
  --line: #d6dfee;
  --on-ink: #ffffff;
  --font-display: "Libre Caslon Text", "Georgia", "Times New Roman", serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --measure: 66ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #9cbcf0; --ink-soft: #7f9fd3; --paper: #0d1526; --wash: #15213a;
    --text: #e4eaf5; --muted: #9aa7bd; --line: #26344f; --on-ink: #0d1526;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #9cbcf0; --ink-soft: #7f9fd3; --paper: #0d1526; --wash: #15213a;
  --text: #e4eaf5; --muted: #9aa7bd; --line: #26344f; --on-ink: #0d1526;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink-soft); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); text-wrap: balance; line-height: 1.15; margin: 0; }
p { margin: 0; max-width: var(--measure); }

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); }
.masthead .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px 32px; padding-block: 22px;
}
.brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.brand em { font-style: italic; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; padding: 0; }
nav a {
  text-decoration: none; color: var(--muted); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
  padding-block: 4px; border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* Page head */
.page-head { padding-block: 72px 40px; display: grid; gap: 18px; }
.eyebrow { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; color: var(--muted); }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
.lede { font-size: 1.15rem; color: var(--muted); }

/* Home hero: title page */
.titlepage { padding-block: 84px 64px; display: grid; gap: 22px; text-align: left; }
.titlepage h1 { font-size: clamp(3rem, 10vw, 6.4rem); letter-spacing: -0.01em; }
.titlepage h1 span { display: block; font-style: italic; font-size: 0.42em; color: var(--ink-soft); letter-spacing: 0; margin-bottom: 0.3em; }
.imprint { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; }

/* Bands and sections */
.band { background: var(--wash); }
section { padding-block: 56px; }
.section-title { font-size: 1.8rem; margin-bottom: 26px; }
.stack { display: grid; gap: 16px; }

/* Two tracks */
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.track { display: grid; gap: 12px; align-content: start; min-width: 0; }
.track h3 { font-size: 1.6rem; }
.track .when { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--on-ink); transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--on-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Article list */
.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.entry { padding-block: 26px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.entry .meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }
.entry h3 { font-size: 1.45rem; }
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { text-decoration: underline; }
.entry p { color: var(--muted); }
.tag { display: inline-block; font-size: 0.7rem; padding: 2px 8px; border: 1px solid var(--line); border-radius: 2px; margin-right: 8px; letter-spacing: 0.1em; }

.empty {
  padding: 36px; border: 1px dashed var(--line); display: grid; gap: 10px;
}
.empty h3 { font-size: 1.3rem; }
.empty p { color: var(--muted); }

/* Issues */
.issue { display: grid; grid-template-columns: 160px 1fr; gap: 28px; padding-block: 32px; border-bottom: 1px solid var(--line); }
.issue .vol { font-family: var(--font-display); font-size: 2.6rem; color: var(--ink); line-height: 1; }
.issue .vol small { display: block; font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-top: 10px; }
.issue > div { min-width: 0; display: grid; gap: 10px; }
@media (max-width: 560px) { .issue { grid-template-columns: 1fr; gap: 10px; } }

/* About */
.prose { display: grid; gap: 18px; }
.prose h2 { font-size: 1.6rem; margin-top: 18px; }
.contact-line { font-size: 1.1rem; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 40px; }
footer .wrap { padding-block: 28px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; }
footer p { font-size: 0.78rem; color: var(--muted); max-width: 70ch; }
footer .brand { font-size: 1.05rem; }
