/* The Daily Tech Courier — broadsheet newspaper style. System fonts only (no external requests). */
:root {
  --paper: #f7f5f0;
  --ink: #111111;
  --ink-soft: #444444;
  --rule: #111111;
  --rule-soft: #c9c5bb;
  --accent: #8a1c1c;
  --note-bg: #ece8de;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --headline: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #161513; --ink: #ece9e2; --ink-soft: #b5b1a7; --rule: #ece9e2; --rule-soft: #3a3833; --accent: #e07a6a; --note-bg: #22201c; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--serif); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* Masthead */
.masthead { max-width: 1180px; margin: 0 auto; padding: 16px 16px 0; text-align: center; border-bottom: 4px double var(--rule); }
.masthead__top { display: flex; justify-content: space-between; gap: 8px; font: 600 12px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--rule); padding-bottom: 8px; color: var(--ink-soft); }
.masthead__title { display: block; font: 700 clamp(34px, 7vw, 76px)/1 var(--headline); text-decoration: none; letter-spacing: -.01em; margin: 18px 0 6px; }
.masthead__motto { font-style: italic; color: var(--ink-soft); margin: 0 0 12px; }
.masthead__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; border-top: 1px solid var(--rule); padding: 10px 0; font: 700 13px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.masthead__nav a { text-decoration: none; }

.paper { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; }
.kicker { font: 700 12px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 6px; }
.kicker a { text-decoration: none; }
.byline { font: 13px/1.4 var(--sans); color: var(--ink-soft); margin: 4px 0 10px; }
.rule-heading { font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px 0; margin: 32px 0 18px; }

/* Front page */
.front { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.front--empty { display: block; text-align: center; padding: 48px 0; }
.lead__title { font: 700 clamp(30px, 4.4vw, 52px)/1.08 var(--headline); margin: 0 0 8px; }
.lead__title a { text-decoration: none; }
.lead__img { margin: 12px 0; border: 1px solid var(--rule-soft); }
.lead__desc { font-size: 20px; color: var(--ink-soft); }
.briefs { border-left: 1px solid var(--rule-soft); padding-left: 24px; }
.briefs .rule-heading { margin-top: 0; }
.brief { border-bottom: 1px solid var(--rule-soft); padding-bottom: 12px; margin-bottom: 14px; }
.brief h3 { font: 700 20px/1.2 var(--headline); margin: 0 0 4px; }
.brief h3 a, .story h3 a { text-decoration: none; }
.brief p:last-child { font-size: 15px; margin: 0; color: var(--ink-soft); }
.columns { columns: 3 280px; column-gap: 32px; column-rule: 1px solid var(--rule-soft); }
.story { break-inside: avoid; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--rule-soft); }
.story h3 { font: 700 22px/1.2 var(--headline); margin: 0; }
.story p:last-child { font-size: 16px; margin: 0; }
.section-head { text-align: center; border-bottom: 1px solid var(--rule); margin-bottom: 24px; padding-bottom: 12px; }
.section-head h1 { font: 700 clamp(30px, 5vw, 48px)/1.1 var(--headline); margin: 0 0 6px; }

/* Article */
.story-full { max-width: 720px; margin: 0 auto; }
.story-full__title { font: 700 clamp(32px, 5vw, 54px)/1.08 var(--headline); margin: 0 0 12px; }
.story-full__dek { font-size: 21px; font-style: italic; color: var(--ink-soft); margin: 0 0 8px; }
.story-full__fig { margin: 20px 0; }
.story-full__fig figcaption { font: 13px/1.4 var(--sans); color: var(--ink-soft); margin-top: 6px; }
.prose > p:first-of-type::first-letter { float: left; font: 700 64px/0.85 var(--headline); padding: 6px 8px 0 0; }
.prose h2 { font: 700 28px/1.2 var(--headline); margin: 36px 0 10px; }
.prose h3 { font: 700 22px/1.25 var(--headline); margin: 28px 0 8px; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 24px 0; padding: 4px 0 4px 18px; font-style: italic; color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; font: 15px/1.4 var(--sans); margin: 20px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule-soft); padding: 8px 10px; text-align: left; }
.prose th { border-bottom: 2px solid var(--rule); }
.prose ul, .prose ol { padding-left: 24px; }

/* Disclosures (shared partial classes) */
.disclosure { font: 14px/1.5 var(--sans); background: var(--note-bg); border-top: 2px solid var(--ink); padding: 10px 14px; margin: 14px 0; }
.disclosure--health, .disclosure--vr { border-top-color: var(--accent); }
.project-box { border: 1px solid var(--rule); padding: 14px 16px; margin: 32px 0; font: 15px/1.5 var(--sans); }
.project-box__name { font: 700 20px/1.2 var(--headline); margin: 0 0 4px; }
.project-box__platform { color: var(--ink-soft); }
.project-box__note { font-size: 12px; color: var(--ink-soft); margin: 6px 0 0; }
.related ul { list-style: none; padding: 0; }
.related li { border-bottom: 1px solid var(--rule-soft); padding: 8px 0; }

.pagination { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 12px; font: 600 14px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; }

/* Footer */
.colophon { border-top: 4px double var(--rule); max-width: 1180px; margin: 0 auto; padding: 20px 16px 40px; font: 13px/1.6 var(--sans); color: var(--ink-soft); }
.colophon__title { font: 700 26px/1 var(--headline); color: var(--ink); text-align: center; margin: 0 0 14px; }
.site-disclaimer p { margin: 0 0 8px; }
.site-disclaimer__links a { white-space: nowrap; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .front { grid-template-columns: 1fr; }
  .briefs { border-left: 0; padding-left: 0; }
  .masthead__top { flex-direction: column; align-items: center; }
}
