/* ============================================================
   THE GLASS MELBOURNE — Base + Reset + Primitives (Dark)
   ============================================================ */

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

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

body {
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg { max-width: 100%; display: block; }
img { transition: opacity 0.3s ease; }
img.lazy { opacity: 0; }
img.lazy.loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { img.lazy { opacity: 1; } }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255,255,255,0.55);
  outline-offset: 3px;
  border-radius: 2px;
}

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

::selection { background: rgba(255,255,255,0.15); }

/* ---- Headings ------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

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

.container--narrow {
  max-width: 840px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Text utilities ------------------------------------- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

/* Nuclear reset — no pill/box on any tag or kicker anywhere */
.wire-item-full__tag,
.news-card__kicker,
.feature-card__kicker,
.opinion-item__kicker,
.eyebrow,
.kicker,
[class*="__tag"],
[class*="__kicker"]:not(.plate__kicker) {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70) !important;
}

.meta, .byline-row {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: #9A9690;
}

/* ---- Section glass-line divider ------------------------- */
.section-rule {
  border: 0;
  height: 1px;
  background: var(--glass-line);
  margin-block: var(--space-4);
}

.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--glass-line);
  margin-bottom: var(--space-4);
}
.section-label__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.section-label__more {
  font-size: var(--step--1);
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  letter-spacing: 0.06em;
  transition: color var(--dur) var(--ease);
}
.section-label__more:hover { color: #fff; }
.section-label__more::after { content: " →"; }

/* ---- Accessibility -------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px;
  top: -100px; z-index: 1000;
  background: var(--ink); color: var(--paper);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: var(--step--1); font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---- Reveal on scroll ----------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-reveal].visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
