/* justinbillingsley.me — one column, ~720px measure. Type and accent inherited from Brandflow (Bitter headings, Georgia body, rust accent). */
:root {
  --bg: #F7F5F0; --fg: #1A1A1A; --muted: #5E5A52; --rule: #D9D4C9;
  --accent: #B5472B; --accent-ink: #FFFFFF; --placeholder: #ECE8DF;
  --display: "Bitter", Georgia, "Times New Roman", serif;
  --body: Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F193B; --fg: #F2EFE8; --muted: #B9B4A8; --rule: #2B3658;
    --accent: #E0674A; --accent-ink: #0F193B; --placeholder: #182349; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F193B; --fg: #F2EFE8; --muted: #B9B4A8; --rule: #2B3658;
  --accent: #E0674A; --accent-ink: #0F193B; --placeholder: #182349; color-scheme: dark;
}
* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 18px; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 54px); letter-spacing: -0.01em; }
h2 { font-size: 30px; margin-bottom: 20px; }
h3 { font-size: 21px; margin-bottom: 6px; }
p { margin: 0 0 1.1em; max-width: 68ch; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.small { font-size: 15px; color: var(--muted); }
.kicker { font-family: var(--display); font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.sub { font-size: 21px; line-height: 1.5; color: var(--muted); margin-top: 14px; max-width: 34em; }

header.site { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 28px 0 0; font-family: var(--display); flex-wrap: wrap; }
header.site .name { font-weight: 700; font-size: 17px; color: var(--fg); text-decoration: none; }
header.site nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--accent); }
header.site nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

section { padding-block: 60px; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
.page-head { padding-top: 64px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; align-items: start; padding-top: 72px; }
.hero .lede { font-size: 21px; line-height: 1.55; margin-top: 22px; max-width: 34em; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 16px; padding: 12px 20px; border: 1.5px solid var(--accent); border-radius: 3px; text-decoration: none; color: var(--accent); background: transparent; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn:hover { text-decoration: none; filter: brightness(0.94); }

.ph { background: var(--placeholder); border: 1px dashed var(--muted); border-radius: 3px; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; max-width: 100%; }
.ph span { font-family: var(--display); font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.ph span b { display: block; font-size: 13px; color: var(--fg); margin-bottom: 6px; }
.ph.portrait { aspect-ratio: 4 / 5; }
.hero .portrait { display: block; width: 100%; max-width: 100%; }
.hero .portrait img { display: block; width: 100%; height: auto; border-radius: 3px; }
.ph.wide { aspect-ratio: 3 / 2; margin: 8px 0 28px; }
img.wide { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 3px; margin: 8px 0 28px; }

.proof { padding-block: 36px; }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.proof li { font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.4; padding: 18px 28px 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.summaries { display: grid; gap: 34px; }
.summary h3 a { color: var(--fg); text-decoration: none; }
.summary h3 a:hover { color: var(--accent); }
.summary p:last-child { margin-bottom: 0; }
.more { font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none; }
.more::after { content: " →"; }

.ways { display: grid; gap: 30px; }
.way p:last-child { margin-bottom: 0; }
.creds { font-size: 15.5px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 6px; }

.contact .email { font-family: var(--display); font-size: clamp(22px, 4vw, 30px); font-weight: 700; word-break: break-all; }
.contact .links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-family: var(--display); font-size: 16px; }

footer.site { padding: 36px 0 48px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rule); }
footer.site a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  header.site { display: grid; grid-template-columns: 1fr; gap: 6px; padding-top: 18px; }
  header.site .name { font-size: 16px; padding: 10px 0 4px; }
  header.site nav { gap: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 0 max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--rule); }
  header.site nav::-webkit-scrollbar { display: none; }
  header.site nav a { flex: 0 0 auto; font-size: 16px; padding: 12px 18px 12px 0; min-height: 44px; display: inline-flex; align-items: center; }
  header.site nav a[aria-current="page"] { text-decoration: none; box-shadow: inset 0 -2px 0 var(--accent); }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-top: 24px; }
  .hero .portrait { order: -1; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); width: auto; max-width: none; }
  .hero .portrait img { border-radius: 0; }
  img.wide { margin: 4px calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 24px; width: auto; max-width: none; border-radius: 0; }
  h1 { font-size: 34px; }
  .hero .lede { font-size: 18px; margin-top: 14px; }
  .actions { flex-direction: column; gap: 10px; margin-top: 22px; }
  .btn { display: block; text-align: center; padding: 14px 20px; font-size: 17px; }
  section { padding-block: 40px; }
  .page-head { padding-top: 32px; }
  h2 { font-size: 26px; }
  .proof { padding-block: 8px 28px; }
  .proof ul { grid-template-columns: 1fr; }
  .proof li { padding: 14px 0; font-size: 15px; border-bottom: 0; }
  .proof li:first-child { border-top: 0; }
  .summaries { gap: 28px; }
  .contact .email { font-size: 22px; }
  footer.site { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: no-preference) { a, .btn { transition: color .15s, filter .15s; } }

/* November 2026 rework: the four questions, the board record, section headings inside a page */
section > h2 { margin-top: 0; }
section > img.wide + h2, section > p + h2 { margin-top: 44px; }
.questions { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: q; }
.questions li { counter-increment: q; display: grid; grid-template-columns: 46px minmax(0, 1fr); padding: 22px 0; border-top: 1px solid var(--rule); }
.questions li::before { content: counter(q); font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.05; color: var(--accent); grid-row: 1 / span 2; }
.questions h3 { font-size: 23px; margin: 0; grid-column: 2; }
.questions p { margin: 8px 0 0; grid-column: 2; }
.questions.plain li { padding: 16px 0; align-items: center; }
.questions.plain li::before { font-size: 24px; grid-row: auto; }
.questions.plain h3 { font-size: 20px; font-weight: 500; }
.record { margin: 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.record dt, .record dd { margin: 0; padding: 18px 0; border-top: 1px solid var(--rule); }
.record dt { font-family: var(--display); font-weight: 700; font-size: 17px; padding-right: 20px; }
.page-head .sub a { color: var(--accent); }
@media (max-width: 640px) {
  .questions li { grid-template-columns: 36px minmax(0, 1fr); padding: 18px 0; }
  .questions li::before { font-size: 25px; }
  .questions h3 { font-size: 20px; }
  .record { grid-template-columns: 1fr; }
  .record dt { padding-bottom: 0; }
  .record dd { border-top: 0; padding-top: 6px; }
}
@media (min-width: 641px) {
  .hero { border-bottom: 0; padding-bottom: 48px; }
  .proof { padding-block: 0; border-bottom: 0; }
  .proof li { border-bottom: 0; }
  .proof ul { border-bottom: 1px solid var(--rule); }
}
.questions p a { color: var(--accent); }
