/* Publications pages. Shares the main site's palette and type. */
:root {
  --ink: #151819;
  --on-ink: #F2F4F3;
  --on-ink-muted: #B9C0BF;
  --ink-line: #3C4143;
  --paper: #F7F8F7;
  --text: #151819;
  --muted: #5C6265;
  --line: #CDD3D2;
  --accent: #E0B778;
  --accent-text: #80591A;
  --good: #2B6A48;
  --bad: #A2382A;
  --quote-bg: #EEF0EF;
  --head: "Saira Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Noto Sans Georgian", "Courier New", Courier, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1B1F20; --text: #ECEFEE; --muted: #A3ABAA; --line: #343A3C;
    --accent-text: #E0B778; --good: #7FC79D; --bad: #EC9483; --quote-bg: #22272A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1B1F20; --text: #ECEFEE; --muted: #A3ABAA; --line: #343A3C;
  --accent-text: #E0B778; --good: #7FC79D; --bad: #EC9483; --quote-bg: #22272A; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.65;
}
img { max-width: 100%; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-text); }
.wrap { max-width: 60rem; margin-inline: auto; padding-inline: clamp(1rem, 5vw, 3rem); }
.dark { background: var(--ink); color: var(--on-ink); }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* Masthead and footer, as on the main page */
.mast { border-bottom: 1px solid var(--ink-line); }
.mast .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1.25rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-family: var(--head); font-weight: 600; font-size: 1.5rem; line-height: 1; letter-spacing: 0.24em;
  color: var(--on-ink); text-decoration: none;
}
.brand:hover { color: var(--accent); }
.mark {
  display: block; flex: none; height: 2.1em; aspect-ratio: 296 / 360; background: var(--accent);
  -webkit-mask: url("/assets/mark.png") center / contain no-repeat;
  mask: url("/assets/mark.png") center / contain no-repeat;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nav a {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.6rem 0.95rem; border: 1px solid var(--accent); color: var(--accent); text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--accent); color: var(--ink); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem 3rem; padding-block: 2.25rem 2.75rem; }
.foot .brand { font-size: 1.2rem; }
.foot-id { display: flex; flex-direction: column; gap: 0.6rem; }
.since { font-size: 0.6875rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--on-ink-muted); }
.foot p { font-size: 0.75rem; color: var(--on-ink-muted); max-width: 36em; }
@media (max-width: 600px) { .brand { font-size: 1.25rem; letter-spacing: 0.2em; } }

/* Page head */
.page { padding-block: clamp(2rem, 6vw, 3.5rem) clamp(3rem, 8vw, 5rem); }
.page .wrap { display: flex; flex-direction: column; gap: 2.25rem; }
.head { display: flex; flex-direction: column; gap: 0.9rem; max-width: 46rem; }
.head .eyebrow { color: var(--accent-text); }
.title {
  font-family: var(--head); font-weight: 600; font-size: clamp(2.25rem, 7vw, 3.75rem);
  line-height: 0.98; letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance;
}
.standfirst { font-family: var(--head); font-weight: 500; font-size: 1.35rem; line-height: 1.25; letter-spacing: 0.01em; text-wrap: balance; max-width: 30em; }
.meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; font-size: 0.8125rem; color: var(--muted); }
.meta b { font-weight: 600; color: var(--text); }
.back { font-size: 0.8125rem; color: var(--muted); align-self: flex-start; }

/* Publication index */
.series { display: flex; flex-direction: column; gap: 1rem; }
.series > .eyebrow { color: var(--accent-text); }
.series-note { color: var(--muted); max-width: 44rem; }
.issues { display: flex; flex-direction: column; }
.issues li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.4rem 1.5rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.issues li:last-child { border-bottom: 1px solid var(--line); }
.issues .when { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.3rem; font-variant-numeric: tabular-nums; }
.issues h3 { font-family: var(--head); font-weight: 600; font-size: 1.25rem; line-height: 1.2; letter-spacing: 0.03em; }
.issues h3 a { text-decoration: none; }
.issues h3 a:hover { color: var(--accent-text); text-decoration: underline; }
.issues p { color: var(--muted); }
.issues .soon { color: var(--muted); font-style: normal; }
@media (max-width: 600px) { .issues li { grid-template-columns: minmax(0, 1fr); } }

/* Issue body */
.issue { max-width: 44rem; display: flex; flex-direction: column; gap: 2rem; }
.brief { border: 1px solid var(--line); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.brief .eyebrow { color: var(--accent-text); }
.brief ul { display: flex; flex-direction: column; gap: 0.45rem; }
.brief li { padding-left: 1.1rem; text-indent: -1.1rem; }
.brief li::before { content: "\2014  "; color: var(--accent-text); }
.issue section { display: flex; flex-direction: column; gap: 1rem; }
.issue h2 {
  font-family: var(--head); font-weight: 600; font-size: 1.45rem; line-height: 1.15; letter-spacing: 0.07em; text-transform: uppercase;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.issue h2 .no { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--muted); padding-right: 0.9rem; font-variant-numeric: tabular-nums; }
.issue p { max-width: 40em; }
.issue sup { font-size: 0.7em; line-height: 0; vertical-align: 0.5em; }
.issue sup a { text-decoration: none; color: var(--accent-text); font-weight: 600; padding-inline: 0.1em; }
.issue sup a:hover { text-decoration: underline; }

/* Quoted source, original and translation side by side */
.src { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.5rem; background: var(--quote-bg); border-left: 3px solid var(--accent); padding: 1rem 1.25rem; }
.src > div { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.src .lbl { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.src .orig { font-size: 0.9375rem; line-height: 1.6; }
.src .trans { font-size: 0.9375rem; line-height: 1.6; }
.src figcaption { grid-column: 1 / -1; padding-top: 0.75rem; font-size: 0.8125rem; color: var(--muted); }
.ka { font-family: "Noto Sans Georgian", var(--mono); }
@media (max-width: 600px) { .src { grid-template-columns: minmax(0, 1fr); gap: 0.9rem 0; } }

/* Watchlist */
.watch { display: flex; flex-direction: column; }
.watch li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.3rem 1.25rem; padding-block: 0.8rem; border-top: 1px solid var(--line); }
.watch li:last-child { border-bottom: 1px solid var(--line); }
.watch .when { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.25rem; }
@media (max-width: 600px) { .watch li { grid-template-columns: minmax(0, 1fr); } }

/* Notes */
.notes { padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.9rem; }
.notes > .eyebrow { color: var(--accent-text); }
.notes ol { counter-reset: n; display: flex; flex-direction: column; gap: 0.7rem; }
.notes li { counter-increment: n; position: relative; padding-left: 2.25rem; font-size: 0.8125rem; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.notes li::before { content: counter(n) "."; position: absolute; left: 0; top: 0; color: var(--accent-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.notes li a { color: var(--text); }
.notes .ret { text-decoration: none; padding-left: 0.4rem; color: var(--accent-text); }
.notes .method { font-size: 0.8125rem; color: var(--muted); max-width: 44em; }

/* Citation and sharing */
.citeas { border: 1px solid var(--line); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.8125rem; }
.citeas .eyebrow { color: var(--accent-text); }
.citeas code { font-family: var(--mono); font-size: 0.8125rem; color: var(--text); overflow-wrap: anywhere; }

/* Template banner, remove on a real issue */
.tpl { border: 1px dashed var(--bad); color: var(--bad); padding: 0.75rem 1rem; font-size: 0.8125rem; }
.tpl b { font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding-right: 0.6rem; }
