:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --white: #ffffff;
  --muted: #6b7280;
  --line: rgba(10, 10, 10, 0.12);
  --soft: #f5f5f5;
  --accent: #0a0a0a;
  --accent-soft: #f5f5f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

main {
  padding-top: 64px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.95);
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.08);
}

.nav-row {
  width: 100%;
  max-width: 100%;
  min-height: 64px;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 28px;
  filter: grayscale(1);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  border-radius: 4px;
}

.desktop-nav-cta {
  flex: 0 0 auto;
  text-decoration: none;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  list-style: none;
  font-size: 22px;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-links {
  position: absolute;
  top: 50px;
  right: 0;
  width: 220px;
  padding: 12px;
  display: grid;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-nav-links a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 14px;
}

.journal-hero {
  padding: 88px 0 78px;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid #272727;
}

.eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.48);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.journal-hero h1,
.article-header h1 {
  margin: 0;
  max-width: 850px;
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02;
  font-weight: 700;
}

.journal-hero .intro {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
}

.section {
  padding: 78px 0 96px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 30px;
}

.section-heading span {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.featured-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  border-bottom: 1px solid var(--line);
}

.featured-copy {
  padding: 22px 56px 58px 0;
}

.story-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.story-meta .category,
.article-meta .category {
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
}

.featured-copy h2 {
  margin: 24px 0 18px;
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
}

.featured-copy p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.read-link span {
  transition: transform 0.2s ease;
}

.read-link:hover span {
  transform: translateX(4px);
}

.system-visual {
  min-height: 470px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #111;
  color: #fff;
  text-decoration: none;
}

.system-visual .visual-label {
  color: rgba(255, 255, 255, 0.42);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.system-list {
  display: grid;
}

.system-step {
  min-height: 72px;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.system-step:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.system-step .number {
  color: rgba(255, 255, 255, 0.72);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.system-step strong {
  font-family: "Playfair Display", serif;
  font-size: 23px;
  font-weight: 600;
}

.system-step .status {
  color: rgba(255, 255, 255, 0.36);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.editorial-note {
  margin-top: 50px;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.editorial-note h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 24px;
}

.editorial-note p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.cta-band {
  padding: 66px 0;
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-row h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 34px;
  line-height: 1.15;
}

.cta-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

.button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  padding: 42px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.48);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

/* Article */
.article-header {
  padding: 86px 0 66px;
  background: var(--ink);
  color: #fff;
}

.article-header h1 {
  max-width: 980px;
  margin: 22px 0 28px;
  font-size: clamp(42px, 6.5vw, 76px);
}

.article-header .dek {
  max-width: 740px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 20px;
  line-height: 1.6;
}

.article-header .article-meta {
  color: rgba(255, 255, 255, 0.44);
}

.article-header .article-meta .category {
  color: rgba(255, 255, 255, 0.72);
}

.article-header .eyebrow {
  display: inline-block;
  text-decoration: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 240px;
  justify-content: space-between;
  gap: 70px;
  padding-top: 76px;
  padding-bottom: 100px;
}

.article-body {
  min-width: 0;
}

.article-body .lead {
  margin-top: 0;
  font-family: "Playfair Display", serif;
  font-size: 27px;
  line-height: 1.45;
  color: #1f2937;
}

.article-body h2 {
  margin: 58px 0 18px;
  font-family: "Playfair Display", serif;
  font-size: 36px;
  line-height: 1.2;
}

.article-body h3 {
  margin: 36px 0 12px;
  font-size: 19px;
}

.article-body p,
.article-body li {
  color: #374151;
  font-size: 17px;
}

.article-body p {
  margin: 0 0 24px;
}

.article-body ul {
  margin: 18px 0 28px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-callout {
  margin: 44px 0;
  padding: 30px 34px;
  background: var(--white);
  border-left: 4px solid var(--accent);
}

.article-callout p {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: 23px;
  line-height: 1.45;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 110px;
  padding-top: 8px;
}

.article-aside .aside-title {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.article-aside a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.article-aside a:hover {
  color: var(--ink);
}

.author-block {
  margin-top: 58px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.author-block strong {
  display: block;
  margin-bottom: 4px;
}

.author-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 767px) {
  .desktop-nav,
  .desktop-nav-cta {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .featured-story,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .featured-copy {
    padding-right: 0;
  }

  .system-visual {
    min-height: 400px;
  }

  .article-aside {
    display: none;
  }
}

@media (min-width: 640px) {
  .nav-row {
    max-width: 640px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 768px) {
  main {
    padding-top: 80px;
  }

  .nav-row {
    max-width: 768px;
    min-height: 80px;
  }

  .brand img {
    height: 32px;
  }
}

@media (min-width: 1024px) {
  .nav-row {
    max-width: 1024px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1280px) {
  .nav-row {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .nav-row {
    max-width: 1536px;
  }
}

@media (max-width: 639px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .nav-row {
    min-height: 64px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand img {
    height: 28px;
  }

  .journal-hero,
  .article-header {
    padding: 66px 0 58px;
  }

  .journal-hero h1,
  .article-header h1 {
    font-size: 43px;
  }

  .journal-hero .intro,
  .article-header .dek {
    font-size: 17px;
  }

  .section {
    padding: 56px 0 72px;
  }

  .section-heading {
    display: block;
  }

  .section-heading span {
    display: block;
    margin-top: 5px;
  }

  .featured-copy h2 {
    font-size: 36px;
  }

  .system-visual {
    min-height: 360px;
    padding: 28px 22px;
  }

  .system-step {
    grid-template-columns: 30px 1fr;
  }

  .system-step .status {
    display: none;
  }

  .editorial-note {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cta-row,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-layout {
    padding-top: 52px;
    padding-bottom: 72px;
  }

  .article-body .lead {
    font-size: 23px;
  }

  .article-body h2 {
    font-size: 31px;
  }

  .article-callout {
    padding: 24px;
  }
}
