/*
  Harkaway Hills Chapel — styles.

  Palette is lifted from the photographs: chapel-white weatherboards (ivory
  ground), the claret aisle carpet (the one strong colour), the gold of its
  fleur pattern, timber pews and doors, and the eucalypt green of the hills.

  The recurring shape is the gothic arch of the chapel doors. It clips the
  portrait photographs (clip-path: url(#arch), defined inline in index.html)
  and is drawn as the brand mark. Everything else is square-edged.
*/

:root {
  --ivory: #faf7f2;
  --paper: #f3eee5;
  --linen: #ebe4d8;
  --ink: #2a2421;
  --ink-soft: #4a423c;
  --muted: #7a7067;
  --line: #e0d7c8;

  --claret: #7a1e2b;
  --claret-deep: #5c1520;
  --gold: #a8844a;
  --gold-soft: #d9c49b;
  --timber: #8a5a3b;
  --gum: #5d6b56;

  /* Claret splits in two: --claret fills (buttons, price card, white text on
     top) and --accent is claret as text or a line on the page ground. They
     match in light; dark lifts --accent to a readable rose-claret. */
  --accent: #7a1e2b;
  --accent-deep: #5c1520;
  --card: #ffffff;
  --header-bg: rgba(250, 247, 242, 0.9);
  --footer-bg: #2a2421;
  --hero-glow: rgba(217, 196, 155, 0.22);

  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 11vw, 140px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/*
  Dark: the chapel by candlelight. Warm near-black ground, ivory type, gold
  hairlines, and the claret carpet kept for fills. data-theme is set before
  first paint by the inline script in index.html; the media query covers the
  no-JS case.
*/
:root[data-theme="dark"] {
  --ivory: #16120f;
  --paper: #1e1915;
  --linen: #2a231d;
  --ink: #f3ece1;
  --ink-soft: #d2c7b8;
  --muted: #9c9184;
  --line: #3a3129;

  --claret: #8c2636;
  --claret-deep: #a6314a;
  --gold: #c9a66a;
  --gold-soft: #7d6744;

  --accent: #e3a3aa;
  --accent-deep: #f0c0c4;
  --card: #211b17;
  --header-bg: rgba(22, 18, 15, 0.88);
  --footer-bg: #0e0b09;
  --hero-glow: rgba(201, 166, 106, 0.1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --ivory: #16120f;
    --paper: #1e1915;
    --linen: #2a231d;
    --ink: #f3ece1;
    --ink-soft: #d2c7b8;
    --muted: #9c9184;
    --line: #3a3129;
    --claret: #8c2636;
    --claret-deep: #a6314a;
    --gold: #c9a66a;
    --gold-soft: #7d6744;
    --accent: #e3a3aa;
    --accent-deep: #f0c0c4;
    --card: #211b17;
    --header-bg: rgba(22, 18, 15, 0.88);
    --footer-bg: #0e0b09;
    --hero-glow: rgba(201, 166, 106, 0.1);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure { margin: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-deep); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--ivory);
  padding: 8px 14px;
}
.skip:focus { left: 8px; }

/* ── type ─────────────────────────────────────────────────────────── */

h1, h2, h3, .price, .phone, .fact-k, .step-n {
  font-variant-numeric: lining-nums;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h3 { font-size: 1.6rem; line-height: 1.2; }
h1 em, h2 em {
  font-style: italic;
  color: var(--accent);
}

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ── buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  background: var(--claret);
  color: #fff;
  border: 1px solid var(--claret);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  background: var(--claret-deep);
  border-color: var(--claret-deep);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}
.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.72rem;
}

/* ── header ───────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 26px;
  height: 34px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
}

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

@media (max-width: 1240px) {
  .nav { gap: 20px; }
  .nav a { letter-spacing: 0.08em; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
}

/* theme switch: light / auto / dark */

