/* ==========================================================================
   RocketPlay — AU Edition
   Single stylesheet for both pages:  index.html (article)  ·  login.html (landing)

     Part 1  Article      masthead, prose, ledger, tables, asides, FAQ, footer
     Part 2  Account      site header, hero banner, facts ledger
     Part 3  Breakpoints  720px / 860px / 1040px, then small screens
     Part 4  Preferences  reduced motion, print, forced colours

   Layout language: rules-only. Hairline dividers and whitespace instead of
   cards or boxes. Figures are set in mono as the signature element.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */

:root {
  --paper:        #F4F5F2;
  --paper-raised: #FCFCFA;
  --ink:          #12141A;
  --ink-soft:     #33383F;
  --muted:        #6E737A;
  --rule:         #D5D7D0;
  --rule-strong:  #B9BCB4;
  --accent:       #B23A16;
  --accent-wash:  #F0E4DE;
  --deep:         #15171C;
  --deep-ink:     #E8E7E2;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure:      41rem;
  --measure-text: 34.5rem;
  --gutter:       1.25rem;
  --flow:         1.45rem;
}

/* --- Reset -------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.68;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- Numbers: the signature --------------------------------------------- */

.num {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

/* --- Masthead ----------------------------------------------------------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 1.4rem var(--gutter) 0.9rem;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.masthead__brand {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.masthead__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 0.5rem 0.1em;
  background: var(--accent);
  vertical-align: middle;
}

.masthead__meta {
  margin: 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.tag-18 {
  border: 1px solid var(--rule-strong);
  padding: 0.1rem 0.4rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* --- Article shell ------------------------------------------------------ */

.article {
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
}

/* --- Headings ----------------------------------------------------------- */

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8.2vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin: 0.6rem 0 0;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.32rem, 4.6vw, 1.68rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: 3.2rem 0 0.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.1rem 0 0.5rem;
}

/* --- Standfirst --------------------------------------------------------- */

.standfirst {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.14rem, 4.2vw, 1.34rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 1.15rem 0 0;
  max-width: 34rem;
  text-wrap: pretty;
}

/* --- Body copy ---------------------------------------------------------- */

p {
  margin: 0 0 var(--flow);
  text-wrap: pretty;
}

.article > p:first-of-type { margin-top: 1.5rem; }

/* Prose keeps a tighter measure than the tables and figures around it. */
.article > p,
.standfirst,
.article > .note,
.ledger,
.aside,
.marks,
.faq__item { max-width: var(--measure-text); }

strong { font-weight: 500; color: var(--ink); }

/* --- Figures ------------------------------------------------------------ */

.figure {
  margin: 2.1rem 0;
}

.figure img {
  width: 100%;
  border-radius: 0;
}

/* Hero: breaks the text measure for a wider opening plane. */
.figure--hero {
  margin: 1.9rem 0 2.3rem;
}

.figure--bleed,
.figure--inset { margin: 2.6rem 0; }

/* --- Ledger (key facts, rules only — no box) ---------------------------- */

.ledger {
  margin: 2.6rem 0 2.2rem;
}

.ledger__title {
  margin: 0 0 0.9rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}

.ledger__list {
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.ledger__row {
  padding: 0.62rem 0;
  border-top: 1px solid var(--rule);
}

.ledger__row:first-child { border-top: 0; }

.ledger__row dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.ledger__row dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

/* --- Tables ------------------------------------------------------------- */

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.9rem 0 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.48;
}

.table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 0.7rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.15rem;
}

.table thead th {
  padding-right: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0.55rem 0.7rem 0.55rem 0;
  border-bottom: 1px solid var(--ink);
  vertical-align: bottom;
}

.table tbody th,
.table tbody td {
  text-align: left;
  padding: 0.72rem 1.15rem 0.72rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.table tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  width: 26%;
}

.table tbody tr:last-child th,
.table tbody tr:last-child td { border-bottom: 1px solid var(--rule-strong); }

.table th:last-child,
.table td:last-child { padding-right: 0; }

/* --- Aside (term checks): hairline, not a box --------------------------- */

.aside {
  margin: 2rem 0;
  padding: 0.15rem 0 0.15rem 1.05rem;
  border-left: 2px solid var(--accent);
}

.aside h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.aside p {
  margin: 0 0 0.6rem;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

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

/* --- Notes -------------------------------------------------------------- */

.note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.62;
  letter-spacing: 0.005em;
  color: var(--muted);
  margin: 0.5rem 0 var(--flow);
  max-width: 34rem;
}

/* --- CTA ---------------------------------------------------------------- */

.cta {
  margin: 2.3rem 0;
}

.btn {
  display: block;
  width: 100%;
  padding: 1.05rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background-color 140ms ease, color 140ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Marks list --------------------------------------------------------- */

.marks {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}

.marks li {
  position: relative;
  padding: 0.66rem 0 0.66rem 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.52;
}

.marks li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

/* --- FAQ ---------------------------------------------------------------- */

.faq { margin-top: 1rem; }

.faq__item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.faq__item:first-of-type { border-top: 1px solid var(--rule); }

.faq__item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.09rem;
}

