@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3/SourceSans3-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3/SourceSans3-Semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3/SourceSans3-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond/EBGaramond-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --color-background: #000;
  --color-surface: #0d0c0b;
  --color-surface-hover: #15120f;
  --color-gold: #ffce80;
  --color-gold-active: #e9b968;
  --color-text: #fff;
  --color-muted: #b8b1ad;
  --color-stone: #807773;
  --color-brown: #362215;
  --font-display: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --font-interface: "Source Sans 3", Arial, Helvetica, sans-serif;
  --focus-ring: 0 0 0 3px #000, 0 0 0 6px var(--color-gold);
  color-scheme: dark;
  font-family: var(--font-interface);
  font-synthesis: none;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--color-background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -12rem, rgb(54 34 21 / 45%), transparent 30rem),
    var(--color-background);
  color: var(--color-text);
  font-family: var(--font-interface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 50%;
  padding: 0.75rem 1rem;
  border-radius: 0.35rem;
  background: var(--color-gold);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transform: translate(-50%, calc(-100% - 1rem));
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.page-shell {
  display: grid;
  width: min(calc(100% - 2rem), 28rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-block:
    max(2rem, env(safe-area-inset-top))
    max(0.75rem, env(safe-area-inset-bottom));
  grid-template-rows: minmax(min-content, 1fr) auto;
  row-gap: clamp(1.5rem, 4vh, 2.5rem);
}

.page-content {
  align-self: center;
}

.site-header {
  text-align: center;
}

.brand-mark {
  display: grid;
  width: 6.5rem;
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(255 206 128 / 35%);
  border-radius: 50%;
  background: #050505;
  box-shadow:
    0 0 0 0.35rem rgb(54 34 21 / 34%),
    0 1.25rem 3rem rgb(0 0 0 / 55%);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.4;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 12vw, 3.65rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.site-title__image {
  width: min(100%, 27rem);
  height: auto;
  margin-inline: auto;
}

.intro {
  max-width: 27rem;
  margin: 1.15rem auto 0;
  color: #d8d3d0;
  font-size: 1rem;
  line-height: 1.6;
}

.primary-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.link-button {
  display: flex;
  width: 100%;
  min-height: 3.75rem;
  padding: 0.9rem 1.15rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #080808;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

a.link-button:hover {
  border-color: #ededed;
  background: #ededed;
  transform: translateY(-1px);
}

a.link-button:active {
  border-color: #d8d8d8;
  background: #d8d8d8;
  transform: translateY(0) scale(0.99);
}

.link-button.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.social-section {
  margin-top: 1.5rem;
}

.social-links {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 1rem);
  flex-wrap: nowrap;
}

.social-link {
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  flex: 0 0 3rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  text-decoration: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.social-link:hover {
  background: transparent;
  color: #fff;
  opacity: 0.78;
}

.social-link:active {
  background: transparent;
  color: #fff;
  opacity: 0.62;
  transform: scale(0.96);
}

.social-link__icon {
  color: #fff;
}

.social-link__icon svg {
  width: 1.8rem;
  height: 1.8rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link__icon .icon-dot {
  fill: currentColor;
  stroke: none;
}

.social-link__icon .icon-fill {
  fill: currentColor;
  stroke: none;
}

.social-link[data-link-id="x"] .social-link__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.link-button:focus-visible,
.social-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: none;
}

.site-footer {
  text-align: center;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem clamp(0.25rem, 1.5vw, 1rem);
  justify-content: center;
}

.legal-links a,
.legal-links span,
.cookie-settings-button {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.75rem 0.2rem;
  align-items: center;
  color: var(--color-muted);
  font-size: clamp(0.72rem, 2.4vw, 0.82rem);
  line-height: 1.25;
}

.legal-links a {
  text-underline-offset: 0.2em;
}

.legal-links span {
  cursor: default;
}

.legal-links a:hover {
  color: var(--color-gold);
}

.cookie-settings-button {
  border: 0;
  background: transparent;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  transition: color 180ms ease;
}

.cookie-settings-button:hover {
  color: var(--color-gold);
}

.legal-page {
  background:
    radial-gradient(circle at 50% -12rem, rgb(54 34 21 / 34%), transparent 32rem),
    var(--color-background);
}

.legal-shell {
  width: min(calc(100% - 2rem), 48rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-block:
    max(1.25rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-bottom));
}

.legal-header {
  display: flex;
  padding-bottom: 1.25rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  gap: 1rem;
}

.legal-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  gap: 0.75rem;
}

.legal-brand img {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  border: 1px solid rgb(255 206 128 / 32%);
  border-radius: 50%;
  background: #050505;
}

.legal-back-link {
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.35;
  text-align: right;
  text-underline-offset: 0.2em;
}

.legal-back-link:hover {
  color: var(--color-gold);
}

.legal-content {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  font-size: clamp(1rem, 2.2vw, 1.075rem);
  line-height: 1.75;
}

.legal-content h1 {
  max-width: 44rem;
  font-size: clamp(2.7rem, 8vw, 4.4rem);
  line-height: 1.02;
}

.legal-content h2 {
  margin: 3.25rem 0 1rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.legal-content h3 {
  margin: 2rem 0 0.75rem;
  color: var(--color-gold);
  font-size: 1.08rem;
  line-height: 1.35;
}

.legal-content section:first-of-type h2 {
  margin-top: 2.5rem;
}

.legal-content p {
  margin: 1rem 0 0;
  color: #e1ddda;
}

.legal-content ul,
.legal-content ol {
  margin: 1rem 0 0;
  padding-left: 1.4rem;
}

.legal-content li {
  padding-left: 0.35rem;
}

.legal-content li + li {
  margin-top: 0.7rem;
}

.legal-content a {
  color: var(--color-gold);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.legal-content a:hover {
  color: #ffe0ad;
}

.legal-content code {
  padding: 0.08em 0.28em;
  border-radius: 0.2rem;
  background: rgb(255 255 255 / 9%);
  color: #fff4e2;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.legal-alpha-list {
  list-style-position: outside;
}

.legal-table-wrapper {
  width: 100%;
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 0.45rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #e1ddda;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 0.85rem;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.legal-table tr:last-child > * {
  border-bottom: 0;
}

.legal-table thead th {
  background: #17130f;
  color: var(--color-gold);
  font-size: 0.77rem;
  line-height: 1.3;
}

.legal-table tbody th {
  color: var(--color-text);
  font-weight: 700;
}

.legal-table--details th {
  width: 10rem;
  background: #12100e;
}

.legal-cookie-settings-button {
  min-height: 2.75rem;
  padding-inline: 0;
  color: var(--color-gold);
  font-size: 1rem;
  font-weight: 700;
}

.legal-page .site-footer {
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.consent-dialog {
  width: min(calc(100% - 2rem), 32rem);
  max-height: min(90vh, 43rem);
  max-height: min(90dvh, 43rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgb(255 206 128 / 32%);
  border-radius: 0.7rem;
  background: #0b0a09;
  color: var(--color-text);
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 80%);
}

.consent-dialog::backdrop {
  background: rgb(0 0 0 / 82%);
  backdrop-filter: blur(0.18rem);
}

.consent-dialog__content {
  padding: clamp(1.25rem, 5vw, 2rem);
}

.consent-dialog__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--color-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.consent-dialog h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

#consent-title:focus {
  outline: none;
  box-shadow: none;
}

.consent-dialog__description {
  margin: 0.9rem 0 0;
  color: #d8d3d0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.consent-current-status {
  margin: 0.7rem 0 0;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.consent-current-status strong {
  color: var(--color-gold);
}

.consent-categories {
  display: grid;
  gap: 0;
  margin: 1.25rem 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 0.5rem;
  list-style: none;
}

.consent-categories li {
  padding: 1rem;
  background: var(--color-surface);
}

.consent-categories li + li {
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.consent-category__heading {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.consent-category__heading h3 {
  margin: 0;
  font-size: 0.95rem;
}

.consent-category__heading span {
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.consent-categories p {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.consent-dialog__legal {
  margin: 1rem 0 0;
  font-size: 0.85rem;
}

.consent-dialog__legal a {
  color: var(--color-gold);
  text-underline-offset: 0.2em;
}

.consent-actions {
  display: grid;
  margin-top: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.consent-actions button {
  min-height: 3.35rem;
  padding: 0.75rem;
  border: 1px solid rgb(255 206 128 / 55%);
  border-radius: 0.45rem;
  background: #15120f;
  color: var(--color-text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.consent-actions button:hover {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: #090705;
}

.consent-actions button:active {
  transform: scale(0.985);
}

a:focus-visible,
.skip-link:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 22.5rem) {
  .page-shell {
    width: min(calc(100% - 1.5rem), 28rem);
  }

  .brand-mark {
    width: 5.75rem;
  }

  h1 {
    font-size: 2.55rem;
  }

  .intro {
    font-size: 0.94rem;
  }

  .consent-actions {
    grid-template-columns: 1fr;
  }

  .legal-shell {
    width: min(calc(100% - 1.5rem), 48rem);
  }

  .legal-header {
    align-items: flex-start;
  }

  .legal-brand span {
    max-width: 7.5rem;
    line-height: 1.05;
  }
}

@media (max-width: 42rem) {
  .legal-table--technologies,
  .legal-table--technologies tbody,
  .legal-table--technologies tr,
  .legal-table--technologies th,
  .legal-table--technologies td {
    display: block;
    width: 100%;
  }

  .legal-table--technologies thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .legal-table--technologies tr + tr {
    border-top: 1px solid rgb(255 206 128 / 32%);
  }

  .legal-table--technologies th,
  .legal-table--technologies td {
    display: grid;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    grid-template-columns: minmax(6.7rem, 0.75fr) minmax(0, 1.25fr);
    gap: 0.75rem;
  }

  .legal-table--technologies th::before,
  .legal-table--technologies td::before {
    color: var(--color-gold);
    content: attr(data-label);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
  }
}

@media (min-width: 410px) {
  .legal-links {
    flex-wrap: nowrap;
    column-gap: clamp(0.5rem, 2vw, 1rem);
  }

  .legal-links a,
  .legal-links span,
  .legal-links > .cookie-settings-button {
    padding-inline: 0;
    white-space: nowrap;
  }
}

@media (min-width: 40rem) {
  .page-shell {
    padding-block:
      3rem
      max(0.75rem, env(safe-area-inset-bottom));
  }

  .brand-mark {
    width: 7rem;
  }

  .intro {
    font-size: 1.03rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
