/* Foresty Ltd · site styles. Black, white and graphite; Cormorant Garamond for
   display, Source Sans 3 for text; light and dark themes. No framework. */

/* ---------- fonts (self-hosted variable fonts, SIL OFL) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3.woff2) format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-sans-3-italic.woff2) format("woff2");
}
/* Metric-matched local fallbacks: the swap to the web font barely moves text. */
@font-face {
  font-family: "Cormorant Garamond Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Times");
  size-adjust: 97.07%;
  ascent-override: 95.19%;
  descent-override: 29.57%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Source Sans 3 Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 90.23%;
  ascent-override: 113.49%;
  descent-override: 44.33%;
  line-gap-override: 0%;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --ink: #0b0b0c;            /* footer in both themes, hero in the dark theme */
  --ink-2: #15161b;          /* graphite */
  --on-ink: #ece9e1;
  --on-ink-2: #a39f96;
  --on-ink-line: #2b2c33;
  --on-ink-accent: #d9956a;
  --bg: #ffffff;
  --bg-2: #f6f5f1;
  --fg: #141416;
  --fg-2: #4f4f54;
  --muted: #6f6e6a;
  --line: #e3e1db;
  --band: var(--ink-2);
  --hero-bg: #ffffff;
  --hero-fg: #141416;
  --hero-fg-2: #4f4f54;
  --hero-muted: #6f6e6a;
  --hero-line: #e3e1db;
  --accent: #a35f36;         /* sunset amber, text-safe on light surfaces */
  --focus: #a35f36;
  --font-display: "Cormorant Garamond", "Cormorant Garamond Fallback", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans 3 Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --h1: clamp(2.8rem, 6.6vw, 6.2rem);
  --h2: clamp(2.1rem, 4vw, 3.4rem);
  --lead: clamp(1.4rem, 2.2vw, 1.9rem);
  --gutter: clamp(1rem, 5vw, 4rem);
  --wrap: 82rem;
  --measure: 66ch;
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6.5rem;
  --s-7: 9rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #15161b;
    --bg-2: #1b1c22;
    --fg: #ece9e1;
    --fg-2: #b9b5ac;
    --muted: #8e8b83;
    --line: #2a2b32;
    --band: var(--ink);
    --hero-bg: #0b0b0c;
    --hero-fg: #ece9e1;
    --hero-fg-2: #a39f96;
    --hero-muted: #a39f96;
    --hero-line: #2b2c33;
    --accent: #d9956a;
    --focus: #d9956a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15161b;
  --bg-2: #1b1c22;
  --fg: #ece9e1;
  --fg-2: #b9b5ac;
  --muted: #8e8b83;
  --line: #2a2b32;
  --band: var(--ink);
  --hero-bg: #0b0b0c;
  --hero-fg: #ece9e1;
  --hero-fg-2: #a39f96;
  --hero-muted: #a39f96;
  --hero-line: #2b2c33;
  --accent: #d9956a;
  --focus: #d9956a;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
html:focus-within {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
img {
  display: block;
}
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgb(128 128 128 / 0.6);
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
h1 {
  font-size: var(--h1);
}
h2 {
  font-size: var(--h2);
}
h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}
p {
  margin: 0 0 var(--s-2);
}
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0.05em 0.35em;
  border-radius: 2px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.label,
.kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s-2);
  line-height: 1.5;
}
h2.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  line-height: 1.5;
}
.lead {
  font-family: var(--font-display);
  font-size: var(--lead);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin-bottom: var(--s-3);
}
.muted {
  color: var(--muted);
}
.prose {
  max-width: var(--measure);
  color: var(--fg-2);
}
.prose p:last-child {
  margin-bottom: 0;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 1rem;
}
.skip-link:focus {
  top: var(--s-1);
}

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  padding: 1rem 1.5rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn--primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn--primary:hover {
  background: transparent;
  color: var(--fg);
}
.btn--link {
  border: 0;
  padding: 0.5rem 0;
  letter-spacing: 0.12em;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}
