:root {
  --paper: #fafaf9;
  --ink: #0f0f0f;
  --muted: #737370;
  --hairline: #e5e3de;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0e0e;
    --ink: #f4f2ee;
    --muted: #8a8884;
    --hairline: #252320;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern';
}

/* ---------- Layout wrapper ---------- */

header,
main,
footer {
  max-width: 680px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- Header ---------- */

header {
  padding-top: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
}

header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

.tagline {
  margin: 0.75rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* ---------- Main ---------- */

main {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

section { margin-bottom: 3.5rem; }
section:last-of-type { margin-bottom: 0; }

/* Uniform section heading */
section h2 {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Remove any section-specific h2 decorations */
.principles h2::after,
.isnt h2::after { content: none; }

/* Uniform paragraphs */
section p {
  margin: 0 0 1rem;
  font-size: 1rem;
  max-width: 64ch;
}

section p:last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */

.hero h2 {
  font-size: clamp(1.5rem, 3.8vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero .emph {
  font-style: italic;
  font-weight: 500;
  color: inherit;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: balance;
}

/* ---------- Why HOYNK? ---------- */

.why-hoynk {
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
}

/* ---------- Principles ---------- */

.principles article {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  position: static;
}

.principles article:last-child { margin-bottom: 0; }
.principles article::before { content: none; }

.principles h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.principles article p {
  margin: 0;
  color: var(--muted);
}

/* ---------- What HOYNK isn't ---------- */

.isnt p strong {
  color: var(--ink);
  font-weight: 600;
}

.coda p { color: var(--muted); }
.coda p strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */

footer {
  padding-top: 2rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

footer p { margin: 0; }
footer p + p { margin-top: 0.3rem; }

.pronounce em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  header { padding-top: 2rem; padding-bottom: 1.5rem; }
  main { padding-top: 2.25rem; padding-bottom: 1.5rem; }
  section { margin-bottom: 2.75rem; }
}

/* ---------- Print ---------- */

@media print {
  :root {
    --paper: #fff;
    --ink: #000;
    --muted: #333;
    --hairline: #999;
  }

  body {
    font-size: 11pt;
    line-height: 1.45;
  }

  header,
  main,
  footer {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  header {
    padding-top: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #000;
  }

  header h1 {
    font-size: 22pt;
    letter-spacing: 0.1em;
  }

  .tagline { font-size: 8pt; }

  main {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
  }

  section { margin-bottom: 1.5rem; page-break-inside: avoid; }

  section h2 { font-size: 12pt; }

  .hero h2 { font-size: 16pt; line-height: 1.2; }

  .hero .emph { font-style: italic; }

  .principles article { margin-bottom: 0.8rem; page-break-inside: avoid; }

  .principles h3 { font-size: 10.5pt; }

  .isnt p { margin-bottom: 0.6rem; }

  footer {
    padding-top: 0.75rem;
    padding-bottom: 0;
    border-top: 1px solid #000;
    font-size: 8pt;
  }

  a { color: inherit; text-decoration: none; }
}
