/* Shared design system v4: flat fields, big type, no ornaments. One accent per site. */
:root {
  --max: 1280px;
  --gutter: clamp(18px, 3.2vw, 40px);
  --section: clamp(28px, 3.6vw, 52px);
  --ease: cubic-bezier(.23, 1, .32, 1);
  /* five type sizes: display, h2, lead (also h3), body, small */
  --t-display: clamp(2.9rem, 7vw, 6rem);
  --t-h2: clamp(2rem, 4vw, 3.25rem);
  --t-lead: clamp(1.15rem, .5vw + 1rem, 1.4rem);
  --t-body: 1.0625rem;
  --t-small: .875rem;
  color-scheme: light;
}
/* Both sites share one look: same type, palette and accent. Only the footer name size differs. */
:root {
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Bricolage Grotesque", system-ui, sans-serif;
  --bg: #eef0ee; --field: #dfe4e1; --ink: #0e1a1c; --soft: #1f3033;
  --accent: #b4381a; --accent-ink: #ffffff; --deep: #0e1a1c; --deep-ink: #eef0ee;
  --head-weight: 800; --head-track: -.045em; --head-lead: .95;
  --mega: min(18.6vw, 16.7rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-track); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--t-display); line-height: var(--head-lead); }
h2 { font-size: var(--t-h2); line-height: 1; }
h3 { font-size: var(--t-lead); line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 99; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lead { font-size: var(--t-lead); line-height: 1.45; }
small, .small { font-size: var(--t-small); }

/* Header: a plain bar */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: var(--head-weight); font-size: var(--t-lead); letter-spacing: var(--head-track); line-height: 1; display: flex; flex-direction: column; gap: 4px; }
.brand small { font: 400 var(--t-small)/1 var(--font-body); letter-spacing: 0; color: var(--soft); }
nav { display: flex; align-items: center; gap: 4px; }
nav a { padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
nav a:hover { background: var(--field); }
nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; align-items: center; gap: 10px; font: inherit; font-weight: 600; background: var(--field); color: var(--ink); border: 0; padding: 0 16px; height: 44px; cursor: pointer; }
.menu-btn::after { content: ""; width: 14px; height: 2px; background: currentColor; box-shadow: 0 5px currentColor, 0 -5px currentColor; /* taste-skill-ignore: hamburger glyph */ }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--field); padding: 8px var(--gutter) 20px; flex-direction: column; align-items: stretch; }
  nav.open { display: flex; }
  nav a { font-size: var(--t-lead); padding: 14px 6px; min-height: 48px; }
  nav a[aria-current="page"] { background: none; color: var(--accent); font-weight: 700; }
}

/* Buttons: flat, square */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; font: 600 var(--t-body) var(--font-body); text-decoration: none; background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .15s var(--ease); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--field); color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.light { background: var(--deep-ink); color: var(--deep); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); color: var(--bg); }
  .btn.ghost:hover { background: var(--ink); color: var(--bg); }
  .btn.dark:hover { background: var(--accent); color: var(--accent-ink); }
  .btn.light:hover { background: var(--accent); color: var(--accent-ink); }
}

/* Hero */
.hero { padding: clamp(24px, 4vw, 56px) 0 var(--section); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin-bottom: 28px; }
.hero p.lead { max-width: 34ch; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; overflow: hidden; background: var(--field); min-height: clamp(420px, 44vw, 640px); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate3d(-1%, -1%, 0); } }
.page-hero .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
.page-hero .hero-media { min-height: 340px; }
.next-card { position: absolute; left: 0; bottom: 0; background: var(--accent); color: var(--accent-ink); padding: 20px 24px; max-width: min(380px, 100%); text-decoration: none; display: block; transition: background-color .15s ease; }
.next-card[hidden] { display: none; }
.next-card strong { display: block; font: var(--head-weight) var(--t-lead)/1.15 var(--font-head); letter-spacing: -.02em; margin-bottom: 4px; }
@media (hover: hover) { .next-card:hover { background: var(--ink); } }
@media (max-width: 860px) {
  .hero-grid, .page-hero .hero-grid { grid-template-columns: 1fr; }
  .hero-media, .page-hero .hero-media { min-height: 0; display: flex; flex-direction: column; }
  .hero-media img { position: static; aspect-ratio: 4/3; }
  .next-card { position: static; max-width: none; }
}

