/* Cambridge: college stone, Cambridge blue and deep navy, Baskerville headings (John Baskerville printed for the University Press),
   shield-shaped numbers and a double Cambridge-blue band under the header. Layered over site.css (body.theme-cambridge). */
@font-face { font-family: "Libre Baskerville"; src: url(../fonts/baskerville-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url(../fonts/baskerville-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #f5f1e8; --surface: #fffdf8; --ink: #1b2533; --muted: #5f6670; --line: #e3dccd; --accent: #2e6b5e; --accent-2: #24564b; --on-accent: #fff;
  --cam: #a3c1ad; --cam-ink: #12231c; --navy: #1a2740; --navy-ink: #e9eef0; --radius: 8px;
  --route: #c8102e; /* tour routes: the green accent got lost among the college lawns and parks on the map */
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --scarf: linear-gradient(var(--cam) 0 3px, var(--navy) 3px 4px, var(--cam) 4px 5px); /* double band in Cambridge blue */
  --shadow: 0 1px 2px rgba(26,39,64,.06), 0 8px 24px rgba(26,39,64,.07);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e161e; --surface: #15212b; --ink: #eef0ea; --muted: #9fa9b0; --line: #253441; --accent: #a3c1ad; --accent-2: #bfd5c6; --on-accent: #10201a;
    --navy: #0a121b; --shadow: 0 1px 2px rgba(0,0,0,.4); }
}
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, .logo, .tx strong, .area-cards strong, .near-cards strong, .group-h, .place .lead, .sources h2 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.logo { font-size: 1.04rem; color: #fff; }

/* header: navy with a Cambridge-blue band; hero; footer */
.site-head { background: var(--navy); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: var(--scarf); pointer-events: none; }
.crumb a { color: var(--navy-ink); }
.head-share, .head-me { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.head-share:hover, .head-me:hover { color: var(--cam); border-color: var(--cam); }
.hero, .hero.no-img { background: var(--navy); }
.hero-txt { background: linear-gradient(transparent, rgba(14,22,36,.82)); padding-bottom: 28px; }
.hero h1 { font-size: clamp(1.8rem, 5.4vw, 3.3rem); line-height: 1.2; text-shadow: none; }
.hero h1::before { content: ""; display: block; width: 64px; height: 4px; background: var(--cam); margin-bottom: 16px; }
.intro .prose { font-size: 1.06rem; }
.intro .prose.drop > p:first-child::first-letter { font-family: var(--serif); font-weight: 400; color: var(--accent);
  -webkit-initial-letter: 2; initial-letter: 2; margin-right: .14em; } /* the letter's top lines up with the first line, its foot with the second */
@supports not ((initial-letter: 2) or (-webkit-initial-letter: 2)) {
  .intro .prose.drop > p:first-child::first-letter { float: left; font-size: 2.9em; line-height: .8; padding: .1em .12em 0 0; margin: 0; }
}
.site-foot { position: relative; background: var(--navy); color: #b8c2c9; border-top: 0; margin-top: 64px; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--scarf); }
.site-foot a { color: var(--navy-ink); }

/* list + controls */
.btn, .act, .chip, .tools input[type=search], .seg, .fbtn { border-radius: 6px; }
.seg button { border-radius: 4px; }
.seg button.on { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .seg button.on { background: var(--cam); color: var(--cam-ink); } }
.pl { grid-template-columns: 44px 96px 1fr; }
.num { width: 34px; height: 38px; border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% 58%, 50% 100%, 0 58%); padding-bottom: 6px;
  font-family: var(--serif); font-weight: 400; font-size: .92rem; margin-top: 0; }
.th { border-radius: 4px; }
.tx strong { font-size: 1.1rem; line-height: 1.35; }
.tys { font-variant: small-caps; letter-spacing: .04em; font-size: .9rem; }
.group-h { font-size: 1.25rem; border-bottom: 3px double var(--c, var(--accent)); }
.fgh { font-family: var(--serif); text-transform: none; font-variant: small-caps; letter-spacing: .06em; font-size: .95rem; font-weight: 400; color: var(--accent); }
.view-toggle { background: var(--navy); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.25), inset 0 -4px 0 var(--cam); }
@media (max-width: 480px) { .pl { grid-template-columns: 36px 72px 1fr; } .num { width: 30px; height: 34px; font-size: .84rem; } }

/* home */
.home-hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.area-cards a { border-radius: 6px; box-shadow: none; border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: 3px; }
.area-cards strong { font-size: 1.35rem; }

/* place page */
.place h1 { font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.2; }
.place .lead { font-size: 1.18rem; color: var(--ink); line-height: 1.55; }
.facts dt { font-variant: small-caps; text-transform: none; letter-spacing: .06em; font-size: .95rem; color: var(--accent); }
.near-cards .img { border-radius: 4px; }
