/* Nexus landing page — KWL Brand Guide (June 2026, v1.0).
 *
 * Ratios: white ≈60% (ground), black ≈30% (type), KWL Green ≈10% (accent).
 * Type: Arial family. Corners square-ish: the logo letterforms are angular.
 * KWL Green's hex is misprinted as #000000 in the guide; #49A942 is the value
 * from its RGB (73 169 66). Dark Spruce is the accessible green for link text.
 */

:root {
  --kwl-white: #ffffff;
  --kwl-black: #000000;
  --kwl-green: #49a942;
  --kwl-dark-spruce: #245520;
  --kwl-pacific-blue: #36aec3;
  --kwl-blue-slate: #495c6a;

  --gutter: clamp(1rem, 4vw, 3.5rem);
}

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

html { height: 100%; }

body {
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--kwl-white);
  color: var(--kwl-black);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Texture — one set of contour lines (Blue Slate, secondary palette) whose
 * summit sits under the logo, rings radiating out and fading toward the
 * hero. Under the guide's <5% allowance for supporting graphics; the slash
 * stays the only strong accent. The SVG's summit is at 30%/30% of its box,
 * so the layer is offset by 0.3 × its size from the logo's centre. */
:root {
  --contour-size: clamp(52rem, 95vw, 110rem);
  --logo-w: clamp(96px, 9vw, 140px);
}
body::before {
  content: "";
  position: fixed;
  width: var(--contour-size);
  height: var(--contour-size);
  left: calc(var(--gutter) + var(--logo-w) / 2 - 0.3 * var(--contour-size));
  top:  calc(var(--gutter) + var(--logo-w) * 0.275 - 0.3 * var(--contour-size));
  background: url("../img/brand/contours.svg") no-repeat center / contain;
  opacity: 0.32;
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 22%, transparent 70%);
          mask-image: radial-gradient(circle at 30% 30%, #000 22%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--kwl-dark-spruce);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid var(--kwl-pacific-blue);
  outline-offset: 3px;
}

/* Header — primary logo, top left, on white (the guide's default placement). */
.site-header {
  padding: var(--gutter) var(--gutter) 0;
}
.logo { display: inline-block; line-height: 0; }
.logo img {
  width: var(--logo-w);
  height: auto;
}

/* Hero — one Forward Slash beside left-aligned text, vertically centred. */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 0.6vw, 0.5rem);
  padding: 2rem var(--gutter);
  max-width: 64rem;
  width: 100%;
  margin: 0 auto;
}

.slash {
  flex: 0 0 auto;
  height: clamp(9rem, 22vw, 14rem);
  width: auto;
}

.hero-text { flex: 1 1 auto; min-width: 0; }

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.lead {
  margin: 0.75rem 0 0;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  max-width: 28ch;
}

.note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--kwl-blue-slate);
  max-width: 44ch;
}

/* Phones — stack the slash above the text, keep it left-aligned. */
@media (max-width: 560px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.25rem;
  }
  .slash { height: 6rem; }
  .hero-text { flex: 0 0 auto; width: 100%; }
  .lead,
  .note { max-width: 100%; }
  :root { --contour-size: 190vw; }
  body::before { opacity: 0.24; }
}

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 120ms ease; }
}
