:root {
  --paper: #f4f1e9;
  --ink: #232725;
  --muted: #666b66;
  --line: #cbc8be;
  --accent: #315c4d;
  --accent-hover: #173e31;
  --soft: #ebe7dd;
  --measure: 43rem;
  --wide: 58rem;
  font-family: Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent-hover); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.45rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.site-shell {
  width: min(calc(100% - 2.5rem), var(--wide));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.25rem;
  padding: 1.75rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

main { min-height: 65vh; }

.intro {
  max-width: 48rem;
  padding: clamp(3.5rem, 8vw, 5.75rem) 0 clamp(3.75rem, 8vw, 5.5rem);
}

.eyebrow,
.published,
.prototype-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-note {
  margin: 2rem 0 0;
}

.eyebrow a { color: inherit; }

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  line-height: 1.16;
  text-wrap: balance;
}

.intro h1 {
  max-width: 18ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.intro-copy {
  max-width: 37rem;
  color: #424743;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.primary-link,
.text-link { margin-top: 1.6rem; }

.primary-link a,
.text-link a,
.section-heading > a { font-weight: 700; }

.home-section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}

.home-section > h2,
.home-section > div > h2,
.section-heading h2,
.schedule-group > h2 {
  margin-bottom: 1.8rem;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.8rem;
}

.section-heading h2,
.section-heading p { margin-bottom: 0; }

.section-heading > a { flex: none; }

.prototype-note {
  margin-top: -1rem;
  margin-bottom: 2rem;
  text-transform: none;
}

.event-list { border-top: 1px solid var(--line); }

.event-row {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.event-row time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-row h3 {
  margin-bottom: 0.3rem;
  font-size: 1.08rem;
}

.event-row p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.8fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.split-section > div:first-child { max-width: 35rem; }

.media-placeholder {
  display: flex;
  min-height: 14rem;
  padding: 1.2rem;
  border: 1px dashed #aaa89f;
  background: var(--soft);
  color: var(--muted);
  flex-direction: column;
  justify-content: flex-end;
}

.media-placeholder span {
  color: var(--ink);
  font-size: 1rem;
}

.media-placeholder small {
  max-width: 22rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.5;
}

.writing-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
}

.writing-list h3 {
  margin-bottom: 0.65rem;
  font-size: 1.14rem;
}

.writing-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.about-brief { max-width: var(--measure); }

.compact-home .intro {
  display: block;
  max-width: 48rem;
  padding: 1.7rem 0 1.5rem;
}

.compact-home .intro .eyebrow {
  margin-bottom: 0.55rem;
}

.compact-home .intro h1 {
  max-width: none;
  margin-bottom: 0.45rem;
  font-size: 1.65rem;
  letter-spacing: -0.025em;
}

.compact-home .intro-copy {
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.5;
}

.compact-home .intro-copy p {
  margin-bottom: 0;
}

.compact-home .primary-link {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
}

.home-index {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 2.5rem;
  border-top: 1px solid var(--line);
}

.compact-home .home-section {
  padding: 1.2rem 0;
  border-top: 0;
}

.compact-home .home-section > h2,
.compact-home .home-section > div > h2,
.compact-home .section-heading h2 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
  font-weight: 400;
}

.compact-home .section-heading {
  margin-bottom: 0.75rem;
}

.compact-home .section-heading > a {
  font-size: 0.9rem;
}

.compact-home .prototype-note {
  margin: 0;
  font-size: 0.75rem;
}

.home-upcoming {
  padding-right: 2.5rem;
}

.compact-events .event-row {
  grid-template-columns: 3.8rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.72rem 0;
}

.compact-events .event-row time {
  font-size: 0.8rem;
}

.compact-events .event-row h3 {
  margin-bottom: 0.12rem;
  font-size: 0.92rem;
}

