:root {
  --bg: #f4efe6;
  --paper: #fffaf3;
  --ink: #1b1714;
  --muted: #6d645c;
  --line: #e3d9cc;
  --accent: #9c2b2b;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

html[data-theme="night"] {
  --bg: #161311;
  --paper: #201c18;
  --ink: #f3efe6;
  --muted: #b7aea3;
  --line: #3a342c;
  --accent: #e15a4a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
}

a { color: inherit; }

.wrap {
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto;
}

.mast {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.75rem;
  border-bottom: 1px solid var(--ink);
}

.mast a.wordmark {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.theme-toggle {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.75rem 0 0.4rem;
}

h1 {
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.75rem;
}

.dek, .meta {
  color: var(--muted);
  font-size: 1rem;
}

.story-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.story-list a {
  display: block;
  text-decoration: none;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.story-list h2 {
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0.2rem 0;
}

.story-list p { margin: 0; color: var(--muted); }

article p { margin: 0 0 1rem; }

article iframe {
  width: 100%;
  height: 640px;
  border: 1px solid var(--line);
  background: var(--paper);
  margin: 0.5rem 0 1rem;
}

.foot {
  margin: 3rem 0 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
}
