/* bobcorrigan.com — shared system: tokens, type, frame, nav, footer */
@font-face {
  font-family: 'Big Shoulders';
  src: url('/assets/fonts/big-shoulders-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #f2f1f6;
  --card: #ffffff;
  --ink: #17153b;
  --soft: #4d4a72;
  --rule: #d8d5e6;
  --violet: #6a4fe0;
  --lilac: #b9aef2;
  --teal: #0c8f8a;
  --teal-ink: #08706c;
  --tang: #f2762e;
  --tang-ink: #b84d0e;
  --butter: #f4ce5e;
  --display: 'Big Shoulders', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
}

html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }

/* ── Frame: one top bar that turns the corner into a short rail ── */
.frame { max-width: var(--wrap); margin: 0 auto; padding: var(--gut) var(--gut) 0; }
.topbar {
  display: flex;
  align-items: center;
  gap: 4px 6px;
  min-height: 56px;
  padding: 6px 10px 6px 26px;
  background: var(--ink);
  color: #fff;
  border-radius: 34px 28px 28px 0;
  font-size: 15px;
  font-weight: 500;
}
.topbar.solo { border-radius: 28px; }
.topbar a { text-decoration: none; color: inherit; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: 10px; font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.brand svg { width: 22px; height: 22px; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 99px; }
.nav a:hover, .nav a[aria-current] { background: rgba(255, 255, 255, 0.14); color: #fff; }
.nav .push { margin-left: auto; }
.nav a.pdga { background: var(--tang); color: var(--ink); font-weight: 700; padding: 8px 16px; }
.nav a.pdga:hover { background: var(--butter); color: var(--ink); }
.topbar :focus-visible { outline-color: var(--butter); }

@media (max-width: 900px) { .nav .wide { display: none; } .nav a.pdga { margin-left: auto; } }
@media (max-width: 760px) {
  .topbar, .topbar.solo { flex-wrap: wrap; gap: 2px 6px; padding: 9px 9px 8px 20px; border-radius: 26px 22px 22px 0; font-size: 14px; }
  .topbar.solo { border-radius: 24px; }
  .topbar::before { content: ''; order: 3; flex-basis: 100%; height: 0; }
  .brand { order: 0; margin-right: auto; font-size: 20px; }
  .brand-t { display: none; }
  .nav { display: contents; }
  .nav .wide { display: inline; }
  .nav a { order: 4; padding: 7px 9px; white-space: nowrap; }
  .nav a:first-child { margin-left: -9px; }
  .nav a.push { order: 1; margin-left: auto; }
  .nav a.pdga { order: 2; margin-left: 0; padding: 6px 12px; }
}

/* ── Section heads ── */
.sec { padding-top: clamp(56px, 8vw, 96px); }
.sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 32px; margin-bottom: 26px; }
.sec-h h2 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5.4vw, 60px); line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; }
.sec-h h2::before { content: ''; display: block; width: 76px; height: 12px; margin-bottom: 16px; border-radius: 99px; background: var(--cap, var(--violet)); }
.sec-h p { max-width: 36rem; color: var(--soft); font-size: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px;
  border: 0; border-radius: 99px;
  background: var(--ink); color: #fff;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: background 0.15s ease;
}
.btn:hover { background: var(--violet); color: #fff; }
.btn.violet { background: var(--violet); }
.btn.violet:hover { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* ── Footer ── */
.foot { margin-top: clamp(64px, 9vw, 110px); background: var(--ink); color: #fff; }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 40px; max-width: var(--wrap); margin: 0 auto; padding: 34px var(--gut) 38px; font-size: 15px; }
.foot-in p:first-child { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: #fff; }
.foot a:hover { color: var(--butter); }
.foot .copy { width: 100%; color: #b7b3da; font-size: 13.5px; }
.foot :focus-visible { outline-color: var(--butter); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ── Text pages (About, Found my disc, 404) ── */
.page { max-width: 46rem; padding: clamp(36px, 6vw, 72px) 0 0; }
.page h1 { font-family: var(--display); font-weight: 800; font-size: clamp(46px, 7.6vw, 88px); line-height: 0.92; text-transform: uppercase; }
.page h1::before { content: ''; display: block; width: 76px; height: 12px; margin-bottom: 18px; border-radius: 99px; background: var(--cap, var(--violet)); }
.page .lede { margin-top: 16px; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--soft); }
.page h2 { margin: 52px 0 6px; padding-top: 14px; border-top: 3px solid var(--ink); font-size: 22px; font-weight: 700; }
.page p { margin-top: 16px; }
.page .note { font-size: 15px; color: var(--soft); }
.page .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.qa > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.qa dt { font-weight: 600; }
.qa dd { color: var(--soft); }
.sites { list-style: none; }
.sites li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.sites a { font-weight: 600; }
.sites span { color: var(--soft); }
@media (max-width: 620px) { .qa > div, .sites li { grid-template-columns: 1fr; } }
