/* DailyMech. Self-hosted Inter and Playfair Display (SIL OFL, see fonts/OFL.txt).
   Inter and Playfair roman are variable (wght). Playfair italic is a static 500. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/playfair-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0b0c;
  --gold: #c9a45c;
  --gold2: #e3c789;
  --text: #ece8e1;
  --muted: #9a958c;
  --rule: rgba(201, 164, 92, .35);
  --frame: #907644;
  --serif: "Playfair Display", Georgia, "Liberation Serif", serif;
  --sans: "Inter", "Liberation Sans", system-ui, sans-serif;
  --header: 4.75rem;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { overflow-wrap: break-word; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--gold2); }
:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}
#main:focus { outline: none; }
::selection { background: var(--gold); color: var(--bg); }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.skip {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
  top: 12px;
  transform: translateY(-200%);
  background: var(--gold);
  color: var(--bg);
  padding: 12px 16px;
  z-index: 100;
  font: 600 14px/1 var(--sans);
  text-decoration: none;
}
.skip:focus { transform: none; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.label {
  font: 600 11px/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
a.label { text-decoration: underline; text-underline-offset: .35em; }
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.kicker.center { justify-content: center; }
.meta { font: 500 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.meta b { color: var(--gold); font-weight: 500; }
.sample {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font: 600 10px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 8px;
  text-decoration: none;
}
.sample-banner {
  border: 1px solid var(--gold);
  color: var(--gold);
  font: 600 12px/1.45 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 14px;
  margin: 0 0 22px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header);
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  font: 600 32px/1 var(--serif);
  color: var(--gold);
  letter-spacing: -.01em;
  text-decoration: none;
  flex: 0 0 auto;
}
.logo:hover { color: var(--gold2); }
nav.main { flex: 1; min-width: 0; }
nav.main ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}
nav.main a {
  display: inline-block;
  padding: 10px 0;
  font: 500 12px/1.2 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
nav.main a:hover { text-decoration: underline; text-underline-offset: .45em; }
nav.main a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .45em;
}
.nav-subscribe { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font: 600 12px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 12px 16px;
  background: none;
  cursor: pointer;
  text-decoration: none;
  flex: 0 0 auto;
}
.btn:hover { background: var(--gold); color: var(--bg); text-decoration: none; }
.btn.solid { background: var(--gold); color: var(--bg); }
.btn.solid:hover { background: var(--gold2); color: var(--bg); }
.menu-toggle {
  display: none;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  font: 600 12px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}
.rule-short { width: 48px; height: 2px; background: var(--gold); margin: 16px 0 22px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; }
.hero h1 { font-size: clamp(34px, 5vw, 64px); }
.hero h1 a { text-decoration: none; }
.hero h1 a:hover { text-decoration: underline; }
.dek { font-family: var(--serif); font-size: clamp(18px, 2vw, 20px); color: #cfc9bf; margin: 18px 0; max-width: 38ch; }
.more {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 0;
  font: 600 12px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: .4em;
}
.art {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--frame);
  position: relative;
  overflow: hidden;
  background: #111;
  min-width: 0;
}
.art svg, .art img { width: 100%; height: 100%; object-fit: cover; }

section.block { padding: 40px 0; border-bottom: 1px solid var(--rule); }
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 22px;
  margin-top: 22px;
}
.card { min-width: 0; }
.card .art { aspect-ratio: 16 / 9; margin-bottom: 16px; }
.card h3 { font-size: 21px; margin: 10px 0 12px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.list .row {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.list .row h2 { font-size: clamp(22px, 3vw, 28px); margin: 10px 0; }
.list .row h2 a { text-decoration: none; }
.list .row h2 a:hover { text-decoration: underline; }
.list .row p { color: #cfc9bf; margin: 0 0 12px; }
.page-head { padding: 48px 0 28px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(36px, 6vw, 64px); margin: 12px 0; }
.page-head .dek { max-width: 62ch; }
.archive-note { color: var(--muted); margin: 28px 0 8px; font-size: 15px; }
.notice {
  border: 1px solid var(--frame);
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  margin: 20px 0;
}
.cover-list { list-style: none; margin: 12px 0 0; padding: 0; }
.cover-list li { margin: 8px 0; }
.cover-list a { color: var(--gold); text-decoration: underline; text-underline-offset: .3em; }

.newsletter {
  text-align: center;
  padding: 72px max(16px, env(safe-area-inset-right)) 72px max(16px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at center, rgba(201, 164, 92, .10), transparent 70%);
}
.newsletter h2 { font-size: clamp(28px, 4vw, 44px); margin-top: 14px; }
.newsletter > p { color: #cfc9bf; max-width: 52ch; margin: 14px auto 22px; }
.signup { margin: 0 auto; max-width: 560px; }
.signup label {
  display: block;
  margin-bottom: 10px;
  font: 600 11px/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.signup-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.signup input {
  flex: 1 1 220px;
  min-width: 0;
  width: 100%;
  max-width: 420px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 12px 14px;
  font: 16px/1.4 var(--sans);
}
.signup input::placeholder { color: var(--muted); opacity: 1; }
.signup input:focus,
.signup input:focus-visible {
  border-color: var(--gold2);
  outline: 2px solid var(--gold2);
  outline-offset: 2px;
}
.signup input[aria-invalid="true"] {
  border-color: #f3d0d0;
  outline-color: #f3d0d0;
}
.form-note { font-size: 14px; color: var(--muted); margin: 14px auto 0; max-width: 52ch; }

.article { max-width: 760px; margin: 0 auto; padding: 48px 24px 16px; }
.article h1 { font-size: clamp(34px, 5vw, 56px); margin: 14px 0; }
.article .dek { max-width: none; }
.article .body p { font-family: var(--serif); font-size: clamp(18px, 2.4vw, 20px); line-height: 1.75; color: #ddd7cc; }
.article .body h2 { font-size: clamp(26px, 4vw, 32px); margin: 36px 0 12px; }
.article .body a { color: var(--gold); text-decoration: underline; }
.article blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.4;
  color: var(--gold2);
}
.article figure { margin: 28px 0; }
.article figure img { width: 100%; height: auto; border: 1px solid var(--frame); }
.article figcaption { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 10px; }
.article figcaption a { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.article .body ul, .article .body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article .body li { margin: 0.45em 0; font-family: var(--serif); font-size: clamp(18px, 2.4vw, 20px); line-height: 1.75; color: #ddd7cc; }
.article .body li p { margin: 0; }
.article .body ul ul, .article .body ol ol { margin-bottom: 0; }
.article .body a { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 28px 0; }
.article .body table { width: 100%; border-collapse: collapse; margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.45; color: var(--text); }
.article .body th, .article .body td { border-bottom: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.article .body th { color: var(--gold); font-weight: 600; }
.article .body code { font-family: ui-monospace, "Liberation Mono", monospace; font-size: 0.85em; overflow-wrap: anywhere; }
.datelines { display: grid; gap: 4px; margin-top: 12px; }
.dateline { margin: 0; max-width: 68ch; font: 500 14px/1.45 var(--sans); letter-spacing: .01em; color: var(--muted); }
.related h3.label { margin-top: 28px; }
.related-list, .hub-list { list-style: none; margin: 8px 0 0; padding: 0; }
.related-list li { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.related-list a {
  display: block;
  padding: 4px 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.related-list a:hover { text-decoration: underline; }
.related-list .meta { margin-top: 6px; }
.hub-list { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 12px; }
.hub-list a {
  display: inline-block;
  padding: 12px 0;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: .25em;
}

footer.site { padding: 48px 0 32px; color: var(--muted); font-size: 15px; }
.fgrid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.flinks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.fabout p { max-width: 42ch; margin: 12px 0 0; }
.footer-title {
  font: 600 11px/1.3 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0; }
footer li a { display: inline-block; padding: 6px 0; text-decoration: underline; text-underline-offset: .25em; }
footer a[aria-current="page"] { color: var(--gold); text-decoration-thickness: 2px; }
.copy { padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Full primary nav fits beside the wordmark above this width. */
@media (max-width: 1200px) {
  .menu-toggle { display: inline-flex; }
  .bar > .btn { display: none; }
  .nav-subscribe { display: block; }
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--gold);
    max-height: calc(100dvh - var(--header));
    overflow: auto;
    padding: 0 max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  nav.main li a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(201, 164, 92, .35);
  }
  body.nav-open { overflow: hidden; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .list .row { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 14px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .article { padding: 36px 16px 8px; }
}
@media (max-width: 640px) {
  .logo { font-size: 26px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .newsletter { padding-top: 48px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
}
@media (max-width: 520px) {
  .flinks { grid-template-columns: minmax(0, 1fr); }
  .signup-row { flex-direction: column; align-items: stretch; }
  .signup input, .signup .btn { max-width: none; width: 100%; }
}
@media (min-width: 700px) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (prefers-contrast: more) {
  :root { --muted: #d9d3c8; --rule: #c9a45c; --frame: #c9a45c; }
}
