:root {
  --paper: #fbfbf8;
  --ink: #17191e;
  --muted: #595d66;
  --rule: #cfccc3;
  --blue: #0b3d91;
  --sun: #e8a900;
  --tint: #eef1f7;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171b;
    --ink: #e9e7e1;
    --muted: #a5a8ae;
    --rule: #3a3d44;
    --blue: #8fb2ff;
    --sun: #f2c443;
    --tint: #1d2129;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }
.small { font-family: var(--sans); font-size: .8125rem; color: var(--muted); }

/* Masthead */
.masthead { text-align: center; padding-top: 1rem; }
.dateline { font-family: var(--sans); font-size: .8125rem; color: var(--muted); margin: 0 0 .75rem; }
.nameplate { display: inline-flex; align-items: center; gap: .9rem; color: var(--ink); text-decoration: none; }
.nameplate:hover .name { text-decoration: none; }
.sun { width: clamp(2.6rem, 7vw, 4.4rem); height: auto; color: var(--sun); flex: none; }
.name {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8.5vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.tagline { margin: .6rem 0 1rem; font-style: italic; }
.tagline-en { display: block; font-family: var(--sans); font-style: normal; font-size: .8125rem; color: var(--muted); }

.sections { border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); }
.sections ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.75rem; padding-top: .55rem; padding-bottom: .55rem; margin: 0 auto; }
.sections a { font-family: var(--sans); font-weight: 600; font-size: .9375rem; color: var(--ink); text-decoration: none; padding: .2rem 0; }
.sections a:hover, .sections a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--sun); }

main.wrap { padding-top: 2rem; padding-bottom: 3rem; }

/* Front page */
.front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.kicker { font-family: var(--sans); font-size: .875rem; font-weight: 600; margin: 0 0 .5rem; }
.kicker a { color: var(--blue); text-decoration: none; }
.lead-title { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 .75rem; max-width: 18ch; }
.lead-title a { color: var(--ink); text-decoration: none; }
.lead-title a:hover { color: var(--blue); }
.deck { font-size: 1.25rem; line-height: 1.4; color: var(--muted); margin: 0 0 1rem; max-width: 38em; }
.byline { font-family: var(--sans); font-size: .8125rem; color: var(--muted); margin: 0 0 1.25rem; }
.lead-body { max-width: 36em; }
.lead-body p:first-child::first-letter { font-family: var(--display); float: left; font-size: 3.6em; line-height: .85; padding: .06em .08em 0 0; color: var(--blue); }
.more { font-family: var(--sans); font-weight: 600; font-size: .9375rem; }

.rail { display: flex; flex-direction: column; gap: 1.5rem; }
.box { border-top: 3px solid var(--ink); padding-top: .75rem; }
.box h2 { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; margin: 0 0 .5rem; }
.box p { margin: 0 0 .75rem; font-size: 1rem; }
.tip { background: var(--tint); border-top-color: var(--blue); padding: 1rem 1.1rem .5rem; }
.button { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: .9375rem; background: var(--blue); color: var(--paper); text-decoration: none; padding: .6rem 1rem; border-radius: 3px; }
.button:hover { filter: brightness(1.12); }

.section-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-top: 1.5rem; }
.section-col { padding: 0 1.1rem; border-left: 1px solid var(--rule); }
.section-col:first-child { padding-left: 0; border-left: 0; }
.section-col:last-child { padding-right: 0; }
.section-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin: 0 0 .35rem; }
.section-name a { color: var(--ink); text-decoration: none; }
.section-name a:hover { color: var(--blue); }
.section-desc { font-size: .9375rem; line-height: 1.5; color: var(--muted); margin: 0 0 .75rem; }
.headlines { list-style: none; padding: 0; margin: 0; }
.headlines li { padding: .4rem 0; border-top: 1px solid var(--rule); line-height: 1.3; }
.headlines a { color: var(--ink); text-decoration: none; }
.headlines a:hover { color: var(--blue); text-decoration: underline; }
.empty { font-family: var(--sans); font-size: .8125rem; color: var(--muted); margin: 0; }

/* Articles and section pages */
.story, .section-head, .section-intro, .story-list, .empty-state { max-width: 40rem; margin-left: auto; margin-right: auto; }
.story-title, .section-title { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; margin: 0 0 .75rem; }
.section-head { border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.story-body { font-size: 1.125rem; line-height: 1.7; }
.story-body h2 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; margin: 2rem 0 .5rem; }
.story-body blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--sun); font-style: italic; }
.story-list { list-style: none; padding: 0; }
.story-list li { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.story-list h2 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; margin: 0 0 .3rem; }
.story-list h2 a { color: var(--ink); text-decoration: none; }
.story-list h2 a:hover { color: var(--blue); }
.deck-sm { color: var(--muted); margin: 0 0 .3rem; }
.empty-state { font-size: 1.0625rem; color: var(--muted); }

/* Footer */
.colophon { border-top: 3px double var(--ink); padding: 1.75rem 0 2.5rem; text-align: center; font-size: .9375rem; }
.colophon p { margin: 0 0 .4rem; }
.colophon-name { font-family: var(--display); font-size: 1.6rem; }
.colophon .small a { margin: 0 .5rem; }

@media (max-width: 960px) {
  .section-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
  .section-col, .section-col:first-child, .section-col:last-child { padding: 0 1rem 0 0; border-left: 0; }
}
@media (max-width: 720px) {
  .front { grid-template-columns: 1fr; gap: 2rem; }
  .section-row { grid-template-columns: 1fr; }
  .sections ul { justify-content: flex-start; gap: .25rem 1.1rem; overflow-x: auto; flex-wrap: nowrap; }
  .sections li { flex: none; }
}
