/* portuguese.channel — production styles */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #F3EFE6;
  --paper-raised: #FBF9F4;
  --ink: #15171C;
  --ink-soft: #2E3037;
  --muted: #4A4D55;
  --rule: #D8D1C2;
  --accent: #1E5B4A;
  --accent-deep: #123D31;
  --brick: #A8432A;
  --night: #15171C;
  --night-rule: #3A3D45;
  --night-muted: #B9B4A8;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 6vw, 120px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-deep); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.band-night :focus-visible { outline-color: var(--paper); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
}
.skip-link:focus { top: 16px; color: var(--paper); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-dark:hover { background: #000; color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-tld { color: var(--accent); }

.site-nav ul { display: flex; align-items: center; gap: 36px; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
}
.site-nav a:not(.btn):hover { color: var(--accent); }

/* ---------- Hero ---------- */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 112px) clamp(72px, 9vw, 120px);
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.status {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brick);
  flex: none;
  margin-top: 0.55em;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.hero-lede {
  max-width: 34em;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}
.motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--accent);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }

/* Test card — the one memorable thing */
.test-card { display: flex; flex-direction: column; gap: 16px; }
.test-card-frame {
  padding: 20px;
  border-radius: 10px;
  background: var(--night);
}
.test-card-screen {
  display: grid;
  grid-template-rows: 1fr 10% 20%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
}
.bars, .bars-reverse { display: grid; grid-template-columns: repeat(7, 1fr); }
.bars span:nth-child(1) { background: #CFC9BA; }
.bars span:nth-child(2) { background: #D6B24A; }
.bars span:nth-child(3) { background: #6FA7A0; }
.bars span:nth-child(4) { background: #5E9153; }
.bars span:nth-child(5) { background: #A8589A; }
.bars span:nth-child(6) { background: #B5452F; }
.bars span:nth-child(7) { background: #2E4F8F; }
.bars-reverse span:nth-child(odd) { background: var(--night); }
.bars-reverse span:nth-child(1) { background: #2E4F8F; }
.bars-reverse span:nth-child(3) { background: #A8589A; }
.bars-reverse span:nth-child(5) { background: #6FA7A0; }
.bars-reverse span:nth-child(7) { background: #CFC9BA; }
.bars-reverse span:nth-child(even) { background: var(--night); }
.slate {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0C0D10;
  font-family: var(--mono);
  font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: 0.24em;
  color: var(--paper);
}
.test-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--night-muted);
  font-variant-numeric: tabular-nums;
}
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D0533A;
  animation: rec-blink 1.6s steps(1, end) infinite;
}
@keyframes rec-blink { 50% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) {
  .rec-dot { animation: none; }
}
.test-card figcaption { font-size: 14px; color: var(--muted); }

/* ---------- Timeline ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.timeline li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 36px 32px 40px;
  border-right: 1px solid var(--rule);
}
.timeline li:first-child { padding-left: 0; }
.timeline li:last-child { padding-right: 0; border-right: 0; }
.decade {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.1;
  font-weight: 500;
  font-variation-settings: "opsz" 72;
}
.timeline p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Section basics ---------- */

.section { padding-block: clamp(80px, 10vw, 140px); }
.section-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 60;
  text-wrap: balance;
}

/* ---------- About ---------- */

.about .wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 24px clamp(40px, 8vw, 120px);
}
.about-head { display: flex; flex-direction: column; gap: 16px; }
.about-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 40em;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.disclaimer {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Collection ---------- */

.collect { padding-top: 0; }
.collect-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.collect-head > div { display: flex; flex-direction: column; gap: 16px; }
.collect-head p { max-width: 26em; font-size: 16px; color: var(--muted); }

.collect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
}
.collect-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.collect-item svg { width: 28px; height: 28px; color: var(--accent); }
.collect-item h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.collect-item p { font-size: 16px; color: var(--muted); }

.formats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-block: 24px;
  padding: 32px;
  border-radius: 8px;
  background: var(--night);
  color: var(--paper);
}
.formats h3 { font-size: 20px; font-weight: 600; }
.formats ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.formats li {
  padding: 4px 10px;
  border: 1px solid var(--night-rule);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 14px;
}
.formats p { font-size: 14px; color: var(--night-muted); }
.formats a { color: var(--paper); }
.formats a:hover { color: #fff; }

/* ---------- Contribute ---------- */

.band-night { background: var(--night); color: var(--paper); }
.contribute .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px clamp(48px, 8vw, 112px);
  align-items: start;
}
.contribute-head { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.contribute .section-label { color: var(--night-muted); }
.contribute .section-title { font-size: clamp(36px, 3.8vw, 52px); }
.contribute-lede { max-width: 30em; color: var(--night-muted); }
.contribute-note { font-size: 14px; color: var(--night-muted); }
.contribute-note a { color: var(--paper); }

.steps {
  display: flex;
  flex-direction: column;
  counter-reset: step;
  border-top: 1px solid var(--night-rule);
}
.steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--night-rule);
  font-size: 17px;
  line-height: 1.55;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--night-muted);
}
.steps strong { display: block; margin-bottom: 4px; font-weight: 600; }
.steps span { color: var(--night-muted); }
.motto-night {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--night-muted);
  padding-top: 24px;
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--night-rule); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 36px;
  font-size: 14px;
  color: var(--night-muted);
}
.footer-brand { font-family: var(--serif); font-size: 20px; color: var(--paper); }

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  text-align: center;
}
.notfound .inner { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 32em; }
.notfound .code { font-family: var(--mono); color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .test-card { max-width: 620px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li { padding: 32px 24px 36px; }
  .timeline li:nth-child(odd) { padding-left: 0; }
  .timeline li:nth-child(even) { padding-right: 0; border-right: 0; }
  .timeline li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .about .wrap { grid-template-columns: minmax(0, 1fr); }
  .collect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contribute .wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 72px; }
  .brand { font-size: 21px; }
  .nav-text { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline li,
  .timeline li:nth-child(odd),
  .timeline li:nth-child(even) {
    padding: 24px 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .timeline li:last-child { border-bottom: 0; }
  .decade { font-size: 40px; }
  .about-body { font-size: 17px; }
  .collect-grid { grid-template-columns: minmax(0, 1fr); }
  .formats { margin-block: 32px 0; }
  .test-card-frame { padding: 12px; }
  .test-card-meta { font-size: 12px; }
  .steps li { grid-template-columns: 36px minmax(0, 1fr); }
  .steps li::before { font-size: 26px; }
}

@media print {
  .site-nav, .hero-actions, .skip-link { display: none; }
  .band-night { background: #fff; color: #000; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
