/* griffinkatz.co — single shared stylesheet. No frameworks, no JS required. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --ink-2: #2c3a4f;
  --muted: #5b6678;
  --line: #e4e0d6;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #e5f1ef;
  --link: #0b5f58;
  --radius: 14px;
  --maxw: 780px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c131e;
    --surface: #121b29;
    --ink: #e9eef5;
    --ink-2: #c5cfdc;
    --muted: #94a3b8;
    --line: #223047;
    --accent: #2dd4bf;
    --accent-ink: #052a26;
    --accent-soft: #0f2c2a;
    --link: #5eead4;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--link); text-decoration: underline; }

/* Hero */
.hero { padding: 56px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 168px 1fr; gap: 32px; align-items: center; }
.portrait {
  width: 168px; height: 168px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait .monogram { font-family: var(--serif); font-size: 3.4rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 6vw, 3.1rem); margin: 0 0 4px; }
.credentials { margin: 0 0 14px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; font-size: 0.95rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Facts strip */
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 0.9rem; color: var(--ink-2); }
.facts strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }

/* Sections */
main section { padding: 28px 0; border-top: 1px solid var(--line); }
main section:first-of-type { border-top: 0; }
h2 { font-size: 1.6rem; margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 0 0 4px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 12px; }
.card .meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.card p:last-child { margin-bottom: 0; }

.roles { list-style: none; padding: 0; margin: 0; }
.roles li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.roles li:last-child { border-bottom: 0; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--accent-soft); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 0.9rem; }

.pubs { list-style: none; padding: 0; margin: 0; }
.pubs li { margin: 0 0 16px; padding-left: 14px; border-left: 3px solid var(--accent-soft); }
.pubs .title { font-weight: 600; }

dl.creds { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.creds dt { font-weight: 600; }
dl.creds dd { margin: 0; color: var(--ink-2); }

.bio-box { position: relative; }
.copy-btn {
  position: absolute; top: 12px; right: 12px; font: 600 0.8rem var(--sans); padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer;
}
.copy-btn:hover { border-color: var(--accent); }
.bio-box p { padding-right: 70px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 20px; font-size: 0.9rem; color: var(--muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 10px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .portrait { width: 120px; height: 120px; }
  .portrait .monogram { font-size: 2.5rem; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  dl.creds { grid-template-columns: 1fr; }
  dl.creds dd { margin-bottom: 8px; }
}
@media print {
  .site-header .nav, .actions, .copy-btn { display: none; }
  body { background: #fff; color: #000; }
}
