:root {
  --navy: #123552;
  --action: #1c4b6d;
  --ink: #243746;
  --muted: #586c7b;
  --paper: #fffdf8;
  --cream: #f5efdf;
  --cool: #f0f4f6;
  --pale-blue: #eef4f7;
  --blue-line: #c7d4dc;
  --blue: #6f9fbd;
  --sage: #b7d4d0;
  --lavender: #8d8aad;
  --gold: #c69b45;
  --focus: #2c6488;
  --shadow: 0 0.75rem 2.1rem rgba(18, 53, 82, 0.11);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 400 1rem/1.5 Arial, Helvetica, sans-serif;
}
a { color: var(--action); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.skip-link { position: absolute; left: 0.75rem; top: -8rem; z-index: 10; padding: 0.65rem 0.9rem; background: white; color: var(--navy); }
.skip-link:focus { top: 0.75rem; }
.review-status {
  padding: 0.33rem max(1rem, calc((100vw - 1320px) / 2));
  color: #405564;
  background: #e8eef1;
  border-bottom: 1px solid var(--blue-line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.58rem max(1rem, calc((100vw - 1320px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--blue-line);
}
.brand { display: flex; align-items: baseline; gap: 0.58rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
.brand span { font-size: 0.7rem; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }
.brand b { font: 700 1.08rem/1.1 Georgia, "Times New Roman", serif; }
.site-head nav { display: flex; justify-content: flex-end; gap: 0.08rem; flex-wrap: wrap; }
.site-head nav a { padding: 0.35rem 0.48rem; color: var(--navy); font-size: 0.74rem; font-weight: 750; text-decoration: none; border-bottom: 2px solid transparent; }
.site-head nav a:hover { background: var(--pale-blue); }
.site-head nav a[aria-current="page"] { border-color: var(--action); }
main, footer { max-width: 1320px; margin: 0 auto; }
main { background: var(--paper); box-shadow: var(--shadow); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.55fr);
  gap: 1.4rem 2.5rem;
  align-items: center;
  padding: clamp(2rem, 4.5vw, 4.5rem) clamp(1rem, 4vw, 3.5rem);
  background: linear-gradient(138deg, var(--paper) 0%, #f9f5eb 66%, var(--pale-blue) 100%);
  border-bottom: 1px solid var(--blue-line);
}
.home-hero { padding-top: 0; overflow: hidden; }
.home-place-photo {
  grid-column: 1 / -1;
  width: calc(100% + 2 * clamp(1rem, 4vw, 3.5rem));
  min-height: clamp(11rem, 20vw, 17rem);
  margin-right: calc(-1 * clamp(1rem, 4vw, 3.5rem));
  margin-left: calc(-1 * clamp(1rem, 4vw, 3.5rem));
  background: url("assets/wilbraham-crane-park.webp") center 48% / cover no-repeat;
  border-bottom: 1px solid var(--blue-line);
}
.eyebrow { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
h1, h2 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; }
h1 { max-width: 21ch; margin: 0 0 0.65rem; font-size: clamp(2rem, 4.1vw, 3.85rem); line-height: 1.02; letter-spacing: -0.025em; }
.lede { max-width: 64ch; margin: 0; color: #435d6f; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.42; }
.hero-summary { max-width: 61ch; margin: 0.85rem 0 0; color: var(--navy); font-weight: 750; }
.hero-mark { display: grid; grid-template-columns: 1fr; justify-items: center; width: 100%; max-width: 18rem; margin: auto; }
.hero-mark span { display: grid; place-items: center; width: 100%; min-height: 3rem; padding: 0.7rem 1rem; background: white; color: var(--navy); border: 1px solid var(--blue-line); font-size: 0.8rem; font-weight: 800; text-align: center; box-shadow: 0 0.35rem 0.8rem rgba(18, 53, 82, 0.07); }
.hero-mark .human-node { border-top: 4px solid var(--gold); }
.hero-mark .team-node { border-top: 4px solid var(--blue); }
.hero-mark .memory-node { border-top: 4px solid var(--lavender); }
.hero-mark i { display: block; width: 2px; height: 1.25rem; background: var(--action); }
.content-layout { display: grid; grid-template-columns: minmax(11.5rem, 0.28fr) minmax(0, 1fr); gap: 2.3rem; padding: 1.4rem clamp(1rem, 4vw, 3.5rem) 2.8rem; }
.page-map { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow: auto; padding: 0.75rem; background: var(--pale-blue); border-left: 4px solid var(--action); }
.page-map-label { margin: 0 0 0.4rem; color: var(--navy); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.page-map a { display: block; padding: 0.28rem 0; color: #405564; font-size: 0.75rem; line-height: 1.28; text-decoration: none; }
.page-map a:hover { color: var(--navy); text-decoration: underline; }
.page-map .toc-child { padding-left: 0.72rem; font-size: 0.7rem; }
.report-copy { min-width: 0; max-width: 850px; }
.report-copy h2 { margin: 1.85rem 0 0.45rem; padding-top: 0.25rem; font-size: clamp(1.35rem, 2.05vw, 1.85rem); line-height: 1.08; }
.report-copy h2:first-child { margin-top: 0.25rem; }
.report-copy h3 { margin: 1.35rem 0 0.3rem; color: var(--navy); font-size: 1rem; line-height: 1.23; }
.report-copy h4 { margin: 1.1rem 0 0.25rem; color: var(--action); font-size: 0.9rem; }
.report-copy p, .report-copy li { max-width: 76ch; }
.report-copy p { margin: 0.42rem 0 0.72rem; }
.report-copy ul, .report-copy ol { margin: 0.55rem 0 1rem; padding-left: 1.25rem; }
.report-copy li { margin-bottom: 0.38rem; }
.report-copy code { padding: 0.08rem 0.25rem; background: #e8eef1; color: #173c57; border-radius: 2px; font-size: 0.88em; }
.document-meta { margin: 0 0 1.3rem; padding: 0.72rem 0.85rem; background: var(--cool); border-left: 4px solid var(--blue); font-size: 0.82rem; line-height: 1.55; }
.thesis-callout { margin: 1.1rem 0; padding: 0.85rem 1rem; background: var(--navy); color: white; border-left: 6px solid var(--blue); }
.thesis-callout p { max-width: 70ch; margin: 0; font: 700 1rem/1.38 Georgia, "Times New Roman", serif; }
.thesis-callout strong { color: white; }
.boundary-callout { border-left-color: var(--gold); }
pre { max-width: 100%; margin: 1rem 0; padding: 1rem; overflow: auto; background: #0f293e; color: #f4f8fa; border-left: 5px solid var(--blue); font: 0.73rem/1.35 Menlo, Monaco, Consolas, monospace; }
pre code { padding: 0; color: inherit; background: transparent; }
.table-scroll { max-width: 100%; margin: 0.8rem 0 1.2rem; overflow: auto; background: white; border: 1px solid var(--blue-line); }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.78rem; line-height: 1.3; }
th, td { padding: 0.55rem 0.62rem; border-bottom: 1px solid var(--blue-line); text-align: left; vertical-align: top; }
thead th { color: white; background: var(--navy); font-size: 0.75rem; }
tbody tr:nth-child(even) { background: #f5f8f9; }
hr { margin: 1.8rem 0; border: 0; border-top: 1px solid var(--blue-line); }
.closing-path { padding: 1.25rem clamp(1rem, 4vw, 3.5rem) 1.55rem; background: var(--cool); border-top: 1px solid var(--blue-line); }
.journey-photo {
  width: 100%;
  min-height: clamp(13rem, 27vw, 22rem);
  margin: 0 0 1.15rem;
  background: url("assets/wilbraham-resident-journey-path.webp") center 54% / cover no-repeat;
  border: 1px solid #9fb1bc;
}
.closing-path h2 { max-width: 29ch; margin: 0.2rem 0 0.45rem; font-size: 1.45rem; line-height: 1.08; }
.closing-path p:not(.eyebrow) { max-width: 65ch; font-size: 0.86rem; }
.next-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 30rem; padding: 0.72rem 0.85rem; background: white; border: 1px solid var(--blue-line); color: var(--navy); font-weight: 800; text-decoration: none; }
.next-card:hover { border-color: var(--action); transform: translateY(-1px); box-shadow: 0 0.4rem 0.8rem rgba(18, 53, 82, 0.08); }
.next-card b { font-size: 1.1rem; }
footer { padding: 0.85rem clamp(1rem, 4vw, 3.5rem); color: #e4edf2; background: var(--navy); font-size: 0.71rem; line-height: 1.38; }
footer p { max-width: none; margin: 0.18rem 0; }
footer strong { color: white; }

@media (max-width: 900px) {
  .site-head { align-items: flex-start; flex-direction: column; }
  .site-head nav { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; }
  .home-place-photo { min-height: 12rem; }
  .hero-mark { grid-template-columns: 1fr auto 1fr auto 1fr; max-width: none; }
  .hero-mark i { width: 1.1rem; height: 2px; align-self: center; }
  .content-layout { grid-template-columns: 1fr; gap: 1rem; }
  .page-map { position: static; max-height: none; columns: 2; }
  .page-map-label { column-span: all; }
  .page-map a { break-inside: avoid; }
}

@media (max-width: 575px) {
  .site-head nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .site-head nav a { border: 1px solid var(--blue-line); }
  .hero { padding: 1.6rem 0.9rem; }
  .home-hero { padding-top: 0; }
  .home-place-photo { width: calc(100% + 1.8rem); min-height: 10rem; margin-right: -0.9rem; margin-left: -0.9rem; background-position: center 48%; }
  h1 { font-size: 2rem; }
  .hero-mark { grid-template-columns: 1fr; }
  .hero-mark i { width: 2px; height: 0.8rem; }
  .content-layout { padding: 1rem 0.85rem 2rem; }
  .page-map { columns: 1; }
  .table-scroll::before { content: "Swipe or scroll the table →"; display: block; padding: 0.48rem 0.6rem; color: var(--navy); background: var(--pale-blue); font-size: 0.72rem; font-weight: 800; }
}

@media print {
  @page { size: letter; margin: 0.55in; }
  :root { font-size: 11pt; }
  body { color: #111; background: white; }
  .review-status, .skip-link, .site-head nav, .page-map, .closing-path, .hero-mark, .home-place-photo { display: none; }
  .site-head, .hero, .content-layout, footer { padding: 0.18in 0; }
  main, footer { max-width: none; box-shadow: none; }
  .hero { display: block; background: white; }
  .report-copy { max-width: none; }
  .thesis-callout { color: #111; background: white; border: 2px solid #555; }
  .thesis-callout strong { color: #111; }
  pre { color: #111; background: white; border: 1px solid #777; white-space: pre-wrap; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; font-size: 8pt; }
  footer { color: #333; background: white; border-top: 1px solid #777; }
}
