/* NATIONAL COMPUTE — the Compute Reserve.
   One paper, one accent, one typeface. Nothing else. */

:root {
  --paper: #efe3d0;
  --ink: #2b241c;
  --rust: #c8532a;
  --slate: #7e9aa3;
  --mustard: #d6a659;

  /* shared with /docs/ */
  --muted: #7a6a58;
  --rule: #c9b79c;
  --sand: #e2cfae;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --display: "Archivo Black", "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --text: 960px;
  --measure: 46ch;
  --gutter: 24px;
  --gutter-lg: 40px;
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  background-color: var(--paper);
  /* Halftone dot-screen: 3px pitch, plus a finer grain layer and a warm rust layer. */
  background-image:
    radial-gradient(circle at 50% 50%, rgba(43, 36, 28, 0.16) 0 0.55px, rgba(43, 36, 28, 0) 0.75px),
    radial-gradient(circle at 50% 50%, rgba(43, 36, 28, 0.07) 0 0.45px, rgba(43, 36, 28, 0) 0.7px),
    radial-gradient(circle at 50% 50%, rgba(200, 83, 42, 0.06) 0 0.6px, rgba(200, 83, 42, 0) 0.8px);
  background-size: 3px 3px, 2px 2px, 7px 7px;
  background-position: 0 0, 1px 1px, 3px 2px;
  background-repeat: repeat;
}

img { max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.accent { color: var(--rust); font-style: normal; }

.fine,
.note {
  color: var(--muted);
}

/* ---------- masthead: tiny wordmark left, tiny nav right ---------- */

.masthead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3vh, 30px) clamp(16px, 4vw, 40px);
}

.wordmark { display: inline-block; }

.wordmark img {
  display: block;
  height: 20px;
  width: auto;
}

.masthead__nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}

.masthead__nav a { white-space: nowrap; }

.masthead__nav a[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
}

.masthead__nav a[aria-disabled="true"]:hover {
  color: var(--muted);
  text-decoration: none;
}

/* ---------- poster ---------- */

.poster {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(28px, 5vh, 64px);
  padding: clamp(120px, 18vh, 180px) 6% clamp(24px, 3vh, 40px);
  overflow: hidden;
}


.poster__clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  user-select: none;
}

.poster__monument {
  position: absolute;
  right: 0;
  bottom: 0;
  /* Height-capped as well as width-scaled: the monument owns the bottom-right corner
     and never rises into the headline on a wide, short window. */
  width: min(62vw, 66vh);
  max-width: 1200px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* Flag backdrop: the left ~65% of the hero, screened into the paper.
   z-index 1 clears the clouds and stays under `.poster__copy` (z-index 2). */
.poster__flag {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: 0.18;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 55%, transparent 100%), linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 55%, transparent 100%), linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Live headline over the vector artwork.
   The cream radial keeps the ink legible against the art underneath. */
.poster__copy {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.poster__copy::before {
  content: "";
  position: absolute;
  inset: -12% -14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(239, 227, 208, 0.9), rgba(239, 227, 208, 0.55) 60%, rgba(239, 227, 208, 0) 100%);
  pointer-events: none;
}

.poster__eyebrow {
  margin: 0 0 clamp(14px, 2.4vh, 24px);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.poster__headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 190px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  /* Screened into the paper, with a 2px rust misregistration to match the print. */
  mix-blend-mode: multiply;
  text-shadow: 2px 2px 0 rgba(200, 83, 42, 0.35);
  /* The three authored lines stay whole; only a phone breaks them further. */
  white-space: nowrap;
}

/* Sub-line and actions: a small cream halftone card, rust rule along its top. */
.poster__card {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 28px);
  background-color: rgba(239, 227, 208, 0.86);
  background-image: radial-gradient(circle at 50% 50%, rgba(43, 36, 28, 0.1) 0 0.55px, rgba(43, 36, 28, 0) 0.75px);
  background-size: 3px 3px;
  border-top: 1px solid var(--rust);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.poster__sub {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

.poster__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(18px, 2.8vh, 30px) 0 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95em 1.6em;
  border: 1px solid var(--ink);
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--ghost { color: var(--ink); }

.btn--ghost:hover {
  border-color: var(--rust);
  color: var(--rust);
}

.btn.is-disabled,
.btn[aria-disabled="true"],
.btn.is-disabled:hover,
.btn[aria-disabled="true"]:hover {
  background: none;
  border-color: rgba(43, 36, 28, 0.35);
  color: var(--muted);
  cursor: default;
}

/* ---------- statement band: full-bleed rust, paper text ---------- */

.statement {
  position: relative;
  background: var(--rust);
  color: var(--paper);
  padding: clamp(56px, 12vh, 128px) clamp(20px, 4vw, 40px);
}

/* A thin rust/cream stripe rule on the band's top and bottom edges: 6px bars,
   the flag's stripe motif reduced to rule scale. */
.statement::before,
.statement::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(to right, var(--rust) 0 6px, var(--paper) 6px 12px);
}

