/* paulstrimble.com — see DESIGN.md before changing anything here.
   D1: this is the entire design layer. Hand-written, never generated.
   D8: Geist Mono is texture — labels, ordinals, metadata. Never body copy.
   D10: the interface is achromatic. All colour comes from photography. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --paper:  #ffffff;
  --panel:  #f6f6f7;
  --ink:    #0e0e10;
  --ink-2:  #3a3a3e;
  --muted:  #86868c;
  --faint:  #b6b6bc;
  --rule:   #e6e6e9;
  --rule-2: #f1f1f3;
  --live:   #3f9e5f;

  --sidebar: 15.5rem;
  --gutter: 2.75rem;
  --reading: 37rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15.5px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.prose a, .lede a, .card p a, .entry-summary a {
  text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: .2em;
}
.prose a:hover { text-decoration-color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }

/* D7 — every interactive element keeps a visible focus ring. */
a:focus-visible, button:focus-visible, audio:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: .5rem; z-index: 20;
  padding: .5rem .75rem; background: var(--ink); color: var(--paper);
}
.skip-link:focus { left: .5rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================ SIDEBAR */

.site-header {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 10;
  border-right: 1px solid var(--rule); background: var(--paper);
}
.site-nav { display: flex; flex-direction: column; height: 100%; padding: 1.6rem 1.4rem; gap: 2rem; }

.brand { font-size: .95rem; font-weight: 600; letter-spacing: -0.018em; line-height: 1.2; }

.nav-links { counter-reset: navcount; display: flex; flex-direction: column; }
.nav-links a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .42rem 0; border-bottom: 1px solid var(--rule-2);
  color: var(--muted); font-size: .875rem;
}
.nav-links a::after {
  content: counter(navcount, decimal-leading-zero); counter-increment: navcount;
  color: var(--faint); font-family: var(--mono); font-size: .6rem;
}
.nav-links a:hover { color: var(--ink); }
.tools-link { color: var(--ink); font-weight: 500; }
.tools-link::after { content: "\2192"; font-size: .7rem; color: var(--muted); }
.login-label { display: none; }

.availability {
  display: flex; align-items: center; gap: .5rem; margin: auto 0 0;
  color: var(--muted); font-family: var(--mono); font-size: .64rem;
}
.availability .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent);
}

/* ============================================================ MAIN */

.site-main {
  min-height: 100vh; margin-left: var(--sidebar);
  padding: 3.4rem var(--gutter) 6rem;
  counter-reset: sect;
}
.site-main.narrow, .prose-page { max-width: calc(var(--reading) + var(--gutter) * 2); }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
h1 { margin: 0 0 1.2rem; font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.25rem, 2.3vw, 1.7rem); letter-spacing: -0.024em; }
h3 { font-size: 1.02rem; font-weight: 550; letter-spacing: -0.018em; }
p { margin: 0 0 1.1rem; }

.hero {
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 3.5rem; align-items: start; max-width: 58rem; padding: 0 0 1.6rem;
}
.hero-text { max-width: 34rem; }
.hero h1 { max-width: 30ch; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.1; }

/* D6 — the portrait is load-bearing. It is the only warmth on a cool page,
   and it is what turns "interesting" into "I should contact him". */
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--panel); }

.eyebrow {
  margin-bottom: 1.4rem; color: var(--muted); font-family: var(--mono);
  font-size: .655rem; letter-spacing: .06em; text-transform: uppercase;
}
.lede, .entry-summary, .page-heading > p:last-child {
  max-width: 34rem; color: var(--ink-2); font-size: 1.02rem; line-height: 1.6;
}
.entry-header, .page-heading { max-width: var(--reading); margin-bottom: 2.6rem; }
.entry-header h1, .page-heading h1 { margin-bottom: .9rem; font-size: clamp(1.9rem, 4vw, 2.9rem); }

.badge {
  display: inline-block; margin-left: .6rem; color: var(--muted);
  font-family: var(--mono); font-size: .6rem; letter-spacing: .02em; vertical-align: .3em;
}
.badge::before { content: "["; }
.badge::after { content: "]"; }

/* ============================================================ SPEC SHEET */

.spec-sheet {
  max-width: var(--reading); margin: 0 0 3rem; padding: .3rem 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.spec-sheet dl { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); margin: 0; }
.spec-sheet dt, .spec-sheet dd {
  margin: 0; padding: .42rem 0; border-bottom: 1px solid var(--rule-2);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .01em;
}
.spec-sheet dt { color: var(--muted); text-transform: uppercase; }
.spec-sheet dd { color: var(--ink-2); }
.spec-sheet dl > :nth-last-child(-n+2) { border-bottom: 0; }
.spec-sheet dd a { border-bottom: 1px solid var(--rule); }
.spec-sheet dd a:hover { border-color: var(--ink); color: var(--ink); }

/* ============================================================ SECTIONS */

.section { margin-top: 4.2rem; }
.section::before {
  content: "(" counter(sect, decimal-leading-zero) ")"; counter-increment: sect;
  color: var(--faint); font-family: var(--mono); font-size: .655rem;
}
.section-heading {
  margin: .5rem 0 1.6rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule);
  font-size: 1.02rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
}

