/* ================================================================
   Simon L. Paige Web Design - Prairie Clarity
   Single stylesheet. Hand-written. No framework.
   ================================================================ */

/* ── Tokens ────────────────────────────────────────────────────── */
:root {
  --cast-iron: #1C1A17;
  --limestone: #F4EEE2;
  --chalk: #FBF8F1;
  --prairie-rust: #B45B2E;
  --horizon: #3E6A83;
  --wheat: #D9C48B;
  --moss: #5A6B3B;
  --stone: #6B665D;
  --rule: #C9BEAB;
  --rust-dark: #8F4523;

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --shadow-rest: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.10);

  --radius: 4px;
  --max-body: 62ch;
  --baseline: 8px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--limestone);
  color: var(--cast-iron);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--horizon); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--prairie-rust); }

/* ── Focus ─────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--horizon);
  outline-offset: 2px;
}

/* ── Skip link ─────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--prairie-rust);
  color: var(--chalk);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 16px;
}

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  text-align: left;
}

h1 {
  font-size: 3.052rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 2.441rem;
  font-weight: 700;
}

h3 {
  font-size: 1.953rem;
  font-weight: 600;
}

h4 {
  font-family: var(--font-body);
  font-size: 1.563rem;
  font-weight: 600;
  line-height: 1.3;
}

small, .text-small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--stone);
}

.mono {
  font-family: var(--font-mono);
}

/* ── Layout ────────────────────────────────────────────────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.body-text {
  max-width: var(--max-body);
}

/* Wright horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  padding: 24px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.site-logo {
  display: block;
  height: 40px;
  width: auto;
}

.site-logo img {
  height: 100%;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cast-iron);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-nav a:hover {
  color: var(--prairie-rust);
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: 64px 0 80px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .subhead {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: var(--max-body);
  margin-bottom: 40px;
  color: var(--cast-iron);
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--prairie-rust);
  color: var(--chalk);
}
.btn-primary:hover {
  background: var(--rust-dark);
  color: var(--chalk);
}

.btn-secondary {
  background: transparent;
  color: var(--prairie-rust);
  border: 1px solid var(--rule);
}
.btn-secondary:hover {
  border-color: var(--prairie-rust);
  color: var(--rust-dark);
}

/* ── Sections ──────────────────────────────────────────────────── */
.section {
  padding: 64px 0;
}

.section-heading {
  margin-bottom: 40px;
}

/* ── Work grid (Wright triplet) ────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--chalk);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-rest);
  transition: box-shadow 0.15s ease;
  text-decoration: none;
  color: var(--cast-iron);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  box-shadow: var(--shadow-hover);
  color: var(--cast-iron);
}

.work-card .card-title {
  font-family: var(--font-display);
  font-size: 1.563rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.work-card .card-tagline {
  font-size: 1rem;
  margin-bottom: 12px;
}

.work-card .card-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--stone);
  margin-bottom: 16px;
}

.work-card .card-preview {
  background: var(--limestone);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-top: auto;
}

.work-card .card-preview .preview-url {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--horizon);
  word-break: break-all;
}

.work-card .card-preview .preview-note {
  font-size: 0.8rem;
  color: var(--stone);
  margin-top: 8px;
}

/* ── Feynman callout ───────────────────────────────────────────── */
.feynman {
  background: var(--chalk);
  padding: 48px 0;
}

.feynman .body-text {
  font-size: 1.25rem;
  line-height: 1.65;
}

/* ── Machine section ───────────────────────────────────────────── */
.machine-item {
  margin-bottom: 32px;
}

.machine-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.machine-item h4 a {
  color: var(--horizon);
}

.machine-item p {
  max-width: var(--max-body);
}

/* ── About ─────────────────────────────────────────────────────── */
.about p {
  max-width: var(--max-body);
}

