/* Colors come from the koi pond: night water, cream, koi orange, lily-pad green. */
:root {
  color-scheme: dark;
  --water: #070b12;
  --panel: rgba(8, 14, 23, 0.92);
  --ink: #e6e0d2;
  --muted: #9aa7b0;
  --line: #18384b;
  --koi: #ee8a52;
  --pad: #7dbb92;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--water); }

body {
  margin: 0;
  color: var(--ink);
  font: 18px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#pond {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 100vh;
  min-height: 100dvh;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
}

.chip {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.name { font-weight: 700; color: var(--ink); text-decoration: none; }
.hint { color: var(--muted); }

main { display: flex; flex-direction: column; gap: 1.25rem; }

h1 {
  font-size: clamp(1.9rem, 7.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0.25rem 0 0.75rem;
  text-wrap: balance;
}

h1 em { font-style: normal; color: var(--koi); }

.lede { font-size: 1.1rem; color: var(--muted); margin: 0; }

h2 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.project + .project {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.project .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.3rem;
}

h3 { font-size: 1.15rem; margin: 0; }

.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--pad);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.project p { color: var(--muted); font-size: 1rem; }

a { color: var(--koi); text-underline-offset: 0.18em; }

a:focus-visible {
  outline: 2px solid var(--koi);
  outline-offset: 3px;
  border-radius: 3px;
}

footer {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  justify-content: space-between;
  padding: 0.8rem 1.4rem;
}

/* Privacy page */
.page h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); }
.page h2 { margin: 2rem 0 0.6rem; }
.page .updated { color: var(--muted); font-size: 0.95rem; }