.statement::before { top: 0; }

.statement::after { bottom: 0; }

.statement__line {
  max-width: var(--text);
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.statement__sub {
  max-width: var(--text);
  margin: clamp(18px, 3vh, 30px) auto 0;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--paper);
  opacity: 0.88;
}

/* ---------- why tonight: three plain columns ---------- */

.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.why__head {
  max-width: 26ch;
  margin: 0 0 1em;
  padding-top: 0.6em;
  border-top: 2px solid var(--rust);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}

.why__col p {
  max-width: 38ch;
  margin: 0 0 0.9em;
  font-size: 14px;
}

.why__col p:last-child { margin-bottom: 0; }

/* ---------- why it has to be ours: the thesis, mono, two columns ---------- */

#why .why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vh, 36px) clamp(28px, 5vw, 64px);
}

#why .why p {
  max-width: 60ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.pullquote {
  max-width: 26ch;
  margin: clamp(40px, 7vh, 72px) auto 0;
  padding: clamp(20px, 3vh, 32px) 0;
  border-top: 1px solid var(--rust);
  border-bottom: 1px solid var(--rust);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--rust);
  text-align: center;
}

/* ---------- stars divider: five cream stars on rust ---------- */

.stars {
  --star: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='black'%20d='M12 1.5l3.09 6.26L22 8.7l-5 4.87 1.18 6.93L12 17.27l-6.18 3.23L7 13.57 2 8.7l6.91-.94z'/%3E%3C/svg%3E");
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 44px);
  max-width: var(--text);
  margin: clamp(48px, 9vh, 96px) auto 0;
  padding: 15px var(--gutter-lg);
  background: var(--rust);
}

.stars span {
  width: 15px;
  height: 15px;
  background-color: var(--paper);
  -webkit-mask-image: var(--star);
  mask-image: var(--star);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* ---------- big numbers ---------- */

.block--bignums { border-top: 0; padding-top: clamp(40px, 8vh, 80px); }

.bignums {
  display: grid;
  /* Content-sized columns: the large numerals never spill into a neighbour. */
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: clamp(24px, 4vw, 44px);
}

.bignum__value {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--rust);
}