.btn--link:hover {
  background: transparent;
  color: var(--accent);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
}
.link-arrow svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover svg {
  transform: translateX(0.3rem);
}

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: 1.6rem;
}
.site-header--overlay {
  position: absolute;
  inset-inline: 0;
  top: 0;
  color: var(--hero-fg);
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: inherit;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}
.site-nav a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-nav a:hover {
  opacity: 1;
  border-bottom-color: currentColor;
}
@media (max-width: 40rem) {
  .site-nav a:not(:last-of-type) {
    display: none;
  }
}

/* Theme switch: system / light / dark (native radio inputs) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.theme-switch {
  display: none;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 2px;
  min-width: 0;
  border: 1px solid;
  border-color: rgb(128 128 128 / 0.6);
  border-color: color-mix(in srgb, currentColor 50%, transparent);
  border-radius: 999px;
}
.js .theme-switch {
  display: inline-flex;
}
.theme-switch__option {
  position: relative;
  display: inline-grid;
  cursor: pointer;
}
.theme-switch__option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.theme-switch__icon {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  opacity: 0.6;
  transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}
.theme-switch__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}
.theme-switch__option:hover .theme-switch__icon {
  opacity: 1;
}
.theme-switch__option input:focus-visible + .visually-hidden + .theme-switch__icon {
  opacity: 1;
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.theme-switch__option input:checked + .visually-hidden + .theme-switch__icon {
  opacity: 1;
  background: currentColor;
}
.theme-switch__option input:checked + .visually-hidden + .theme-switch__icon svg {
  color: var(--bg);
}
.site-header--overlay .theme-switch__option input:checked + .visually-hidden + .theme-switch__icon svg {
  color: var(--hero-bg);
}

/* ---------- hero ---------- */
.hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  min-height: 100vh;
  min-height: min(100svh, 62rem);
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: var(--s-5);
  align-items: center;
  padding-top: 7rem;
}
.hero .label {
  color: var(--hero-muted);
  margin-bottom: var(--s-3);
}
.hero h1 {
  color: var(--hero-fg);
  margin-bottom: var(--s-3);
  font-size: clamp(2.8rem, min(6.6vw, 10.5vh), 6.2rem);
  font-size: clamp(2.8rem, min(6.6vw, 10.5svh), 6.2rem);
}
.hero__text {
  padding-bottom: clamp(3rem, 15vh, 10rem);
  padding-bottom: clamp(3rem, 15svh, 10rem);
}
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--hero-fg-2);
  margin-bottom: var(--s-4);
}
.hero__text .link-arrow {
  color: var(--hero-fg);
}
.hero__figure {
  margin: 0;
  justify-self: end;
  align-self: end;
  width: min(100%, 34rem);
  width: min(100%, 34rem, calc((100svh - 10rem) * 2 / 3));
}
.hero__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 900;
  object-fit: cover;
}
.hero__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--hero-line);
}
@media (max-width: 56rem) {
  .hero {
    min-height: 0;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
    padding-top: 7rem;
  }
  .hero__text {
    padding-bottom: 0;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 9vw, 4.6rem);
  }
  .hero__figure {
    width: 100%;
  }
  .hero__figure img {
    aspect-ratio: 4 / 3;
    object-position: center 22%;
  }
}

/* ---------- sections ---------- */
.section {
  padding-block: var(--s-7);
}
.section--line {
  border-top: 1px solid var(--line);
}
.section--center {
  text-align: center;
}
.section--narrow {
  max-width: 48rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 3fr);
  gap: var(--s-4) var(--s-5);
  align-items: start;
}
.grid-2 > .label {
  padding-top: 0.4rem;
}
@media (max-width: 56rem) {
  .section {
    padding-block: var(--s-6);
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }
}

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.services li {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: var(--s-3);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.services .num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--muted);
  padding-top: 0.3rem;
  letter-spacing: 0.05em;
}
.services h3 {
  margin-bottom: 0.6rem;
}
.services p {
  margin: 0;
  color: var(--fg-2);
  max-width: var(--measure);
}
@media (max-width: 40rem) {
  .services li {
    grid-template-columns: 2.6rem 1fr;
    gap: var(--s-2);
  }
}

