/*
  joeperreault.com design system. No frameworks, no external requests, no web fonts.
  Palette: warm cream, deep ink, gold from the gold-mustache avatar.
  Colors live on :root. The dark set appears twice (system dark, and the
  data-theme="dark" toggle). Keep the two copies matched.
*/

/* ================= Tokens ================= */
:root {
  color-scheme: light;
  --bg: #F6F1E7;
  --bg-tint: #EFE7D8;
  --surface: #FFFCF6;
  --surface-2: #F3ECDF;
  --text: #14181B;
  --muted: #565049;
  --line: rgba(20, 24, 27, 0.10);
  --line-strong: rgba(20, 24, 27, 0.24);
  --field-border: #8C8578;
  --gold: #C8902E;
  --gold-hover: #B98226;
  --gold-ink: #7A5414;
  --gold-soft: #F1E2C2;
  --on-gold: #14181B;
  --ink-card: #14181B;
  --ink-card-text: #F6F1E7;
  --ink-card-muted: #CFC7B8;
  --ink-card-line: rgba(246, 241, 231, 0.14);
  --nav-bg: rgba(255, 252, 246, 0.80);
  --focus: #14181B;
  --placeholder-bg: #FFE9A8;
  --placeholder-text: #4A3500;
  --shadow-sm: 0 1px 2px rgba(20, 24, 27, 0.05), 0 4px 14px -6px rgba(20, 24, 27, 0.10);
  --shadow: 0 1px 2px rgba(20, 24, 27, 0.05), 0 14px 34px -14px rgba(20, 24, 27, 0.22);
  --shadow-lg: 0 2px 6px rgba(20, 24, 27, 0.06), 0 30px 60px -24px rgba(20, 24, 27, 0.30);

  --font-head: "Avenir Next", Avenir, "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 0.75rem;
  --r: 1.25rem;
  --r-lg: 1.75rem;
  --r-xl: 2rem;
  --pill: 999px;
  --max: 70rem;
  --measure: 42rem;
  --gutter: 1rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F1214;
    --bg-tint: #14181B;
    --surface: #171B1F;
    --surface-2: #1E2328;
    --text: #F6F1E7;
    --muted: #B8B0A2;
    --line: rgba(246, 241, 231, 0.10);
    --line-strong: rgba(246, 241, 231, 0.24);
    --field-border: #7A7468;
    --gold: #D9A441;
    --gold-hover: #E5B355;
    --gold-ink: #E3B65F;
    --gold-soft: #2A2214;
    --on-gold: #14181B;
    --ink-card: #1E2328;
    --ink-card-text: #F6F1E7;
    --ink-card-muted: #C2BAAB;
    --ink-card-line: rgba(227, 182, 95, 0.30);
    --nav-bg: rgba(23, 27, 31, 0.80);
    --focus: #E3B65F;
    --placeholder-bg: #3A2F12;
    --placeholder-text: #FFE2A0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 14px -6px rgba(0, 0, 0, 0.45);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 34px -14px rgba(0, 0, 0, 0.60);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.40), 0 30px 60px -24px rgba(0, 0, 0, 0.70);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1214;
  --bg-tint: #14181B;
  --surface: #171B1F;
  --surface-2: #1E2328;
  --text: #F6F1E7;
  --muted: #B8B0A2;
  --line: rgba(246, 241, 231, 0.10);
  --line-strong: rgba(246, 241, 231, 0.24);
  --field-border: #7A7468;
  --gold: #D9A441;
  --gold-hover: #E5B355;
  --gold-ink: #E3B65F;
  --gold-soft: #2A2214;
  --on-gold: #14181B;
  --ink-card: #1E2328;
  --ink-card-text: #F6F1E7;
  --ink-card-muted: #C2BAAB;
  --ink-card-line: rgba(227, 182, 95, 0.30);
  --nav-bg: rgba(23, 27, 31, 0.80);
  --focus: #E3B65F;
  --placeholder-bg: #3A2F12;
  --placeholder-text: #FFE2A0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 14px -6px rgba(0, 0, 0, 0.45);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 34px -14px rgba(0, 0, 0, 0.60);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.40), 0 30px 60px -24px rgba(0, 0, 0, 0.70);
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}

