/* Present Day: one quiet column of sections on a cool near-white (or near-black) ground,
   hairline rules instead of boxes, and one accent, DOS cyan grown up. */
:root {
  --bg: #f6f7f7;
  --ink: #0c0e0f;
  --muted: #687075;
  --line: #dfe3e4;
  --accent: #008f8f;
  --hover: #eceff0;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0c;
    --ink: #eceeee;
    --muted: #8b9396;
    --line: #1f2427;
    --accent: #36d6d6;
    --hover: #14181a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.present {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  animation: arrive 0.5s ease-out both;
}
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.present { animation: none; } }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* top bar */
.bar, .foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-inline: var(--gutter);
  max-width: 1200px; margin: 0 auto;
}
.bar { padding-block: 22px; }
.mark { font-weight: 600; letter-spacing: -0.01em; }
.past {
  font: 500 13px/1 var(--mono); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  transition: color 0.15s, border-color 0.15s;
}
.past:hover { color: var(--accent); border-color: var(--accent); }

main { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

/* hero */
.hero { padding-block: clamp(56px, 14vw, 160px) clamp(48px, 9vw, 112px); }
.eyebrow {
  margin: 0 0 20px; font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  margin: 0; font-weight: 500; font-size: clamp(2.75rem, 10vw, 7.5rem); line-height: 0.95; letter-spacing: -0.045em;
  text-wrap: balance; overflow-wrap: anywhere;
}
.lede { margin: 28px 0 0; max-width: 34ch; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.45; color: var(--muted); text-wrap: pretty; }

/* sections */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  column-gap: clamp(24px, 4vw, 56px); row-gap: 56px;
  padding-bottom: 96px;
}
.card { min-width: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.card h2, .latest h2 {
  margin: 0 0 14px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance;
}
.card h2 a:hover { color: var(--accent); }
.text h3 { margin: 18px 0 4px; font-size: 0.95rem; font-weight: 600; }
.text h3:first-child { margin-top: 0; }
.text p { margin: 0 0 12px; color: var(--muted); max-width: 60ch; }

.links { list-style: none; margin: 0; padding: 0; }
.links li { border-bottom: 1px solid var(--line); }
.links li:last-child { border-bottom: 0; }
.links a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 8px; margin-inline: -8px; border-radius: 6px; transition: background 0.15s, color 0.15s;
}
.links a:hover { background: var(--hover); color: var(--accent); }
.links .note { padding: 11px 0; }
.links .note p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.arrow { color: var(--muted); transition: transform 0.15s, color 0.15s; }
a:hover .arrow { transform: translateX(3px); color: var(--accent); }
@media (prefers-reduced-motion: reduce) { a:hover .arrow { transform: none; } }

/* post lists */
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { border-bottom: 1px solid var(--line); }
.posts a {
  display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 10px 8px; margin-inline: -8px; border-radius: 6px; transition: background 0.15s;
}
.posts a:hover { background: var(--hover); }
.posts a:hover span { color: var(--accent); }
.posts time { font: 400 13px/1.4 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.posts span { min-width: 0; }
.more { display: inline-block; margin-top: 12px; font: 500 13px/1 var(--mono); color: var(--muted); }
.more:hover { color: var(--accent); }
.muted { color: var(--muted); }

/* contact form */
.contact { display: grid; gap: 14px; margin-top: 18px; }
.contact .field { display: grid; gap: 6px; }
.contact label { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact input, .contact textarea {
  width: 100%; min-width: 0; font: 400 16px/1.5 var(--font); color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  transition: border-color 0.15s;
}
.contact textarea { resize: vertical; min-height: 7.5em; }
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--accent); }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact .actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contact button {
  font: 500 15px/1 var(--font); color: var(--bg); background: var(--ink);
  border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; transition: background 0.15s;
}
.contact button:hover { background: var(--accent); }
.contact button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.contact button:disabled { opacity: 0.6; cursor: progress; }
.contact .status { margin: 0; font-size: 0.95rem; color: var(--muted); min-width: 0; }
.contact .status.error { color: var(--ink); font-weight: 500; }
.contact .status.error::before { content: "! "; color: var(--accent); }

.latest { border-top: 1px solid var(--ink); padding-top: 20px; padding-bottom: 96px; max-width: 760px; }
.latest h2 { font-size: 0.8rem; font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

.foot { padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 520px) {
  .posts a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