.theme-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: none;
}
.theme-opt {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.theme-opt:hover { color: var(--ink); }
.theme-opt[aria-checked="true"] {
  background: var(--linen);
  color: var(--accent);
}
.theme-opt svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-opt .icon-half { fill: currentColor; stroke: none; }

.call-icon { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 560px) {
  .header-inner { gap: 12px; }
  .theme-opt { width: 27px; height: 24px; }
}
@media (max-width: 440px) {
  .call-num { display: none; }
  .call-icon { display: block; }
  .btn-small { padding: 0 14px; }
}
@media (max-width: 480px) {
  .hide-sm { display: none; }
  .brand-name { font-size: 1.2rem; }
}

/* ── arch photographs ─────────────────────────────────────────────── */

.arch {
  clip-path: url(#arch);
  width: 100%;
  object-fit: cover;
}

/* ── hero ─────────────────────────────────────────────────────────── */

.hero {
  padding: clamp(40px, 7vw, 90px) 0 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 30%, var(--hero-glow), transparent 70%),
    var(--ivory);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.hero h1 { margin-bottom: 28px; }
.hero .lead { max-width: 30em; margin-bottom: 36px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-figure {
  position: relative;
  max-width: 470px;
  justify-self: end;
  width: 100%;
}
.hero-figure::before {
  /* A gold hairline arch sitting just behind the photo. */
  content: "";
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 1px solid var(--gold-soft);
  border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  z-index: 0;
}
.hero-figure img {
  position: relative;
  z-index: 1;
  aspect-ratio: 2 / 3;
}

.facts {
  list-style: none;
  margin: clamp(56px, 8vw, 96px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.facts li {
  padding: 28px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--line);
}
.facts li:first-child { border-left: 0; padding-left: 0; }
.fact-k {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--ink);
}
.fact-v {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { justify-self: center; max-width: 380px; margin: 8px auto 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ── sections ─────────────────────────────────────────────────────── */

.section { padding: var(--section) 0; }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.section-head h2 { margin-bottom: 26px; }

/* setting */

.setting { padding-top: 0; }

.bleed {
  position: relative;
  margin-bottom: var(--section);
}
.bleed img {
  width: 100%;
  height: clamp(340px, 62vw, 760px);
  object-fit: cover;
  object-position: center 40%;
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.points li {
  border-top: 1px solid var(--ink);
  padding-top: 26px;
}
.points .num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.points h3 { margin-bottom: 12px; }
.points p { color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) {
  .points { grid-template-columns: 1fr; }
}

/* around Harkaway: a quiet strip of district photos, deliberately smaller
   than the chapel photography above it. */

.around {
  background: var(--paper);
  padding: 0 0 clamp(56px, 8vw, 96px);
}

.area-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.3;
  color: var(--ink-soft);
  margin: 0 0 20px;
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
}
.area-intro .eyebrow { margin: 0; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mosaic figure {
  margin: 0;
  min-width: 0;
}
.mosaic img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--linen);
  object-fit: cover;
  transition: opacity 0.3s var(--ease);
}
.mosaic img:hover { opacity: 0.88; }

.mosaic figcaption {
  margin-top: 5px;
  line-height: 1.3;
}
.mosaic .credit {
  display: block;
  line-height: 1.4;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.7;
  text-decoration: none;
}
.mosaic .credit:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
}

/* chapel */

.chapel {
  background: var(--paper);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.chapel-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-areas:
    "text main"
    "row  row";
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.chapel-text { grid-area: text; }
.chapel-text h2 { margin-bottom: 28px; }
.chapel-text p:not(.eyebrow) { color: var(--ink-soft); }
.chapel-main { grid-area: main; }
.chapel-main img {
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 48% center;
  width: 100%;
}

/* Three arched photographs across the full width, under the interior. */
.chapel-row {
  grid-area: row;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: end;
}
.chapel-row img { aspect-ratio: 3 / 4; }

@media (max-width: 860px) {
  .chapel-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "main" "row";
  }
  .chapel-main img { aspect-ratio: 3 / 2; }
}
@media (max-width: 560px) {
  .chapel-row { grid-template-columns: 1fr 1fr; }
  .chapel-row figure:first-child { grid-column: 1 / -1; }
  .chapel-row figure:first-child img { aspect-ratio: 4 / 5; }
}

/* catholic */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.steps li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.step-n {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-soft);
}
.steps h3 { margin-bottom: 10px; }
.steps p { margin: 0; color: var(--ink-soft); max-width: 44em; }

@media (max-width: 600px) {
  .steps li { grid-template-columns: 1fr; gap: 6px; }
}

/* pricing */

.pricing { padding-top: 0; }

.price-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
}
.price-main {
  padding: clamp(36px, 5vw, 64px);
  background: var(--claret);
  color: #f6ece6;
  position: relative;
  overflow: hidden;
}
.price-main::after {
  /* Faint arch watermark. */
  content: "";
  position: absolute;
  right: -70px;
  top: -60px;
  width: 240px;
  height: 320px;
  border: 1px solid rgba(217, 196, 155, 0.22);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  pointer-events: none;
}
.price-main .eyebrow { color: #d9c49b; }
.price {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 7rem);
  line-height: 1;
  margin: 0 0 8px;
  color: #fff;
}
.currency {
  font-size: 0.45em;
  vertical-align: 0.9em;
  margin-right: 4px;
  color: #d9c49b;
}
.price-note {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 236, 230, 0.75);
  margin-bottom: 36px;
}
.price-main .btn {
  background: #faf7f2;
  border-color: #faf7f2;
  color: #7a1e2b;
  position: relative;
  z-index: 1;
}
.price-main .btn:hover {
  background: #fff;
  border-color: #fff;
  color: #5c1520;
}

