:root{
  --ink:#15233f;
  --text:#252b36;
  --muted:#596274;
  --paper:#ffffff;
  --soft:#f7f3ec;
  --brand:#8d2447;
  --brand-dark:#711b38;
  --line:#ded7ca;
  --shadow:0 10px 30px rgba(21,35,63,.07);
  --radius:18px;
  --max:1120px;
  --measure:72ch;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:var(--paper);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.65;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
.wrap{width:min(var(--max),calc(100% - 2rem));margin-inline:auto}
a{color:var(--brand);text-underline-offset:.18em;text-decoration-thickness:.08em}
a:hover{color:var(--brand-dark)}
img{max-width:100%;height:auto;border-radius:14px}
h1,h2,h3{color:var(--ink);line-height:1.14;letter-spacing:-.018em}
h1{font-size:clamp(2.4rem,5vw,4.4rem);margin:.1em 0 .45em}
h2{font-size:clamp(1.65rem,3vw,2.35rem);margin:2.1rem 0 .8rem}
h3{font-size:1.2rem;margin:1.5rem 0 .45rem}
p{margin:0 0 1rem}
.site-header{background:rgba(255,255,255,.98);border-bottom:1px solid var(--line)}
.header-row{display:flex;flex-direction:column;align-items:stretch;gap:.85rem;padding:1.05rem 0 .9rem}
.brand{
  display:block;
  text-align:center;
  font-weight:800;
  font-size:clamp(1.45rem,2.7vw,1.95rem);
  line-height:1.2;
  color:var(--brand);
  text-decoration:none;
  letter-spacing:-.018em
}
.nav{display:flex;justify-content:center;gap:1.25rem;flex-wrap:wrap;font-size:.96rem}
.nav a{color:var(--text);text-decoration:none;font-weight:550;padding:.28rem .05rem;border-bottom:2px solid transparent}
.nav a:hover{color:var(--brand)}
.nav a[aria-current=page]{color:var(--brand);font-weight:750;border-bottom-color:var(--brand)}
.mobile-nav{display:none}
.hero,.page-hero{background:linear-gradient(135deg,#f7f2e9 0%,#fff 82%);padding:clamp(3rem,7vw,6rem) 0}
.hero-title{white-space:nowrap;font-size:clamp(2rem,4.5vw,4rem)}
.hero-logo{display:block;width:min(270px,70vw);margin:1.4rem 0 1.65rem}
.lede{font-size:clamp(1.08rem,2vw,1.3rem);max-width:62ch;color:#495160;line-height:1.7}
main section{padding:clamp(2.75rem,6vw,5rem) 0}
.prose{max-width:none}
.prose p,.prose li{max-width:none}
.prose>img{margin:1.75rem 0}
.prose hr{border:0;border-top:1px solid var(--line);margin:3rem 0}
.grid,.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.35rem;margin-block:1.7rem}
.card,.feature-grid article{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:clamp(1.35rem,3vw,2rem);
  background:#fff;
  box-shadow:var(--shadow)
}
.card h2,.card h3,.feature-grid h3{margin-top:0}
.event-meta{color:var(--muted);font-weight:700}
.button{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.72rem 1.08rem;
  border-radius:999px;
  background:var(--brand);
  color:#fff;
  text-decoration:none;
  font-weight:750;
  line-height:1.2
}
.button:hover{background:var(--brand-dark);color:#fff}
.gallery{columns:3 280px;column-gap:1.1rem}
.gallery figure{break-inside:avoid;margin:0 0 1.1rem}
.gallery img{display:block;width:100%}
.gallery figcaption{font-size:.9rem;color:var(--muted);padding:.4rem .15rem}
.image-pair,.image-trio{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin:1.5rem 0}
.document-frame{height:min(72vh,800px);border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:1rem 0}
.document-frame iframe{width:100%;height:100%;border:0}
.site-footer{background:var(--ink);color:#fff;margin-top:4rem;padding:3rem 0}
.site-footer a{color:#fff}
.footer-grid{display:grid;grid-template-columns:2fr 1fr;gap:2rem}
.small{font-size:.875rem;color:#d8deea}
.empty{padding:2rem;background:var(--soft);border-radius:14px}
.skip-link{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link:focus{position:fixed!important;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal;left:1rem;top:1rem;z-index:100;background:#fff;color:var(--brand);padding:.75rem 1rem;border:2px solid var(--brand);border-radius:8px}
a:focus-visible,summary:focus-visible{outline:3px solid #d3a300;outline-offset:3px}

@media(max-width:760px){
  body{font-size:16px}
  .wrap{width:min(100% - 2rem,var(--max))}
  .header-row{gap:.7rem;padding:.9rem 0}
  .brand{font-size:1.55rem}
  .desktop-nav{display:none}
  .mobile-nav{display:block}
  .mobile-nav details{border-top:1px solid var(--line);padding-top:.6rem}
  .mobile-nav summary{
    cursor:pointer;
    list-style:none;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    color:var(--brand);
    font-weight:750
  }
  .mobile-nav summary::-webkit-details-marker{display:none}
  .mobile-nav summary::after{content:"▾";font-size:.85em;margin-left:.45rem}
  .mobile-nav details[open] summary::after{content:"▴"}
  .mobile-nav .nav{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:.25rem .75rem;
    padding:.55rem 0 .2rem;
    justify-content:stretch
  }
  .mobile-nav .nav a{
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:.55rem .4rem;
    border:0;
    border-radius:8px
  }
  .mobile-nav .nav a[aria-current=page]{background:#f4e9ee}
  .hero,.page-hero{padding:2.6rem 0 2.8rem}
  h1{font-size:clamp(1.8rem,7.5vw,2.5rem)}
  .hero-title{
    font-size:clamp(1.72rem,7.1vw,2.15rem);
    letter-spacing:-.025em;
    white-space:nowrap
  }
  h2{font-size:clamp(1.3rem,5vw,1.75rem)}
  h3{font-size:1.05rem}
  .hero-logo{width:min(240px,70vw);margin:1.25rem 0 1.5rem}
  .lede{font-size:1.08rem;line-height:1.65}
  main section{padding:3rem 0}
  .grid,.feature-grid{grid-template-columns:1fr;gap:1rem}
  .card,.feature-grid article{padding:1.45rem}
  .card h2{font-size:1.3rem}
  .document-frame{display:none}
  .footer-grid{grid-template-columns:1fr;gap:1rem}
  .gallery{columns:1}
}
@media(min-width:761px) and (max-width:980px){
  .nav{gap:.8rem;font-size:.9rem}
  .hero-title{font-size:clamp(2.6rem,5.6vw,3.4rem)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

@media(max-width:760px){
  .mobile-nav .nav a:last-child{grid-column:1 / -1;justify-self:center;min-width:8rem}
  .mobile-nav .nav{padding:.4rem 0 .1rem}
  .hero-title{font-size:clamp(1.45rem,6.7vw,2.15rem)}
}


/* Collection layout within the shared outer page frame */
.events-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.events-grid .card{display:flex;flex-direction:column}
.events-grid .card h2{font-size:clamp(1.55rem,2.2vw,1.9rem)}
.events-grid .card>p:last-child{margin-top:auto}
.links-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.links-grid .card h2{font-size:1.45rem}
.trustee-grid{align-items:stretch;grid-template-columns:repeat(3,minmax(0,1fr))}
.trustee-grid .card{display:flex;flex-direction:column;height:100%}

@media(min-width:761px) and (max-width:980px){
  .links-grid,.trustee-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .events-grid,.links-grid,.trustee-grid{grid-template-columns:1fr}
  .events-grid .card h2,.links-grid .card h2{font-size:1.3rem}
}

/* Heritage enrichment */
.site-header{border-top:4px solid var(--brand)}
.nav a{transition:color .18s ease,border-color .18s ease}
.nav a:hover{border-bottom-color:var(--line)}
.home-hero{background:var(--soft);padding-block:clamp(2.5rem,5vw,4rem)}
.home-hero .wrap{display:grid;grid-template-columns:100px minmax(0,1fr);column-gap:1.5rem;align-items:center}
.home-hero .hero-title{grid-column:1/-1;white-space:normal;font-size:clamp(2.1rem,4.3vw,3.65rem);max-width:20ch;margin-bottom:1.5rem}
.home-hero .hero-logo{width:100px;margin:0;border-radius:0}
.home-hero .lede{margin:0;font-size:clamp(1.05rem,1.7vw,1.2rem)}
.hero-intro{display:contents}
.hero-photograph{grid-column:1/-1;margin:2rem 0 0;padding:0 0 .65rem;border-bottom:1px solid #bda98d}
.hero-photograph img{display:block;width:100%;aspect-ratio:1023/646;object-fit:cover;border-radius:4px;box-shadow:0 12px 28px rgba(21,35,63,.12)}
.home-section h2:first-child{margin-top:0}
.home-section h2:first-child::before{content:"";display:block;width:2.75rem;height:3px;background:var(--brand);margin-bottom:1rem}
.home-models{background:var(--soft);border-block:1px solid var(--line)}
.feature-number{display:inline-flex;align-items:center;justify-content:center;width:2.7rem;height:2.7rem;margin-bottom:1.2rem;border-radius:50%;background:var(--brand);color:white;font-family:Georgia,serif;font-size:1.2rem;font-weight:bold}
.feature-number svg{display:block;width:1.25rem;height:1.25rem}
.heritage-features{grid-template-columns:1fr}
.heritage-features article{display:grid;grid-template-columns:2.7rem minmax(0,1fr);column-gap:1.25rem;padding:1.5rem;border-radius:6px;box-shadow:none;border-left:3px solid var(--brand)}
.heritage-features .feature-number{grid-row:1/3;margin:0}
.heritage-features p{grid-column:2}
.heritage-features h3{font-size:1.16rem;line-height:1.3}
.heritage-features p{font-size:.95rem;margin-bottom:0}
.home-models .image-pair{gap:1.25rem;margin-block:1.75rem}
.home-models .image-pair img{display:block;width:100%;border:5px solid white;border-radius:4px;box-shadow:var(--shadow)}
.home-support .feature-grid article{box-shadow:none;background:var(--soft);border-radius:6px}
.card{border-radius:10px;border-top:3px solid #bda98d}
.card:focus-within{border-color:var(--brand);box-shadow:0 8px 24px rgba(21,35,63,.1)}
.card p:last-child,.feature-grid article p:last-child{margin-bottom:0}
.page-hero{border-bottom:1px solid var(--line)}
.page-hero-collection+main>section{padding-top:clamp(2rem,4vw,3.75rem)}
.gallery figure{background:var(--soft);padding:.45rem;border:1px solid var(--line);border-radius:6px}
.gallery img{border-radius:3px}
.gallery figcaption{padding:.65rem .4rem .3rem}
.prose>img,.image-trio img{border-radius:5px}
.site-footer{margin-top:0;border-top:4px solid #bda98d;padding-block:3.5rem}
.site-footer strong{font-size:1.2rem}
.site-footer a:hover{color:#f1d9b6}
.button{transition:background-color .18s ease,box-shadow .18s ease}
.button:hover{box-shadow:0 4px 12px rgba(113,27,56,.18)}
@media(hover:hover){.card:has(a):hover{border-color:var(--brand)}}
@media(max-width:760px){
 .home-hero .wrap{grid-template-columns:76px minmax(0,1fr);column-gap:1rem}
 .home-hero .hero-logo{width:76px}
 .home-hero .hero-title{font-size:clamp(1.5rem,6.2vw,2rem);max-width:none}
 .heritage-features{grid-template-columns:1fr}
 .heritage-features article{padding:1.45rem}
 .heritage-features h3{font-size:1.1rem}
 .heritage-features p{font-size:1rem}
 .home-models .image-pair{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.nav a,.button{transition:none}}

/* QA: keep long contact addresses and the video inside the content column. */
.prose a,.site-footer a{overflow-wrap:anywhere}
.video-wrap{aspect-ratio:16/9;margin:1.5rem 0}
.video-wrap iframe{display:block;width:100%;height:100%;border:0}
/* Gold alone lacks contrast on white. Ink remains clear on the dark footer. */
a:focus-visible,summary:focus-visible{outline-color:var(--ink)}
.site-footer a:focus-visible{outline-color:#fff}
main>.page-hero-collection+section{padding-top:clamp(2rem,4vw,3.75rem)}

/* Desktop text shares the centre of the existing 1120px page frame.
   Keep tablet/mobile hero alignment and the full-width home photograph. */
@media(min-width:981px){
  .page-hero h1,.page-hero .lede,.home-hero .hero-title{text-align:center}
  .page-hero .lede,.home-hero .hero-title{margin-inline:auto}
  .home-hero .hero-intro{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:1.5rem}
  .home-hero .hero-intro .hero-logo{flex-shrink:0}
  .home-hero .hero-intro .lede{text-align:center}
}
