/*
  joeperreault.com design system. No frameworks, no external requests, no web fonts.
  Black and metallic gold, sampled from Joe's Facebook cover and gold mustache mark.
  DARK is the default. Light (warm cream, same gold) applies when the visitor's
  system prefers light, or when the toggle picks it. The light set appears twice
  (system light, and data-theme="light"). Keep the two copies matched.
*/

/* ================= Tokens (dark default) ================= */
:root {
  color-scheme: dark;
  --bg: #0B0A08;
  --surface: #15130F;
  --surface-2: #1E1B15;
  --text: #F4ECDC;
  --muted: #B9AF9C;
  --line: rgba(227, 173, 62, 0.16);
  --line-strong: rgba(227, 173, 62, 0.38);
  --field-border: #8A7E68;
  --gold: #C18B35;
  --gold-hover: #E3AD3E;
  --gold-ink: #E3AD3E;
  --gold-soft: #241C10;
  --on-gold: #0B0A08;
  --nav-bg: rgba(16, 14, 11, 0.82);
  --focus: #E3AD3E;
  --glow: rgba(227, 173, 62, 0.34);
  --glow-2: rgba(193, 139, 53, 0.12);
  --diag: rgba(227, 173, 62, 0.22);
  --texture: rgba(227, 173, 62, 0.022);
  --grad-text: linear-gradient(100deg, #B07A22 0%, #E3AD3E 22%, #F9EDA2 42%, #C18B35 62%, #EDD785 82%, #A6711C 100%);
  --grad-gold: linear-gradient(135deg, #774908 0%, #C18B35 24%, #EDD785 46%, #A6711C 68%, #E3AD3E 86%, #774908 100%);
  --grad-btn: linear-gradient(180deg, #EDD785 0%, #E3AD3E 30%, #C18B35 70%, #A6711C 100%);
  --grad-rule: linear-gradient(90deg, rgba(119, 73, 8, 0) 0%, #A6711C 14%, #EDD785 50%, #A6711C 86%, rgba(119, 73, 8, 0) 100%);
  --grad-edge: linear-gradient(135deg, rgba(237, 215, 133, 0.55) 0%, rgba(166, 113, 28, 0.30) 35%, rgba(119, 73, 8, 0.18) 60%, rgba(227, 173, 62, 0.50) 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.40), 0 4px 14px -6px rgba(0, 0, 0, 0.50);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.40), 0 14px 34px -14px rgba(0, 0, 0, 0.70), 0 0 24px -8px rgba(227, 173, 62, 0.20);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.45), 0 30px 60px -24px rgba(0, 0, 0, 0.80);

  /* Dark card: stays dark in both themes. */
  --ink-card: #12100D;
  --ink-card-text: #F4ECDC;
  --ink-card-muted: #C4BAA6;
  --ink-card-gold: #E3AD3E;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

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

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #F6F0E3;
    --surface: #FFFBF2;
    --surface-2: #EFE6D3;
    --text: #17140F;
    --muted: #5A5145;
    --line: rgba(119, 73, 8, 0.18);
    --line-strong: rgba(119, 73, 8, 0.40);
    --field-border: #8C7F69;
    --gold: #A6711C;
    --gold-hover: #8A5A12;
    --gold-ink: #774908;
    --gold-soft: #F1E4C6;
    --on-gold: #0B0A08;
    --nav-bg: rgba(255, 251, 242, 0.85);
    --focus: #17140F;
    --glow: rgba(227, 173, 62, 0.42);
    --glow-2: rgba(237, 215, 133, 0.20);
    --diag: rgba(166, 113, 28, 0.28);
    --texture: rgba(119, 73, 8, 0.025);
    --grad-text: linear-gradient(100deg, #5E3A06 0%, #8A5A12 28%, #A6711C 46%, #774908 66%, #8A5A12 84%, #5E3A06 100%);
    --grad-gold: linear-gradient(135deg, #774908 0%, #C18B35 24%, #EDD785 46%, #A6711C 68%, #E3AD3E 86%, #774908 100%);
    --grad-btn: linear-gradient(180deg, #EDD785 0%, #E3AD3E 30%, #C18B35 70%, #A6711C 100%);
    --grad-rule: linear-gradient(90deg, rgba(119, 73, 8, 0) 0%, #A6711C 14%, #C18B35 50%, #A6711C 86%, rgba(119, 73, 8, 0) 100%);
    --grad-edge: linear-gradient(135deg, rgba(166, 113, 28, 0.60) 0%, rgba(193, 139, 53, 0.28) 35%, rgba(119, 73, 8, 0.20) 60%, rgba(166, 113, 28, 0.55) 100%);
    --shadow-sm: 0 1px 2px rgba(23, 20, 15, 0.05), 0 4px 14px -6px rgba(23, 20, 15, 0.12);
    --shadow: 0 1px 2px rgba(23, 20, 15, 0.05), 0 14px 34px -14px rgba(23, 20, 15, 0.24), 0 0 22px -10px rgba(166, 113, 28, 0.30);
    --shadow-lg: 0 2px 6px rgba(23, 20, 15, 0.06), 0 30px 60px -24px rgba(23, 20, 15, 0.30);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F0E3;
  --surface: #FFFBF2;
  --surface-2: #EFE6D3;
  --text: #17140F;
  --muted: #5A5145;
  --line: rgba(119, 73, 8, 0.18);
  --line-strong: rgba(119, 73, 8, 0.40);
  --field-border: #8C7F69;
  --gold: #A6711C;
  --gold-hover: #8A5A12;
  --gold-ink: #774908;
  --gold-soft: #F1E4C6;
  --on-gold: #0B0A08;
  --nav-bg: rgba(255, 251, 242, 0.85);
  --focus: #17140F;
  --glow: rgba(227, 173, 62, 0.42);
  --glow-2: rgba(237, 215, 133, 0.20);
  --diag: rgba(166, 113, 28, 0.28);
  --texture: rgba(119, 73, 8, 0.025);
  --grad-text: linear-gradient(100deg, #5E3A06 0%, #8A5A12 28%, #A6711C 46%, #774908 66%, #8A5A12 84%, #5E3A06 100%);
  --grad-gold: linear-gradient(135deg, #774908 0%, #C18B35 24%, #EDD785 46%, #A6711C 68%, #E3AD3E 86%, #774908 100%);
  --grad-btn: linear-gradient(180deg, #EDD785 0%, #E3AD3E 30%, #C18B35 70%, #A6711C 100%);
  --grad-rule: linear-gradient(90deg, rgba(119, 73, 8, 0) 0%, #A6711C 14%, #C18B35 50%, #A6711C 86%, rgba(119, 73, 8, 0) 100%);
  --grad-edge: linear-gradient(135deg, rgba(166, 113, 28, 0.60) 0%, rgba(193, 139, 53, 0.28) 35%, rgba(119, 73, 8, 0.20) 60%, rgba(166, 113, 28, 0.55) 100%);
  --shadow-sm: 0 1px 2px rgba(23, 20, 15, 0.05), 0 4px 14px -6px rgba(23, 20, 15, 0.12);
  --shadow: 0 1px 2px rgba(23, 20, 15, 0.05), 0 14px 34px -14px rgba(23, 20, 15, 0.24), 0 0 22px -10px rgba(166, 113, 28, 0.30);
  --shadow-lg: 0 2px 6px rgba(23, 20, 15, 0.06), 0 30px 60px -24px rgba(23, 20, 15, 0.30);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  /* Subtle texture: a soft warm glow up top and faint diagonal hairlines. */
  background-image:
    radial-gradient(ellipse 80% 50% at 15% 0%, var(--glow-2), transparent 70%),
    repeating-linear-gradient(118deg, var(--texture) 0 1px, transparent 1px 24px);
  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, .social-link: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-display);
  line-height: 1.15;
  margin: 0 0 0.55em;
  font-weight: 700;
  text-wrap: balance;
}
/* Every h1 is the gold display style: serif capitals with letter spacing. */
h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.06;
}
h2 { font-size: clamp(1.65rem, 4vw, 2.35rem); letter-spacing: 0.005em; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); }
p, ul, ol { margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }

/* Metallic gold text. Solid gold first; the gradient only where text clipping works. */
h1, .gold-text { color: var(--gold-ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1, .gold-text {
    background-image: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
@media (forced-colors: active) {
  h1, .gold-text { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
}

.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); }

/* Gold hairline rule */
.rule {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: 1px;
  margin: 1.1rem 0 1.2rem;
  border: 0;
  background: var(--grad-rule);
}

/* ================= 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.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  border: 1px solid var(--line-strong);
  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-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }

/* Gold mustache mark */
.brand-mark { width: 40px; height: 20px; }
.brand-mark .stache { fill: var(--gold); stroke: var(--gold-hover); stroke-width: 0.6; stroke-linejoin: round; }

.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.85rem;
  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); box-shadow: inset 0 0 0 1px var(--line-strong); }

.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-strong); }
.icon-btn svg { width: 20px; height: 20px; }

/* Theme toggle: dark is default, so it shows a sun (go light). Light shows a moon. */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}

.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) {
  .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-strong);
    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; }

  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 { letter-spacing: 0.06em; font-size: 0.85rem; }
}

/* ================= 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-weight: 650;
  font-size: 1rem;
  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, filter 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background-color: #C18B35;
  background-image: var(--grad-btn);
  color: var(--on-gold);
  border-color: rgba(119, 73, 8, 0.6);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(249, 237, 162, 0.6);
}
.btn-primary:hover { color: var(--on-gold); filter: brightness(1.06); 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(--gold); }
.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: 1.75rem 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-strong);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 550;
}
.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; max-width: 100%; }
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  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(--gold); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--grad-rule);
  background-size: 300% 100%;
  background-position: center;
}

.lede {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  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(2.5rem, 6vw, 4rem) 0 0; }
.section:last-child { padding-bottom: clamp(3.5rem, 8vw, 6rem); }

/* Diagonal gold divider above each section: a hairline with three slanted strokes. */
.section::before {
  content: "";
  display: block;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--max) - 3rem);
  height: 14px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  background:
    repeating-linear-gradient(120deg, transparent 0 7px, var(--gold) 7px 8px) center / 40px 14px no-repeat,
    linear-gradient(var(--bg), var(--bg)) center / 56px 14px no-repeat,
    var(--grad-rule) center / 100% 1px no-repeat;
  opacity: 0.8;
}
.section.no-rule::before { display: none; }

