/* space-grotesk-latin-500-normal */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/_astro/space-grotesk-latin-500-normal.lFbtlQH6.woff2) format('woff2'), url(/_astro/space-grotesk-latin-500-normal.CNSSEhBt.woff) format('woff');
}/* space-grotesk-latin-700-normal */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/_astro/space-grotesk-latin-700-normal.RjhwGPKo.woff2) format('woff2'), url(/_astro/space-grotesk-latin-700-normal.CwsQ-cCU.woff) format('woff');
}/* inter-latin-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/inter-latin-400-normal.C38fXH4l.woff2) format('woff2'), url(/_astro/inter-latin-400-normal.CyCys3Eg.woff) format('woff');
}/* inter-latin-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_astro/inter-latin-600-normal.LgqL8muc.woff2) format('woff2'), url(/_astro/inter-latin-600-normal.CiBQ2DWP.woff) format('woff');
}:root {
    color-scheme: dark;

    /* Brand (bible) */
    --hp-amber: #ffb020;
    --hp-server-black: #0e1116;
    --hp-grease-gray: #5b6470;
    --hp-signal-teal: #18c3b0;
    --hp-paper: #f4f2ee;

    /* Roles */
    --bg: var(--hp-server-black);
    --fg: var(--hp-paper);
    --muted: #9aa3ae;
    --surface: #161b22;
    --surface-2: #1f252e;
    --rule: #272e38;

    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --gutter: clamp(1rem, 4vw, 3rem);
    --measure: 64ch;
    --wide: 80rem;
    --radius: 1.5rem;
    --floor-line: 2px solid var(--hp-amber);
    --header-h: 3.25rem;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-h);
  }

  [hidden] {
    display: none !important;
  }

  body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
  }

  ::selection {
    background: var(--hp-amber);
    color: var(--hp-server-black);
  }

  h1,
  h2,
  h3,
  .wordmark {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-wrap: balance;
  }

  h1 {
    margin: 0;
    font-size: clamp(3rem, 11vw, 9rem);
  }

  h2 {
    margin: 6rem 0 1.5rem;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
  }

  h3 {
    margin: 2rem 0 0.5rem;
    font-size: 1.375rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  p,
  ul,
  ol,
  dl {
    max-width: var(--measure);
  }

  a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
  }

  a:hover {
    text-decoration-color: var(--hp-amber);
    text-decoration-thickness: 2px;
  }

  :focus-visible {
    outline: 2px solid var(--hp-signal-teal);
    outline-offset: 3px;
  }

  img,
  video,
  svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .skip {
    position: absolute;
    left: -999px;
    top: 0;
    padding: 0.5rem 1rem;
    background: var(--hp-amber);
    color: var(--hp-server-black);
    z-index: 100;
  }

  .skip:focus {
    left: 0;
  }

  /* Header: one slim translucent bar ------------------------------------------ */

  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(14 17 22 / 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
  }

  .masthead {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: var(--wide);
    height: var(--header-h);
    margin: 0 auto;
    padding: 0 var(--gutter);
  }

  .wordmark {
    color: var(--hp-amber);
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    text-decoration: none;
  }

  .sheet-nav {
    margin-left: auto;
  }

  .sheet-nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: none;
  }

  .sheet-nav a {
    text-decoration: none;
  }

  .sheet-bar {
    display: none;
  }

  .sheet-drawer summary {
    padding: 0.25rem 0.875rem;
    border: 1px solid rgb(255 255 255 / 0.2);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }

  .sheet-drawer summary::-webkit-details-marker {
    display: none;
  }

  .sheet-drawer[open] summary {
    background: var(--hp-amber);
    border-color: var(--hp-amber);
    color: var(--hp-server-black);
  }

  .sheet-drawer ol {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: rgb(14 17 22 / 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: var(--floor-line);
  }

  .sheet-drawer a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
  }

  .sheet-drawer a[aria-current='page'] {
    color: var(--hp-amber);
  }

  .sheet-no {
    min-width: 3.25rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
  }

  .doc-label {
    display: none;
  }

  @media (min-width: 72rem) {
    .sheet-drawer {
      display: none;
    }

    .sheet-bar {
      display: flex;
      gap: 1.5rem;
    }

    .sheet-bar a {
      color: #c4cad2;
      font-size: 0.8125rem;
      white-space: nowrap;
      transition: color 0.2s;
    }

    .sheet-bar a:hover,
    .sheet-bar a[aria-current='page'] {
      color: var(--fg);
    }

    .sheet-bar a[aria-current='page'] {
      text-decoration: underline;
      text-decoration-color: var(--hp-amber);
      text-decoration-thickness: 2px;
      text-underline-offset: 0.45em;
    }

  }

  @media (min-width: 90rem) {
    .doc-label {
      display: block;
      padding: 0.125rem 0.625rem;
      border: 1px solid var(--hp-amber);
      border-radius: 999px;
      color: var(--hp-amber);
      font-size: 0.75rem;
      font-weight: 600;
      white-space: nowrap;
    }
  }

  /* Main and sheet head ----------------------------------------------------- */

  main {
    flex: 1;
    width: 100%;
    max-width: var(--wide);
    margin: 0 auto;
    padding: 0 var(--gutter) 6rem;
  }

  main.bleed {
    max-width: none;
    padding: 0;
  }

  .sheet-head {
    padding: clamp(4rem, 14vw, 10rem) 0 2rem;
  }

  .sheet-id {
    display: inline-block;
    margin: 0 0 1.75rem;
    padding: 0.25rem 0.875rem;
    background: var(--hp-amber);
    color: var(--hp-server-black);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    transform: rotate(-3deg);
  }

  .sheet-id span {
    opacity: 0.55;
  }

  .lede {
    margin: 2rem 0 0;
    max-width: 34ch;
    color: var(--muted);
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }

  /* Figures: rounded, edge-lit, captions below. */

  figure {
    margin: 3rem 0;
  }

  figure img,
  figure video {
    width: 100%;
    border-radius: var(--radius);
    background: var(--surface);
  }

  figcaption {
    margin-top: 0.875rem;
    max-width: var(--measure);
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.5;
  }

  figcaption b {
    color: var(--fg);
    font-weight: 600;
  }

  /* Spec: a bento of big numbers. The lead figure gets the amber tile. */

  .spec {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: 0.75rem;
    max-width: none;
    margin: 2.5rem 0;
  }

  .spec div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1.5rem 1.25rem 1.375rem;
    border-radius: var(--radius);
    background: var(--surface);
    container-type: inline-size;
  }

  .spec div:first-child {
    background: var(--hp-amber);
    color: var(--hp-server-black);
  }

  .spec dt {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .spec div:first-child dt {
    color: rgb(14 17 22 / 0.7);
  }

  /* Sized to the tile so a long figure like 150,000 stays on one line. */
  .spec dd {
    margin: 0;
    overflow-wrap: normal;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: min(3.5rem, 24cqi);
    line-height: 0.95;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
  }

  .spec dd small {
    margin-left: 0.1em;
    font-size: 0.4em;
    letter-spacing: -0.01em;
  }

  /* Tables */

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
  }

  th,
  td {
    padding: 0.875rem 1rem 0.875rem 0;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    vertical-align: top;
  }

  thead th {
    border-bottom: var(--floor-line);
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 600;
  }

  tbody th {
    font-weight: 600;
  }

  td.num,
  th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--muted);
  }

  /* Narrow screens: each row of a .stack table becomes a block, cells one per line. */
  @media (max-width: 40rem) {
    table.stack {
      min-width: 0;
    }

    table.stack thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
    }

    table.stack,
    table.stack tbody,
    table.stack tr,
    table.stack th,
    table.stack td {
      display: block;
    }

    table.stack tr {
      position: relative;
      padding: 0.875rem 0 0.875rem var(--stack-indent, 0);
      border-bottom: 1px solid var(--rule);
    }

    table.stack th,
    table.stack td {
      padding: 0;
      border: 0;
    }

    table.stack td.num {
      position: absolute;
      left: 0;
      top: 0.875rem;
      text-align: left;
    }

    table.stack tbody th + td {
      color: var(--muted);
      font-size: 0.875rem;
    }
  }

  /* Buttons: pills. */

  .button {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--hp-amber);
    color: var(--hp-server-black);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
  }

  .button:hover {
    background: #ffc247;
    transform: scale(1.03);
  }

  .button.ghost {
    background: transparent;
    color: var(--fg);
    box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.35);
  }

  .button.ghost:hover {
    box-shadow: inset 0 0 0 1.5px var(--fg);
  }

  /* Next sheet ---------------------------------------------------------------- */

  .next-sheet {
    display: grid;
    gap: 0.75rem;
    margin-top: 8rem;
    padding: clamp(1.75rem, 5vw, 3.5rem);
    border-radius: var(--radius);
    background: var(--surface);
    text-decoration: none;
    transition: background-color 0.25s;
  }

  .next-sheet:hover {
    background: var(--surface-2);
  }

  .next-sheet-label {
    color: var(--hp-amber);
    font-weight: 600;
    font-size: 0.875rem;
  }

  .next-sheet-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
  }

  .next-sheet-summary {
    color: var(--muted);
  }

  /* Footer -------------------------------------------------------------------- */

  .site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding: 2.5rem var(--gutter) 3rem;
    padding-inline: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter)));
    background: #090b0e;
    border-top: var(--floor-line);
  }

  /* Matches the tag burned into every render. */
  .concept-label {
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    background: var(--surface-2);
    color: var(--fg);
    font-weight: 600;
    font-size: 0.875rem;
  }

  .satire {
    flex-basis: 100%;
    margin: 0.5rem 0 0;
    max-width: var(--measure);
    color: var(--muted);
    font-size: 0.875rem;
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      transition: none !important;
      animation: none !important;
    }
  }