/* Make Wavs guides: editorial surface extending the main site's tokens.
   Brand tokens lifted verbatim from ../styles.css so the two never drift.
   Deliberately calmer than the cinematic homepage: this surface exists to be
   read, so no scroll hijack, no pinned sections, no parallax. */

:root {
  --bg: #050608;
  --bg-raised: #0b1119;
  --bg-sunk: #080d14;
  --ink: #f2f4f6;
  --dim: #97a0a8;
  --dimmer: #6b7780;
  --line: #1a242e;
  --accent: #4db8ff;

  --display: 'Archivo Black', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --measure: 68ch;
  --gutter: 7vw;
}

* { box-sizing: border-box; }

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(77, 184, 255, 0.28); }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
}

.nav-back {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.25s;
}

.nav-back:hover { color: var(--accent); }

/* -------------------------------------------------------------- shell */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.reading {
  max-width: var(--measure);
}

/* --------------------------------------------------------- hub header */

.hub-head {
  padding: 5.5rem 0 3.6rem;
  border-bottom: 1px solid var(--line);
}

.hub-head h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  max-width: 22ch;
}

.hub-head p {
  color: var(--dim);
  font-size: 1.125rem;
  max-width: 56ch;
  margin: 0;
}

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

.guide-list {
  padding: 4.5rem 0 6rem;
  display: grid;
  gap: 1.25rem;
  /* 3 guides, 3 cells: one featured full-width, two paired beneath. */
  grid-template-columns: repeat(2, 1fr);
}

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2.1rem 2rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.guide-card:hover {
  border-color: rgba(77, 184, 255, 0.42);
  background: #0d141d;
  transform: translateY(-3px);
}

.guide-card:active { transform: translateY(-1px); }

.guide-card.featured {
  grid-column: 1 / -1;
  padding: 3rem 2.6rem 2.8rem;
  background:
    radial-gradient(120% 140% at 88% 0%, rgba(77, 184, 255, 0.11), transparent 58%),
    var(--bg-raised);
}

.guide-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem;
  max-width: 26ch;
}

.guide-card.featured h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  max-width: 20ch;
}

.guide-card p {
  color: var(--dim);
  font-size: 0.98rem;
  margin: 0 0 1.6rem;
  max-width: 52ch;
}

.guide-card .who {
  margin-top: auto;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dimmer);
}

.guide-card .go {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 0.7rem;
}

/* ------------------------------------------------------- article page */

.article-head {
  padding: 5.5rem 0 2.6rem;
}

.article-head h1 {
  font-family: var(--display);
  font-size: clamp(1.95rem, 4vw, 2.95rem);
  line-height: 1.13;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 20ch;
}

.standfirst {
  color: var(--dim);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 54ch;
  margin: 0;
}

.article-meta {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dimmer);
}

article { padding-bottom: 4rem; }

article h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin: 3.4rem 0 1.1rem;
  max-width: 24ch;
}

article h3 {
  font-size: 1.13rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 2.3rem 0 0.7rem;
  color: var(--ink);
}

article p {
  margin: 0 0 1.3rem;
  color: #d3dce3;
}

article strong { color: var(--ink); font-weight: 600; }

article a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 184, 255, 0.32);
  transition: border-color 0.25s;
}

article a:hover { border-bottom-color: var(--accent); }

article ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: #d3dce3;
}

article li { margin-bottom: 0.6rem; }

article li::marker { color: var(--accent); }

/* Pull-out for the one thing a skimmer should take away. */
.keypoint {
  margin: 2.6rem 0;
  padding: 1.6rem 1.8rem;
  background: var(--bg-sunk);
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
}

.keypoint p {
  margin: 0;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.6;
}

/* Honest-limits block. Used where a claim needs a boundary drawn around it. */
.caveat {
  margin: 2.4rem 0;
  padding: 1.5rem 1.7rem;
  background: rgba(255, 180, 84, 0.05);
  border: 1px solid rgba(255, 180, 84, 0.22);
  border-radius: 10px;
}

.caveat p { margin: 0; color: #e4d4bd; font-size: 0.97rem; }
.caveat p + p { margin-top: 0.8rem; }

.caveat .caveat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #ffb454;
  margin-bottom: 0.7rem;
}

/* ------------------------------------------------------------ end CTA */

.end-cta {
  margin-top: 4rem;
  padding: 3rem 2.4rem;
  background:
    radial-gradient(100% 130% at 12% 0%, rgba(77, 184, 255, 0.1), transparent 60%),
    var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.end-cta h2 {
  margin: 0 0 0.9rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.end-cta p {
  color: var(--dim);
  margin: 0 0 1.8rem;
  max-width: 48ch;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  background: var(--accent);
  color: #04121d;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.25s, transform 0.2s;
}

.btn:hover { background: #6fc6ff; }
.btn:active { transform: translateY(1px); }

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

.foot {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 3.4rem;
  margin-top: 5rem;
  font-size: 0.8rem;
  color: var(--dimmer);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  align-items: center;
}

.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* ------------------------------------------------------------- motion */
/* MOTION_INTENSITY 4: entry reveal only, driven by IntersectionObserver.
   No scroll listeners, no pinning. Collapses to static under reduced motion. */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .guide-card { transition: border-color 0.25s; }
  .guide-card:hover { transform: none; }
}

/* --------------------------------------------------------- responsive */

@media (max-width: 760px) {
  :root { --gutter: 6vw; }

  body { font-size: 1.02rem; }

  .guide-list {
    grid-template-columns: 1fr;
    padding: 3rem 0 4rem;
  }

  .guide-card,
  .guide-card.featured { padding: 1.9rem 1.6rem 1.7rem; }

  .hub-head { padding: 4.5rem 0 3rem; }
  .article-head { padding: 4rem 0 2.2rem; }

  .end-cta { padding: 2.2rem 1.6rem; }

  .keypoint, .caveat { padding: 1.3rem 1.4rem; }
}