.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 {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}
/* Thin diagonal gold lines, like the cover. Kept in the empty right edge, wide screens only. */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 18%;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent calc(55% - 1px), var(--diag) 55%, transparent calc(55% + 1px)),
    linear-gradient(68deg, transparent calc(75% - 1px), var(--diag) 75%, transparent calc(75% + 1px));
  display: none;
}
@media (min-width: 75rem) { .hero::before { display: block; } }

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.hero-copy { min-width: 0; max-width: 40rem; }
.hero-copy .rule { margin-left: auto; margin-right: auto; }
.hero-copy .actions { justify-content: center; }
.hero .lede { margin: 0 auto; }

.display-name {
  font-size: clamp(2.2rem, 6.2vw, 4.6rem);
  letter-spacing: 0.08em;
  line-height: 1.02;
  margin: 0;
}
.display-name span { display: block; }
.hello {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}
.pillar-line {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 0.25rem;
}
.pillar-line .sep { color: var(--gold-ink); padding: 0 0.35em; }
.motto {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-ink);
  margin: 0 0 1.1rem;
}

@media (min-width: 48rem) {
  .hero-grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    justify-items: start;
    text-align: left;
  }
  .hero-copy .rule { margin-left: 0; }
  .hero-copy .actions { justify-content: flex-start; }
  .hero .lede { margin: 0; }
}