/* Facts: filled fields */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts div { background: var(--field); padding: clamp(20px, 2.4vw, 32px); font: var(--head-weight) var(--t-lead)/1.15 var(--font-head); letter-spacing: -.02em; }
.facts small { display: block; margin-top: 8px; font: 400 var(--t-small)/1.4 var(--font-body); letter-spacing: 0; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: var(--section) 0; }
.section-head { max-width: none; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head h2 { margin: 0; }
.section-head p { font-size: var(--t-lead); margin: 20px 0 0; max-width: 34ch; }
.band { background: var(--field); }
.deep { background: var(--deep); color: var(--deep-ink); }
.deep a:not(.btn) { color: var(--deep-ink); }
.sec-grid { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.sec-grid .section-head { margin-bottom: 0; position: sticky; top: 100px; }
@media (max-width: 860px) { .sec-grid { grid-template-columns: 1fr; } .sec-grid .section-head { position: static; margin-bottom: 8px; } }
.split { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stack { display: grid; gap: clamp(20px, 3vw, 40px); }
.stack > div { background: var(--field); padding: clamp(24px, 3vw, 40px); }
.band .stack > div, .band .tile { background: var(--bg); }
.stack h3 { margin-bottom: .4em; }
.stack p:last-child { margin: 0; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tile { background: var(--field); padding: clamp(24px, 3vw, 36px); }
.tile h3 { margin-bottom: .4em; } .tile p:last-child { margin: 0; }
.photo { width: 100%; object-fit: cover; aspect-ratio: 4/3; background: var(--field); }
.ph-box { display: grid; place-items: center; background: var(--field); color: var(--soft); font-family: var(--font-head); font-size: var(--t-lead); }
.photo.wide { aspect-ratio: 21/9; }
.credit { font-size: var(--t-small); margin-top: 10px; max-width: 70ch; }
.cta { padding: var(--section) 0; }
.cta .sec-grid { align-items: center; }
.cta p { max-width: 44ch; font-size: var(--t-lead); }
.motto { margin-top: 32px; font-size: var(--t-lead); min-height: 1.6em; } .motto span { transition: opacity .3s ease; }
.chip { display: inline; font-size: inherit; font-weight: 600; color: var(--accent); }
.note { background: var(--field); padding: 16px 22px; }
.band .note { background: var(--bg); }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: var(--t-lead); }
ul.ticks li { display: flex; gap: 14px; align-items: baseline; }
ul.ticks li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--accent); transform: translateY(-2px); }

/* Tour: the live thing on Hall's home page */
.tour { display: grid; gap: clamp(20px, 3vw, 48px); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
.tour-view { position: relative; background: var(--field); aspect-ratio: 4/3; overflow: hidden; }
.tour-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html:not(.js) .tour-view img:not(:first-child) { display: none; }
.js .tour-view img { opacity: 0; transition: opacity .45s ease; }
.js .tour-view img.on { opacity: 1; }
.tour-list { display: flex; flex-direction: column; }
.tour-list a, .tour-list button { display: block; width: 100%; text-align: left; font: inherit; color: inherit; text-decoration: none; background: transparent; border: 0; padding: 14px 18px; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.tour-list b { display: block; font: var(--head-weight) var(--t-lead)/1.15 var(--font-head); letter-spacing: -.02em; }
.tour-list span { font-size: var(--t-small); }
.tour-list .on { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) { .tour-list a:not(.on):hover, .tour-list button:not(.on):hover { background: var(--field); } }
@media (max-width: 860px) { .tour { grid-template-columns: 1fr; } }

/* Big lists set in large type */
.big-list { list-style: none; padding: 0; margin: 0; columns: 2 260px; column-gap: 40px; font: var(--head-weight) var(--t-h2)/1.1 var(--font-head); letter-spacing: -.03em; }
.big-list li { padding: 10px 0; break-inside: avoid; }

/* Upcoming */
.next { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.next a { text-decoration: none; color: var(--ink); background: var(--field); padding: 24px; display: grid; gap: 8px; align-content: start; transition: background-color .15s ease, color .15s ease; }
@media (hover: hover) { .next a:hover { background: var(--accent); color: var(--accent-ink); } }
.next .d { font: var(--head-weight) var(--t-h2)/1 var(--font-head); letter-spacing: -.04em; } .next .d small { font: 600 var(--t-small) var(--font-body); margin-left: 8px; letter-spacing: 0; }
.next strong { font: var(--head-weight) var(--t-lead)/1.2 var(--font-head); letter-spacing: -.02em; }
.next p { margin: 0; }

/* Tables (real table: keeps its rules) */
.table-wrap { overflow-x: auto; background: var(--bg); }
table { border-collapse: collapse; width: 100%; min-width: 580px; }
th, td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--field); }
th { font: 600 var(--t-small) var(--font-body); background: var(--ink); color: var(--bg); }
tr:last-child td { border-bottom: 0; }
@media (hover: hover) { tbody tr:hover td { background: var(--field); } }

/* Timeline: years in a column, no rule */
.timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(28px, 4vw, 48px); }
.timeline li { display: grid; grid-template-columns: clamp(150px, 15vw, 200px) 1fr; gap: 24px; align-items: baseline; }
.timeline .year { font: var(--head-weight) var(--t-h2)/1 var(--font-head); letter-spacing: -.04em; color: var(--accent); overflow-wrap: normal; hyphens: none; }
@media (max-width: 700px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }
.pics { display: grid; gap: 12px; align-content: start; }
.pics .photo { aspect-ratio: 3/2; }
.pics .photo.tall { aspect-ratio: 4/5; }

/* People */
.people { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.person { background: var(--field); padding: clamp(16px, 2vw, 24px); }
.person .ph { aspect-ratio: 1; background: var(--bg); display: grid; place-items: center; font: var(--head-weight) var(--t-display)/1 var(--font-head); letter-spacing: var(--head-track); color: var(--soft); margin-bottom: 18px; }
.person h3 { margin: 0 0 .15em; }
.person p { margin: 0; }

/* Forms (real fields keep their outlines) */
form { display: grid; gap: 16px; }
label { font-weight: 600; display: grid; gap: 6px; }
input, select, textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 14px 16px; min-height: 50px; border: 2px solid transparent; background: var(--bg); color: var(--ink); width: 100%; }
.band input, .band textarea, .band select, form.panel input, form.panel textarea { background: var(--bg); }
form.panel { background: var(--field); padding: clamp(24px, 3vw, 40px); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.row2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Footer: the name returns at full width */
.site-footer { background: var(--deep); color: var(--deep-ink); padding: clamp(48px, 7vw, 96px) 0 24px; overflow: hidden; }
.site-footer .grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer strong { font: var(--head-weight) var(--t-lead) var(--font-head); letter-spacing: -.02em; }
.site-footer p { margin-top: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.site-footer a { color: var(--deep-ink); text-decoration: none; display: inline-block; padding: 6px 0; }
@media (hover: hover) { .site-footer a:hover { color: var(--bg); text-decoration: underline; } }
.site-footer .mega { font: var(--head-weight) var(--mega)/.85 var(--font-head); letter-spacing: -.05em; margin: clamp(40px, 6vw, 80px) 0 28px; white-space: nowrap; }
.site-footer .legal { font-size: var(--t-body); margin-top: clamp(32px, 4vw, 56px); }
.site-footer .mega + .legal, .site-footer .wrap:has(.mega) + .legal { margin-top: 0; }
.proto { display: block; margin-top: 4px; }
.legal > * { max-width: 62ch; }
.credits { margin-top: 12px; }
.credits a { text-decoration: underline; }

/* Calendar */
.cal-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.cal-controls h3 { margin: 0; font-size: var(--t-h2); line-height: 1; }
.cal-controls div { display: flex; gap: 8px; }
.cal-controls button { font: 600 var(--t-small) var(--font-body); background: var(--field); border: 0; min-height: 44px; padding: 0 18px; cursor: pointer; color: var(--ink); transition: background-color .15s ease, color .15s ease, transform .15s var(--ease); }
.cal-controls button:active { transform: scale(.97); }
@media (hover: hover) { .cal-controls button:hover { background: var(--ink); color: var(--bg); } }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font: 600 var(--t-small) var(--font-body); color: var(--soft); padding: 4px 0; }
.cal-day { min-height: 110px; background: var(--field); padding: 8px; font-size: 1rem; overflow: hidden; }
.cal-day.out { opacity: .45; }
.cal-day.today { background: var(--ink); color: var(--bg); }
.cal-day b { display: block; margin-bottom: 4px; font: 700 var(--t-body) var(--font-head); }
.ev { display: block; padding: 3px 7px; margin-bottom: 3px; line-height: 1.25; background: var(--bg); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.ev.booked { background: var(--soft); color: var(--deep-ink); opacity: .75; }
.ev.public { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ev.council { background: var(--ink); color: var(--bg); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--t-small); margin: 16px 0 0; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; background: var(--bg); }
.legend .l-booked::before { background: var(--soft); } .legend .l-public::before { background: var(--accent); } .legend .l-council::before { background: var(--ink); }
.agenda { display: grid; gap: 10px; }
.agenda-item { display: grid; grid-template-columns: 88px 1fr; gap: 24px; background: var(--bg); padding: 16px 20px 16px 16px; align-items: center; }
.agenda-item .d { text-align: center; line-height: 1; background: var(--accent); color: var(--accent-ink); padding: 14px 0; }
.agenda-item .d b { display: block; font: var(--head-weight) var(--t-h2)/1 var(--font-head); letter-spacing: -.04em; font-size: 2.2rem; }
.agenda-item .d span { font: 600 var(--t-small) var(--font-body); }
.agenda-item h3 { margin: 0 0 4px; } .agenda-item h3 a { color: var(--ink); text-decoration: none; }
@media (hover: hover) { .agenda-item h3 a:hover { color: var(--accent); } }
.agenda-item p { margin: 0; }
@media (max-width: 700px) {
  .cal-day { min-height: 54px; padding: 5px; } .cal-day b { font-size: var(--t-small); } .cal-day .ev { font-size: 0; height: 6px; padding: 0; } .cal-grid { gap: 3px; }
  .agenda-item { grid-template-columns: 64px 1fr; gap: 14px; padding: 12px; }
}

/* Motion: parts of each section enter in turn */
.hero-copy > * { animation: rise .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-media { animation: fade .9s var(--ease) both .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.site-footer .made { margin-top: 12px; font-weight: 600; }

.site-banner { background: var(--ink, #14211f); color: #fff; font-size: 14px; line-height: 1.45; }
.site-banner .wrap { padding-top: 10px; padding-bottom: 10px; }
.site-banner a { color: inherit; text-decoration: underline; }
/* Combined site: larger wordmark in the header */
[data-site="combined"] .bar { min-height: 92px; }
[data-site="combined"] .brand { font-size: clamp(22px, 2.4vw, 30px); gap: 6px; }
[data-site="combined"] .brand small { font-size: clamp(13px, 1.2vw, 15px); }
[data-site="combined"] #nav a { white-space: nowrap; }

/* One consolidated box for long lists of terms, laid out across the full width */
.terms > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.terms .t-sec h3 { margin: 0 0 .6em; }
.terms ul.ticks { font-size: 1rem; }
[data-site="combined"] .faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(24px, 3vw, 40px) clamp(28px, 4vw, 56px); align-items: start; }
[data-site="combined"] .faq-grid h3 { margin: 0 0 .4em; }
.brand-wrap { display: flex; flex-direction: column; gap: 3px; }
.brand-wrap .by { font-size: .8125rem; color: var(--soft); text-decoration: none; }
.brand-wrap .by:hover { text-decoration: underline; }
