/* IBM Plex, self-hosted (D-0142): latin subset, fontsource 5.3.0; see README */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-700-normal.woff2) format("woff2");
}

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

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

/* Palette E -- Charcoal & Signal (dark lockup) */
:root {
  color-scheme: dark;
  --bg: #1a1a1e;
  --heading: #f0eeea;
  --accent: #f08b72;
  --muted: #a8a6a2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--heading);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

a {
  color: var(--accent);
}

a:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

/* --- Hero --- */

.hero {
  text-align: center;
}

.wordmark {
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark .dot {
  color: var(--accent);
}

.credit {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.signal {
  width: 5rem;
  height: 3px;
  margin: 1.5rem auto 0;
  border: none;
  background: var(--accent);
}

.hero .eyebrow {
  margin: 2rem 0 0;
}

.hero h1 {
  max-width: none;
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 1rem auto 0;
}

.hero h1 span {
  display: block;
}

.hero h1 .l2 {
  color: var(--accent);
}

.description,
.body,
.item p,
p.item,
.bio {
  text-wrap: pretty;
}

.description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  max-width: 52ch;
  margin: 1.5rem auto 0;
}

.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
}

.cta:hover {
  opacity: 0.9;
}

/* --- Sections --- */

.section {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(168, 166, 162, 0.2);
}

.section h2,
.closing h2 {
  text-wrap: balance;
}

.section h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  max-width: 30ch;
  margin: 0 0 1.25rem;
}

.body {
  line-height: 1.65;
  max-width: 65ch;
  margin: 0;
}

.stats {
  display: flex;
  gap: 2.5rem;
  margin: 0 0 2rem;
}

.stat p {
  margin: 0;
}

.stat-number {
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1;
  color: var(--heading);
}

.stat .stat-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

.source {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

.source a {
  color: var(--muted);
}

.source a:hover {
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item {
  line-height: 1.6;
  margin: 0;
}

.item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.item p {
  margin: 0;
}

.label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.closing {
  text-align: center;
}

.closing h2,
.closing .body {
  margin-left: auto;
  margin-right: auto;
}

.closing .body {
  max-width: 52ch;
}

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

}

/* --- About --- */

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.about-body {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.founder-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(168, 166, 162, 0.15);
}

.bio {
  line-height: 1.65;
  max-width: 65ch;
  margin: 0 0 0.75rem;
}

.about h2 {
  max-width: 46ch;
}

.name-note {
  max-width: 65ch;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.linkedin {
  font-size: 0.9rem;
  text-decoration: none;
}

.linkedin:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  main,
  footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* 0.12em wraps the hero eyebrow at 375px (measured against the
     IBM Plex Mono metrics: ~372px in a 343px box); 0.05em fits with
     ~8px to spare. */
  .eyebrow {
    letter-spacing: 0.05em;
  }

  .about-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Long paragraphs read better left-aligned on a phone; the photo,
     headings and CTA stay centered. */
  .bio,
  .name-note,
  .closing .body {
    text-align: left;
  }

  .linkedin {
    display: block;
    text-align: left;
  }

  .stats {
    gap: 2rem;
  }
}

/* --- Legal pages (privacy, terms) --- */

.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  line-height: 1.7;
}

.legal h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.legal .updated {
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 2.5rem;
}

.legal h2 {
  font-size: 1.05rem;
  margin: 2rem 0 0.5rem;
}

.legal .back {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.legal .back:hover {
  text-decoration: underline;
}

/* --- Footer --- */

footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

footer p {
  margin: 0.4rem 0;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--accent);
}
