/* Spur Power: single-page site. IBM Plex is self-hosted (OFL, see fonts/OFL.txt). */

@font-face {
  font-family: "Plex Sans";
  src: url("/fonts/plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("/fonts/plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f5f3ed;
  --text: #191a17;
  --muted: #5b5a53;
  --rule: #dcd8cd;
  --line: #bdb8aa;
  --accent: #2e5a44;
  --accent-strong: #1f4232;

  --sans: "Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 5vw, 3rem);
  --measure: 36rem;
  --label-col: 11rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, p { margin: 0; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transition: color 120ms ease, text-decoration-color 120ms ease;
}
a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 7vw, 5rem);
}

/* Header */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  /* letter-spacing adds trailing space; pull it back so the mark sits flush */
  margin-right: -0.22em;
}
.wordmark:hover { color: var(--text); }

.header-link {
  font-size: 0.875rem;
  text-decoration: none;
}
.header-link:hover { text-decoration: underline; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem);
}

h1 {
  font-weight: 500;
  font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 13ch;
  text-wrap: balance;
}

.lede {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 32rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}


.network {
  display: none;
  width: 100%;
  max-width: 28rem;
  height: auto;
  justify-self: end;
  overflow: visible;
}
.net-lines path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.25;
  stroke-linecap: square;
  vector-effect: non-scaling-stroke;
}
.net-spur {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.net-nodes circle {
  fill: var(--bg);
  stroke: var(--line);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.net-end { fill: var(--accent); }

@media (min-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(16rem, 28rem); gap: 4rem; }
  .network { display: block; }
}

/* Editorial rows */

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.row:last-child { border-bottom: 1px solid var(--rule); }

.label {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.6rem; /* aligns with first line of body copy */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.content { max-width: var(--measure); }
.content a { white-space: nowrap; }
.content p + p { margin-top: 0.75rem; }
.content p:has(> a:only-child) + p:has(> a:only-child) { margin-top: 0.375rem; }

.email {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  overflow-wrap: anywhere;
}

@media (min-width: 40rem) {
  .row {
    grid-template-columns: var(--label-col) minmax(0, 1fr);
    gap: 2rem;
  }
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