img, svg { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

a { color: var(--gold-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible,
.pill-link:focus-visible, .site-nav a:focus-visible { border-radius: var(--pill); }

::selection { background: var(--gold); color: var(--on-gold); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 0.7rem 1.1rem;
  border-radius: var(--pill);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

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

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.55em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); font-weight: 650; }
p, ul, ol { margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 48rem) { :root { --gutter: 1.5rem; } }

.measure { max-width: var(--measure); }
.wrap-narrow > * { max-width: var(--measure); }

/* ================= Header: floating pill ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem var(--gutter) 0;
}
.nav-pill {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  padding-left: 0.875rem;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}
.is-scrolled .nav-pill { box-shadow: var(--shadow); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; }
.brand-mark .ring { fill: none; stroke: var(--gold); stroke-width: 2; }
.brand-mark .fill { fill: var(--gold-soft); }
.brand-mark text {
  fill: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--gold-soft); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }

/* Theme toggle shows a moon in light mode and a sun in dark mode. */
.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; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.nav-open .menu-toggle .icon-close { display: block; }
.nav-open .menu-toggle .icon-menu { display: none; }

@media (max-width: 47.99rem) {
  /* With JavaScript: links fold into a dropdown under the pill. */
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
  }
  .js .nav-open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { min-height: 48px; padding: 0 1rem; font-size: 1.05rem; }

  /* Without JavaScript: the pill becomes a rounded card and the links wrap. */
  html:not(.js) .nav-pill { flex-wrap: wrap; border-radius: var(--r-lg); padding: 0.5rem 0.75rem; }
  html:not(.js) .site-nav { width: 100%; }
}
@media (max-width: 22rem) {
  .brand-name { font-size: 0.95rem; }
}

/* ================= Buttons, chips, pills ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font: inherit;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-hover); color: var(--on-gold); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--text); }
.btn-ink { background: var(--text); color: var(--bg); }
.btn-ink:hover { color: var(--bg); transform: translateY(-1px); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  margin-top: 1.25rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 550;
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 16px; height: 16px; color: var(--gold-ink); }

.pill-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.pill-links li { margin: 0; }
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--text);
  font-weight: 550;
  font-size: 0.975rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.pill-link svg { width: 18px; height: 18px; color: var(--gold-ink); }
.pill-link:hover { color: var(--text); border-color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.kicker::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.lede {
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  min-height: 44px;
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ================= Main layout ================= */
main { flex: 1 0 auto; }
main:focus { outline: none; }

.section { padding: clamp(3rem, 8vw, 5.5rem) 0 0; }
.section:last-child { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.75rem;
}
.section-head h2 { margin: 0; }
.section-head .lede { margin: 0.6rem 0 0; font-size: 1.05rem; }

/* ================= Hero ================= */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(1rem, 3vw, 2rem); }
.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 8.5vw, 5rem); margin-bottom: 0.35em; }
.hero .lede { margin-bottom: 0; }
.hero-photo { order: -1; width: min(11.5rem, 48vw); }
@media (min-width: 52rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 4rem; }
  .hero-photo { order: 0; width: 100%; max-width: 22rem; justify-self: end; }
}

/* Photo slot. The monogram sits underneath; the image covers it once loaded. */
.photo-wrap { position: relative; }
.photo-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 46%;
  aspect-ratio: 1;
  right: -0.6rem;
  top: -0.6rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0.55;
}
.photo-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}
.js .photo-frame img { opacity: 0; transition: opacity 0.6s var(--ease); }
.js .photo-frame.has-photo img { opacity: 1; }
.monogram { position: absolute; inset: 0; width: 100%; height: 100%; }
.monogram .bg { fill: var(--surface-2); }
.monogram .halo { fill: var(--gold-soft); }
.monogram .ring { fill: none; stroke: var(--gold); stroke-width: 5; }
.monogram .ring-thin { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0.5; }
.monogram text {
  fill: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 84px;
  letter-spacing: 2px;
}

