/* paulmeyers.ca v2: clean editorial. One serif (Spectral), one sans (Instrument Sans), white paper, warm grey, one orange. */
:root {
  --paper: #FFFFFF;
  --paper-2: #F3F1EC;
  --ink: #141414;
  --ink-2: #5C5C58;
  --rule: #DDD9D0;
  --accent: #FF6A13;
  --accent-text: #B94400;
  --accent-tint: #FFE1CE;
  --on-ink: #F3F1EC;
  --on-ink-2: #A9A59B;
  --max: 1120px;
  --gutter: 24px;
  --display: 'Spectral', Georgia, 'Times New Roman', serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 18px; } }

::selection { background: var(--accent-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: text-underline-offset 0.18s var(--ease-out), color 0.18s var(--ease-out); }
a:hover { text-underline-offset: 0.3em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.brand:hover { color: var(--accent-text); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-size: 16px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 10px 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.nav a.btn { color: var(--on-ink); text-decoration: none; padding: 11px 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 4px;
  background: var(--ink); color: var(--on-ink);
  font-family: var(--body); font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; border: 1px solid var(--ink); cursor: pointer;
  transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out), transform 0.12s var(--ease-out);
}
.btn:hover { background: #2A2A2A; border-color: #2A2A2A; text-underline-offset: 0.18em; }
.btn:active { transform: scale(0.98); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--paper-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn.accent:hover { background: #FF7D33; border-color: #FF7D33; }

/* Hero */
.hero { padding: 64px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(58px, 8.6vw, 118px); line-height: 0.95; letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}
.mark { width: 64px; height: 4px; background: var(--accent); margin: 30px 0 26px; border-radius: 2px; }
.lede { font-size: clamp(19px, 2.1vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--rule); }
.portrait figcaption { font-size: 14px; color: var(--ink-2); margin-top: 12px; }

/* Sections */
section { padding: 88px 0; border-top: 1px solid var(--rule); }
section.alt { background: var(--paper-2); }
h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 18px; text-wrap: balance;
}
h3 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 10px; }
.intro { font-size: 19px; color: var(--ink-2); max-width: 34em; margin-bottom: 44px; }
.split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 64px; align-items: start; }
.split .head { position: sticky; top: 32px; }
.split .head .intro { margin-bottom: 0; }
.link { color: var(--accent-text); font-weight: 600; text-decoration: underline; }
.link:hover { color: var(--ink); }

/* The record */
.record { margin: 0; border-top: 1px solid var(--rule); }
.record > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.record dt { font-size: 15px; font-weight: 600; color: var(--ink-2); padding-top: 6px; }
.record dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.3; font-variant-numeric: tabular-nums; }
.after { margin-top: 30px; font-size: 17px; }

/* Ventures */
.ventures { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ventures li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.ventures h3 { margin-bottom: 4px; }
.ventures .role { font-size: 15px; color: var(--ink-2); margin: 0 0 12px; }
.ventures p { max-width: 40em; color: var(--ink-2); }
.ventures .domain { font-weight: 600; white-space: nowrap; padding-top: 8px; }

/* Pillars */
.pillars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.pillars li { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 24px; }
.pillars strong { font-size: 19px; font-weight: 600; }
.pillars span { color: var(--ink-2); }
.cta-row { margin-top: 34px; }

/* Results */
.case { max-width: 44em; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 16px; }
.case b { font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.case-note { color: var(--ink-2); max-width: 44em; margin-bottom: 56px; }
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.videos li { display: flex; }
.videos a { flex: 1; display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; transition: border-color 0.18s var(--ease-out); }
.videos a:hover { border-color: var(--ink); }
.videos svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--accent); }
.videos .who { font-weight: 600; display: block; }
.videos .what { font-size: 15px; color: var(--ink-2); display: block; }

/* Contact */
.contact-lines { list-style: none; margin: 0 0 34px; padding: 0; }
.contact-lines li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.contact-lines li:first-child { border-top: 1px solid var(--rule); }
.contact-lines .k { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.contact-lines .v { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.01em; line-height: 1.25; }
.contact-lines .v a { text-decoration: none; }
.contact-lines .v a:hover { text-decoration: underline; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.socials a { font-weight: 500; }

/* Footer */
footer { background: var(--ink); color: var(--on-ink); padding: 56px 0 40px; }
.brands { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.brands a { font-weight: 600; text-decoration: none; display: block; }
.brands a:hover { color: var(--accent); text-decoration: underline; }
.brands span { display: block; font-size: 15px; color: var(--on-ink-2); margin-top: 4px; }
.foot-line { border-top: 1px solid rgba(243, 241, 236, 0.18); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 15px; color: var(--on-ink-2); }
.foot-line a { color: var(--on-ink); }

/* About page (Read mode) */
.page-head { padding: 64px 0 40px; }
.page-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -0.03em; margin: 0 0 20px; text-wrap: balance; }
.page-head .meta { color: var(--ink-2); font-size: 16px; }
.prose { max-width: 68ch; }
.prose p { font-size: 18px; line-height: 1.65; }
@media (min-width: 900px) { .prose p { font-size: 19px; } }
.about section { padding: 56px 0; }
.about .prose + .prose { margin-top: 24px; }
.facts { margin: 0; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 15px; font-weight: 600; color: var(--ink-2); padding-top: 3px; }
.facts dd { margin: 0; font-size: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: step; }
.timeline li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.timeline .when { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.timeline .what { color: var(--ink-2); max-width: 56ch; }
.timeline .what strong { color: var(--ink); }
.web { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.web li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.web .k { font-size: 15px; font-weight: 600; color: var(--ink-2); padding-top: 3px; }
.web a { font-weight: 500; }
.web span.d { display: block; font-size: 15px; color: var(--ink-2); }

/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost h1 { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.03em; line-height: 1; margin: 0 0 16px; }

/* One authored moment: the first viewport settles on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero .settle { animation: settle 0.7s var(--ease-out) both; }
  .hero .settle:nth-child(2) { animation-delay: 0.08s; }
  @keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Responsive */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split .head { position: static; }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: clamp(56px, 15vw, 84px); }
  .portrait img { aspect-ratio: 1 / 1; object-position: center 15%; }
  section { padding: 64px 0; }
  .videos { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top .wrap { flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  .nav ul { gap: 18px; justify-content: flex-start; }
  .nav a { padding: 8px 0; }
  .record > div, .pillars li, .timeline li, .facts > div, .web li, .contact-lines li { grid-template-columns: 1fr; gap: 4px; }
  .record dt { padding-top: 0; }
  .ventures li { grid-template-columns: 1fr; gap: 10px; }
  .ventures .domain { padding-top: 0; }
  .brands { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}
