:root {
  --bg: #faf8f3;
  --surface: #fffdf8;
  --text: #2f2f2f;
  --muted: #6b675f;
  --border: #ddd7cb;
  --dark: #253028;
  --dark-soft: #3d4b3e;
  --cream: #f4f0e6;
  --off-white: #faf8f3;
  --turmeric: #d8a53a;
  --dry-leaf: #8a6a4a;
  --sage: #8d9b7a;
  --focus: #7c4c08;
  --content-width: 46rem;
  --wide-width: 72rem;
  --space-xs: clamp(.5rem, 1vw, .8rem);
  --space-sm: clamp(1rem, 2vw, 1.5rem);
  --space-md: clamp(1.75rem, 4vw, 3.5rem);
  --space-lg: clamp(3.5rem, 8vw, 7rem);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--dry-leaf); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4.3vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

.skip-link {
  position: fixed;
  z-index: 20;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  background: var(--text);
  color: var(--surface);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.site-header__inner, .site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2rem), var(--wide-width));
  margin: 0 auto;
  gap: 1rem;
}
.site-header__inner { min-height: 4.5rem; }
.wordmark { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1rem; font-size: .86rem; }
.site-nav a, .footer-links a { text-decoration: none; }
.site-nav a { padding: .35rem 0; }

.eyebrow {
  margin-bottom: .8rem;
  color: var(--dry-leaf);
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.35;
  text-transform: uppercase;
}
.lead { max-width: 43rem; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.28rem); line-height: 1.65; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.8rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.9rem;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: .92rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.button--dark { background: var(--dark); color: #fffdf8; }
.button--dark:hover { background: var(--dark-soft); color: #fffdf8; }
.button--turmeric { background: var(--turmeric); color: #29210f; }
.button--turmeric:hover { background: #c89127; color: #29210f; }
.button--disabled { flex-direction: column; cursor: not-allowed; opacity: .72; }
.button--disabled small { font-weight: 500; font-size: .72rem; }
.text-link { display: inline-block; font-weight: 700; }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .85fr);
  align-items: center;
  width: min(calc(100% - 2rem), var(--wide-width));
  min-height: min(43rem, calc(100vh - 4.5rem));
  margin: 0 auto;
  gap: clamp(2rem, 7vw, 7rem);
  padding: var(--space-lg) 0;
}
.home-hero h1 { max-width: 13ch; margin-bottom: 1.4rem; }
.home-hero__image { margin: 0; }
.home-hero__image img { width: 100%; min-height: 26rem; object-fit: cover; object-position: center; filter: saturate(.85); }

.section { width: min(calc(100% - 2rem), var(--wide-width)); margin: 0 auto; padding: var(--space-lg) 0; }
.section__heading { max-width: var(--content-width); }
.section__heading--row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; max-width: none; }
.section--project { width: 100%; max-width: none; background: var(--cream); }
.section--project > * { width: min(calc(100% - 2rem), var(--wide-width)); margin-right: auto; margin-left: auto; }
.project-callout { max-width: 52rem; }
.project-callout__line, .project-hero__line, .workshop-hero__line, .guide-header__line { font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.25; }
.section--two-column { display: grid; grid-template-columns: minmax(15rem, .8fr) minmax(18rem, 1.2fr); gap: clamp(2rem, 10vw, 9rem); border-bottom: 1px solid var(--border); }
.section--two-column h2 { max-width: 11ch; }
.work-grid, .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.work-grid article, .post-card { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); }
.work-grid h2 { font-family: var(--sans); font-size: 1.2rem; }
.work-grid p, .post-card p { color: var(--muted); font-size: .94rem; }
.post-card { display: flex; flex-direction: column; }
.post-card h3 { margin-bottom: .6rem; }
.post-card h3 a { text-decoration: none; }
.post-card__date, .archive-item__date { color: var(--dry-leaf) !important; font-size: .78rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.page-shell { width: min(calc(100% - 2rem), var(--content-width)); margin: 0 auto; padding: var(--space-lg) 0; }
.page-header { margin-bottom: clamp(2rem, 6vw, 4.5rem); }
.page-header h1 { margin-bottom: 1rem; }
.prose { font-size: 1.04rem; }
.prose > * + * { margin-top: 1.4rem; }
.prose h2 { margin-top: clamp(2.75rem, 7vw, 5rem); margin-bottom: 1.1rem; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { max-width: 43rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .5rem; }
.prose blockquote { margin: 2rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--sage); background: var(--cream); color: var(--muted); }
.archived-embed { padding: .8rem 1rem; border-left: 3px solid var(--border); color: var(--muted); font-size: .92rem; }
.prose figure { margin: 2.5rem 0; }
.prose figcaption { margin-top: .7rem; color: var(--muted); font-size: .86rem; }
.prose img { max-height: 42rem; margin: 2rem 0; object-fit: contain; }
.prose iframe { width: 100%; min-height: min(56vw, 25rem); border: 0; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { min-width: 9rem; padding: .75rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--cream); }

.project-hero, .workshop-hero { background: var(--cream); }
.project-hero__content, .workshop-hero__inner { width: min(calc(100% - 2rem), var(--wide-width)); margin: 0 auto; padding: var(--space-lg) 0; }
.project-hero h1, .workshop-hero h1 { margin-bottom: .8rem; }
.project-hero__content { max-width: min(calc(100% - 2rem), var(--wide-width)); }
.project-hero__content > * { max-width: 43rem; }
.project-prose { padding-top: clamp(3rem, 8vw, 7rem); }
.workshop-hero { background: linear-gradient(135deg, #f4f0e6, #eee9dc 58%, #e7e8d7); }
.workshop-hero__inner { max-width: min(calc(100% - 2rem), 58rem); margin-left: max(1rem, calc((100% - var(--wide-width)) / 2)); }
.workshop-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.workshop-facts div { padding: .85rem .8rem .85rem 0; }
.workshop-facts div + div { padding-left: .85rem; border-left: 1px solid var(--border); }
.workshop-facts dt { color: var(--dry-leaf); font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.workshop-facts dd { margin: .1rem 0 0; font-size: .9rem; }
.workshop-prose .button { margin-top: .5rem; }

.archive-list { border-top: 1px solid var(--border); }
.archive-item { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.archive-item h2 { margin-bottom: .7rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.archive-item h2 a { text-decoration: none; }
.archive-item p:not(.archive-item__date) { max-width: 44rem; color: var(--muted); }
.contact-links { display: grid; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.contact-links li { border-bottom: 1px solid var(--border); }
.contact-links a { display: flex; justify-content: space-between; padding: 1rem 0; font-weight: 700; text-decoration: none; }
.archive-elsewhere { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--border); }
.archive-elsewhere h2 { margin-bottom: 1rem; }
.archive-elsewhere p { max-width: 42rem; color: var(--muted); }

.profile-hero { background: var(--cream); }
.profile-hero__inner, .profile-prose, .profile-section, .profile-related { width: min(calc(100% - 2rem), var(--wide-width)); margin: 0 auto; }
.profile-hero__inner { max-width: min(calc(100% - 2rem), 58rem); margin-left: max(1rem, calc((100% - var(--wide-width)) / 2)); padding: var(--space-lg) 0; }
.profile-hero h1 { max-width: 15ch; margin-bottom: 1rem; }
.profile-prose { max-width: min(calc(100% - 2rem), var(--content-width)); padding: var(--space-lg) 0; }
.profile-section { padding: var(--space-lg) 0; }
.profile-section--cream { width: 100%; max-width: none; padding-right: max(1rem, calc((100% - var(--wide-width)) / 2)); padding-left: max(1rem, calc((100% - var(--wide-width)) / 2)); background: var(--cream); }
.profile-section__heading { max-width: 44rem; margin-bottom: var(--space-md); }
.profile-section__heading h2 { margin-bottom: 0; }
.profile-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--border); background: var(--border); }
.profile-card { min-width: 0; padding: clamp(1.3rem, 3vw, 2rem); background: var(--surface); }
.profile-card__meta { margin-bottom: .75rem; color: var(--dry-leaf); font-size: .75rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.profile-card h3 { margin-bottom: .8rem; font-family: var(--sans); font-size: 1.2rem; }
.profile-card p:not(.profile-card__meta) { color: var(--muted); font-size: .95rem; }
.profile-related { margin-bottom: var(--space-lg); padding: var(--space-md) 0; border-top: 1px solid var(--border); }
.profile-related__links { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; }
.profile-related__links a { font-weight: 750; }
.home-pillars .work-grid article, .home-evidence .work-grid article { display: flex; flex-direction: column; align-items: flex-start; }
.home-pillars .work-grid .text-link, .home-evidence .work-grid .text-link { margin-top: auto; }

.guide-shell { width: min(calc(100% - 2rem), var(--content-width)); margin: 0 auto; padding: clamp(2rem, 7vw, 5rem) 0; }
.guide-header { margin-bottom: 2rem; }
.guide-header h1 { margin-bottom: .8rem; }
.guide-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 3rem; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.guide-nav a { padding: .25rem .45rem; color: var(--dark-soft); font-size: .82rem; font-weight: 700; }
.guide-cta { margin-top: 3rem; padding: 1.5rem; border: 1px solid var(--border); background: var(--surface); }
.guide-cta p { margin-bottom: .9rem; font-weight: 700; }
.private-guide { background: #f8f4e9; }

.site-footer { border-top: 1px solid var(--border); }
.site-footer__inner { min-height: 6rem; color: var(--muted); font-size: .82rem; }
.site-footer__inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 720px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  .site-nav { justify-content: flex-start; gap: .25rem 1rem; }
  .home-hero { grid-template-columns: 1fr; min-height: auto; gap: 2rem; padding-top: 3.5rem; }
  .home-hero h1 { max-width: 12.5ch; }
  .home-hero__image { width: min(100%, 30rem); }
  .home-hero__image img { min-height: 19rem; }
  .section--two-column { grid-template-columns: 1fr; gap: 1rem; }
  .work-grid, .post-grid { grid-template-columns: 1fr; }
  .profile-card-grid { grid-template-columns: 1fr; }
  .section__heading--row { align-items: start; flex-direction: column; }
  .workshop-facts { grid-template-columns: 1fr; }
  .workshop-facts div, .workshop-facts div + div { padding: .75rem 0; border-left: 0; }
  .workshop-facts div + div { border-top: 1px solid var(--border); }
  .site-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 1rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