/* ================= Headshot: clean gold-edged circle with a warm glow ================= */
.hero-photo {
  position: relative;
  width: min(13rem, 62vw);
}
@media (min-width: 48rem) {
  .hero-photo { width: clamp(14rem, 28vw, 20rem); }
}
.hero-photo::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -16%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--glow) 0%, var(--glow-2) 45%, transparent 70%);
  pointer-events: none;
}
.photo-ring {
  position: relative;
  z-index: 1;
  padding: 2px;
  border-radius: 50%;
  background-color: #C18B35;
  background-image: var(--grad-gold);
  box-shadow: 0 0 0 1px rgba(119, 73, 8, 0.35), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}
.photo-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
}
.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  color: transparent;
}
.js .photo-frame img { opacity: 0; transition: opacity 0.6s var(--ease); }
.js .photo-frame.has-photo img { opacity: 1; }
/* Shown only if no headshot file loads: the gold mustache on black. */
.monogram { position: absolute; inset: 0; width: 100%; height: 100%; }
.monogram .bg { fill: #12100D; }
.monogram .stache { fill: #C18B35; stroke: #EDD785; stroke-width: 0.4; }

/* ================= Cards ================= */
.card {
  --card-bg: var(--surface);
  position: relative;
  background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box, var(--grad-edge) border-box;
  border: 1px solid transparent;
  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.75rem;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: var(--gold-soft);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-ink {
  --card-bg: var(--ink-card);
  color: var(--ink-card-text);
}
.card-ink p { color: var(--ink-card-muted); }
.card-ink a { color: var(--ink-card-gold); }
.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, 173, 62, 0.14); color: #F1D9A6; border-color: rgba(227, 173, 62, 0.4); }
.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-ink .email-big { color: var(--ink-card-text); }
.card-ink .icon-badge { background: rgba(227, 173, 62, 0.12); color: var(--ink-card-gold); }

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

.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.4rem, 3vw, 1.9rem); }