.faq__item p {
  margin: 0;
  font-size: 0.99rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

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

.footer {
  background: var(--deep);
  color: var(--deep-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.72;
  padding: 2.4rem var(--gutter) 3rem;
}

.footer p {
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto 0.95rem;
  text-wrap: pretty;
}

.footer__lead { color: #fff; }

.footer strong { color: #fff; font-weight: 600; }


/* ==========================================================================
   Part 2 — Account / landing page
   ========================================================================== */

/* --- Site header: wordmark left, account actions right ------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-header__brand img {
  height: 1.65rem;
  width: auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

/* Want the wordmark on the right too? Add the modifier class to the header:
   <header class="site-header site-header--right"> */
.site-header--right { flex-direction: row-reverse; }

/* --- Button sizes and variants (extends .btn from style.css) ----------- */

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Light button for use on the dark banner. */
.btn--light {
  background: var(--deep-ink);
  color: var(--deep);
  border-color: var(--deep-ink);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.banner {
  position: relative;
  display: grid;
  align-content: end;
  min-height: clamp(26rem, 74vw, 42rem);
  background: var(--deep);
  color: var(--deep-ink);
  overflow: hidden;
  isolation: isolate;
}

.banner__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  z-index: -2;
}

/* Vertical scrim: keeps the headline legible wherever the crop lands. */
.banner__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top,
      rgba(10, 11, 14, 0.94) 0%,
      rgba(10, 11, 14, 0.80) 34%,
      rgba(10, 11, 14, 0.38) 64%,
      rgba(10, 11, 14, 0.18) 100%);
}

.banner__inner {
  width: 100%;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(2.4rem, 9vw, 4.4rem) var(--gutter);
}

.banner__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--deep-ink);
  opacity: 0.72;
  margin: 0 0 0.9rem;
}

.banner__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.95rem, 7.4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: #fff;
  margin: 0 0 1rem;
  max-width: 22ch;
  text-wrap: balance;
}

.banner__lead {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 3.9vw, 1.2rem);
  line-height: 1.56;
  color: var(--deep-ink);
  opacity: 0.88;
  margin: 0 0 1.7rem;
  max-width: 46ch;
  text-wrap: pretty;
}

.banner__cta { margin: 0 0 1.1rem; }

.banner__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep-ink);
  opacity: 0.6;
  margin: 0;
}

/* --- Facts ledger under the banner ------------------------------------- */

.facts {
  margin: 0 0 0;
  border-bottom: 1px solid var(--rule);
  max-width: var(--measure-text);
}

.facts__row {
  padding: 0.65rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.97rem;
  line-height: 1.55;
}

.facts__row dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.12rem;
}

.facts__row dd { margin: 0; }

/* ==========================================================================
   Part 3 — Breakpoints
   ========================================================================== */

@media (min-width: 720px) {

  :root {
    --gutter: 2rem;
    --flow: 1.5rem;
  }

  body { font-size: 1.125rem; }

  .article { padding-top: 3rem; }

  .figure--bleed {
    width: calc(100% + var(--gutter) * 2);
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
  }

  .ledger__row {
    display: grid;
    grid-template-columns: 11.5rem 1fr;
    gap: 0 1.5rem;
    padding: 0.7rem 0;
  }

  .ledger__row dt { margin-bottom: 0; padding-top: 0.15rem; }

  .btn {
    display: inline-block;
    width: auto;
    padding: 0.92rem 2.1rem;
  }

  .table { font-size: 1rem; }

  .table tbody th { width: 22%; }

  /* Account pages */
  .site-header { padding: 1rem var(--gutter); }

  .site-header__brand img { height: 1.9rem; }

  .btn--sm { padding: 0.66rem 1.5rem; font-size: 0.94rem; }

  .banner__media { object-position: center; }

  .facts__row {
    display: grid;
    grid-template-columns: 12rem 1fr;
    gap: 0 1.5rem;
  }

  .facts__row dt { margin-bottom: 0; }
}

@media (min-width: 1040px) {

  :root { --gutter: 2.5rem; }

  h1 { font-size: 3.15rem; }

  .figure--hero { margin: 2.4rem 0 2.8rem; }

  .banner { min-height: 40rem; }
}

/* ==========================================================================
   Small screens: tables restack, ledger tightens
   ========================================================================== */

@media (max-width: 639px) {

  .table thead { display: none; }

  .table,
  .table tbody,
  .table tr,
  .table th,
  .table td { display: block; width: auto; }

  .table tbody tr {
    padding: 0.95rem 0 0.85rem;
    border-bottom: 1px solid var(--rule);
  }

  .table tbody tr:last-child { border-bottom: 1px solid var(--rule-strong); }

  .table tbody th {
    padding: 0 0 0.35rem;
    border-bottom: 0;
    font-size: 1.02rem;
  }

  .table tbody td {
    padding: 0.18rem 0;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }

  .table tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.05rem;
  }

  .table tbody td:empty { display: none; }

  .marks li::before { top: 0.72rem; }
}

/* ==========================================================================
   Motion, print, forced colours
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .site-header { position: static; }
}

@media print {
  :root { --paper: #fff; }

  body { font-size: 11pt; }

  .masthead,
  .btn,
  .footer {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  h2 { break-after: avoid; }
  .figure,
  .table,
  .aside,
  .ledger,
  .facts__row { break-inside: avoid; }

  /* Account pages: drop the interactive bits, keep the copy and the facts. */
  .site-header__actions,
  .banner__cta { display: none; }

  .banner {
    min-height: 0;
    color: var(--ink);
    background: none;
  }

  .banner__media,
  .banner__scrim { display: none; }

  .banner__title { color: var(--ink); }

  .banner__eyebrow,
  .banner__lead,
  .banner__meta { color: var(--ink-soft); opacity: 1; }
}

@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .marks li::before { color: CanvasText; }

  .banner__scrim { display: none; }

  .banner__title,
  .banner__eyebrow,
  .banner__lead,
  .banner__meta { color: CanvasText; }
}