/* ── Contact ───────────────────────────────────────────────────── */
.contact .body-text {
  margin-bottom: 24px;
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  padding: 32px 0;
  font-size: 0.875rem;
  color: var(--stone);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-weight: 500;
  color: var(--cast-iron);
}

.footer-right {
  text-align: right;
}

.footer-right a {
  color: var(--stone);
  font-size: 0.875rem;
}
.footer-right a:hover {
  color: var(--prairie-rust);
}

.footer-credit {
  padding: 16px 0 32px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--stone);
}

/* ── Plans page ────────────────────────────────────────────────── */
.plan-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 48px;
}

.plan-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-align: left;
  padding: 16px 24px;
  border-bottom: 2px solid var(--rule);
  color: var(--cast-iron);
}

.plan-table td {
  padding: 16px 24px;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.plan-table tbody tr:nth-child(even) {
  background: var(--wheat);
}

.plan-table tbody tr:nth-child(odd) {
  background: var(--chalk);
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}

.plan-price {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--prairie-rust);
  font-size: 1.125rem;
}

.plan-desc {
  font-style: italic;
  color: var(--stone);
  margin-top: 4px;
  font-size: 0.95rem;
}

.plan-features {
  list-style: none;
  padding: 0;
}

.plan-features li {
  padding: 4px 0;
  font-size: 0.95rem;
}

.plan-features li::before {
  content: "- ";
  color: var(--stone);
}

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.faq-item:first-child {
  border-top: 1px solid var(--rule);
}

.faq-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.faq-a {
  max-width: var(--max-body);
}

/* ── Legal pages ───────────────────────────────────────────────── */
.legal h1 {
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--stone);
  font-size: 0.875rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.563rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal p, .legal ul {
  max-width: var(--max-body);
  margin-bottom: 16px;
}

.legal ul {
  padding-left: 24px;
}

.legal li {
  margin-bottom: 8px;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .work-grid {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  h1 { font-size: 2.441rem; }
  h2 { font-size: 1.953rem; }
  h3 { font-size: 1.563rem; }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .site-header .wrap {
    gap: 16px;
  }

  .site-nav {
    gap: 16px;
  }

  .plan-table {
    display: block;
    overflow-x: auto;
  }

  .site-footer .wrap {
    flex-direction: column;
    gap: 8px;
  }

  .footer-right {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

  h1 { font-size: 1.953rem; }

  .hero {
    padding: 40px 0 56px;
  }

  .section {
    padding: 48px 0;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    text-align: center;
  }
}

/* ── Testimonial ──────────────────────────────────────────────── */
.testimonial-quote {
  border-left: 4px solid var(--prairie-rust);
  padding: 1.25rem 1.5rem;
  margin: 0;
  background: var(--limestone);
  border-radius: 0 6px 6px 0;
}

.testimonial-quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--cast-iron);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.testimonial-quote cite {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--stone);
  font-style: normal;
}

.cite-link {
  margin-left: 0.4rem;
}

.cite-link a {
  color: var(--horizon);
  text-decoration: none;
}

.cite-link a:hover {
  text-decoration: underline;
}

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════════════════════════════
   Design system v2 additions (2026-04-22)
   Prairie Clarity - paired with Prairie-window brand mark.
   New homepage components: header-wordmark, hero-mark, work-card-image,
   how-steps, codestrip, contact-card, section-eyebrow.
   ════════════════════════════════════════════════════════════════ */

/* Header: mark + wordmark lockup */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
  text-decoration: none;
  color: var(--cast-iron);
}
.header-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}
.header-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.header-wordmark em {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--stone);
  text-transform: uppercase;
  margin-left: 6px;
  border-left: 1px solid var(--rule);
  padding-left: 10px;
}
@media (max-width: 640px) {
  .header-wordmark em { display: none; }
}

/* Section eyebrow (tiny tracked label above h2s) */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--stone);
  margin-bottom: 16px;
}

