/* mersi.com.au — first-version marketing site
   Colours, type and lockup follow /workspace/mersi/mersi-brand-reference.pdf
*/

:root {
  --oxblood: #7A2E27;
  --oxblood-deep: #5E221C;
  --ivory: #F3EEE2;
  --ivory-deep: #E8E0D0;
  --ink: #1B1B18;
  --ink-soft: rgba(27, 27, 24, 0.72);
  --ink-faint: rgba(27, 27, 24, 0.16);
  --forest: #33422E;
  --mustard: #B3872F;
  --white: #ffffff;

  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --track-display: -0.04em;
  --track-tight: -0.03em;

  --max: 72rem;
  --wide: 80rem;
  --gutter: clamp(1.25rem, 4.2vw, 2.75rem);
  --section: clamp(4.25rem, 9vw, 8.5rem);
  --header-h: 4.25rem;

  --radius: 2px;
  --ease: 0.2s ease;
}

/* ---------- fonts ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection {
  background: var(--oxblood);
  color: var(--ivory);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 200;
  padding: 0.55rem 0.9rem;
  background: var(--ivory);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0.6rem;
}

/* ---------- wordmark ---------- */
.logo {
  display: inline-flex;
  align-items: flex-end;
  text-decoration: none;
  color: var(--ivory);
  line-height: 1;
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: var(--track-display);
  text-transform: lowercase;
  line-height: 1;
  position: relative;
  display: inline-block;
  padding-bottom: 0.22em;
}
.logo-word::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  height: 0.095em;
  background: currentColor;
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--oxblood);
  color: var(--ivory);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
}
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0.6rem;
  color: var(--ivory);
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem 0 1.35rem;
  background: var(--oxblood);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  font-size: 1.35rem;
  padding: 0.55rem 0;
}
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--ivory);
}
.site-nav .btn {
  margin-top: 0.6rem;
  align-self: flex-start;
}
.site-nav a.btn-invert { color: var(--oxblood); }
.site-nav a.btn-invert:hover,
.site-nav a.btn-invert:focus-visible {
  color: var(--ivory);
  background: transparent;
  border-color: var(--ivory);
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    background: transparent;
  }
  .site-nav a {
    font-size: 1rem;
    padding: 0.35rem 0;
  }
  .site-nav .btn { margin-top: 0; }
  .site-nav a.btn-invert { color: var(--oxblood); }
  .site-nav a.btn-invert:hover,
  .site-nav a.btn-invert:focus-visible {
    color: var(--ivory);
    background: transparent;
    border-color: var(--ivory);
  }
}

/* ---------- typography ---------- */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--oxblood);
  margin-bottom: 0.85rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.55rem;
  margin-bottom: 0.12em;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-display);
  text-transform: lowercase;
  line-height: 0.98;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.6rem, 8.4vw, 5.4rem);
}
h2 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
}
h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: var(--track-tight);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36rem;
}
.lede.wide { max-width: 40rem; }

.muted { color: var(--ink-soft); }
.small {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap-wide {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.section-header {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-header h2 + p,
.section-header .lede {
  margin-top: 1.1rem;
}

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split.image-first > .copy { order: 2; }
  .split.image-first > .media { order: 1; }
  .split.copy-wide { grid-template-columns: 1.05fr 0.95fr; }
  .split.image-wide { grid-template-columns: 0.92fr 1.08fr; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: var(--track-tight);
  text-transform: lowercase;
  text-decoration: none;
  border: 1.5px solid var(--oxblood);
  background: var(--oxblood);
  color: var(--ivory);
  border-radius: var(--radius);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover,
.btn:focus-visible {
  background: var(--oxblood-deep);
  border-color: var(--oxblood-deep);
  color: var(--ivory);
}
.btn-ghost {
  background: transparent;
  color: var(--oxblood);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--ivory);
}
.btn-invert {
  background: var(--ivory);
  color: var(--oxblood);
  border-color: var(--ivory);
}
.btn-invert:hover,
.btn-invert:focus-visible {
  background: transparent;
  color: var(--ivory);
  border-color: var(--ivory);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.85rem;
  margin-top: 1.75rem;
}

/* ---------- media / captions ---------- */
.media figcaption,
.caption {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--ivory-deep);
}
.frame {
  overflow: hidden;
  border-radius: var(--radius);
}

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(2.25rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 5rem);
  align-items: center;
}
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 1.35rem; }
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 0.92fr 1.08fr;
    min-height: calc(100svh - var(--header-h) - 5rem);
  }
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: var(--track-tight);
  color: var(--oxblood);
  margin-bottom: 0.65rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- gift cards ---------- */