/* ================= Cards and bento ================= */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  margin: 0;
  min-width: 0;
}
.card h3 { margin: 0 0 0.45em; }
.card p { color: var(--muted); }
.card > :last-child { margin-bottom: 0; }
.card-lift { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.card-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--pill);
  background: var(--gold-soft);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.card-ink {
  background: var(--ink-card);
  color: var(--ink-card-text);
  border-color: var(--ink-card-line);
}
.card-ink p { color: var(--ink-card-muted); }
.card-ink a { color: #E3B65F; }
.card-ink a:hover { color: var(--ink-card-text); }
.card-ink .btn-primary, .card-ink .btn-primary:hover { color: var(--on-gold); }
.card-ink .card-label { background: rgba(227, 182, 95, 0.16); color: #F1D9A6; }

.card-ink .post-title, .card-ink h2, .card-ink h3 { color: var(--ink-card-text); }
.card-ink .check-list li { color: var(--ink-card-muted); }
.card-ink .check-list strong { color: var(--ink-card-text); }

.card-tint { background: var(--gold-soft); border-color: transparent; }
.card-tint p { color: var(--text); }

/* Decorative rings in a card corner. Pure CSS, no imagery. */
.card-rings { overflow: hidden; }
.card-rings::after {
  content: "";
  position: absolute;
  width: 13rem;
  height: 13rem;
  right: -4.5rem;
  bottom: -4.5rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1.4rem transparent, 0 0 0 calc(1.4rem + 1px) var(--gold);
  opacity: 0.22;
  pointer-events: none;
}
.card-rings > * { position: relative; z-index: 1; }

.bento, .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bento > li, .grid > li { margin: 0; }
@media (min-width: 48rem) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-12 { grid-column: span 12; }
  .grid { gap: 1.25rem; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card-big h3 { font-size: clamp(1.45rem, 3.2vw, 2rem); letter-spacing: -0.025em; }
.card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.card-row > p { margin: 0; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.icon-badge svg { width: 22px; height: 22px; }

/* ================= Signup and forms ================= */
.signup {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 52rem) {
  .signup { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; }
}
.signup h2 { margin-bottom: 0.35em; }

form { margin: 0; }
label { display: block; font-weight: 650; margin-bottom: 0.4rem; font-size: 0.95rem; }
input[type="email"], input[type="text"], textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  min-height: 50px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible, textarea:focus-visible { outline-offset: 2px; border-color: var(--text); }
textarea { min-height: 9rem; resize: vertical; }
.field { margin-bottom: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.6rem; }
.form-row input { border-radius: var(--pill); padding: 0.75rem 1.25rem; }
@media (min-width: 30rem) {
  .form-row { flex-direction: row; }
  .form-row input { flex: 1; min-width: 0; }
}
.hint { font-size: 0.9rem; color: var(--muted); margin: 0.75rem 0 0; }
.card-tint .hint { color: var(--text); }

/* ================= Find me / closing ================= */
.closing {
  text-align: center;
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}
.closing h2 { margin-bottom: 0.4em; }
.closing .lede { margin: 0 auto 1.75rem; }
.closing .pill-links { justify-content: center; }

/* ================= Interior pages ================= */
.page-hero { padding: clamp(2.5rem, 7vw, 5rem) 0 0; }
.page-hero .lede { margin-bottom: 0; }
.page-hero-grid { display: grid; gap: 2rem; align-items: center; }
.page-hero-grid .hero-photo { order: -1; width: min(10rem, 42vw); }
@media (min-width: 52rem) {
  .page-hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 4rem; }
  .page-hero-grid .hero-photo { order: 0; width: 100%; max-width: 18rem; justify-self: end; }
}

.prose { max-width: var(--measure); font-size: 1.125rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li::marker { color: var(--gold); }

.split { display: grid; gap: 1rem; }
@media (min-width: 52rem) {
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: start; }
}

.email-big {
  display: block;
  margin: 0.25rem 0 1.25rem;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 4.6vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg) translateY(-0.2rem);
}

/* Writing index */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.post-list > li { margin: 0; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.topic-tag {
  display: inline-flex;
  padding: 0.1rem 0.6rem;
  border-radius: var(--pill);
  background: var(--gold-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
}
.post-title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.post-title a { color: var(--text); text-decoration: none; }
.post-title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }

/* Article */
.article-head { max-width: var(--measure); padding: clamp(2.5rem, 7vw, 4.5rem) 0 1.5rem; }
.article-head h1 { font-size: clamp(2.2rem, 6.5vw, 3.4rem); }

/* Placeholders: anything Joe must fill or confirm */
.placeholder {
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  border-radius: 6px;
  padding: 0 0.3em;
  font-weight: 650;
}
.notice {
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  border-radius: var(--r);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  max-width: var(--measure);
  margin: 0 0 1.5rem;
}

/* ================= Footer ================= */
.site-footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; }
.footer-brand .brand-mark { width: 26px; height: 26px; }
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
}
.site-footer li { margin: 0; }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--pill);
}
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.site-footer nav a[aria-current="page"] { color: var(--text); }

/* ================= Motion ================= */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .skip-link, .photo-wrap::before { display: none; }
  body { background: #FFFFFF; color: #000000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card { box-shadow: none; }
}

.card + .prose, .prose + .pill-links, .post-list + * { margin-top: 2.5rem; }
.prose + .card, .card + .pill-links { margin-top: 2.5rem; }
@media (min-width: 52rem) { .split-a { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.site-footer ul { margin-left: -0.6rem; }
