/* Texts and Contexts — main site stylesheet
   Palette: oatmeal paper, warm ink, manuscript ink-blue, brass detail.
   Type: Fraunces (display) + Newsreader (reading). */

:root {
  --paper:    #F1F0EB;
  --paper-2:  #E9E7DF;   /* slightly deeper panel */
  --ink:      #1B1A17;
  --ink-soft: #575349;
  --accent:   #213A54;   /* manuscript ink-blue */
  --accent-d: #16293D;   /* darker, for hover */
  --gold:     #9A7B3F;   /* fine detail / focus only, never body text */
  --rule:     #D9D4C8;

  --measure: 66ch;

  --serif-display: "Fraunces", Georgia, "Times New Roman", serif;
  --serif-text: "Newsreader", Georgia, "Times New Roman", serif;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
a:hover { color: var(--accent-d); }

/* visible keyboard focus */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- layout ---------- */
.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* the text/context row: marginal note + body */
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 3rem;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--rule);
}
.row:first-of-type { border-top: 0; }
.row.row-plain > .body { grid-column: 1 / -1; }
.row > .note {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.row > .note .n-mark {
  display: inline-block;
  width: 1.4rem; height: 1px; background: var(--gold);
  vertical-align: middle; margin-right: 0.5rem;
}
.row > .body { max-width: var(--measure); }
.row > .body > :first-child { margin-top: 0; }
.row > .body > :last-child { margin-bottom: 0; }

@media (min-width: 60rem) {
  .row {
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 0 3.25rem;
  }
  .row > .note { text-align: right; padding-top: 0.55rem; }
  .row > .note .n-mark { margin: 0 0 0 0.5rem; }
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif-display); font-weight: 500; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0 0 0.6rem; }
h3 { font-size: 1.18rem; font-weight: 600; margin: 1.8rem 0 0.4rem; }
p  { margin: 0 0 1rem; }
.lead { font-size: 1.22rem; color: var(--ink); }
.muted { color: var(--ink-soft); }
strong { font-weight: 600; }

ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.35rem; }

/* a plain definition-style list for the "at a glance" block */
.facts { border: 0; margin: 0; padding: 0; }
.facts div {
  display: grid; grid-template-columns: 10rem 1fr;
  gap: 0.5rem 1rem; padding: 0.55rem 0; border-top: 1px solid var(--rule);
}
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--ink-soft); font-size: 0.95rem; padding-top: 0.1rem; }
.facts dd { margin: 0; }
@media (max-width: 34rem) { .facts div { grid-template-columns: 1fr; gap: 0.15rem; } }

/* ---------- header ---------- */
.context-strip {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
}
.context-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-block: 0.5rem;
}
.context-strip a { color: var(--paper); text-decoration: none; opacity: 0.9; }
.context-strip a:hover { opacity: 1; text-decoration: underline; }
.context-strip .cs-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.masthead .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-block: 1.2rem;
}
.wordmark { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.brand-logo { display: block; width: auto; height: 30px; }
@media (min-width: 40rem) { .brand-logo { height: 40px; } }
@media (min-width: 60rem) { .brand-logo { height: 50px; } }
.brand-logo-foot { display: block; width: auto; height: 40px; margin-bottom: 0.7rem; }

/* menu toggle: shown on small screens, hidden without JS (nav shows stacked instead) */
.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--serif-text); font-size: 1rem; color: var(--ink);
  background: transparent; border: 1px solid var(--ink); border-radius: 2px;
  padding: 0.5rem 0.85rem; cursor: pointer;
}
.nav-toggle .nt-bars { position: relative; width: 18px; height: 2px; background: var(--ink); display: block; }
.nav-toggle .nt-bars::before, .nav-toggle .nt-bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle .nt-bars::before { top: -6px; }
.nav-toggle .nt-bars::after { top: 6px; }
html:not(.js) .nav-toggle { display: none; }

/* mobile-first: nav stacks full width */
nav.primary {
  flex-basis: 100%; display: flex; flex-direction: column;
  align-items: stretch; margin-top: 0.25rem;
}
html.js nav.primary { display: none; }
html.js nav.primary.open { display: flex; }
nav.primary a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: 1.05rem;
  padding: 0.85rem 0.15rem; border-top: 1px solid var(--rule); position: relative;
}
nav.primary a:not(.btn):hover { color: var(--accent); }
nav.primary a[aria-current="page"]:not(.btn) { color: var(--accent); }
nav.primary .nav-submit {
  color: var(--paper); margin-top: 0.9rem; text-align: center;
  border-top: 0; padding-block: 0.75rem;
}
nav.primary .nav-submit:hover { color: var(--paper); }

