/* AI Update — editorial serif. Magazine bones, letterpress soul. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..900;1,9..144,400..900&display=swap');

:root {
  --paper: #f3f6f1;         /* cool sage-white stock */
  --paper-deep: #e5ebe3;
  --ink: #1c211d;
  --ink-soft: #49544d;
  --ink-faint: #74817a;
  --rule: #c2ccc3;
  --rule-heavy: #1c211d;
  --accent: #1f6e5c;        /* deep forest teal — drop cap, hovers */
  --accent-blue: #2a5b7d;   /* slate blue — links */
  --display: 'Fraunces', Georgia, serif;
  --text: Charter, Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html {
  background: var(--paper-deep);
}

body {
  margin: 0 auto;
  padding: 2.5rem 1.75rem 5rem;
  max-width: var(--measure);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga', 'kern', 'onum';
  box-shadow: 0 0 60px rgba(40, 65, 55, 0.10);
  min-height: 100vh;
}

/* Masthead */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}
.brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.brand-large {
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  text-align: center;
  line-height: 1.05;
}
.index-masthead { display: block; text-align: center; }
.tagline {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.edition-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Oxford rule: thick over thin, the magazine signature */
hr.rule {
  border: none;
  border-top: 3px solid var(--rule-heavy);
  border-bottom: 1px solid var(--rule-heavy);
  height: 6px;
  background: transparent;
  margin: 1.25rem 0 2.25rem;
}

/* Edition typography */
.edition h1 {
  font-family: var(--display);
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0.5rem 0 1rem;
}
/* Standfirst */
.edition h1 + p {
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.edition h1 + p em { font-style: italic; }

/* Section heads: bold kicker with a short heavy accent bar */
.edition h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 3.25rem 0 1.1rem;
  padding-top: 0.9rem;
  border-top: 3px solid var(--rule-heavy);
}
.edition h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.25;
  margin: 2.2rem 0 0.5rem;
}

/* Drop cap on the opening paragraph (first paragraph after the first kicker) */
.edition h2:first-of-type + p::first-letter {
  font-family: var(--display);
  font-weight: 900;
  font-size: 4.4em;
  line-height: 0.82;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--accent);
}

.edition a {
  color: var(--accent-blue);
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
.edition a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.edition li { margin-bottom: 0.55rem; }
.edition blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--ink);
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1.2rem;
}
.edition strong { font-weight: 700; }

/* Index */
.index-entry {
  margin-bottom: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--rule);
}
.index-entry:last-child { border-bottom: none; }
.index-entry h2 {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0.3rem 0 0.45rem;
}
.index-entry h2 a {
  color: var(--ink);
  text-decoration: none;
}
.index-entry h2 a:hover { color: var(--accent); }
.entry-date {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.standfirst {
  margin: 0;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
footer a { color: var(--accent-blue); }
.colophon { font-style: italic; }

@media (max-width: 600px) {
  body { padding: 1.75rem 1.2rem 3rem; font-size: 1.05rem; }
  .edition h1 { font-size: 2.1rem; }
  .edition h1 + p { font-size: 1.15rem; }
  .brand-large { font-size: 2.3rem; }
  .index-entry h2 { font-size: 1.5rem; }
}