/* Hero: two-column with mark on the right */
.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mark img {
  width: 220px;
  height: 220px;
  display: block;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--stone);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--prairie-rust);
}
.hero .subhead strong {
  color: var(--cast-iron);
  font-weight: 700;
}
.hero-meta {
  margin-top: 24px;
  color: var(--stone);
}
.hero-meta .mono {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 140px; height: 140px; }
}

/* Work cards: real screenshots */
.work-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
}
.work-card {
  padding: 0;
  overflow: hidden;
}
.work-card-image {
  aspect-ratio: 16 / 9;
  background: var(--limestone);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}
.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}
.work-card:hover .work-card-image img {
  transform: scale(1.02);
}
.work-card-body {
  padding: 24px 28px 28px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.card-link {
  font-size: 0.875rem;
  color: var(--prairie-rust);
  font-weight: 500;
}

/* How it works - three-step list */
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.how-steps li {
  border-top: 2px solid var(--cast-iron);
  padding-top: 20px;
}
.how-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--prairie-rust);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.how-steps h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.how-steps p {
  font-size: 1rem;
  color: var(--cast-iron);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr; gap: 24px; }
}

/* Code strip (tasteful craft signal) */
.codestrip {
  background: #1C1A17;
  color: #F4EEE2;
  padding: 40px 0;
  margin-top: 0;
  overflow-x: auto;
}
.codestrip-pre {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #F4EEE2;
  margin: 0;
  white-space: pre;
}
.codestrip .c-com { color: #8B8375; font-style: italic; }
.codestrip .c-tag { color: #D9C48B; }
.codestrip .c-attr { color: #B45B2E; }
.codestrip .c-str { color: #9AB28F; }
@media (max-width: 640px) {
  .codestrip { padding: 28px 0; }
  .codestrip-pre { font-size: 0.8125rem; }
}

/* Contact card */
.contact-card {
  background: var(--chalk);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 24px;
  max-width: 560px;
}
.contact-line {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.contact-line:last-child { border-bottom: none; }
.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--stone);
}
.contact-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--cast-iron);
  text-decoration: none;
}
a.contact-val:hover { color: var(--prairie-rust); }

/* Footer: mark inline */
.footer-mark {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* ── Print ─────────────────────────────────────────────────────── */
@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .site-header, .site-footer, .cta-row, .btn {
    display: none;
  }

  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }

  .work-grid { grid-template-columns: 1fr; }

  hr { border-top-color: #ccc; }
}

/* ════════════════════════════════════════════════════════════════
   Design system v3 (2026-04-22)
   Personal/founder site additions: wordmark, projects grid,
   about portrait, hero variant, ADA fixes (contrast, touch targets).
   ════════════════════════════════════════════════════════════════ */

/* ── Wordmark (the brand mark itself) ─────────────────────────── */
.wordmark {
  display: inline-block;
  text-decoration: none;
  color: var(--cast-iron);
  line-height: 1;
}
.wordmark-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: var(--cast-iron);
}
.wordmark-dot {
  color: var(--prairie-rust);
}
.wordmark-sm {
  font-size: 1.125rem;
}
.wordmark:hover .wordmark-name {
  color: var(--cast-iron);
}
.wordmark:focus-visible {
  outline: 2px solid var(--horizon);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── Header rebuild (wordmark, no mark) ───────────────────────── */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.site-header .site-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.site-header .site-nav a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cast-iron);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 10px 4px;
  display: inline-block;
  min-height: 44px;
  line-height: 1.5;
}
.site-header .site-nav a:hover {
  color: var(--prairie-rust);
}
.site-header .site-nav a:focus-visible {
  outline: 2px solid var(--horizon);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Personal hero variant ────────────────────────────────────── */
.hero-personal {
  padding: 80px 0 96px;
}
.hero-personal h1 {
  max-width: 20ch;
  margin-bottom: 28px;
  font-size: 3.5rem;
  letter-spacing: -0.015em;
}
.hero-personal .subhead {
  font-size: 1.25rem;
  max-width: 56ch;
  margin-bottom: 36px;
  color: var(--cast-iron);
  line-height: 1.55;
}
.hero-personal .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--stone);
  margin-bottom: 32px;
  text-transform: none;
}
.hero-personal .eyebrow-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--prairie-rust);
  border-radius: 50%;
}
@media (max-width: 900px) {
  .hero-personal { padding: 48px 0 64px; }
  .hero-personal h1 { font-size: 2.25rem; }
  .hero-personal .subhead { font-size: 1.0625rem; }
}
@media (max-width: 640px) {
  .hero-personal h1 { font-size: 1.875rem; }
}