.cards {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card .frame { margin-bottom: 1.1rem; }
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.card .price {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  color: var(--ink);
  font-size: 1rem;
}
.card-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--ivory-deep);
  display: flex;
  align-items: flex-end;
  padding: 1.1rem 1.15rem;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  font-size: 1.05rem;
}
.badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--oxblood);
}

/* ---------- logo options ---------- */
.pair {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .pair { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ---------- order terms ---------- */
.terms {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
@media (min-width: 700px) {
  .terms { grid-template-columns: 1fr 1fr; }
}
.term {
  padding: 1.25rem 1.3rem 1.35rem;
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
}
.term h3 { margin-bottom: 0.4rem; }
.term p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- about band ---------- */
.band {
  background: var(--oxblood);
  color: var(--ivory);
}
.band h2, .band p, .band .kicker { color: var(--ivory); }
.band .kicker { color: var(--ivory); }
.band .lede { color: rgba(243, 238, 226, 0.86); max-width: 34rem; }

/* ---------- form ---------- */
.form {
  display: grid;
  gap: 1rem 1.15rem;
}
@media (min-width: 700px) {
  .form { grid-template-columns: 1fr 1fr; }
  .form .full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  min-height: 2.85rem;
  color: var(--ink);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--oxblood);
  outline-offset: 1px;
  border-color: var(--oxblood);
}
.form-note {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.form-status[hidden] { display: none; }
.form-status {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--forest);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--oxblood);
  color: var(--ivory);
  padding: 3.25rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}
.site-footer .logo { color: var(--ivory); }
.tagline {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  font-size: 1.15rem;
  line-height: 1.25;
  max-width: 16ch;
}
.site-footer a {
  color: var(--ivory);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
.footer-col h2 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ivory);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}
.footer-col ul { display: grid; gap: 0.4rem; }
.footer-col a, .footer-col p {
  font-size: 0.95rem;
  color: rgba(243, 238, 226, 0.9);
}
.footer-base {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(243, 238, 226, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(243, 238, 226, 0.8);
}

/* ---------- subpage hero ---------- */
.page-hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 0.5rem;
}
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-top: 1.2rem; }

/* ---------- utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* in-content links */
main a:not(.btn):not(.logo):not(.frame) {
  color: var(--oxblood);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.band .media figcaption,
.band .caption {
  color: rgba(243, 238, 226, 0.8);
}

/* stack spacing helpers */
.stack-sm { margin-top: 0.9rem; }
.stack-md { margin-top: 1.15rem; }
.stack-lg { margin-top: 1.5rem; }
.stack-xl { margin-top: clamp(3rem, 6vw, 5rem); }
.section-flush { padding-top: 0; }

.price {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  color: var(--ink);
  font-size: 1rem;
}
.pair-gap { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.narrow { max-width: 40rem; }
.narrow-form { max-width: 46rem; }
.media-limit { max-width: 36rem; }
.section-end { padding-bottom: var(--section); }

@media (max-width: 699px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
}

@media (max-width: 899px) {
  .split.image-mobile-first > .copy { order: 2; }
  .split.image-mobile-first > .media { order: 1; }
}

.wrap.narrow-form {
  margin-left: auto;
  margin-right: auto;
}
/* keep the enquire page form aligned with the heading */
.wrap.narrow-form.align-start {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max);
}
.wrap.narrow-form.align-start .form {
  max-width: 46rem;
}

.card-placeholder-figure { margin-bottom: 1.1rem; }
.card-placeholder-figure .card-placeholder { margin: 0; }

.site-nav a.btn,
.site-nav .btn {
  padding: 0.5rem 1.15rem;
  min-height: 2.5rem;
  font-size: 1rem;
  line-height: 1;
}
@media (max-width: 959px) {
  .site-nav a.btn,
  .site-nav .btn {
    padding: 0.7rem 1.25rem;
    min-height: 2.9rem;
    font-size: 1.15rem;
  }
}

.wrap.narrow {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- industry picker + seasonal options ---------- */
.industry-picker {
  margin-top: 1.5rem;
  max-width: 28rem;
}
.industry-picker .field {
  margin: 0;
}
.industry-occasion {
  margin-top: 0.9rem;
  min-height: 3.3em;
}

.tiers {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.75rem;
}
@media (min-width: 800px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
}
.tiers .term h3 { font-size: 1.25rem; }

.finish-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
  max-width: 40rem;
}
.finish-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.finish-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.55rem;
  height: 1.5px;
  background: var(--oxblood);
}