/* ============================================================ CARDS & LISTS */

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 1.6rem; }
.card h3 { margin: 0 0 .3rem; font-size: 1rem; }
.card p { margin-bottom: .5rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.access-panel { border: 1px solid var(--rule); background: var(--panel); padding: 1.4rem; }

.meta { color: var(--muted); font-family: var(--mono); font-size: .655rem; letter-spacing: .02em; text-transform: uppercase; }

.entry-list { border-top: 1px solid var(--rule); }
.list-item {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.6rem;
  align-items: baseline; padding: 1.05rem 0; border-bottom: 1px solid var(--rule-2);
}
.list-item:hover { background: var(--panel); }
.list-item h2, .list-item h3 { margin: 0 0 .2rem; font-size: 1rem; font-weight: 500; }
.list-item p { margin-bottom: .3rem; color: var(--muted); font-size: .875rem; }

.tag { display: inline-block; color: var(--muted); font-family: var(--mono); font-size: .62rem; letter-spacing: .02em; text-transform: uppercase; }
.tag::before { content: "\25AA\00A0"; color: var(--faint); }

.button {
  display: inline-block; padding: .6rem 1.1rem; background: var(--ink); color: var(--paper);
  font-size: .82rem; font-weight: 500; letter-spacing: -0.01em;
}
.button:hover { opacity: .85; }

/* ============================================================ PROSE */

.prose { max-width: var(--reading); }
.prose p { color: var(--ink-2); font-size: 1rem; line-height: 1.75; }
.prose h2 { margin: 2.8rem 0 .7rem; font-size: 1.2rem; color: var(--ink); }
.prose h3 { margin-top: 2rem; }
.prose ul { counter-reset: li; padding-left: 0; list-style: none; }
.prose ul li { position: relative; margin-bottom: .45rem; padding-left: 1.5rem; color: var(--ink-2); }
.prose ul li::before {
  content: counter(li, decimal-leading-zero); counter-increment: li;
  position: absolute; left: 0; top: .12rem;
  color: var(--faint); font-family: var(--mono); font-size: .62rem;
}
.prose ol { padding-left: 1.4rem; }
.prose ol li { margin-bottom: .45rem; color: var(--ink-2); }
.prose code {
  padding: .05rem .3rem; border: 1px solid var(--rule); background: var(--panel);
  font-family: var(--mono); font-size: .85em;
}
.prose blockquote {
  margin: 1.6rem 0; padding-left: 1.2rem; border-left: 1px solid var(--rule); color: var(--muted);
}

/* ============================================================ TIMELINE */

.timeline { max-width: var(--reading); }
.timeline-entry { padding: 0 0 1.8rem 1.4rem; border-left: 1px solid var(--rule); }
.timeline-entry:last-child { padding-bottom: 0; }
.timeline-entry h3 { margin: .1rem 0 .5rem; }
.timeline-entry .prose > :last-child { margin-bottom: 0; }
.month { margin-top: 3rem; }
.month > h2 { padding-bottom: .8rem; border-bottom: 1px solid var(--rule); }

/* ============================================================ PHOTOGRAPHY
   The one place the interface gets out of the way entirely. Frames run the
   full width of the content column; page furniture stays quiet around them. */

.frame-grid { display: flex; flex-direction: column; gap: 3.5rem; margin-top: 1rem; max-width: 62rem; }
.frame { margin: 0; }
.frame img { width: 100%; background: var(--panel); }
.frame figcaption { margin-top: .7rem; text-transform: none; letter-spacing: .01em; }

/* ============================================================ MUSIC */

.release {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem;
  align-items: end; margin: 0 0 2.6rem; max-width: var(--reading);
}
.release .cover { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--panel); border: 1px solid var(--rule); }
.release .player { width: 100%; }

.link-list { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.link-list a { padding-bottom: .1rem; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: .72rem; }
.link-list a:hover { border-color: var(--ink); }

/* ============================================================ FOOTER */

.site-footer {
  margin: 5rem 0 0 var(--sidebar); padding: 1.4rem var(--gutter) 3rem;
  border-top: 1px solid var(--rule); color: var(--muted);
  font-family: var(--mono); font-size: .655rem; letter-spacing: .02em;
}
.theme-links a { margin-right: .7rem; border-bottom: 1px solid var(--rule); }
.theme-links a:hover { border-color: var(--ink); color: var(--ink); }
.copyright { margin-top: 1rem; color: var(--faint); }

/* ============================================================ RESPONSIVE */

@media (max-width: 900px) {
  .site-header { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--rule); }
  .site-nav { padding: 1.1rem 1.15rem; gap: 1rem; }
  .nav-links { flex-direction: row; flex-wrap: wrap; gap: .3rem 1rem; }
  .nav-links a { padding: .1rem 0; border-bottom: 0; font-size: .82rem; }
  .nav-links a::after { display: none; }
  .availability { margin: .2rem 0 0; }
  .site-main, .site-footer { margin-left: 0; padding-left: 1.15rem; padding-right: 1.15rem; }
  .site-main { padding-top: 2rem; }
  .hero { grid-template-columns: 1fr; gap: 1.8rem; padding-bottom: .5rem; }
  .portrait { max-width: 14rem; }
  .card-grid { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: 1fr; gap: .2rem; }
  .spec-sheet dl { grid-template-columns: 7rem minmax(0, 1fr); }
  .release { grid-template-columns: 1fr; gap: 1rem; align-items: start; }
  .release .cover { max-width: 13rem; }
  .frame-grid { gap: 2.2rem; }
}

/* D7 — nothing animates for anyone who asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
