@font-face { font-family: "Ivar Soft"; src: url(/fonts/ivar-soft.woff2) format("woff2"); font-weight: 400; font-display: swap; }

/* One column, warm paper, serif for the voice, sans for the facts. Palette borrows the Dakota sand accent. */
:root {
  color-scheme: light;
  --paper: #FBFBF8;
  --paper-2: #F2F1EC;
  --ink: #1A1A18;
  --ink-2: #55544F;
  --ink-3: #8C8B85;
  --rule: #E6E4DE;
  --sand: #BE7D4A;
  --sand-deep: #94562A;

  --serif: "Ivar Soft", "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #121211; --paper-2: #1C1C1A; --ink: #ECEBE6; --ink-2: #A9A8A2; --ink-3: #75746F; --rule: #2A2A28;
    --sand: #D0915E; --sand-deep: #D9A174;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121211; --paper-2: #1C1C1A; --ink: #ECEBE6; --ink-2: #A9A8A2; --ink-3: #75746F; --rule: #2A2A28;
  --sand: #D0915E; --sand-deep: #D9A174;
}

* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.65 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 4px; }

.page { max-width: 808px; margin: 0 auto; padding: 64px 16px 48px; }
@media (min-width: 720px) { .page { padding: 96px 24px 64px; } }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 72px; }
.name { font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.top nav { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--ink-2); }
.top nav a { transition: color .2s; }
.top nav a:hover { color: var(--ink); }
.theme { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.theme:hover { background: var(--paper-2); color: var(--ink); }
.theme span { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* Intro */
.intro h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 42px); line-height: 1.1; letter-spacing: -.02em;
  margin: 0 0 24px; text-wrap: balance;
}
.intro h1 a { text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: color .2s; }
.intro h1 a:hover { color: var(--sand-deep); }
.intro p { margin: 0; color: var(--ink-2); font-size: 16.5px; max-width: 60ch; }

/* Sections */
.block { margin-top: 72px; }
.block h2 { font: 500 13px/1 var(--sans); color: var(--ink-3); margin: 0 0 12px; letter-spacing: 0; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows > li { border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 20px; padding: 14px 0; align-items: baseline; }
.rows.links .row { margin: 0 -10px; padding: 14px 10px; border-radius: 6px; transition: background .2s; }
.rows.links .row:hover { background: var(--paper-2); }
.rows.links .row .t::after { content: "↗"; margin-left: 6px; color: var(--ink-3); font-size: 12px; transition: color .2s, transform .2s var(--ease); display: inline-block; }
.rows.links .row:hover .t::after { color: var(--sand-deep); transform: translate(1px, -1px); }

.when { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.what { font-weight: 500; }
.what > a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.what > a:hover { text-decoration-color: var(--sand); }
.role { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; margin-top: 2px; }

/* Live dot next to the current role */
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); margin-left: 8px; vertical-align: 2px; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(190,125,74,.45); } 50% { box-shadow: 0 0 0 5px rgba(190,125,74,0); } }

@media (max-width: 520px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .when { order: 2; margin-top: 2px; }
}

/* Footer */
.foot { margin-top: 96px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-3); }
.foot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
