/* X89 — Chrome Mirage — base.css — reset, typography, layout container, grid utilities, focus styles, long-form prose, and the .plate / .well surface primitives. */

/* ---- reset --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* nav height + breathing room, so anchor targets clear the sticky bar */
  scroll-padding-top: 96px;
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul[class], ol[class] { list-style: none; padding: 0; }

body {
  min-height: 100vh;
  background: var(--graphite);
  color: var(--chrome-hi);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* the ground itself is brushed metal */
  background-image: var(--brushed);
  background-attachment: fixed;
  /* no page-level horizontal scroll, ever */
  overflow-x: hidden;
}

img, picture, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

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

svg { fill: currentColor; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; height: 1px; background: var(--hairline); }

::selection { background: var(--flare); color: var(--on-flare); }

/* ---- focus --------------------------------------------------------------- */

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--iris-4);
  outline-offset: 3px;
  border-radius: inherit;
}

/* Skip link — visible the moment it takes focus */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 999;
  padding: var(--s-3) var(--s-5);
  background: var(--plate-2);
  color: var(--chrome-hi);
  border-radius: var(--r-sm);
  box-shadow: var(--bevel), var(--lift);
  transition: top var(--d-fast) var(--e-seat);
}
.skip-link:focus-visible { top: var(--s-4); }

/* ---- typography ---------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: var(--wd-display);
  letter-spacing: var(--tr-display);
  line-height: 1.08;
  color: var(--chrome-hi);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.22; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; }

p { text-wrap: pretty; }

strong, b { font-weight: 600; color: var(--chrome-hi); }

small { font-size: var(--fs-xs); }

/* Kicker / eyebrow — mono, uppercase, wide. Decorative-weight colour. */
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  font-weight: 500;
  letter-spacing: var(--tr-kicker);
  text-transform: uppercase;
  color: var(--chrome-mid);
}

/* Section title: uppercase machined grotesque */
.section-title {
  text-transform: uppercase;
  letter-spacing: var(--tr-caps);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--chrome-mid);
  max-width: 60ch;
}

/* The single permitted iridescent gradient headline per page.
   Solid colour is declared first as the fallback. */
.iris-text {
  color: var(--iris-1);
  background: var(--iris-rim);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .iris-text { -webkit-text-fill-color: currentColor; }
}

/* ---- layout -------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

/* Alternating recessed band */
.section--band { background: var(--graphite-2); }

/* Hairline seam joining two bands: iridescent in the centre only */
.seam {
  height: 1px;
  border: 0;
  background: var(--seam);
  opacity: .8;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
  max-width: 62ch;
}

.section-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

/* 12-column grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

/* Mobile-first: everything is full width until it earns a span */
.grid > * { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .col-3  { grid-column: span 3; }
  .col-4  { grid-column: span 4; }
  .col-5  { grid-column: span 5; }
  .col-6  { grid-column: span 6; }
  .col-7  { grid-column: span 7; }
  .col-8  { grid-column: span 8; }
  .col-9  { grid-column: span 9; }
  .col-12 { grid-column: span 12; }
}

.stack   { display: flex; flex-direction: column; gap: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

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

/* Surface primitives — the whole system is built from these two. */

/* A raised, solid, machined plate. Bright top edge, dark bottom edge. */
.plate {
  position: relative;
  background-color: var(--plate);
  background-image: var(--brushed);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--bevel), var(--lift);
}

/* Milled *into* the surface: inverted bevel over the groove colour. */
.well {
  position: relative;
  background-color: var(--groove);
  background-image: var(--brushed);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-input);
  box-shadow: var(--bevel-in);
}

/* Chamfered plate — a 14px 45° cut on two opposite corners.
   Used only on the hero panel and the countdown module. */
.chamfer {
  clip-path: polygon(
    var(--chamfer) 0, 100% 0,
    100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%,
    0 100%, 0 var(--chamfer)
  );
  border-radius: 0;
}

/* Long-form prose — the SEO and legal pages. */

.prose {
  max-width: var(--measure);
  color: var(--chrome-mid);
}

.prose > * + * { margin-top: var(--s-5); }

.prose h2 {
  margin-top: var(--s-8);
  text-transform: uppercase;
  letter-spacing: var(--tr-caps);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}
.prose h3 {
  margin-top: var(--s-7);
  color: var(--chrome-hi);
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

.prose p { color: var(--chrome-mid); }
.prose a {
  color: var(--iris-1);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--d-fast) var(--e-seat);
}
.prose a:hover { color: var(--iris-4); }

.prose ul, .prose ol { padding-left: 1.25em; color: var(--chrome-mid); }
.prose li + li { margin-top: var(--s-2); }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li {
  position: relative;
  padding-left: 1.5em;
}
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--iris-1);
  transform: rotate(45deg);
}
.prose ol { list-style: decimal; }
.prose ol::marker { color: var(--iris-1); }

.prose blockquote {
  padding: var(--s-4) var(--s-5);
  border-left: 2px solid var(--iris-1);
  background: var(--graphite-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--chrome-mid);
}

.prose code {
  font-family: var(--font-mono);
  font-size: .875em;
  padding: .15em .4em;
  background: var(--groove);
  border: 1px solid var(--hairline-2);
  border-radius: 4px;
  color: var(--iris-1);
}

/* Wide content must scroll in its own container, never the page */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ---- spacing utilities --------------------------------------------------- */
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
