:root {
  --ink: #242422;
  --paper: #f4f0e7;
  --white: #fffdf8;
  --orange: #ed5b22;
  --line: #a6a196;
  --muted: #67645e;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--orange); }
button, input { font: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--orange);
  color: var(--white);
}
.skip-link:focus { top: 1rem; }

.site-header {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: .55rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 1.25rem 1rem;
}
.brand {
  display: inline-block;
  font-size: clamp(1.5rem, 4vw, 3.3rem);
  font-weight: 700;
  line-height: .95;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.brand-dot { color: var(--orange); }
.edition-stamp {
  border: 1px solid var(--ink);
  padding: .45rem .7rem;
  font-size: .72rem;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}
.main-nav {
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  max-width: var(--max);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: thin;
}
.nav-inner a {
  flex: 0 0 auto;
  padding: .8rem 1.25rem;
  border-right: 1px solid #565650;
  font-size: .75rem;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-inner a:last-child { margin-left: auto; border-left: 1px solid #565650; }
.nav-inner a:hover, .nav-inner a[aria-current="page"] { background: var(--orange); color: var(--white); }

.page-shell { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0 1rem;
  border-top: 3px solid var(--ink);
  padding-top: .55rem;
}
.section-rule h2, .section-rule p { margin: 0; }
.section-rule h2 { font-size: .82rem; text-transform: uppercase; }
.section-rule p { color: var(--muted); font-size: .72rem; }

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  border-bottom: 1px solid var(--ink);
}
.lead-story { border-right: 1px solid var(--ink); padding: 1rem 1.5rem 2rem 0; }
.lead-story figure { margin: 0 0 1.25rem; }
.lead-story img { aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.9) contrast(1.02); }
.kicker { color: var(--orange); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.lead-story h1 {
  max-width: 880px;
  margin: .5rem 0 .8rem;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: .98;
  letter-spacing: 0;
}
.lead-story h1 a { text-decoration: none; }
.dek { max-width: 780px; margin: 0; font-size: 1.03rem; }
.meta { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.lead-story .meta { margin-top: 1rem; }
.side-list { display: grid; grid-template-rows: 1fr 1fr; }
.side-story { padding: 1.2rem 0 1.2rem 1.5rem; }
.side-story + .side-story { border-top: 1px solid var(--ink); }
.side-story img { aspect-ratio: 16 / 8; object-fit: cover; margin-bottom: 1rem; }
.side-story h2 { margin: .35rem 0 .5rem; font-size: 1.32rem; line-height: 1.15; }
.side-story h2 a, .story-card h3 a { text-decoration: none; }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); }
.story-card { padding: 0 1.25rem 2rem; }
.story-card:first-child { padding-left: 0; }
.story-card:last-child { padding-right: 0; }
.story-card + .story-card { border-left: 1px solid var(--ink); }
.story-card img { aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1rem; }
.story-card h3 { margin: .35rem 0 .5rem; font-size: 1.4rem; line-height: 1.18; }
.story-card p { margin: 0 0 1rem; font-size: .9rem; }

.manifesto {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--orange);
  color: #171716;
}
.manifesto strong { font-size: .8rem; text-transform: uppercase; }
.manifesto p { max-width: 850px; margin: 0; font-size: 1.05rem; }

.page-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; border-bottom: 1px solid var(--ink); }
.page-intro h1 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; overflow-wrap: anywhere; }
.page-intro p { max-width: 580px; margin: .3rem 0 0; }
.category-list { margin-bottom: 4rem; }
.category-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.category-item img { aspect-ratio: 16 / 10; object-fit: cover; }
.category-item h2 { margin: 0 0 .4rem; font-size: 1.4rem; line-height: 1.15; }
.category-item p { margin: 0; color: var(--muted); font-size: .9rem; }
.item-arrow { color: var(--orange); font-size: 1.6rem; }