.compact-events .event-row p {
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-secondary {
  padding-left: 2.5rem;
  border-left: 1px solid var(--line);
}

.home-secondary .home-section + .home-section {
  border-top: 1px solid var(--line);
}

.home-secondary .home-section > p {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.home-secondary .text-link {
  margin-top: 0.45rem;
}

.compact-writing-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.4;
}

.compact-writing-list li + li {
  margin-top: 0.28rem;
}

.page {
  max-width: var(--measure);
  padding: clamp(3.25rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 5.75rem);
}

.page-header { margin-bottom: 2.6rem; }

.page-header h1,
.error-page h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.15rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.page-header .dek {
  max-width: 38rem;
  color: #4f544f;
  font-size: 1.05rem;
}

.page-header .dek > :last-child,
.prose-body > :last-child { margin-bottom: 0; }

.prose-body { max-width: 42rem; }

.prose-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.75rem auto;
}

.prose-body h2 {
  margin: 2.7rem 0 0.85rem;
  font-size: 1.4rem;
  font-weight: 400;
}

.prose-body h3 { margin: 2.2rem 0 0.7rem; }
.prose-body li + li { margin-top: 0.45rem; }

.prose-body blockquote {
  margin: 2.3rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-style: italic;
}

.writing-index article {
  padding: 1.55rem 0;
  border-top: 1px solid var(--line);
}

.writing-index article:last-child { border-bottom: 1px solid var(--line); }

.writing-index h2 {
  margin-bottom: 0.55rem;
  font-size: 1.45rem;
  font-weight: 400;
}

.writing-index h2 a { color: var(--ink); }

.writing-index p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.writing-index .published { margin-bottom: 0.45rem; }
.schedule-group + .schedule-group { margin-top: 3.5rem; }
.event-detail { padding-block: 1.4rem; }

.event-row .event-notes {
  margin-top: 0.8rem;
  color: var(--ink);
}

.past-events { color: var(--muted); }
.past-events > h2 { color: var(--ink); }
.error-page { min-height: 60vh; }

.site-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.site-footer p { margin: 0; }
.footer-separator { margin-inline: 0.5rem; }

@media (max-width: 760px) {
  html { font-size: 16px; }
  .site-shell { width: min(calc(100% - 2rem), var(--wide)); }

  .site-header {
    display: block;
    min-height: 0;
    padding: 1.6rem 0 1.3rem;
  }

  .nav-list {
    gap: 0.4rem 1rem;
    margin-top: 1rem;
  }

  .intro { padding-block: 3.5rem 4rem; }
  .intro h1 { font-size: clamp(2.3rem, 11vw, 3.3rem); }
  .section-heading { display: block; }

  .section-heading > a {
    display: inline-block;
    margin-top: 1rem;
  }

  .split-section,
  .writing-list { grid-template-columns: 1fr; }

  .compact-home .intro,
  .home-index {
    grid-template-columns: 1fr;
  }

  .compact-home .intro {
    padding: 1.75rem 0 1.6rem;
  }

  .compact-home .intro h1 {
    font-size: 1.65rem;
  }

  .home-index {
    gap: 0;
  }

  .home-upcoming {
    padding-right: 0;
  }

  .home-secondary {
    padding-left: 0;
    border-left: 0;
  }

  .compact-home .home-section,
  .home-secondary .home-section + .home-section {
    border-top: 1px solid var(--line);
  }

  .split-section { gap: 2.5rem; }
  .media-placeholder { min-height: 10rem; }
  .writing-list { gap: 0; }

  .writing-list article {
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
  }

  .writing-list article:last-child { border-bottom: 1px solid var(--line); }
  .page { padding-block: 3rem 4.25rem; }

  .event-row {
    grid-template-columns: 4.4rem minmax(0, 1fr);
    gap: 0.8rem;
  }

  .site-footer { display: block; }
  .site-footer p + p { margin-top: 0.5rem; }
}

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

@media print {
  .site-header nav,
  .site-footer,
  .media-placeholder { display: none; }

  body {
    background: #fff;
    color: #000;
  }

  .site-shell { width: 100%; }
}
