/* ============================================================
   kaicowger.com — one page, no scripts, no tracking.
   Type on paper. Nothing else.
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Public Sans";
  src: url("assets/fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --paper: #faf6ec;
  --ink: #191a2c;
  --ink-soft: #474a63;
  --ink-faint: #6b6e86;
  --line: #e0d6c0;
  --underline: #c9bda0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14151f;
    --ink: #f1eee6;
    --ink-soft: #c0c2d4;
    --ink-faint: #8f93ab;
    --line: #33364a;
    --underline: #4a4d68;
  }
}

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

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.24vw, 1.13rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration-color: var(--underline); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.page {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(3.5rem, 12vh, 7rem) 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ---------- Hero ---------- */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.hero__lede {
  margin-top: 0.9rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 36ch;
  text-wrap: pretty;
}

/* ---------- Inner pages (writing) ---------- */
.crumb {
  font-size: 0.9em;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}
.crumb a { color: inherit; }
.crumb a:hover { color: var(--ink); }

.hero .hero__title--inner {
  font-size: clamp(1.7rem, 1.5rem + 1vw, 2.4rem);
}

.poem {
  white-space: pre-line;
  line-height: 1.75;
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.16rem);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ---------- Project list ---------- */
.projects { border-top: 1px solid var(--line); }

.project {
  display: block;
  padding: 1.6rem 0 1.7rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.project h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--underline);
  text-underline-offset: 4px;
}
.project:hover h2 {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ink);
}
.project p {
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.97em;
  max-width: 56ch;
  text-wrap: pretty;
}

.projects__more {
  padding: 1.3rem 0 0.2rem;
  color: var(--ink-faint);
  font-size: 0.92em;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  color: var(--ink-faint);
  font-size: 0.9em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
}
