/* Shared colors and typography. System fonts keep this site self-contained. */
:root {
  color-scheme: dark;
  --background: #111412;
  --surface: #191e1a;
  --text: #eeeee6;
  --muted: #a8b0a6;
  --accent: #c6dc98;
  --border: #323a31;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: var(--accent); color: var(--background); }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
.page { width: min(1080px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 10px 18px; background: var(--accent); color: var(--background); z-index: 1; }
.skip-link:focus { top: 16px; color: var(--background); }
section { scroll-margin-top: 32px; }

/* Header and introduction. */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; border-bottom: 1px solid var(--border); }
.wordmark { font-size: 19px; font-weight: 700; text-decoration: none; letter-spacing: -0.6px; }
.wordmark span { color: var(--muted); font-weight: 400; }
nav { display: flex; gap: 28px; font-size: 14px; }
nav a { text-decoration: none; color: var(--muted); }
.hero { padding-block: 100px 104px; max-width: 820px; }
.eyebrow, .number, .tags, .principle { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; margin: 0 0 24px; }
h1 { font-size: clamp(48px, 7.5vw, 88px); font-weight: 600; line-height: 1.06; letter-spacing: -4px; margin: 0 0 32px; }
h1 em { font-family: Georgia, "Times New Roman", serif; color: var(--accent); font-weight: 400; }
.intro { font-size: 21px; line-height: 1.6; max-width: 670px; margin: 0 0 20px; }
.hero-note { color: var(--muted); max-width: 570px; margin: 0 0 28px; }
.text-link { display: inline-block; font-size: 14px; font-weight: 600; }
.text-link span { margin-left: 8px; color: var(--accent); }

/* A narrow label column keeps the longer text easy to scan. */
.section-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-block: 56px; border-top: 1px solid var(--border); }
.number { color: var(--accent); font-size: 12px; }
h2 { font-size: 16px; line-height: 1.5; margin: 10px 0 0; font-weight: 500; }
.section-body > p { color: var(--muted); margin: 0 0 20px; }
.section-body > .lead { color: var(--text); font-size: 24px; line-height: 1.45; letter-spacing: -0.4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0; }
.tags li { border: 1px solid var(--border); padding: 5px 10px; border-radius: 4px; font-size: 11px; color: var(--muted); }
.projects { display: grid; gap: 30px; }
.project { padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.project:last-child { padding-bottom: 0; border-bottom: 0; }
.project.featured { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.project .eyebrow { margin-bottom: 12px; font-size: 10px; }
h3 { margin: 0 0 14px; font-size: 25px; font-weight: 500; line-height: 1.3; letter-spacing: -0.5px; }
h3 a { text-decoration: none; }
h3 a span { color: var(--accent); font-size: 20px; }
.project p:not(.eyebrow) { color: var(--muted); margin: 0 0 16px; }
.project > p:last-child { margin-bottom: 0; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin: 0 0 4px 12px; border-radius: 50%; background: var(--accent); }
.principle { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 24px; font-size: 11px; color: var(--accent); }
blockquote { border-left: 2px solid var(--accent); padding-left: 24px; margin: 36px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.5; }
cite { display: block; margin-top: 12px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 12px; font-style: normal; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer a { margin-left: 16px; }

/* Stack the columns on smaller screens. */
@media (max-width: 760px) {
  .page { width: calc(100% - 40px); }
  .site-header { padding-block: 24px; }
  nav { gap: 16px; font-size: 13px; }
  .hero { padding-block: 64px; }
  h1 { letter-spacing: -2.5px; }
  .intro { font-size: 19px; }
  .section-row { grid-template-columns: 1fr; gap: 24px; padding-block: 40px; }
  .section-label { display: flex; align-items: baseline; gap: 14px; }
  h2 { margin: 0; }
  .project.featured { padding: 22px; }
  .site-footer { flex-direction: column; gap: 8px; }
}

@media (max-width: 380px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .site-footer a { display: block; margin: 8px 0 0; }
}
