/* WaveMining — one-page company site.
   Tokens are the Broadsheet design system's; only the steps this page uses are
   carried over. Retune here, never inline. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;              /* variable file — covers 400 and 600 */
  font-display: swap;
  src: url("/assets/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #f3f2f2;
  --color-text: #201e1d;
  --color-accent: #0088b0;
  --color-accent-2: #d6006c;
  --color-accent-600: #1186ac;
  --color-accent-700: #006786;
  --color-process-yellow: #edbb00;

  --font-heading: "Source Serif 4", system-ui, serif;
  --font-heading-weight: 600;
  --font-body: "Source Serif 4", system-ui, serif;

  --space-1: 5px;
  --space-2: 10px;
  --space-3: 15px;
  --space-4: 20px;
  --space-6: 30px;
  --space-8: 40px;

  --radius-sm: 1px;

  --gutter: clamp(20px, 5vw, 64px);
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
}

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

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* ---- Frame ------------------------------------------------------------- */

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.masthead { padding: var(--space-4) var(--gutter); }

.wordmark {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 18px;
  letter-spacing: -0.01em;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--gutter) var(--space-8);
}

.layout {
  width: 100%;
  max-width: 1200px;
  /* Lets the flex item shrink under the grid's min-content floor, so a long
     word can never push the page into sideways scroll. */
  min-width: 0;
  display: grid;
  /* auto-fit collapses to a single column under ~840px */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(30px, 6vw, 96px);
  align-items: center;
}

/* ---- Ballot ------------------------------------------------------------ */

.ballot {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ballot-line {
  display: flex;
  gap: 0.55em;
  align-items: baseline;
  font-size: clamp(23px, 2.6vw, 34px);
  line-height: 1.4;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: -6px;            /* keeps the glyph optically flush left */
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
}

.ballot-line:hover {
  background: color-mix(in srgb, var(--color-accent) 7%, transparent);
}

.box { font-variant-emoji: text; }

.headline {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  margin: var(--space-8) 0 0;
  font-size: clamp(42px, 4.8vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.answer {
  margin: var(--space-4) 0 0;
  font-size: clamp(17px, 1.5vw, 20px);
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* ---- Figure ------------------------------------------------------------ */

.figure {
  margin: 0;
  aspect-ratio: 4 / 3;
}

.figure picture,
.figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Reveal ------------------------------------------------------------ */

.colophon {
  padding: var(--space-3) var(--gutter) var(--space-4);
  font-size: 16px;
}

.reveal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.reveal.is-revealed {
  opacity: 1;
  pointer-events: auto;
}

.reveal a { color: var(--color-accent-700); }
.reveal a:hover { color: var(--color-accent); }

/* The footer never carries information the visitor needs, so holding it
   still for reduced-motion costs nothing. */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: 0.01ms; }
}
