/* Gold-Web: landing page styles.
 *
 * Reads the Gold UI tokens (assets/tokens.css) and adds only what a web page
 * needs on top: a larger type scale, sections, cards and the footer. Kept flat
 * on purpose: no strong gradients, matching the browser's default theme.
 *
 * No external requests: system fonts, inline SVG, local assets only.
 */

:root {
  /* A page-level scale on top of the shared tokens. */
  --wrap: 1080px;
  --nav-h: 60px;
  --measure: 68ch;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  height: auto;
  min-height: 100%;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text-primary);
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* Skip link ------------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: 20;
  padding: var(--sp-2) var(--sp-4);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-md);
  text-decoration: none;
}

/* Navigation ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--nav-h);
  padding: 0 var(--sp-5);
  background: rgba(3, 3, 3, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}
.nav__brand {
  display: flex;
  align-items: center;
  flex: none;
}
.nav__brand img { height: 22px; width: auto; }
.nav__links {
  display: flex;
  gap: var(--sp-5);
  margin-left: auto;
  font-size: var(--text-chrome);
}
.nav__links a { color: var(--text-secondary); }
.nav__links a:hover { color: var(--text-primary); text-decoration: none; }
.nav__repo {
  flex: none;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: var(--text-chrome);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__repo:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
}

/* Sections -------------------------------------------------------------- */
.section {
  padding: clamp(56px, 9vw, 104px) 0;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.section--alt { background: var(--bg-surface); }

.eyebrow {
  margin: 0 0 var(--sp-3);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section__title {
  margin: 0 0 var(--sp-4);
  max-width: 22ch;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section__lead {
  margin: 0 0 var(--sp-6);
  max-width: var(--measure);
  color: var(--text-secondary);
  font-size: 1.0625rem;
}
.section__note {
  margin: var(--sp-5) 0 0;
  max-width: var(--measure);
  color: var(--text-secondary);
  font-size: var(--text-chrome);
}

/* Hero ------------------------------------------------------------------ */
.hero {
  padding: clamp(64px, 11vw, 132px) 0 clamp(56px, 9vw, 96px);
  border-bottom: 1px solid var(--hairline);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__logo {
  width: min(460px, 82vw);
  height: auto;
  margin-bottom: var(--sp-6);
}
.hero__title {
  margin: 0 0 var(--sp-4);
  max-width: 20ch;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.hero__lead {
  margin: 0 0 var(--sp-6);
  max-width: 60ch;
  color: var(--text-secondary);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}
.hero__note {
  margin: var(--sp-6) 0 0;
  color: var(--text-disabled);
  font-size: var(--text-chrome);
}
.hero__note a { color: var(--text-secondary); }

/* Sneak peek ------------------------------------------------------------ */
.peek {
  width: 100%;
  max-width: 880px;
  margin: var(--sp-7) 0 0;
}
.peek__shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--bg-void);
}
.peek__cap {
  margin: var(--sp-3) 0 0;
  color: var(--text-secondary);
  font-size: var(--text-chrome);
}

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover {
  background: var(--bg-raised);
  border-color: var(--border-strong);
  text-decoration: none;
}
.btn--gold {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--gold:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Cards ----------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.card {
  padding: var(--sp-5);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.card:hover { border-color: var(--border-strong); background: var(--bg-raised); }
.card__title {
  margin: 0 0 var(--sp-3);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}
.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Two-column blocks ----------------------------------------------------- */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
}
.col__title {
  margin: 0 0 var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1rem;
  font-weight: 600;
}
.col__text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: var(--measure);
}

/* Lists ----------------------------------------------------------------- */
ul.ticks,
ul.crosses,
ul.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.ticks li,
ul.crosses li {
  position: relative;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-3);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
ul.plain li {
  margin-bottom: var(--sp-3);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
ul.plain b { color: var(--text-primary); font-weight: 600; }

/* A gold diamond marks "on"; a muted dash marks "what it doesn't claim". */
ul.ticks li::before,
ul.crosses li::before {
  position: absolute;
  left: 0;
  top: 0.55em;
  content: "";
}
ul.ticks li::before {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}
ul.crosses li::before {
  top: 0.95em;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-disabled);
}

/* Pull quote ------------------------------------------------------------ */
.pullquote {
  margin: 0 0 var(--sp-7);
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text-primary);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Swatches -------------------------------------------------------------- */
.swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-3);
  margin: 0 0 var(--sp-7);
  padding: 0;
  list-style: none;
}
.swatch {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--text-xs);
}
.swatch__chip {
  height: 48px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--c);
}
.swatch--key .swatch__chip { border-color: var(--accent); }
.swatch__name { color: var(--text-primary); font-weight: 500; }
.swatch code { color: var(--text-disabled); font-size: var(--text-xs); }

/* Code block ------------------------------------------------------------ */
.code {
  margin: 0;
  padding: var(--sp-5);
  overflow-x: auto;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  line-height: 1.8;
}
.code code {
  color: var(--text-primary);
  font-size: 0.875rem;
  white-space: pre;
}

/* Authors --------------------------------------------------------------- */
.authors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-7);
  margin: 0;
  padding: 0;
  list-style: none;
}
.author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  width: 180px;
  text-align: center;
}
.author__pic {
  display: block;
  width: 112px;
  height: 112px;
  border: 2px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--bg-raised);
  object-fit: cover;
  transition: border-color var(--t-fast) var(--ease);
}
.author:hover .author__pic { border-color: var(--accent); }
.author__name {
  margin: var(--sp-2) 0 0;
  color: var(--text-primary);
  font-size: 1.0625rem;
  font-weight: 600;
}
.author__bio {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Footer ---------------------------------------------------------------- */
.foot {
  padding: var(--sp-7) 0;
}
.foot__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}
.foot__mark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot__gem {
  width: 16px;
  height: 16px;
  flex: none;
  fill: var(--accent);
}
.foot__wordmark {
  height: 20px;
  width: auto;
  flex: none;
}
.foot__sign {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-chrome);
  font-style: italic;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  font-size: var(--text-chrome);
}
.foot__links a { color: var(--text-secondary); }
.foot__links a:hover { color: var(--accent); }
.foot__fine {
  margin: 0;
  max-width: var(--measure);
  color: var(--text-secondary);
  font-size: var(--text-chrome);
}
.foot__fine--dim { color: var(--text-disabled); }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .nav__links { display: none; }
}

@media (max-width: 520px) {
  .swatches { grid-template-columns: repeat(2, 1fr); }
}
