/* flynnkav.com — homebase
   Layout: one narrow column, a quiet top bar, a big lowercase wordmark,
   and a directory-style list for projects. */
:root {
  --bg: #f1f2ef;        /* cool paper */
  --surface: #e6e8e3;
  --ink: #16181b;
  --muted: #5f6468;
  --line: #cfd3cd;
  --accent: #2f45c4;    /* ultramarine */
  --accent-ink: #ffffff;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Geist", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111315; --surface: #1b1e21; --ink: #e8eae6; --muted: #9aa0a4;
    --line: #2c3034; --accent: #8f9cff; --accent-ink: #0e1020; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111315; --surface: #1b1e21; --ink: #e8eae6; --muted: #9aa0a4;
  --line: #2c3034; --accent: #8f9cff; --accent-ink: #0e1020; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 920px;
  margin: 0 auto;
  padding-block: 20px 24px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* top bar */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.bar a { color: var(--ink); text-decoration: none; }
.bar nav { display: flex; gap: 20px; }
.bar nav a { color: var(--muted); }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--ink); }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

/* home */
.home {
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding-block: 12vh 10vh;
}
.eyebrow {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  letter-spacing: 0.04em; margin: 0;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 16vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.wordmark .dot { color: var(--accent); }
.btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-weight: 500; font-size: 17px;
  color: var(--accent-ink); background: var(--accent);
  text-decoration: none;
  padding: 14px 22px 14px 24px;
  border-radius: 999px;
  transition: transform .18s ease, gap .18s ease;
}
.btn:hover { gap: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn .arrow { font-family: var(--mono); }

/* projects */
.head { padding-block: 9vh 28px; display: grid; gap: 10px; }
.head h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 9vw, 88px); line-height: 0.95;
  letter-spacing: -0.035em; margin: 0;
}
.list { list-style: none; margin: 0 0 8vh; padding: 0; border-top: 1px solid var(--ink); }
.list li { border-bottom: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline; gap: 4px 24px;
  padding-block: 22px;
  color: var(--ink); text-decoration: none;
}
.row .name {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em; line-height: 1.1;
  min-width: 0;
}
.row .where {
  font-family: var(--mono); font-size: 14px; color: var(--muted);
  display: inline-flex; gap: 10px; align-items: baseline; white-space: nowrap;
}
a.row:hover .name { color: var(--accent); }
a.row:hover .where { color: var(--ink); }
.row.pending { cursor: default; }
.row.pending .where { font-style: italic; }

.group { margin-bottom: 6vh; }
.group .list { margin-bottom: 0; }
.group-label {
  font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--muted);
  letter-spacing: 0.04em; margin: 0 0 10px;
}

/* footer */
.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  padding-top: 14px; border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .bar nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