.note-callout {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
  max-width: 40rem;
}
.note-callout p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.coming-soon-block {
  max-width: 40rem;
}

.card .frame {
  aspect-ratio: 4 / 3;
  background: var(--ivory-deep);
}
.card .frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.pair-gap-xl { margin-top: clamp(3rem, 7vw, 5.5rem); }
.media-limit-wide { max-width: 46rem; }

/* ---------- customisation banners ---------- */
.banner-band {
  padding-bottom: var(--section);
}
.customise-banner {
  background: var(--forest);
  color: var(--ivory);
  padding: clamp(1.5rem, 4vw, 2.4rem) clamp(1.35rem, 3.2vw, 2.15rem);
  border-radius: var(--radius);
}
.customise-banner .kicker,
.customise-banner h2,
.customise-banner h3,
.customise-banner p {
  color: var(--ivory);
}
.customise-banner .kicker { margin-bottom: 0.65rem; }
.customise-banner h2,
.customise-banner h3 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.05;
  max-width: 20ch;
}
.customise-banner p {
  margin-top: 0.85rem;
  max-width: 44rem;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  color: rgba(243, 238, 226, 0.9);
}

.customise-callout {
  border: 1.5px solid var(--forest);
  background: rgba(51, 66, 46, 0.08);
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  max-width: 46rem;
}
.customise-callout p {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: none;
}
.customise-callout strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  color: var(--forest);
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

@media (min-width: 1100px) {
  .cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards.cards-2 { grid-template-columns: repeat(2, 1fr); }
}

/* consultation checkbox */
.check-field { align-self: end; }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
  padding: 0.35rem 0;
}
.check-label input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: var(--oxblood);
  border: 1px solid var(--ink-faint);
}

@media (min-width: 960px) and (max-width: 1140px) {
  .site-nav {
    gap: 1.15rem;
  }
  .site-nav a {
    font-size: 0.95rem;
  }
}

/* ---------- product image gallery ---------- */
.gallery {
  position: relative;
}
.gallery-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery-viewport:focus-visible {
  outline: 2px solid var(--mustard);
  outline-offset: 3px;
}
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.gallery-slide figure { margin: 0; }
.gallery-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: var(--ivory-deep);
}
.gallery-btn {
  position: absolute;
  top: calc(50% - 1.4rem);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 238, 226, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(27, 27, 24, 0.16);
  cursor: pointer;
  padding: 0;
}
.gallery-btn:hover,
.gallery-btn:focus-visible {
  background: var(--ivory);
  color: var(--oxblood);
}
.gallery-prev { left: 0.55rem; }
.gallery-next { right: 0.55rem; }
.gallery-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
.gallery-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink-faint);
  cursor: pointer;
}
.gallery-dot[aria-current="true"] {
  background: var(--oxblood);
}
.gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.card .gallery {
  margin-bottom: 1.1rem;
}
.card .gallery-slide .frame,
.card .gallery-slide img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}
.card .gallery-dots { margin-top: 0.55rem; }

.gallery--single .gallery-btn,
.gallery--single .gallery-dots {
  display: none;
}


@media (prefers-reduced-motion: reduce) {
  .gallery-viewport { scroll-behavior: auto; }
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}
.card h3 a:hover,
.card h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}