.price-detail { padding: clamp(36px, 5vw, 64px); }
.price-detail h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.price-detail ul {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
}
.price-detail ul:last-child { margin-bottom: 0; }
.price-detail li {
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.dashes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 24px;
  width: 12px;
  height: 1px;
  background: var(--muted);
}

@media (max-width: 860px) {
  .price-card { grid-template-columns: 1fr; }
}

/* availability */

.availability { background: var(--paper); }

.avail-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.avail-text h2 { margin-bottom: 24px; }
.avail-text > p:not(.eyebrow) { color: var(--ink-soft); }

.slots {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.slots li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.slots .day {
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.slots .times {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.avail-fine {
  font-size: 0.92rem;
  color: var(--muted);
}

.cal-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px;
  min-height: 420px;
}
.cal-embed:empty { display: none; }
.cal-embed { min-height: 400px; }

.cal-empty {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  color: var(--ink-soft);
}
.cal-empty[hidden] { display: none; }
.cal-empty svg {
  width: 44px;
  height: 57px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  margin-bottom: 22px;
}
.cal-empty-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.cal-empty p:not(.cal-empty-title) { max-width: 24em; margin-bottom: 28px; }

@media (max-width: 860px) {
  .avail-grid { grid-template-columns: 1fr; }
}

/* enquire */

.enquire-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}
.enquire-figure { max-width: 420px; }
.enquire-figure img { aspect-ratio: 2 / 3; }
.enquire-text h2 { margin-bottom: 24px; }

.phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
  color: var(--accent);
  text-decoration: none;
  margin: 10px 0 40px;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 10px;
}
.phone:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }

.contact-list { margin: 0; }
.contact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.contact-list dt {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 4px;
}
.contact-list dd { margin: 0; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 860px) {
  .enquire-grid { grid-template-columns: 1fr; }
  .enquire-figure { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 420px) {
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
}

/* ── footer ───────────────────────────────────────────────────────── */

.site-footer {
  background: var(--footer-bg);
  color: #cfc6bb;
  padding: 64px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 48px;
  align-items: start;
}
.footer-brand {
  display: flex;
  gap: 16px;
  align-items: center;
}
.site-footer .brand-mark { stroke: #d9c49b; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}
.footer-sub {
  font-size: 0.85rem;
  margin: 2px 0 0;
  color: #a69c90;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 36px;
}
.footer-nav a {
  color: #cfc6bb;
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-nav a:hover { color: #fff; }
.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #8f857a;
}

@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── reveal on scroll ─────────────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.shown {
  opacity: 1;
  transform: none;
}
/* ── lightbox ─────────────────────────────────────────────────────── */

[data-zoom] { cursor: zoom-in; }
html:has(.lightbox[open]) { overflow: hidden; }

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ivory);
  color: var(--ink);
  overflow: hidden;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: center;
  animation: lb-in 0.25s var(--ease);
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb-count {
  margin: 0;
  padding-top: 26px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 84px;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}
.lb-img {
  max-width: min(1600px, 100%);
  max-height: calc(100dvh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lb-caption {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.lb-caption a { color: inherit; text-decoration: none; }
.lb-caption a:hover { text-decoration: underline; }
.lb-caption[hidden] { display: none; }

.lb-cta { margin-bottom: 26px; }
.lb-cta[hidden] { visibility: hidden; display: inline-flex; }

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-btn[hidden] { display: none; }

@media (max-width: 600px) {
  .lb-figure { padding: 12px 12px; }
  .lb-img { max-height: calc(100dvh - 230px); }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
}

/* main.js adds .theming for a moment while the theme changes, so colours
   ease over instead of snapping. */
html.theming,
html.theming *,
html.theming *::before,
html.theming *::after {
  transition: background-color 0.28s ease, border-color 0.28s ease,
    color 0.28s ease, fill 0.28s ease, stroke 0.28s ease !important;
}

@media (prefers-reduced-motion: reduce) {
  html.theming, html.theming *, html.theming *::before, html.theming *::after {
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