.band {
  background: var(--band);
  color: var(--on-ink);
  padding-top: var(--s-6);
  border-top: 1px solid var(--on-ink-line);
  overflow: hidden;
}
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--s-5);
  align-items: end;
}
.band__text {
  align-self: center;
  padding-bottom: var(--s-6);
}
.band figure {
  margin: 0;
  display: flex;
  justify-content: center;
  align-self: end;
}
.band figure img {
  width: min(100%, 26rem);
  margin-bottom: -1px;
}
.band .label {
  color: var(--on-ink-2);
}
.band h2 {
  color: var(--on-ink);
}
.band h2 em {
  color: var(--on-ink-2);
}
.band p {
  color: var(--on-ink-2);
  max-width: 36ch;
}
@media (max-width: 56rem) {
  .band__grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  .band__text {
    padding-bottom: 0;
  }
  .band figure {
    order: 2;
  }
  .band figure img {
    width: min(100%, 18rem);
  }
}

.contact h2 {
  margin-bottom: var(--s-3);
}
.email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
  margin-bottom: var(--s-3);
  overflow-wrap: break-word;
  transition: border-color 0.25s var(--ease);
}
.email:hover {
  border-color: var(--fg);
}
.contact .muted {
  max-width: 42ch;
  margin-inline: auto;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0 var(--s-4);
  margin: 0 0 var(--s-4);
  padding: 0;
  border-top: 1px solid var(--line);
}
.facts > div {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.facts dd {
  margin: 0;
  font-size: 1.05rem;
  overflow-wrap: break-word;
}
.doc-links {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0 var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
}
.doc-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.3rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-ink-2);
  padding-block: var(--s-6) var(--s-4);
  text-align: center;
  font-size: 0.9rem;
}
.site-footer .email {
  color: var(--on-ink);
  border-color: var(--on-ink-line);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  margin-bottom: var(--s-4);
}
.site-footer .email:hover {
  border-color: var(--on-ink);
}
.site-footer__legal {
  max-width: 60ch;
  margin-inline: auto;
  overflow-wrap: break-word;
}
.site-footer__legal a {
  color: var(--on-ink);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  margin-block: var(--s-3);
}
.site-footer__nav a,
.site-footer__nav .btn--link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-ink-2);
  border-bottom: 1px solid transparent;
  padding: 0.3rem 0;
}
.site-footer__nav a:hover,
.site-footer__nav .btn--link:hover {
  color: var(--on-ink);
  border-bottom-color: var(--on-ink);
}
.site-footer__nav .link-accent {
  color: var(--on-ink-accent);
}
.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
}

