/* ==========================================================================
   George D. Plymale II — design system
   Two hues and one restrained accent. Substance leads; scale does not.
   ========================================================================== */

:root {
  --ink:        #15202b;
  --ink-soft:   #32404e;
  --muted:      #626f7c;
  --paper:      #fbfaf8;
  --paper-warm: #f3f0eb;
  --paper-card: #ffffff;
  --accent:     #8a3a2a;
  --accent-dim: #6b2b1e;
  --line:       rgba(21, 32, 43, 0.13);
  --line-firm:  rgba(21, 32, 43, 0.28);

  /* Progressive serif: better where available, Georgia everywhere else. */
  --serif: "Iowan Old Style", Charter, "Bitstream Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 68ch;
  --gap: clamp(28px, 5vw, 64px);
}

* { 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(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(1080px, calc(100% - 44px)); margin-inline: auto; }
.measure   { max-width: var(--measure); }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--paper-card); padding: 10px 16px;
  border: 2px solid var(--ink); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* --- Header ------------------------------------------------------------ */

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner {
  min-height: 78px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}

.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.3em;
  font-family: var(--serif); font-size: 1.22rem; font-weight: 600;
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark-suffix { font-size: 1em; font-weight: 600; color: var(--accent); }

.site-nav {
  display: flex; align-items: center; gap: clamp(14px, 3vw, 30px);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em;
}
.site-nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-contact { border: 1px solid var(--line-firm); padding: 8px 15px !important; border-radius: 2px; }
.nav-contact:hover { border-color: var(--accent); }

/* --- Buttons ----------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 22px; border: 1px solid transparent; border-radius: 2px;
  font-size: 0.87rem; font-weight: 650; text-decoration: none; cursor: pointer;
}
.button--primary { background: var(--ink); color: var(--paper); }
.button--primary:hover { background: var(--accent-dim); color: #fff; }
.button--ghost { border-color: var(--line-firm); color: var(--ink); background: transparent; }
.button--ghost:hover { border-color: var(--accent); color: var(--accent); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }

/* --- Shared typography -------------------------------------------------- */

.eyebrow {
  margin: 0 0 18px; color: var(--accent);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
}
.display {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -0.018em;
}
.section-title {
  margin: 0 0 8px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.2; letter-spacing: -0.012em;
}
.lede {
  margin: 22px 0 0; font-family: var(--serif);
  font-size: clamp(1.12rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--ink-soft);
}

/* --- Hero -------------------------------------------------------------- */

.hero { padding: clamp(52px, 7vw, 88px) 0 clamp(48px, 6vw, 76px); }
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 0.65fr;
  gap: var(--gap); align-items: center;
}
.hero .display { max-width: 15ch; }
.hero .lede { max-width: 46ch; }

.portrait-wrap { margin: 0; }
.portrait {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px;
  border: 1px solid var(--line);
}
.portrait-wrap figcaption {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
}

/* --- Generic section ---------------------------------------------------- */

.band { padding: clamp(52px, 7vw, 84px) 0; border-top: 1px solid var(--line); }
.band--warm { background: var(--paper-warm); }
.band-head { margin-bottom: 38px; }
.band-head p:not([class]) { margin: 14px 0 0; color: var(--muted); max-width: var(--measure); }

/* Heading left, body right — fills the measure instead of stranding a dead column. */
.band-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--gap); align-items: start; }
.band-split .section-title { margin: 0; }
.band-split p { margin: 0 0 1em; }
.band-split p:last-of-type { margin-bottom: 0; }

/* --- Work cards --------------------------------------------------------- */

