/* ==========================================================================
   Goggles & Windchimes — house stylesheet
   One system, two weathers. Goggles = the workshop. Windchimes = the world.
   No external requests: no webfonts, no CDNs, no trackers. Runs under a
   strict 'self' CSP.
   ========================================================================== */

:root {
  /* --- ink ------------------------------------------------------------- */
  --ink-900: #090E15;
  --ink-800: #0D141D;
  --ink-700: #131C27;
  --ink-600: #1B2735;
  --ink-500: #263548;

  /* --- the two accents -------------------------------------------------- */
  --brass:      #D9A441;   /* goggles — workshop, comedy, machinery */
  --brass-dim:  #A87C2C;
  --verdigris:  #6FAE9C;   /* windchimes — myth, ecology, quiet */
  --verdigris-dim: #4A7D6F;

  /* --- paper ------------------------------------------------------------ */
  --paper:  #EFE9DC;
  --muted:  #9AA6B4;
  --faint:  #6B7887;

  --rule: rgba(239, 233, 220, 0.12);
  --rule-strong: rgba(239, 233, 220, 0.24);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --measure: 34rem;
  --wide: 68rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

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

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

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

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------------------------------------------------------------- a11y */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--ink-900);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 100;
}
.skip:focus { left: 0; }

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

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

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

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }

section { padding-block: clamp(3rem, 7vw, 5.5rem); }
section + section { border-top: 1px solid var(--rule); }

/* ---------------------------------------------------------------- type */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem); }

p { margin: 0; }
p + p { margin-top: 1.1em; }

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--paper); }

strong { color: #fff; font-weight: 650; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.02rem + 0.62vw, 1.5rem);
  line-height: 1.5;
  color: #DED7C8;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin: 0 0 1rem;
}

.eyebrow--brass { color: var(--brass); }

.dek { color: var(--muted); }

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 14, 21, 0.88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--paper); }
.logo__amp { color: var(--brass); font-style: italic; }
.logo__mark { flex: none; }

.nav {
  margin-left: auto;
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--paper); border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--verdigris); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-block: clamp(4rem, 11vw, 8.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 78% at 12% 0%, rgba(217, 164, 65, 0.14), transparent 60%),
    radial-gradient(52% 70% at 92% 8%, rgba(111, 174, 156, 0.13), transparent 62%);
  pointer-events: none;
}

.hero > * { position: relative; }

.hero__title { max-width: 18ch; }
.hero__lede { max-width: 46ch; margin-top: 1.5rem; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}
.btn:hover { background: #EBBB5C; color: var(--ink-900); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { background: rgba(239,233,220,0.07); color: var(--paper); border-color: var(--paper); }

.btn[aria-disabled="true"] {
  background: transparent;
  border-color: var(--rule);
  color: var(--faint);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------------------------------------------------------------- status */

.status {
  display: inline-flex;
  align-self: start;      /* don't stretch to the card's full width */
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 2px;
  border: 1px solid currentColor;
}
.status--live   { color: var(--verdigris); }
.status--soon   { color: var(--brass); }
.status--dev    { color: var(--muted); }
.status--out    { color: var(--verdigris); }

.status::before {
  content: "";
  width: 0.42rem; height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
}

/* ---------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin-top: 2.5rem;
}

/* Even pairs — avoids a lone orphan card on a wide screen. */
@media (min-width: 46rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.6rem;
  background: var(--ink-800);
  border: 1px solid var(--rule);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
a.card:hover {
  border-color: var(--rule-strong);
  background: var(--ink-700);
  transform: translateY(-2px);
  color: inherit;
}

.card__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.card__dek { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.card__meta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  letter-spacing: 0.03em;
}

/* accent edge, alternating the two weathers */
.card--brass { border-top: 2px solid var(--brass-dim); }
.card--verdigris { border-top: 2px solid var(--verdigris-dim); }

/* ---------------------------------------------------------------- facts */

.facts {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  border-top: 1px solid var(--rule);
}
.facts > li {
  padding: 1.15rem 1.25rem 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt, .facts .facts__k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.3rem;
}
.facts dd, .facts .facts__v {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--paper);
}

/* ---------------------------------------------------------------- notice */

.notice {
  margin-top: 2.5rem;
  padding: 1.1rem 1.35rem;
  background: var(--ink-800);
  border-left: 2px solid var(--brass-dim);
  border-radius: 0 3px 3px 0;
  font-size: 0.93rem;
  color: var(--muted);
}
.notice strong { color: var(--paper); }

/* ---------------------------------------------------------------- placeholder */

.slot {
  display: grid;
  place-items: center;
  min-height: 13rem;
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--rule-strong);
  border-radius: 3px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent, transparent 9px,
      rgba(239,233,220,0.022) 9px, rgba(239,233,220,0.022) 18px
    );
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
}

.slot-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2rem;
}

@media (min-width: 46rem) {
  .slot-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------- lists */

.stack { list-style: none; padding: 0; margin: 2rem 0 0; }
.stack > li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.stack > li:first-child { border-top: 1px solid var(--rule); }
.stack__k { font-family: var(--serif); font-size: 1.1rem; flex: 0 0 12rem; }
.stack__v { color: var(--muted); flex: 1 1 16rem; font-size: 0.95rem; }

.ticks { padding-left: 1.1rem; margin: 1.5rem 0 0; color: var(--muted); }
.ticks li { margin-bottom: 0.6rem; padding-left: 0.35rem; }
.ticks li::marker { color: var(--verdigris); }

/* ---------------------------------------------------------------- footer */

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 3.25rem 4rem;
  background: var(--ink-800);
  font-size: 0.875rem;
  color: var(--faint);
}
.foot__grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.foot h2 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 0.45rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--paper); text-decoration: underline; }
.foot__legal {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- misc */

.rule { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--ink-700);
  padding: 0.12em 0.4em;
  border-radius: 2px;
  color: var(--verdigris);
}

blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--verdigris-dim);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.55;
  color: #DED7C8;
}

.center { text-align: center; }

/* ---------------------------------------------------------------- utilities
   Replace former inline style="" attributes, which a default-src 'self' CSP blocks. */
.hero__title--badged { margin-top: 1.25rem; }
.hero__note { margin-top: 1.25rem; font-size: 0.875rem; color: var(--faint); }
.facts .facts__v--sm { font-size: 0.92rem; }
.fineprint { font-size: 0.85rem; color: var(--faint); margin-top: 1.75rem; }