/* ---------- legal documents ---------- */
.legal {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  padding-block: var(--s-6) var(--s-7);
}
.legal__header {
  margin-bottom: var(--s-5);
}
.legal__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}
.legal__intro {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--fg-2);
  margin-top: var(--s-3);
}
.toc {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-3) 0;
  margin-block: var(--s-4) var(--s-5);
}
.toc h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: var(--s-4);
}
.toc li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
  font-size: 0.95rem;
}
.toc a {
  text-decoration: none;
  color: var(--fg-2);
}
.toc a:hover {
  color: var(--fg);
  text-decoration: underline;
}
@media (max-width: 40rem) {
  .toc ul {
    columns: 1;
  }
}
.legal__body {
  overflow-wrap: break-word;
}
.legal__body h2 {
  margin-top: var(--s-6);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  scroll-margin-top: var(--s-3);
}
.legal__body h3 {
  margin-top: var(--s-4);
  scroll-margin-top: var(--s-3);
}
.legal__body p {
  color: var(--fg-2);
}
.legal__body p > strong:first-child {
  color: var(--fg);
  font-weight: 600;
}
.legal__body ul {
  padding-left: 1.4rem;
  color: var(--fg-2);
}
.legal__body li {
  margin-bottom: 0.4rem;
}
.legal__body ol {
  list-style: none;
  counter-reset: clause;
  padding-left: 2.4rem;
  color: var(--fg-2);
}
.legal__body ol > li {
  counter-increment: clause;
  position: relative;
}
.legal__body ol > li::before {
  content: "(" counter(clause, lower-alpha) ")";
  position: absolute;
  left: -2.4rem;
  width: 2rem;
  text-align: right;
  color: var(--muted);
}
.legal__body ol ul {
  margin-top: 0.35rem;
}
.legal__body blockquote {
  margin: var(--s-3) 0;
  padding: var(--s-2) var(--s-3);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
}
.legal__body blockquote p:last-child {
  margin-bottom: 0;
}
.table-wrap {
  overflow-x: auto;
  margin-block: var(--s-3);
}
.legal__body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
.legal__body th,
.legal__body td {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.8rem 0.7rem 0;
  vertical-align: top;
  text-align: left;
}
.legal__body th {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom-color: var(--fg);
  white-space: nowrap;
}
.legal__cta {
  margin-block: var(--s-3);
}
.legal__contact {
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- cookie consent banner (non-modal, bottom of the viewport) ---------- */
.consent-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  background: var(--bg);
  color: var(--fg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgb(0 0 0 / 0.18);
  padding-block: 1.1rem;
}
.consent-banner[hidden] {
  display: none;
}
.consent-banner__inner {
  display: flex;
  gap: var(--s-3) var(--s-5);
  align-items: center;
  flex-wrap: wrap;
}
.consent-banner__text {
  flex: 1 1 26rem;
}
.consent-banner__title {
  display: inline;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0.6rem 0 0;
}
.consent-banner__text p {
  display: inline;
  margin: 0;
  color: var(--fg-2);
  font-size: 0.95rem;
}
.consent-banner__actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 40rem) {
  .consent-banner {
    padding-block: var(--s-2);
  }
  .consent-banner__title {
    font-size: 1.15rem;
  }
  .consent-banner__text p {
    font-size: 0.875rem;
  }
  .consent-banner .btn {
    padding: 0.8rem 1rem;
  }
}

/* ---------- cookie settings dialog ---------- */
.consent-dialog {
  width: min(100% - 2rem, 34rem);
  max-height: calc(100vh - 2rem);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  overflow: auto;
}
.consent-dialog::backdrop {
  background: rgb(0 0 0 / 0.6);
}
.consent-dialog__form {
  padding: var(--s-4);
}
.consent-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-2);
}
.consent-dialog__head h2 {
  font-size: 1.9rem;
  margin: 0;
}
.consent-dialog__close {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  flex: none;
  padding: 0;
}
.consent-dialog__close svg {
  width: 0.9rem;
  height: 0.9rem;
}
.consent-dialog__close:hover {
  border-color: var(--fg);
}
.consent-dialog p {
  font-size: 0.95rem;
  color: var(--fg-2);
}
.consent-status {
  border-left: 2px solid var(--accent);
  padding-left: var(--s-2);
}
.consent-status:empty {
  display: none;
}
.consent-category {
  border: 0;
  border-top: 1px solid var(--line);
  padding: var(--s-2) 0 var(--s-1);
  margin: 0;
}
.consent-category legend {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.35rem;
}
.consent-category__state {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.consent-category__control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}
.consent-category__control label {
  flex: 1;
  min-width: 0;
}
.consent-category__control input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--fg);
  flex: none;
}
.consent-category__desc {
  color: var(--fg-2);
  margin: 0;
}
.consent-dialog__actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-3);
}

/* ---------- print ---------- */
@media print {
  :root,
  :root:not([data-theme="light"]),
  :root[data-theme] {
    color-scheme: light;
    --bg: #fff;
    --bg-2: #fff;
    --fg: #000;
    --fg-2: #000;
    --muted: #444;
    --line: #999;
  }
  .site-header,
  .site-footer,
  .consent-banner,
  .consent-dialog,
  .skip-link,
  .hero__figure,
  .band figure {
    display: none !important;
  }
  .hero,
  .band {
    background: #fff !important;
    color: #000 !important;
    min-height: 0;
  }
  .hero *,
  .band * {
    color: #000 !important;
  }
  .legal__body a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
  @page {
    margin: 2cm;
  }
}
