/* ==========================================================================
   St Peter & St Paul, Caistor — site stylesheet
   Single source of truth for layout widths, colour, type and components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* ---- Layout. Every wrapper on the site resolves to these two widths. ---- */
  --wrap:        1180px;   /* standard content wrapper */
  --wrap-narrow:  760px;   /* long-form prose measure  */
  --gutter:      clamp(20px, 5vw, 48px);
  --section:     clamp(64px, 8vw, 120px);
  --section-sm:  clamp(44px, 5.5vw, 76px);
  --radius:      4px;
  --radius-lg:   10px;

  /* ---- Colour: warm Lincolnshire limestone, ironstone red, yew green ---- */
  --paper:    #FBF8F3;
  --paper-2:  #F4EEE4;
  --paper-3:  #ECE3D4;
  --ink:      #191510;
  --ink-2:    #4E463A;
  --ink-3:    #7B7264;
  --line:     #E1D7C6;
  --line-2:   #CFC2AB;
  --accent:   #8B2C22;
  --accent-2: #6E221B;
  --green:    #2C4E44;
  --gold:     #A98432;
  --night:    #131B18;

  /* ---- Type ---- */
  --font-display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --t-display: clamp(2.7rem, 1.15rem + 5.1vw, 5.1rem);
  --t-h1:      clamp(2.1rem, 1.35rem + 2.6vw, 3.45rem);
  --t-h2:      clamp(1.65rem, 1.25rem + 1.5vw, 2.4rem);
  --t-h3:      clamp(1.15rem, 1.02rem + 0.45vw, 1.4rem);
  --t-body:    1.0625rem;
  --t-sm:      0.9375rem;
  --t-xs:      0.8125rem;

  --shadow-1: 0 1px 2px rgba(25,21,16,.05), 0 6px 20px -12px rgba(25,21,16,.22);
  --shadow-2: 0 2px 4px rgba(25,21,16,.05), 0 22px 50px -24px rgba(25,21,16,.32);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.012em; }
