:root {
  --ink: #1d2930;
  --muted: #718087;
  --paper: #f4f0e9;
  --paper-deep: #e8e1d7;
  --blue: #3e6771;
  --blue-dark: #294b54;
  --orange: #c56f42;
  --line: #cad2cf;
  --white: #fffdf9;
  --sans: "DM Sans", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; }
.page-shell { max-width: 1440px; margin: auto; padding: 0 6.5vw; overflow: hidden; }
.site-header { height: 92px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.brand-mark { display: flex; gap: 11px; align-items: center; color: var(--blue-dark); font-size: 11px; line-height: 1.08; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark strong { font-weight: 700; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; display: block; }
.brand-copy { display: flex; flex-direction: column; gap: 5px; }
.brand-copy small { color: var(--orange); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.brand-symbol { color: var(--orange); font-size: 25px; line-height: 1; }
.header-note, .site-footer { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.header-note span, .site-footer i { display: inline-block; width: 5px; height: 5px; margin: 0 10px; border-radius: 50%; background: var(--orange); vertical-align: middle; }
.intro { padding: 54px 0 36px; max-width: 730px; }
.intro .eyebrow { margin-bottom: 14px; }
.eyebrow { margin: 0 0 22px; color: var(--orange); font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; color: var(--blue-dark); font-family: var(--serif); font-size: 76px; line-height: .98; letter-spacing: -.045em; font-weight: 700; }
h1 em { color: var(--orange); font-style: normal; }
.intro-copy { max-width: 450px; margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.intro-rule { width: 140px; height: 12px; margin-top: 26px; border-top: 1px solid var(--blue); position: relative; }
.intro-rule span { position: absolute; top: -4px; right: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.today-section { display: grid; grid-template-columns: 260px 1fr; gap: 30px; margin-bottom: 54px; padding: 26px 30px; border: 1px solid var(--orange); background: rgba(255, 253, 249, .5); }
.today-heading { display: flex; gap: 16px; align-items: flex-start; }.today-sun { display: block; width: 12px; height: 12px; margin-top: 4px; border: 2px solid var(--orange); border-radius: 50%; color: transparent; box-shadow: 0 0 0 5px rgba(197, 111, 66, .12); }
.today-section .eyebrow { margin-bottom: 8px; }.today-section h2 { margin: 0; color: var(--blue-dark); font-family: var(--serif); font-size: 24px; }.today-section h2 span { color: var(--orange); }.today-list { align-self: center; }.today-card { display: grid; grid-template-columns: 145px 1fr; gap: 22px; align-items: start; }.today-card time { color: var(--orange); font-family: var(--mono); font-size: 11px; }.today-card p { margin: 0; color: #59676d; font-size: 13px; line-height: 1.6; }.today-card .learn-more { margin-top: 8px; }.today-empty { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.5; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 55px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-tab { border: 0; padding: 8px 0; margin-right: 19px; color: var(--muted); background: transparent; font-size: 13px; transition: color .2s; }
.filter-tab.active { color: var(--blue-dark); font-weight: 700; }
.filter-tab.active::after { display: block; content: ""; width: 22px; height: 2px; margin-top: 10px; background: var(--orange); }
.tab-count { margin-left: 4px; color: var(--orange); font-family: var(--mono); font-size: 10px; }
.search-box { position: relative; width: 230px; }
.search-box input { width: 100%; padding: 10px 30px 10px 0; border: 0; border-bottom: 1px solid var(--muted); outline: none; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input:focus { border-color: var(--orange); }
.search-icon { position: absolute; right: 0; top: 6px; color: var(--blue); font-size: 24px; line-height: 1; }
.timeline-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sort-button { border: 0; background: transparent; color: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sort-button span { margin-left: 7px; color: var(--orange); font-size: 17px; vertical-align: -2px; }
.year-nav { display: flex; gap: 26px; align-items: center; margin: -28px 0 34px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }.year-nav-label { flex: 0 0 auto; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }.year-list { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: thin; }.year-button { flex: 0 0 auto; padding: 7px 11px; border: 1px solid transparent; color: var(--muted); background: transparent; font-family: var(--mono); font-size: 11px; }.year-button:hover, .year-button.active { border-color: var(--orange); color: var(--blue-dark); background: rgba(197, 111, 66, .08); }
.calendar-section { margin-bottom: 65px; padding: 29px 30px 25px; border: 1px solid var(--line); background: rgba(255, 253, 249, .55); }.calendar-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }.calendar-header .eyebrow { margin-bottom: 8px; }.calendar-header h2 { margin: 0; color: var(--blue-dark); font-family: var(--serif); font-size: 28px; }.calendar-controls { display: flex; align-items: center; gap: 10px; }.calendar-controls select { min-width: 90px; padding: 8px 9px; border: 1px solid var(--line); color: var(--blue-dark); background: transparent; font-family: var(--mono); font-size: 11px; }.month-arrow { width: 32px; height: 32px; border: 1px solid var(--line); color: var(--blue); background: transparent; font-size: 17px; }.month-arrow:hover { border-color: var(--orange); color: var(--orange); }.calendar-month-heading { display: flex; align-items: center; justify-content: space-between; margin: 25px 0 12px; }.calendar-month-heading h3 { margin: 0; color: var(--orange); font-family: var(--serif); font-size: 22px; text-transform: capitalize; }.clear-calendar { border: 0; color: var(--blue); background: transparent; font-family: var(--mono); font-size: 10px; text-transform: uppercase; }.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(30px, 1fr)); gap: 4px; max-width: 650px; }.calendar-weekday { padding: 8px 0; color: var(--muted); font-family: var(--mono); font-size: 10px; text-align: center; }.calendar-day { position: relative; min-height: 42px; border: 1px solid transparent; color: var(--ink); background: transparent; font-size: 13px; }.calendar-day.has-events { border-color: rgba(197, 111, 66, .35); color: var(--blue-dark); font-weight: 700; }.calendar-day.has-events:hover, .calendar-day.selected { border-color: var(--orange); background: rgba(197, 111, 66, .12); }.calendar-day.blank { pointer-events: none; }.day-dot { position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); transform: translateX(-50%); }.month-events-heading { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--blue-dark); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }.month-events-heading span:last-child { color: var(--orange); }.month-events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; margin-top: 15px; }.month-event { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }.month-event time { color: var(--orange); font-family: var(--mono); font-size: 10px; }.month-event p { grid-column: 2; grid-row: 1; display: -webkit-box; margin: 0; overflow: hidden; color: #59676d; font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.month-event .learn-more { grid-column: 2; grid-row: 2; margin-top: 2px; }
.timeline { position: relative; padding: 10px 0 75px; }
.timeline::before { position: absolute; top: 0; bottom: 40px; left: 50%; width: 1px; content: ""; background: var(--line); }
.timeline-event { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: start; min-height: 175px; animation: reveal .5s both; }
.event-date { grid-column: 1; justify-self: end; padding: 7px 32px 0 0; color: var(--blue); font-family: var(--mono); font-size: 12px; }
.event-marker { grid-column: 2; grid-row: 1; z-index: 1; justify-self: center; width: 11px; height: 11px; margin-top: 8px; border: 3px solid var(--paper); border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.event-card { grid-column: 3; margin: 0 0 42px 32px; padding: 25px 29px 27px; border-left: 2px solid var(--orange); background: rgba(255,253,249,.65); transition: transform .25s, box-shadow .25s; }
.event-card:hover { transform: translateX(5px); box-shadow: 0 9px 25px rgba(42, 65, 70, .08); }
.event-category { margin: 0 0 10px; color: var(--orange); font-family: var(--mono); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.event-card h2 { margin: 0 0 12px; color: var(--blue-dark); font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.event-card p { display: -webkit-box; margin: 0; overflow: hidden; color: #59676d; font-size: 13px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.learn-more { display: inline-flex; gap: 10px; align-items: center; margin-top: 19px; padding: 0; border: 0; color: var(--blue); background: none; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.learn-more::after { content: "→"; color: var(--orange); font-size: 17px; transition: transform .2s; }
.learn-more:hover::after { transform: translateX(5px); }
.timeline-event:nth-child(even) .event-date { grid-column: 3; justify-self: start; padding: 7px 0 0 32px; }
.timeline-event:nth-child(even) .event-card { grid-column: 1; grid-row: 1; margin: 0 32px 42px 0; border-right: 2px solid var(--blue); border-left: 0; }
.timeline-event:nth-child(even) .event-marker { background: var(--blue); border-color: var(--paper); box-shadow: 0 0 0 1px var(--blue); }
.loading-state { padding: 40px 0; color: var(--muted); font-family: var(--mono); font-size: 11px; text-align: center; }
.loading-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1s infinite; }
.empty-state { padding: 70px 0 120px; text-align: center; }
.empty-state span { color: var(--orange); font-size: 35px; }.empty-state h2 { margin: 12px 0 5px; font-family: var(--serif); }.empty-state p { color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; padding: 23px 0 28px; border-top: 1px solid var(--line); }
.event-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: var(--white); color: var(--ink); box-shadow: 0 22px 80px rgba(26, 47, 54, .3); }
.event-dialog::backdrop { background: rgba(29, 41, 48, .56); backdrop-filter: blur(3px); }
.dialog-inner { padding: 54px 62px 48px; overflow: auto; max-height: calc(100vh - 32px); }
.close-dialog { position: absolute; top: 17px; right: 23px; border: 0; background: transparent; color: var(--blue); font-size: 28px; font-weight: 300; }
.dialog-date { margin: 0 0 11px; color: var(--orange); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.dialog-category, .source-label { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.event-dialog h2 { margin: 15px 0 25px; color: var(--blue-dark); font-family: var(--serif); font-size: 34px; line-height: 1.13; }
.dialog-description { color: #4f5e64; font-size: 14px; line-height: 1.7; }
.quote-block { position: relative; margin: 30px 0; padding: 24px 24px 24px 36px; border-left: 2px solid var(--orange); background: var(--paper); }
.quote-mark { position: absolute; top: 7px; left: 13px; color: var(--orange); font-family: var(--serif); font-size: 28px; }.quote-block p { margin: 0; white-space: pre-line; color: var(--blue-dark); font-family: var(--serif); font-size: 16px; line-height: 1.65; }
.source-block { padding-top: 20px; border-top: 1px solid var(--line); }.source-block p { margin: 9px 0 0; overflow-wrap: anywhere; color: var(--blue); font-family: var(--mono); font-size: 11px; line-height: 1.55; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .25; } }
@media (max-width: 700px) {
  .page-shell { padding: 0 22px; }.site-header { height: 75px; }.header-note { display: none; }.intro { padding: 42px 0 30px; }.intro .eyebrow { margin-bottom: 12px; }.intro h1 { font-size: 44px; }.intro-copy { margin-top: 17px; font-size: 14px; }.intro-rule { margin-top: 21px; }.today-section { display: block; margin-bottom: 38px; padding: 21px; }.today-heading { margin-bottom: 20px; }.today-card { grid-template-columns: 1fr; gap: 7px; }
  .toolbar { display: block; margin-bottom: 38px; }.filter-tabs { margin-bottom: 21px; }.search-box { width: 100%; }.timeline::before { left: 9px; }.timeline-event, .timeline-event:nth-child(even) { display: grid; grid-template-columns: 20px 1fr; min-height: 0; }
  .year-nav { display: block; margin-top: -18px; }.year-nav-label { display: block; margin-bottom: 10px; }.calendar-section { padding: 22px 18px; }.calendar-header { display: block; }.calendar-controls { justify-content: flex-start; margin-top: 18px; }.calendar-grid { gap: 2px; }.calendar-day { min-height: 38px; }.month-events { display: block; }.month-event { grid-template-columns: 95px 1fr; }.event-marker, .timeline-event:nth-child(even) .event-marker { grid-column: 1; grid-row: 1 / span 2; margin-top: 9px; }.event-date, .timeline-event:nth-child(even) .event-date { grid-column: 2; grid-row: 1; justify-self: start; padding: 0 0 10px 16px; font-size: 11px; }.event-card, .timeline-event:nth-child(even) .event-card { grid-column: 2; grid-row: 2; margin: 0 0 32px 16px; padding: 20px 20px 22px; border-right: 0; border-left: 2px solid var(--orange); }.event-card h2 { font-size: 20px; }.site-footer { display: block; line-height: 2; }.site-footer span { display: block; }.dialog-inner { padding: 47px 25px 30px; }.event-dialog h2 { font-size: 29px; }
}

.section-tabs { display: flex; gap: 30px; margin: 0 0 35px; border-bottom: 1px solid var(--line); }
.section-tab { position: relative; padding: 0 0 14px; border: 0; color: var(--muted); background: transparent; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.section-tab.active { color: var(--blue-dark); }
.section-tab.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: var(--orange); }
.site-header { gap: 20px; }
.site-header .section-tabs { flex: 1; justify-content: center; gap: 24px; margin: 0; border: 0; }
.site-header .section-tab { padding: 12px 0; font-size: 10px; }
.site-header .section-tab.active::after { bottom: 0; }
.archive-view[hidden] { display: none; }
.view-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 12px 0 27px; }
.view-heading .eyebrow { margin-bottom: 8px; }
.view-heading h2 { margin: 0; color: var(--blue-dark); font-family: var(--serif); font-size: 32px; }
.map-filter { display: grid; gap: 6px; color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.map-filter select, .people-search input { min-width: 210px; padding: 10px 12px; border: 1px solid var(--line); color: var(--ink); background: var(--white); font-family: var(--sans); font-size: 13px; }
.places-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); min-height: 540px; border: 1px solid var(--line); background: var(--white); }
.archive-map { min-height: 540px; background: #e6ece8; }
.archive-map .leaflet-popup-content-wrapper, .archive-map .leaflet-popup-tip { border-radius: 2px; }
.place-panel { display: flex; flex-direction: column; min-height: 0; max-height: 620px; border-left: 1px solid var(--line); }
.place-panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 19px 13px; border-bottom: 1px solid var(--line); }
.place-panel-heading h3 { margin: 0; color: var(--blue-dark); font-family: var(--serif); font-size: 19px; }
.place-panel-heading span, .place-button small { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.place-list { max-height: 215px; overflow: auto; border-bottom: 1px solid var(--line); }
.place-button, .person-button { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 19px; border: 0; border-bottom: 1px solid rgba(202, 210, 207, .55); color: var(--ink); background: transparent; text-align: left; }
.place-button:hover, .place-button.active, .person-button:hover, .person-button.active { color: var(--blue-dark); background: rgba(62, 103, 113, .08); }
.place-button.active, .person-button.active { box-shadow: inset 2px 0 var(--orange); }
.place-button span, .person-button span { font-size: 12px; }
.place-events { overflow: auto; padding: 4px 19px 16px; }
.place-event { padding: 13px 0; border-bottom: 1px solid var(--line); }
.place-event time, .person-event time { color: var(--orange); font-family: var(--mono); font-size: 10px; }
.place-event h4 { margin: 6px 0; color: var(--blue-dark); font-family: var(--serif); font-size: 16px; }
.place-event p, .person-event p { margin: 0; color: #59676d; font-size: 12px; line-height: 1.55; }
.place-event .learn-more, .person-event .learn-more { margin-top: 8px; }
.map-note { margin: 12px 0 55px; color: var(--muted); font-family: var(--mono); font-size: 9px; line-height: 1.5; }
.map-unavailable { padding: 24px; color: var(--muted); font-size: 13px; }
.people-layout { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.5fr); min-height: 440px; margin-bottom: 60px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.people-list { max-height: 700px; overflow: auto; border-right: 1px solid var(--line); }
.person-profile { padding: 28px 34px; }
.person-profile > .eyebrow { margin-bottom: 9px; }
.person-profile > h3 { margin: 0; color: var(--blue-dark); font-family: var(--serif); font-size: 31px; }
.person-summary { max-width: 750px; margin: 14px 0 20px; color: #59676d; font-size: 14px; line-height: 1.7; }
.person-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 22px 0 30px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.person-facts div { min-width: 0; }
.person-facts dt { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.person-facts dd { margin: 7px 0 0; overflow-wrap: anywhere; color: var(--blue-dark); font-size: 12px; line-height: 1.5; }
.person-profile > h4 { margin: 0 0 11px; color: var(--blue-dark); font-family: var(--serif); font-size: 20px; }
.person-event { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 17px; padding: 15px 0; border-top: 1px solid rgba(202, 210, 207, .7); }
.person-event h5 { margin: 0 0 6px; color: var(--blue-dark); font-family: var(--serif); font-size: 16px; }
.person-event small { display: block; margin-top: 7px; color: var(--muted); font-family: var(--mono); font-size: 9px; line-height: 1.5; }
.event-context { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--blue); font-family: var(--mono); font-size: 10px; line-height: 1.7; white-space: pre-line; }
@media (max-width: 800px) {
  .site-header { height: auto; min-height: 75px; flex-wrap: wrap; gap: 6px 15px; padding: 10px 0; }
  .site-header .section-tabs { flex: 1; justify-content: flex-end; gap: 15px; }
  .site-header .section-tab { font-size: 9px; }
  .places-layout { grid-template-columns: 1fr; }
  .archive-map { min-height: 390px; }
  .place-panel { max-height: none; border-top: 1px solid var(--line); border-left: 0; }
  .place-list { max-height: 180px; }
  .people-layout { grid-template-columns: 1fr; }
  .people-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .person-button { padding: 10px 12px; }
  .person-profile { padding: 23px 0; }
}
@media (max-width: 520px) {
  .site-header .section-tabs { gap: 11px; }
  .site-header .section-tab { font-size: 8px; letter-spacing: 0; }
  .view-heading { align-items: start; flex-direction: column; }
  .view-heading h2 { font-size: 27px; }
  .map-filter, .map-filter select, .people-search, .people-search input { width: 100%; }
  .archive-map { min-height: 330px; }
  .people-list { grid-template-columns: 1fr; }
  .person-facts { grid-template-columns: 1fr; gap: 12px; }
  .person-event { grid-template-columns: 1fr; gap: 7px; }
}