.article-header { padding: 3rem 0 1.5rem; border-bottom: 1px solid var(--ink); }
.breadcrumbs { margin: 0 0 2rem; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.article-header h1 { max-width: 1020px; margin: .6rem 0 1rem; font-size: clamp(2.1rem, 6vw, 5.2rem); line-height: .98; overflow-wrap: anywhere; }
.article-header .dek { font-size: 1.1rem; }
.article-header .meta { margin-top: 1.3rem; }
.article-hero { margin: 1.5rem 0 0; }
.article-hero img { aspect-ratio: 16 / 8.3; max-height: 650px; object-fit: cover; }
.article-hero figcaption { margin-top: .45rem; color: var(--muted); font-size: .7rem; }
.article-layout { display: grid; grid-template-columns: 190px minmax(0, 740px); gap: 3rem; justify-content: center; padding: 3rem 0 4rem; }
.article-aside { font-size: .72rem; color: var(--muted); }
.article-aside strong { display: block; padding-top: .5rem; border-top: 2px solid var(--ink); color: var(--ink); text-transform: uppercase; }
.article-body { min-width: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.78; }
.article-body > p:first-child::first-letter { float: left; margin: .08em .12em 0 0; color: var(--orange); font-family: "Courier New", monospace; font-size: 4.6rem; font-weight: 700; line-height: .72; }
.article-body h2, .article-body h3, .article-body h4 { font-family: "Courier New", monospace; line-height: 1.16; letter-spacing: 0; }
.article-body h2 { margin: 2.6rem 0 .8rem; padding-top: .7rem; border-top: 3px solid var(--ink); font-size: 1.7rem; }
.article-body h3 { margin: 2rem 0 .6rem; font-size: 1.25rem; }
.article-body h4 { margin: 1.5rem 0 .4rem; font-size: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li { margin: .45rem 0; }
.article-body blockquote { margin: 2rem 0; padding: 1.2rem 1.4rem; border-left: 6px solid var(--orange); background: #e7e1d5; font-family: "Courier New", monospace; font-size: .95rem; }
.article-body table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-family: "Courier New", monospace; font-size: .8rem; }
.article-body th, .article-body td { padding: .7rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--ink); color: var(--white); }
.article-end { margin-top: 3rem; padding: 1.3rem; border: 1px solid var(--ink); font-family: "Courier New", monospace; font-size: .85rem; }

.search-panel { max-width: 900px; min-height: 480px; padding: 3rem 0 5rem; }
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 2px solid var(--ink); background: var(--white); }
.search-form input { min-width: 0; padding: 1rem; border: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.search-form button { border: 0; border-left: 2px solid var(--ink); padding: 0 1.2rem; background: var(--orange); color: var(--ink); cursor: pointer; font-weight: 700; }
.search-status { min-height: 1.7rem; margin: 1rem 0; color: var(--muted); font-size: .8rem; }
.search-results { display: grid; gap: 0; }
.search-result { display: block; padding: 1.2rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.search-result h2 { margin: .25rem 0; font-size: 1.2rem; line-height: 1.2; }
.search-result p { margin: 0; color: var(--muted); font-size: .86rem; }
.search-empty { padding: 2rem 0; border-top: 1px solid var(--line); }

.site-footer { background: var(--ink); color: var(--white); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.25rem; }
.footer-brand { font-size: 1.4rem; font-weight: 700; }
.footer-inner h2 { margin: 0 0 .8rem; color: var(--orange); font-size: .75rem; text-transform: uppercase; }
.footer-inner p, .footer-inner a { font-size: .78rem; }
.footer-inner nav { display: grid; gap: .35rem; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: .8rem 1.25rem; border-top: 1px solid #55554f; color: #b7b3aa; font-size: .68rem; }

@media (max-width: 860px) {
  .lead-grid, .page-intro, .article-layout { grid-template-columns: 1fr; }
  .lead-story { border-right: 0; padding-right: 0; }
  .side-list { grid-template-columns: 1fr 1fr; grid-template-rows: auto; border-top: 1px solid var(--ink); }
  .side-story { padding-left: 0; padding-right: 1rem; }
  .side-story + .side-story { border-top: 0; border-left: 1px solid var(--ink); padding-left: 1rem; padding-right: 0; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .story-card:nth-child(3) { grid-column: 1 / -1; padding: 1.5rem 0 2rem; border-top: 1px solid var(--ink); border-left: 0; }
  .article-layout { max-width: 740px; gap: 1rem; }
  .article-aside { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .topline span:last-child, .edition-stamp { display: none; }
  .brand-row { grid-template-columns: 1fr; }
  .brand { font-size: clamp(1.3rem, 8vw, 2.1rem); }
  .nav-inner { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
  .nav-inner a { min-width: 0; padding: .65rem .75rem; border-bottom: 1px solid #565650; white-space: normal; }
  .nav-inner a:last-child { margin-left: 0; border-left: 0; }
  .lead-story h1, .article-header h1 { font-size: 2.15rem; }
  .side-list, .story-grid { grid-template-columns: 1fr; }
  .side-story { padding: 1.2rem 0; }
  .side-story + .side-story, .story-card + .story-card { border-left: 0; border-top: 1px solid var(--ink); padding: 1.3rem 0 2rem; }
  .story-card, .story-card:first-child, .story-card:last-child { padding: 0 0 2rem; }
  .manifesto { grid-template-columns: 1fr; gap: .8rem; padding: 1.3rem; }
  .category-item { grid-template-columns: 100px minmax(0, 1fr); gap: 1rem; }
  .category-item h2 { font-size: 1rem; }
  .category-item p, .item-arrow { display: none; }
  .article-header { padding-top: 2rem; }
  .article-body { font-size: 1rem; }
  .article-body table { display: block; overflow-x: auto; }
  .search-form { grid-template-columns: 1fr; }
  .search-form button { border-top: 2px solid var(--ink); border-left: 0; padding: .75rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