.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);
  border: 1px solid var(--line-strong);
  color: var(--gold-ink);
}
.icon-badge svg { width: 22px; height: 22px; }

/* ================= Pillars ================= */
.pillars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pillars > li { margin: 0; }
@media (min-width: 34rem) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.pillar { text-align: center; }
.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle, var(--glow-2), transparent 70%);
  color: var(--gold-ink);
}
.pillar-icon svg { width: 30px; height: 30px; }
.pillar h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-ink);
  margin-bottom: 0.6rem;
}
.pillar p { margin: 0; }

/* Compact pillars (About) */
.pillars-compact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.pillars-compact li { display: flex; gap: 0.85rem; align-items: flex-start; margin: 0; }
.pillars-compact svg { width: 26px; height: 26px; color: var(--ink-card-gold); margin-top: 0.1rem; }
.pillars-compact strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  color: var(--ink-card-text);
}
.pillars-compact span { color: var(--ink-card-muted); }

/* ================= Photo gallery (hidden until photos exist) ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
  gap: 1rem;
}
.gallery-group + .gallery-group { margin-top: 2.25rem; }
.gallery-group h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-ink);
  margin-bottom: 1rem;
}
.tile { margin: 0; min-width: 0; }
.tile-img {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.tile-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.tile:hover .tile-img img { transform: scale(1.03); }
.tile figcaption { margin-top: 0.55rem; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }

/* ================= 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(--bg);
  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(--gold); }
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 { position: relative; padding: clamp(2.5rem, 7vw, 4.5rem) 0 0; }
.page-hero .lede { margin-bottom: 0; }
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero-grid { display: grid; gap: 2rem; align-items: center; justify-items: center; text-align: center; }
.page-hero-grid .hero-photo { width: min(11rem, 52vw); }
.page-hero-grid .rule { margin-left: auto; margin-right: auto; }
.page-hero-grid .actions { justify-content: center; }
.page-hero-grid .lede { margin-left: auto; margin-right: auto; }
@media (min-width: 48rem) {
  .page-hero-grid { grid-template-columns: auto minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4rem); justify-items: start; text-align: left; }
  .page-hero-grid .hero-photo { width: clamp(12rem, 24vw, 16rem); }
  .page-hero-grid .rule { margin-left: 0; }
  .page-hero-grid .actions { justify-content: flex-start; }
  .page-hero-grid .lede { margin-left: 0; }
}

.prose { max-width: var(--measure); font-size: 1.125rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.4rem, 3.2vw, 1.8rem); 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-display);
  font-size: clamp(1.2rem, 4.6vw, 1.6rem);
  font-weight: 700;
  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);
  border: 1px solid var(--line-strong);
  background: var(--gold-soft);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  font-weight: 700;
  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(1.9rem, 5.5vw, 3rem); letter-spacing: 0.04em; }

/* Kept for the post template only. Not used on public pages. */
.placeholder { background: #3A2F12; color: #FFE2A0; border-radius: 6px; padding: 0 0.3em; font-weight: 650; }
.notice { background: #3A2F12; color: #FFE2A0; 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 {
  position: relative;
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: 2rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-rule);
}
.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: 34px; height: 17px; }
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0 -0.6rem;
  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); }
.site-footer .social-row { margin: 0; gap: 0.5rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-ink);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { color: var(--gold-ink); border-color: var(--gold); transform: translateY(-1px); }

/* ================= 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, .hero::before, .hero-photo::before, .section::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); } }
