.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(15 42 58 / 0.45);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cookie-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 101;
  width: min(480px, calc(100% - 24px));
  max-height: calc(100svh - 32px);
  overflow: visible;
  background: var(--stone, #f3efe7);
  color: var(--ink, #0f2a3a);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 18px 48px -12px rgb(8 40 60 / 0.35);
  font-family: var(--font-body, Figtree, system-ui, sans-serif);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.2s ease, transform 0.24s ease;
}
.cookie-dialog.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
@media (max-height: 520px) {
  .cookie-dialog {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
.cookie-dialog h2 {
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.2;
}
.cookie-dialog p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink, #0f2a3a) 82%, transparent);
}
.cookie-cats {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}
.cookie-cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--stone-2, #e6dfd1);
  border: 1px solid color-mix(in srgb, var(--ink, #0f2a3a) 8%, transparent);
}
.cookie-cat strong { font-size: 0.95rem; }
.cookie-cat span {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--ink, #0f2a3a) 70%, transparent);
}
.cookie-cat input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--sea-deep, #0c4a6e);
}
.cookie-cat input:disabled { opacity: 0.55; }
.cookie-actions-primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-btn {
  font: 700 0.95rem var(--font-body, Figtree, system-ui, sans-serif);
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  border: 2px solid var(--ink, #0f2a3a);
  background: var(--stone, #f3efe7);
  color: var(--ink, #0f2a3a);
  text-align: center;
  min-height: 48px;
}
.cookie-btn.primary {
  background: var(--ink, #0f2a3a);
  color: var(--stone, #f3efe7);
}
.cookie-btn:hover { border-color: var(--sea, #1b86a8); }
.cookie-btn.primary:hover { background: var(--sea-deep, #0c4a6e); border-color: var(--sea-deep, #0c4a6e); }
.cookie-actions-secondary {
  display: flex;
  justify-content: center;
}
.cookie-btn.ghost {
  background: transparent;
  border-color: transparent;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: auto;
  padding: 8px 12px;
}
.cookie-foot {
  display: flex;
  align-items: center;
  margin: 14px -22px -20px;
  padding: 10px 22px 12px;
  border-top: 1px solid color-mix(in srgb, var(--ink, #0f2a3a) 12%, transparent);
}
.cookie-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sea-deep, #0c4a6e);
  text-underline-offset: 3px;
}
.cookie-foot a:hover { color: var(--sea, #1b86a8); }

.site-footer {
  padding: clamp(32px, 6vw, 56px) var(--gutter, clamp(16px, 5vw, 64px)) clamp(28px, 5vw, 40px);
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 5vw, 48px);
}
.site-footer-logo {
  display: flex;
  justify-content: center;
  padding-top: clamp(8px, 2vw, 20px);
}
.logo-full {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--sea-deep, #0c4a6e);
  font-family: "DM Sans", var(--font-body, Figtree, system-ui, sans-serif);
  line-height: 1;
}
.logo-full svg {
  width: 84px;
  height: 84px;
  flex: none;
}
.logo-full .lw {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.logo-full .lo {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5em;
  margin-right: -0.5em;
}
.logo-full .ls {
  font-weight: 600;
  font-size: 46px;
  letter-spacing: 0.12em;
  margin-right: -0.12em;
}
.site-footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px 24px;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--ink, #0f2a3a) 62%, transparent);
  width: 100%;
}
.site-footer-meta { justify-self: start; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  justify-self: center;
}
.site-footer nav a {
  color: color-mix(in srgb, var(--ink, #0f2a3a) 72%, transparent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.site-footer nav a:hover { color: var(--sea-deep, #0c4a6e); }
.site-footer--compact .site-footer-bar {
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--ink, #0f2a3a) 10%, transparent);
}
@media (max-width: 760px) {
  .site-footer-bar {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .site-footer-meta {
    justify-self: center;
    text-align: center;
  }
  .logo-full svg { width: 68px; height: 68px; }
  .logo-full .ls { font-size: 38px; }
}