/* ============================================================
   Belknap Advisory — shared styles (Swiss Grotesque)
   Used by index.html (landing shingle) and about.html.
   Zero-build: linked via <link rel="stylesheet">.
   ============================================================ */

:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --ink: #111111;
  --muted: #6B6B6B;
  --rule: #E6E6E6;
  --accent: #E5231B;
  --logo-filter: brightness(0);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0E0E0E;
  --ink: #F4F4F4;
  --muted: #9A9A9A;
  --rule: #262626;
  --accent: #FF4A3D;
  --logo-filter: brightness(0) invert(1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--accent); color: #fff; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* Eyebrow label with accent tick */
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.label::before {
  content: '';
  width: 9px; height: 9px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---- Masthead / nav ---- */
header.masthead { padding-top: 36px; }
.masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}
.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a .ext { opacity: 0.7; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---- Hero (landing) ---- */
.hero { padding: 84px 0 28px; }
.hero h1 {
  font-size: clamp(42px, 7.6vw, 84px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 36px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
}
.hero p.lede strong { color: var(--ink); font-weight: 500; }

/* ---- Best work ---- */
.best { padding: 72px 0; }
.best .label { margin-bottom: 30px; }
.best h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 36px;
}
.best h2 .accent { color: var(--accent); }
.worklist { border-top: 1px solid var(--ink); }
.worklist li {
  list-style: none;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.25s ease;
}
.worklist li:hover { padding-left: 10px; }
.worklist li .n {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding-top: 5px;
}
.worklist li .t {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}
.worklist li .d {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* ---- Contact ---- */
.contact { padding: 64px 0 96px; border-top: 1px solid var(--rule); }
.contact h2 {
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 24px;
  max-width: 640px;
}
.contact h2 .accent { color: var(--accent); }
.contact p { color: var(--muted); max-width: 520px; margin-bottom: 36px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--paper); }

/* ---- About: page hero ---- */
.page-hero { padding: 72px 0 8px; }
.page-hero .label { margin-bottom: 26px; }
.page-hero h1 {
  font-size: clamp(38px, 6.4vw, 68px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.page-hero .sub {
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---- About: generic section ---- */
.section { padding: 56px 0; border-top: 1px solid var(--rule); }
.section > .label { margin-bottom: 30px; }

/* ---- About: bio prose ---- */
.bio { max-width: 640px; }
.bio p {
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 22px;
  color: var(--ink);
}
.bio p:last-child { margin-bottom: 0; }
.bio em { font-style: italic; }

/* ---- About: pull quote ---- */
.pullquote {
  margin: 8px 0 0;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  max-width: 680px;
}

/* ---- About: portfolio / logos ---- */
.brand-group + .brand-group { margin-top: 40px; }
.brand-group .label { margin-bottom: 22px; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
.brand-grid.operator { grid-template-columns: repeat(4, 1fr); }
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 66px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.25s ease;
}
a.brand:hover { padding-left: 8px; }
a.brand:hover .brand-name { color: var(--accent); }
a.brand:hover .brand-mark { background: var(--accent); }
.brand-logo {
  height: 26px;
  max-width: min(150px, 100%);
  width: auto;
  object-fit: contain;
  object-position: left center;
  filter: var(--logo-filter);
  opacity: 0.9;
  transition: opacity 0.25s;
}
.brand:hover .brand-logo { opacity: 1; }
.brand-mark {
  width: 8px; height: 8px;
  background: var(--accent);
  flex-shrink: 0;
  transition: background 0.25s;
}
.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}

/* ---- About: podcast (inverted block) ---- */
.podcast {
  background: var(--ink);
  color: var(--paper);
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.podcast .label { color: var(--paper); }
.podcast .label::before { background: var(--accent); }
.podcast h3 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 18px 0 16px;
}
.podcast p {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.podcast .listen {
  color: var(--paper);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.2s;
}
.podcast .listen:hover { color: var(--accent); }
.podcast-aside {
  border-left: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
  padding-left: 32px;
}
.podcast-aside .stat { margin-bottom: 20px; }
.podcast-aside .stat:last-child { margin-bottom: 0; }
.podcast-aside .stat strong {
  display: block;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.podcast-aside .stat span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

/* ---- About: back link ---- */
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.backlink:hover { color: var(--ink); }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--ink);
  padding: 28px 0 52px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
footer .footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); text-decoration: none; margin-left: 22px; transition: color 0.2s; }
footer a:hover { color: var(--ink); }

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .brand-grid, .brand-grid.operator { grid-template-columns: repeat(2, 1fr); }
  .podcast { grid-template-columns: 1fr; gap: 28px; padding: 36px 26px; }
  .podcast-aside {
    border-left: none;
    border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
    padding-left: 0; padding-top: 26px;
  }
}
@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .nav { gap: 14px; }
  .nav a { font-size: 10.5px; letter-spacing: 0.05em; }
  .hero { padding: 52px 0 16px; }
  footer .footer-inner { flex-direction: column; align-items: flex-start; }
  footer a:first-of-type { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