.bignum__caption {
  max-width: 22ch;
  margin: 0.75em 0 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- text blocks ---------- */

.block {
  max-width: var(--text);
  margin: 0 auto;
  padding: clamp(52px, 9vh, 104px) var(--gutter-lg) 0;
  border-top: 1px solid var(--rust);
}

.label {
  margin: 0 0 clamp(20px, 4vh, 40px);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0 0 clamp(20px, 4vh, 40px);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.prose p {
  max-width: var(--measure);
  margin: 0 0 1.05em;
  font-size: 15px;
}

.prose p:last-child { margin-bottom: 0; }

.note {
  max-width: 62ch;
  margin: 2.4rem 0 0;
  font-size: 13px;
}

.fine {
  margin: 1.6rem 0 0;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

/* ---------- numbers ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 28px;
}

.figure__label {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.figure__value {
  margin: 0.55em 0 0.3em;
  font-size: clamp(19px, 2.1vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.figure__caption {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.figure.is-live .figure__value { color: var(--rust); }

/* ---------- figures / tables ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 1rem 0.6rem 0;
  font-weight: 400;
}

.table thead th {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rust);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.table tbody th { color: var(--muted); }

.table--addresses code {
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.table--addresses code.is-empty {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table__actions {
  white-space: nowrap;
  text-align: right;
}

.table__actions .btn {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(43, 36, 28, 0.35);
  padding: 0.25rem 0.55rem;
  margin-left: 0.8rem;
}

.table__actions .btn:hover {
  color: var(--rust);
  border-color: var(--rust);
}

.table__link {
  margin-left: 0.8rem;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.table .muted { color: var(--muted); }

/* ---------- loop ---------- */

.loop {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.loop li {
  max-width: 66ch;
  margin: 0 0 1.1em;
  padding-left: 3.2rem;
  text-indent: -3.2rem;
  font-size: 15px;
}

.loop__n {
  display: inline-block;
  width: 3.2rem;
  text-indent: 0;
  color: var(--rust);
  font-size: 11px;
  letter-spacing: 0.14em;
  vertical-align: 0.12em;
}

/* ---------- faq ---------- */

.faq details { padding: 0.85rem 0; }

.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.faq summary::after {
  content: " +";
  color: var(--rust);
}

.faq details[open] summary::after { content: " –"; }

.faq summary:hover { color: var(--rust); }

.faq p {
  max-width: 62ch;
  margin: 0.9rem 0 0;
  font-size: 14px;
}

/* ---------- footer ---------- */

.footer {
  max-width: var(--text);
  margin: 0 auto;
  padding: clamp(52px, 9vh, 104px) var(--gutter-lg) clamp(44px, 8vh, 80px);
  border-top: 1px solid var(--rust);
}

.footer__line {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 1.1rem 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer .fine { color: var(--muted); }

.footer__flag {
  display: inline-block;
  width: 38px;
  height: 20px;
  margin-right: 0.7em;
  vertical-align: -3px;
}

.footer__made {
  margin: 1.6rem 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- shared (documentation pages) ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand img { display: block; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  /* The four numerals stop fitting as one content-sized row; pair them up. */
  .bignums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: normal;
  }
}

@media (max-width: 720px) {
  .block { padding-left: var(--gutter); padding-right: var(--gutter); }

  .footer { padding-left: var(--gutter); padding-right: var(--gutter); }


  .poster__monument { width: 120vw; }

  .poster { padding-left: var(--gutter); padding-right: var(--gutter); }

  .poster__headline { font-size: clamp(44px, 14vw, 80px); white-space: normal; }

  /* Card follows the headline without overlapping short viewports. */
  .poster__card {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-bottom: calc(var(--gutter) + 4px);
  }

  .poster__actions { flex-direction: column; align-items: flex-start; }

  .btn { align-self: stretch; text-align: center; }

  .statement { padding-left: var(--gutter); padding-right: var(--gutter); }

  .why { grid-template-columns: minmax(0, 1fr); gap: 28px; }

  #why .why { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .bignums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }

  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }

  .table { font-size: 12.5px; }

  .table th,
  .table td { padding-right: 0.7rem; }
}

@media (max-width: 420px) {
  .figures { grid-template-columns: minmax(0, 1fr); }

  .bignums { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- print ---------- */

@media print {
  body { background: #fff; background-image: none; color: #000; }

  .masthead,
  .poster__clouds,
  .poster__monument,
  .poster__flag,
  .stars,
  .footer .links { display: none !important; }

  .poster {
    min-height: 0;
    display: block;
    padding: 1rem 0 2rem;
  }

  .poster__copy {
    position: static;
    max-width: none;
    margin-bottom: 1rem;
  }

  .poster__copy::before { display: none; }

  .poster__card {
    position: static;
    width: auto;
    background: none;
    border-top: 1px solid #000;
    backdrop-filter: none;
  }

  .poster__actions .btn {
    background: none;
    border-color: #000;
    color: #000;
  }

  .statement {
    background: none;
    color: #000;
    padding: 1.2rem 0 0;
    border-top: 1px solid #000;
    break-inside: avoid;
  }

  .statement::before,
  .statement::after { display: none; }

  .statement__sub { opacity: 1; color: #000; }

  .why { display: block; }

  .why__col { margin-bottom: 1rem; }

  #why .why { display: block; }

  #why .why p { margin-bottom: 0.9em; }

  .pullquote { color: #000; border-color: #000; }

  .bignums { display: block; }

  .bignum { margin-bottom: 1rem; }

  .bignum__value { color: #000; }

  .block,
  .footer {
    max-width: none;
    padding: 1.2rem 0 0;
    border-top: 1px solid #000;
    break-inside: avoid;
  }

  .figures { display: block; }

  .figure { margin-bottom: 1rem; }

  .table thead th { border-bottom: 1px solid #000; }

  details { display: block; }

  details > summary ~ * { display: block; }

  a { text-decoration: none; color: #000; }
}