p  { text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

hr { border: 0; border-top: 1px solid var(--line); }

::selection { background: var(--gold); color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives — the ONLY wrappers used anywhere on the site
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(100% - (var(--gutter) * 2), var(--wrap-narrow));
  margin-inline: auto;
}

.section         { padding-block: var(--section); }
.section--sm     { padding-block: var(--section-sm); }
.section--paper2 { background: var(--paper-2); }
.section--dark   { background: var(--night); color: #D9D2C6; }
.section--dark h2, .section--dark h3 { color: #FBF8F3; }
.section--rule   { border-top: 1px solid var(--line); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: var(--radius);
  font-size: var(--t-sm); font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* --------------------------------------------------------------------------
   4. Small type utilities
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--gold); flex: none;
}
.section--dark .eyebrow { color: #A9A090; }

.lede {
  font-size: clamp(1.09rem, 1rem + .5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.section--dark .lede { color: #C8C0B2; }

.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.4em; }
.prose h3 { margin-top: 2em; }
.prose h2 + *, .prose h3 + * { margin-top: .85em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--ink); font-weight: 620; }

.quote {
  border-left: 3px solid var(--gold);
  padding: .2rem 0 .2rem 1.4rem;
  font-size: 1.08rem;
  color: var(--ink-2);
}
.quote cite {
  display: block; margin-top: .7rem; font-size: var(--t-xs); font-style: normal;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}

.u-center { text-align: center; }
.stack-sm > * + * { margin-top: .55rem; }
.stack    > * + * { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body);
  font-size: var(--t-sm); font-weight: 600;
  padding: .85em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn--light { background: rgba(251,248,243,.1); color: #FBF8F3; border-color: rgba(251,248,243,.34); }
.btn--light:hover { background: #FBF8F3; color: var(--night); border-color: #FBF8F3; }
.btn--sm { padding: .6em 1.05em; font-size: var(--t-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: var(--t-sm);
  color: var(--accent);
}
.arrow-link span { transition: transform .18s ease; }
.arrow-link:hover span { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.utility {
  background: var(--night);
  color: #B4AC9C;
  font-size: var(--t-xs);
}
.utility .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .3rem 1.6rem;
  min-height: 38px; padding-block: .4rem;
}
.utility__short { display: none; }
.utility a { color: #E4DDD0; }
.utility ul { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: 0; }
.utility .dot { color: var(--gold); }

/* Below the fold matters most on a phone: keep the bar to a single short line. */
@media (max-width: 1060px) {
  .utility { font-size: .75rem; }
  .utility .wrap { min-height: 0; padding-block: .32rem; gap: .2rem 1rem; flex-wrap: nowrap; }
  .utility__full, .utility__aside { display: none; }
  .utility__short { display: inline; }
  .utility ul { gap: .9rem; }
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,243,.93);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 78px;
}
@media (max-width: 1060px) {
  .site-header .wrap { min-height: 62px; gap: 1rem; }
  .brand { gap: .65rem; min-width: 0; }
  .brand__mark { width: 26px; height: 36px; }
  .brand__name { font-size: 1rem; white-space: nowrap; }
  .brand__sub { font-size: .63rem; letter-spacing: .14em; margin-top: .18rem; white-space: nowrap; }
}
@media (max-width: 400px) {
  .site-header .wrap { gap: .7rem; }
  .brand { gap: .55rem; }
  .brand__mark { width: 23px; height: 32px; }
  .brand__name { font-size: .95rem; }
  .brand__sub { font-size: .58rem; letter-spacing: .1em; }
  .nav-toggle { padding: .5rem .65rem; }
}

.brand {
  display: flex; align-items: center; gap: .8rem; text-decoration: none !important;
  position: relative; z-index: 3;
}
.brand__mark { width: 32px; height: 44px; flex: none; color: var(--accent); }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name {
  font-family: var(--font-display); font-weight: 680;
  font-size: 1.09rem; letter-spacing: -.02em; color: var(--ink);
}
.brand__sub { font-size: .69rem; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-3); margin-top: .22rem; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  font-size: .9rem; font-weight: 520; color: var(--ink-2);
  padding-block: .4rem;
}
.nav__link:hover { color: var(--ink); text-decoration: none; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 640; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative; z-index: 3;
  align-items: center; gap: .55rem;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: .55rem .8rem; font: inherit; font-size: var(--t-xs); font-weight: 600;
  color: var(--ink); cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; }
.nav-toggle__bars i { display: block; width: 17px; height: 1.5px; background: var(--ink); }

@media (max-width: 1060px) {
  /* backdrop-filter on an ancestor makes it the containing block for
     position:fixed children, which would trap the drawer inside the header.
     The header is opaque at this size instead. */
  .site-header { backdrop-filter: none; background: var(--paper); }

  .nav-toggle { display: inline-flex; }
  .nav {
    /* Sits directly beneath the sticky header rather than behind it, so the
       masthead is never overlapped. --header-h is measured in site.js. */
    position: fixed;
    top: var(--header-h, 93px); right: 0; bottom: 0; left: auto;
    width: min(360px, 86vw);
    background: var(--paper);
    border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 1.35rem var(--gutter) 2.5rem;
    /* Closed state stays inside the viewport so the page never scrolls sideways. */
    opacity: 0; visibility: hidden; transform: translateY(-14px);
    transition: opacity .24s ease, transform .28s cubic-bezier(.4,0,.2,1), visibility .28s;
    box-shadow: var(--shadow-2); overflow-y: auto;
    z-index: 1;
  }

  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link { display: block; padding: .95rem 0; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

.nav-scrim {
  position: fixed; top: var(--header-h, 93px); right: 0; bottom: 0; left: 0;
  background: rgba(19,27,24,.42); z-index: 92;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.nav-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   7. Hero and page heads
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--night);
  color: #E7E1D6;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(115% 85% at 78% 8%, rgba(169,132,50,.20), transparent 58%),
    radial-gradient(90% 70% at 6% 100%, rgba(139,44,34,.24), transparent 62%),
    linear-gradient(168deg, #1C2723 0%, #131B18 52%, #0E1512 100%);
}

/* Full-bleed photograph behind a hero or page banner. */
.backdrop, .backdrop img {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
.hero--photo::before {
  z-index: -2;
  background:
    linear-gradient(100deg, rgba(11,17,14,.95) 0%, rgba(11,17,14,.88) 34%,
                    rgba(13,20,17,.66) 62%, rgba(13,20,17,.46) 100%),
    linear-gradient(to top, rgba(11,17,14,.92) 0%, rgba(11,17,14,.25) 34%, transparent 58%),
    radial-gradient(90% 70% at 6% 100%, rgba(139,44,34,.30), transparent 62%);
}
@media (max-width: 900px) {
  .hero--photo::before {
    background:
      linear-gradient(180deg, rgba(11,17,14,.90) 0%, rgba(11,17,14,.82) 45%, rgba(11,17,14,.94) 100%),
      radial-gradient(90% 60% at 8% 100%, rgba(139,44,34,.28), transparent 62%);
  }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 3px 3px;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.6fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(64px, 8vw, 104px) clamp(40px, 5vw, 68px);
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; padding-block: clamp(56px, 9vw, 84px) clamp(36px, 6vw, 56px); }
  .hero__art { display: none; }
}
.hero__title {
  font-size: var(--t-display);
  color: #FDFBF7;
  font-weight: 640;
  letter-spacing: -.032em;
  line-height: 1.02;
}
.hero__title em { font-style: normal; color: var(--gold); }
.hero__title { max-width: 17ch; }
.hero__lede {
  margin-top: 1.5rem; max-width: 56ch;
  font-size: clamp(1.05rem, .98rem + .5vw, 1.24rem);
  line-height: 1.6; color: #C4BCAE;
}
.hero__actions { margin-top: 2.2rem; }
.hero__eyebrow { color: #B0A794; }
.hero__art { justify-self: center; width: 100%; max-width: 330px; color: rgba(203,168,92,.62); }

.hero__meta {
  padding-top: 1.8rem;
  padding-bottom: clamp(56px, 7vw, 96px);
  border-top: 1px solid rgba(228,221,208,.18);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.6rem 2rem;
}
.hero__meta dt { font-size: var(--t-xs); letter-spacing: .15em; text-transform: uppercase; color: #9C9282; margin-bottom: .35rem; }
.hero__meta dd { margin: 0; font-size: var(--t-sm); color: #E7E1D6; line-height: 1.45; }

.page-head {
  background: var(--night); color: #DDD6C9;
  padding-block: clamp(56px, 7vw, 92px);
  position: relative; isolation: isolate; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(100% 90% at 88% 0%, rgba(169,132,50,.18), transparent 60%),
    linear-gradient(160deg, #1C2723, #101714);
}
.page-head--photo { padding-block: clamp(72px, 9vw, 128px); }
.page-head--photo::before {
  background:
    linear-gradient(100deg, rgba(11,17,14,.94) 0%, rgba(11,17,14,.86) 40%,
                    rgba(13,20,17,.70) 72%, rgba(13,20,17,.58) 100%),
    linear-gradient(to top, rgba(11,17,14,.72), transparent 62%);
}
@media (max-width: 700px) {
  .page-head--photo::before {
    background: linear-gradient(180deg, rgba(11,17,14,.90), rgba(11,17,14,.86));
  }
}
.page-head h1 { color: #FDFBF7; max-width: 20ch; }
.page-head .lede { color: #C0B8AA; margin-top: 1.2rem; max-width: 62ch; }

.breadcrumb { font-size: var(--t-xs); color: #9C9282; margin-bottom: 1.1rem; }
.breadcrumb a { color: #C6BEAF; }
.breadcrumb span { padding-inline: .5em; color: var(--gold); }

/* --------------------------------------------------------------------------
   8. Next service strip
   -------------------------------------------------------------------------- */
.nextservice { background: var(--paper-3); border-bottom: 1px solid var(--line-2); }
.nextservice .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem;
  padding-block: 1rem;
}
.nextservice__tag {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent);
}
.nextservice__body { font-size: var(--t-sm); color: var(--ink); }
.nextservice__body b { font-weight: 650; }
.nextservice .arrow-link { margin-left: auto; }

/* --------------------------------------------------------------------------
   9. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  display: flex; flex-direction: column; gap: .7rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card--link:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.card h3 a { color: inherit; }
.card p { font-size: var(--t-sm); }
.card .arrow-link { margin-top: auto; padding-top: .5rem; }
.card__icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: .3rem; }

/* Service rows */
.service {
  display: grid; grid-template-columns: auto 1fr; gap: 0 clamp(1.2rem, 2.4vw, 2.2rem);
  padding-block: clamp(1.5rem, 2.4vw, 2.1rem);
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__when {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  font-weight: 620; letter-spacing: -.02em; color: var(--ink);
  min-width: 8.5ch;
}
.service__day {
  display: block; font-family: var(--font-body); font-size: var(--t-xs); font-weight: 620;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem;
}
.service__body h3 { margin-bottom: .4rem; }
.service__body p { font-size: var(--t-sm); }
.service__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
@media (max-width: 620px) { .service { grid-template-columns: 1fr; gap: .8rem; } }

.pill {
  display: inline-block; font-size: var(--t-xs); font-weight: 560;
  padding: .3em .75em; border-radius: 999px;
  background: var(--paper-3); color: var(--ink-2); border: 1px solid var(--line-2);
}
.section--dark .pill { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #DDD6C9; }

.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split--top { align-items: start; }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,165px), 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); }
.figure__n {
  font-family: var(--font-display); font-weight: 640;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); line-height: 1;
  letter-spacing: -.03em; color: var(--accent);
}
.figure__l { margin-top: .6rem; font-size: var(--t-sm); line-height: 1.45; color: var(--ink-2); }
.section--dark .figure__n { color: var(--gold); }
.section--dark .figure__l { color: #B7AFA0; }

.facilities { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,230px), 1fr)); gap: .1rem 2rem; }
.facilities li { display: flex; gap: .7rem; align-items: flex-start; padding-block: .6rem; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.facilities svg { width: 17px; height: 17px; flex: none; color: var(--green); margin-top: .28rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
table.rota { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 640px; }
table.rota th, table.rota td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rota thead th {
  font-size: var(--t-xs); letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 650; background: var(--paper-2);
}
table.rota tbody tr:last-child td, table.rota tbody tr:last-child th { border-bottom: 0; }
table.rota th[scope="row"] { font-weight: 650; color: var(--ink); white-space: nowrap; }
table.rota td b { color: var(--ink); font-weight: 620; }

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.15rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-h3);
  letter-spacing: -.012em; color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent);
  transform: rotate(45deg) translate(-2px,-2px); transition: transform .22s ease;
}
.acc details[open] summary::after { transform: rotate(-135deg) translate(-2px,-2px); }
.acc summary:hover { color: var(--accent); }
.acc__body { padding-bottom: 1.6rem; max-width: 68ch; }
.acc__body > * + * { margin-top: .9rem; }
.acc__body ul { padding-left: 1.25em; }
.acc__body li + li { margin-top: .4rem; }

.bells { list-style: none; padding: 0; display: grid; gap: 0; }
.bells li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-block: .85rem; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.bells li:first-child { border-top: 1px solid var(--line); }
.bells b { font-family: var(--font-display); color: var(--ink); font-weight: 620; letter-spacing: -.01em; }
.bells i { font-style: normal; letter-spacing: .06em; color: var(--accent); }
@media (max-width: 560px) { .bells li { grid-template-columns: 1fr; gap: .2rem; } }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 2rem 2.2rem; border-left: 1px solid var(--line-2); }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: .45rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.timeline .yr { display: block; font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; color: var(--accent); margin-bottom: .3rem; }
.timeline p { font-size: var(--t-sm); }

.callout {
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.2vw, 1.7rem);
  font-size: var(--t-sm);
}
.callout h3 { margin-bottom: .5rem; }
.callout > * + * { margin-top: .7rem; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
.contact-list .lbl { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .35rem; }
.contact-list .val { font-size: 1.05rem; color: var(--ink); font-weight: 560; line-height: 1.5; }
.contact-list .val a { color: var(--ink); }
.contact-list .val a:hover { color: var(--accent); }
.section--dark .contact-list .val, .section--dark .contact-list .val a { color: #F2EDE4; }
.section--dark .contact-list .lbl { color: #9C9282; }

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.field .hint { font-size: var(--t-xs); color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t-sm); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: .8rem .95rem; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px),1fr)); gap: 1.15rem; }

/* Photographs -------------------------------------------------------------- */
.media { margin: 0; }
.media picture { display: block; }
.media img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.media[style*="--ratio"] img { aspect-ratio: var(--ratio); object-fit: cover; }
.media figcaption {
  margin-top: .8rem; font-size: var(--t-xs); line-height: 1.5; color: var(--ink-3);
}
.media figcaption .credit { display: block; margin-top: .18rem; opacity: .82; }
.media figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.section--dark .media figcaption { color: #9C9282; }

.media--tile img { aspect-ratio: 3 / 4; object-fit: cover; }
.media--tile { overflow: hidden; border-radius: var(--radius-lg); }
.media--tile img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.media--tile:hover img { transform: scale(1.035); }

.gallery {
  display: grid; gap: clamp(.6rem, 1.4vw, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.gallery--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.gallery--wide .media--tile img { aspect-ratio: 4 / 3; }
.gallery__note {
  margin-top: .9rem; font-size: var(--t-xs); color: var(--ink-3);
}
.gallery__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .media--tile img, .media--tile:hover img { transition: none; transform: none; }
}

.figure-img { margin: 0; }
.figure-img img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.figure-img figcaption { margin-top: .7rem; font-size: var(--t-xs); color: var(--ink-3); }
.plate {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(169,132,50,.13), transparent 60%),
    linear-gradient(165deg, var(--paper-2), var(--paper-3));
  border: 1px solid var(--line-2);
  display: grid; place-items: center; overflow: hidden;
}
.plate svg { width: auto; height: 82%; max-width: 76%; color: rgba(139,44,34,.4); }
.plate--wide { aspect-ratio: 16 / 10; }
.plate { max-height: 560px; }
.plate--dark { background: linear-gradient(165deg, #1C2723, #101714); border-color: rgba(255,255,255,.1); }
.plate--dark svg { color: rgba(203,168,92,.5); }

/* --------------------------------------------------------------------------
   10. CTA band
   -------------------------------------------------------------------------- */
.cta { background: var(--accent); color: #FBEDE9; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.87); }
.cta .btn--light { border-color: rgba(255,255,255,.5); color: #fff; }
.cta .btn--light:hover { background: #fff; color: var(--accent); }
.cta__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 1.8rem 3rem; align-items: center; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: #A9A192; font-size: var(--t-sm); }
.site-footer a { color: #DED7CA; }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, minmax(140px, 1fr));
  gap: 2.4rem clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(48px, 6vw, 76px);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); } }
.footer__title { font-size: var(--t-xs); letter-spacing: .15em; text-transform: uppercase; color: #8F8676; margin-bottom: 1rem; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__brand { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.footer__brand svg { width: 28px; flex: none; color: var(--gold); }
.footer__brand strong { display: block; font-family: var(--font-display); font-size: 1.08rem; color: #FBF8F3; letter-spacing: -.02em; font-weight: 640; }
.footer__brand span { font-size: var(--t-xs); letter-spacing: .15em; text-transform: uppercase; color: #8F8676; }
.footer__note { max-width: 40ch; line-height: 1.6; }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: space-between;
  font-size: var(--t-xs); color: #948B7B;
}
.footer__bar ul { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: 0; }

/* --------------------------------------------------------------------------
   12. Reveal on scroll
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card--link:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   13. Print
   -------------------------------------------------------------------------- */
@media print {
  .utility, .site-header, .nextservice, .cta, .site-footer, .nav-scrim,
  .hero__art, .backdrop { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-head, .hero { background: #fff !important; color: #000; }
  .page-head::before, .hero::before, .hero::after { display: none; }
  .page-head h1, .hero__title, .page-head .lede, .hero__lede { color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding-block: 18pt; }
}