/* desktop: inline row, toggle hidden */
@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  nav.primary, html.js nav.primary {
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: center;
    justify-content: flex-end; gap: 0.4rem 1.1rem; flex-basis: 100%; margin-top: 0.55rem;
  }
  nav.primary a:not(.btn) { padding: 0.25rem 0; border-top: 0; font-size: 1rem; }
  nav.primary a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; background: var(--gold);
  }
  nav.primary .nav-submit { margin-top: 0; padding-block: 0.7rem; }
}

/* buttons */
.btn {
  display: inline-block; font-family: var(--serif-text);
  font-size: 1rem; line-height: 1; text-decoration: none;
  padding: 0.7rem 1.1rem; border-radius: 2px; border: 1px solid var(--accent);
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn-solid { background: var(--accent); color: var(--paper); }
.btn-solid:hover { background: var(--accent-d); color: var(--paper); border-color: var(--accent-d); }
.btn-line { background: transparent; color: var(--accent); }
.btn-line:hover { background: var(--accent); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* ---------- hero (home) ---------- */
.hero { padding-block: clamp(1.25rem, 3vw, 2rem) clamp(1.75rem, 4vw, 3rem); }
.hero-flex { display: block; }
.hero-flex > .hero-about { margin-top: 1.75rem; max-width: var(--measure); }
.hero-flex > .hero-cfp { margin-top: 1.75rem; }
.hero h1 {
  font-family: var(--serif-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500; line-height: 1.02; letter-spacing: -0.015em;
  margin: 0; max-width: 16ch;
}
.hero .h-tag { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink-soft); max-width: 46ch; margin: 0.4rem 0 0; }

@media (min-width: 75rem) {
  .hero-flex { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.75rem 2.75rem; }
  .hero-flex > .hero-copy { flex: 1 1 auto; min-width: 0; order: 1; }
  .hero-flex > .hero-cfp { flex: 0 0 16.5rem; max-width: 16.5rem; margin-top: 0; order: 2; }
  .hero-flex > .hero-about { flex-basis: 100%; margin-top: 0.25rem; order: 3; }
}

/* hero title load reveal (single, quiet) */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise .7s cubic-bezier(.2,.6,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
}

/* ---------- home sections ---------- */
.panel { background: var(--paper-2); }
.cards {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--rule); border-block: 1px solid var(--rule);
}
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }
.cards a.card {
  background: var(--paper); text-decoration: none; color: var(--ink);
  padding: 1.6rem clamp(1.25rem,3vw,2rem); display: block;
}
.cards a.card:hover { background: var(--paper-2); }
.cards a.card h3 { margin: 0 0 0.3rem; font-family: var(--serif-display); font-weight: 500; font-size: 1.25rem; }
.cards a.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.cards a.card .go { color: var(--accent); font-size: 0.95rem; display: inline-block; margin-top: 0.6rem; }

/* announcement / callout block */
.callout {
  border: 1px solid var(--rule); border-left: 3px solid var(--gold);
  background: var(--paper); padding: 1.25rem 1.4rem; max-width: var(--measure);
}
.callout h3 { margin: 0 0 0.35rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- board ---------- */
.people { list-style: none; margin: 0; padding: 0; }
.people li {
  padding: 0.7rem 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr; gap: 0.1rem;
}
.people li:first-child { border-top: 0; }
.people .p-name { font-size: 1.08rem; }
.people .p-aff { color: var(--ink-soft); font-size: 0.95rem; font-style: italic; }

/* ---------- contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.contact-list li:first-child { border-top: 0; }
.contact-list .c-label { color: var(--ink-soft); font-size: 0.9rem; display: block; }

/* ---------- footer ---------- */
footer.site {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--ink); color: var(--paper);
}
footer.site .wrap { padding-block: 2.5rem; display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { footer.site .wrap { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; } }
footer.site a { color: var(--paper); }
footer.site h4 { font-family: var(--serif-display); font-weight: 500; font-size: 1.05rem; margin: 0 0 0.6rem; color: var(--paper); }
footer.site .f-title { font-family: var(--serif-display); font-size: 1.3rem; }
footer.site .f-sub { color: #C9C6BD; font-size: 0.92rem; margin-top: 0.3rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 0.4rem; font-size: 0.95rem; }
footer.site .f-links a { text-decoration: none; opacity: 0.9; }
footer.site .f-links a:hover { opacity: 1; text-decoration: underline; }
footer.site .f-legal {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: 0.5rem;
  padding-top: 1.25rem; font-size: 0.85rem; color: #B9B6AD;
  grid-column: 1 / -1;
}

/* generic page intro spacing */
.page-head { padding-block: clamp(2rem, 5vw, 3.25rem) 0.5rem; }
.page-head .wrap { max-width: 72rem; }
.page-head h1 { max-width: 20ch; }
.page-head .lead { max-width: var(--measure); color: var(--ink-soft); }
