/* Tokens: periwinkle morning in light mode, indigo night in dark mode.
   Lamp yellow is the only accent; it marks the next-app cursor, focus and hover. */
:root {
  --bg: #E8EAFB;
  --ink: #1C1F4A;
  --muted: #565A8C;
  --line: #C5C9F0;
  --lamp: #FFC940;
  --lamp-on-bg: #8A5B00; /* lamp hue dark enough to read on the light background */

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 46rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15173A;
    --ink: #ECEDFF;
    --muted: #A3A7DB;
    --line: #2E3166;
    --lamp-on-bg: #FFC940;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--muted);
}
a:hover { text-decoration-color: var(--lamp-on-bg); text-decoration-thickness: 0.14em; }
a:focus-visible {
  outline: 3px solid var(--lamp-on-bg);
  outline-offset: 3px;
  border-radius: 2px;
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 8rem) 1.5rem 4rem;
}

/* Intro: the name is the hero, set as large as the screen allows. */
.intro h1 {
  font-size: clamp(3.25rem, 15vw, 8.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.intro p {
  margin-top: 2rem;
  max-width: 34rem;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--muted);
}

section { margin-top: clamp(4rem, 10vh, 7rem); }

h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

/* App rows: a list, not cards. Status sits on the right on wide screens. */
.app {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 2rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.app h3 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.app-body p {
  margin-top: 0.45rem;
  max-width: 32rem;
  color: var(--muted);
}
.status {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}
.status::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.5em;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--ink);
  vertical-align: 0.02em;
}
.app[data-status="wip"] .status { color: var(--muted); }
.app[data-status="wip"] .status::before { background: transparent; border-color: var(--muted); }

/* The empty slot: the one place the page allows itself a joke. */
.app-next {
  display: block;
  margin-top: 1.6rem;
  padding: 1.6rem 1.4rem;
  border: 2px dashed var(--line);
  border-radius: 14px;
}
.app-next p {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--muted);
}
.cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.95em;
  margin-left: 0.18em;
  background: var(--lamp);
  vertical-align: -0.1em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.outro {
  margin-top: clamp(4rem, 10vh, 7rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 1rem;
  color: var(--muted);
}
.outro a { color: var(--ink); }

@media (max-width: 34rem) {
  .app { grid-template-columns: 1fr; }
  .app h3, .app-next p { font-size: 1.6rem; }
  .intro p { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