.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.work-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 26px 26px; background: var(--paper);
}
.work-card h3 {
  margin: 0; font-family: var(--serif); font-size: 1.32rem; font-weight: 600; line-height: 1.25;
}
.card-kicker {
  margin: 0; color: var(--muted);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
}
.work-card p:not([class]) { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.work-card a { margin-top: auto; padding-top: 16px; font-size: 0.83rem; font-weight: 650; color: var(--accent); }

/* --- Closing ------------------------------------------------------------ */

.closing { background: var(--ink); color: var(--paper); padding: clamp(48px, 6vw, 74px) 0; }
.closing .section-title { color: var(--paper); max-width: 22ch; }
.closing p { margin: 14px 0 0; color: #b9c3cd; max-width: 52ch; }
.closing .button--primary { background: var(--paper); color: var(--ink); }
.closing .button--primary:hover { background: #fff; color: var(--accent-dim); }

/* --- Content pages ------------------------------------------------------ */

.content-page { padding-bottom: clamp(64px, 8vw, 104px); }
.page-hero { padding: clamp(48px, 6vw, 78px) 0 clamp(30px, 4vw, 46px); }
.page-hero .display { max-width: 20ch; }
.page-summary { max-width: var(--measure); margin: 18px 0 0; color: var(--muted); font-size: 1.02rem; }

.split { display: grid; grid-template-columns: 0.62fr 1.38fr; gap: var(--gap); align-items: start; }
.split-aside { position: sticky; top: 26px; }
.split-aside img { width: 100%; border-radius: 2px; border: 1px solid var(--line); }
.split-aside p {
  margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
}

.prose { font-family: var(--serif); font-size: 1.06rem; line-height: 1.68; color: var(--ink-soft); max-width: var(--measure); }
.prose p { margin: 0 0 1.3em; }
.prose a { color: var(--accent-dim); }
.prose strong { color: var(--ink); }
.prose h2 {
  margin: 2.1em 0 0.6em; color: var(--ink); font-family: var(--sans);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.4em; }
.standfirst { color: var(--ink); font-size: 1.2em; line-height: 1.5; }

.profile-list { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 0.92rem; max-width: var(--measure); }
.profile-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.profile-list span { color: var(--muted); font-size: 0.78rem; text-align: right; }

.callout {
  margin: 34px 0; padding: 22px 24px; background: var(--paper-warm);
  border-left: 2px solid var(--accent); max-width: var(--measure);
}
.callout h2 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.footnote { font-family: var(--sans); font-size: 0.84rem; color: var(--muted); max-width: var(--measure); }
.legal-page .prose { font-family: var(--sans); font-size: 0.97rem; }

/* --- Surname page ------------------------------------------------------- */

.stat-list { border-top: 2px solid var(--accent); }
.stat { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.stat strong {
  display: block; font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink);
}
.stat span {
  display: block; margin-top: 6px; color: var(--muted);
  font-size: 0.7rem; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.07em;
}
.source-note { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.source-note ul { padding-left: 1.1em; }

.aside-note { color: var(--muted); font-size: 0.92rem; }
.aside-note h2 {
  margin: 0 0 12px; color: var(--ink); font-family: var(--serif);
  font-size: 1.2rem; font-weight: 600; letter-spacing: normal; text-transform: none;
}
.aside-note p { margin: 0 0 1em; }

/* --- Forms -------------------------------------------------------------- */

.contact-form { padding: clamp(24px, 4vw, 38px); background: var(--paper-card); border: 1px solid var(--line); border-radius: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block; margin-bottom: 6px; color: var(--ink);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #b3b9bf; border-radius: 2px;
  background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138, 58, 42, 0.14);
}
.field [aria-invalid="true"] { border-color: #a12525; }
.field-help { margin: 5px 0 0; color: var(--muted); font-size: 0.74rem; }
.checkbox-field { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 22px; font-size: 0.82rem; }
.checkbox-field input { margin-top: 5px; width: auto; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-errors, .flash {
  padding: 13px 16px; border-left: 3px solid var(--accent);
  background: #fbf0ec; font-size: 0.88rem; border-radius: 2px;
}
.form-errors { margin-bottom: 22px; }
.form-errors p, .form-errors ul { margin: 0; }
.form-errors ul { padding-left: 1.1em; }
.flash-region { margin-top: 18px; }
.flash--notice { border-color: #2f6b4a; background: #eef6f1; }

/* --- Footer ------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #cdd6df; padding: 48px 0 24px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.8fr 1fr; gap: 34px; }
.footer-name { margin: 0; font-family: var(--serif); font-size: 1.3rem; color: var(--paper); }
.footer-note { margin: 6px 0 0; color: #8d99a5; font-size: 0.84rem; max-width: 34ch; }
.footer-links, .footer-legal { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 0.82rem; }
.footer-heading {
  margin: 0 0 4px; color: #8d99a5; font-size: 0.66rem;
  font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
}
.site-footer a:hover { color: #fff; }
.copyright {
  margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #7d8894; font-size: 0.72rem;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 860px) {
  .hero-grid, .split, .band-split { grid-template-columns: 1fr; }
  .band-split { gap: 16px; }
  .hero-grid { gap: 36px; }
  .portrait-wrap { width: min(72%, 340px); }
  .split-aside { position: static; width: min(60%, 300px); }
  .work-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; padding: 12px 0; gap: 12px; }
  .wordmark { font-size: 1.05rem; }
  /* Every nav item stays reachable — nothing is hidden on small screens. */
  .site-nav { gap: 16px; font-size: 0.8rem; width: 100%; }
  .nav-contact { margin-left: auto; }
  .portrait-wrap { width: 100%; max-width: 320px; }
  .form-row, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .profile-list li { flex-direction: column; gap: 2px; }
  .profile-list span { text-align: left; }
}

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

@media print {
  .site-header, .site-footer, .button-row, .skip-link { display: none; }
  body { background: #fff; font-size: 12pt; }
}