/* ── Section intro paragraph (under a section heading) ────────── */
.section-intro {
  margin-bottom: 40px;
  color: var(--cast-iron);
  font-size: 1.0625rem;
}

.section-footer-link {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}
.section-footer-link a {
  color: var(--prairie-rust);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.section-footer-link a:hover {
  border-bottom-color: var(--prairie-rust);
}

/* ── Projects grid (personal projects) ────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--chalk);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px 32px;
  text-decoration: none;
  color: var(--cast-iron);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  min-height: 160px;
}
.project-card:hover {
  border-color: var(--prairie-rust);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  color: var(--cast-iron);
}
.project-card:focus-visible {
  outline: 2px solid var(--horizon);
  outline-offset: 2px;
}
.project-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
}
.project-desc {
  color: var(--cast-iron);
  font-size: 0.9375rem;
  line-height: 1.55;
  flex-grow: 1;
}
.project-link {
  color: var(--prairie-rust);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: auto;
}
@media (max-width: 700px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ── About with portrait ──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.about-portrait {
  position: relative;
  width: 240px;
  height: 240px;
}
.about-portrait img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  display: block;
}
.portrait-placeholder {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--wheat);
  border: 1px solid var(--rule);
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3rem;
  color: var(--cast-iron);
  position: absolute;
  top: 0;
  left: 0;
}
.about-text .section-heading {
  margin-top: 0;
  margin-bottom: 20px;
}
.about-text .body-text + .body-text {
  margin-top: 16px;
}
@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-portrait,
  .about-portrait img,
  .portrait-placeholder {
    width: 160px;
    height: 160px;
  }
  .portrait-placeholder { font-size: 2rem; }
}

/* ── Collaborate section ──────────────────────────────────────── */
.collaborate .body-text {
  max-width: 62ch;
}

/* ── Contact: 4-row card (add CODE row) ───────────────────────── */
.contact-card {
  max-width: 640px;
}
.contact-line a.contact-val {
  min-height: 32px;
  line-height: 1.3;
  padding: 4px 0;
}

/* ── Footer: cleaner, single-line on desktop ──────────────────── */
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .footer-right a {
  color: var(--stone);
  font-size: 0.875rem;
  padding: 4px 2px;
  min-height: 24px;
  display: inline-block;
}
.site-footer .footer-right a:hover {
  color: var(--prairie-rust);
}
.footer-credit a {
  color: var(--stone);
}
.footer-credit a:hover {
  color: var(--prairie-rust);
}

/* ── ADA: touch targets, contrast fixes ───────────────────────── */
a, button, .btn {
  min-height: 24px;
}
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
}
/* Body copy must NEVER use stone on limestone (fails AA). */
p.body-text, main p { color: var(--cast-iron); }

/* ── Responsive: mobile header collapse ───────────────────────── */
@media (max-width: 720px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .site-header .site-nav {
    width: 100%;
    gap: 12px 20px;
  }
  .site-header .site-nav a {
    padding: 8px 0;
  }
}

/* ── Print: hide nav, keep content readable ───────────────────── */
@media print {
  .wordmark-dot { color: #000 !important; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-portrait { display: none; }
  .about-grid { grid-template-columns: 1fr; }
}
