@font-face {
  font-family: 'Source Code Pro';
  src: url('/fonts/source-code-pro-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --ink: #171713;
  --muted: #706e67;
  --quiet: #aaa69d;
  --line: rgba(23, 23, 19, 0.2);
  --accent: #cddd81;
  --accent-ink: #66712f;
  --mono: 'Source Code Pro', 'Courier New', monospace;
  --serif: 'Iowan Old Style', 'Baskerville', 'Times New Roman', serif;
  --page-pad: clamp(16px, 2.2vw, 36px);
}

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

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

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 430;
  letter-spacing: -0.025em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-underline-offset: 4px;
}

button {
  border: 0;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.legal-header {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 232, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.legal-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--accent-ink);
  font-size: 11px;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-wordmark span:first-child {
  letter-spacing: -0.08em;
}

.legal-header__back {
  color: var(--muted);
  font-size: 8px;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-header__back:hover,
.legal-header__back:focus-visible,
.legal-wordmark:hover,
.legal-wordmark:focus-visible {
  color: var(--accent-ink);
  outline: 0;
}

.legal-shell {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 36px);
  padding: clamp(130px, 16vw, 220px) var(--page-pad) clamp(110px, 14vw, 190px);
}

.legal-hero {
  grid-column: 1 / span 5;
  position: sticky;
  top: 132px;
  align-self: start;
}

.legal-kicker {
  margin: 0 0 28px;
  color: var(--accent-ink);
  font-size: 8px;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 7em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(62px, 8.6vw, 142px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.legal-hero__intro {
  max-width: 34em;
  margin: clamp(34px, 5vw, 72px) 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.legal-copy {
  grid-column: 7 / -1;
  min-width: 0;
}

.legal-section {
  padding: 20px 0 clamp(36px, 5vw, 68px);
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 22px;
  color: var(--accent-ink);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-section p,
.legal-section li {
  max-width: 760px;
  margin: 0 0 13px;
  font-size: clamp(13px, 1.15vw, 16px);
  letter-spacing: -0.035em;
  line-height: 1.62;
}

.legal-section ul {
  margin: 0;
  padding-left: 1.25em;
}

.legal-section a {
  color: var(--accent-ink);
}

.legal-section button {
  padding: 0 0 3px;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--accent-ink);
  cursor: pointer;
}

.legal-section button:hover,
.legal-section button:focus-visible {
  color: var(--ink);
  outline: 0;
}

.legal-updated {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 8px;
  text-transform: uppercase;
}

.legal-footer {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 24px var(--page-pad);
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 8px;
  text-transform: uppercase;
}

.legal-footer a,
.legal-footer button {
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a:focus-visible,
.legal-footer button:hover,
.legal-footer button:focus-visible {
  color: var(--accent-ink);
  outline: 0;
}

.cookie-panel {
  position: fixed;
  z-index: 1200;
  bottom: 28px;
  left: 50%;
  width: min(410px, calc(100vw - 32px));
  border: 1px solid var(--line);
  background: rgba(243, 240, 232, 0.94);
  color: var(--ink);
  transform: translateX(-50%);
  box-shadow: 0 18px 50px rgba(23, 23, 19, 0.09);
  -webkit-backdrop-filter: blur(22px) saturate(0.84);
  backdrop-filter: blur(22px) saturate(0.84);
}

.cookie-panel[hidden] {
  display: none;
}

.cookie-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
}

.cookie-panel__head p {
  margin: 0;
  color: var(--accent-ink);
  font-size: 8px;
  text-transform: uppercase;
}

.cookie-panel__head button {
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 17px;
}

.cookie-panel__copy {
  margin: 0;
  padding: 13px 14px 15px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.cookie-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.cookie-panel__grid > * {
  min-height: 54px;
  padding: 9px 11px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.cookie-panel__grid > :nth-child(even) {
  border-right: 0;
}

.cookie-panel__grid > :nth-last-child(-n + 2) {
  border-bottom: 0;
}

.cookie-panel__grid span {
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.cookie-panel__grid small {
  color: var(--quiet);
  font-size: 7px;
  text-transform: uppercase;
}

.cookie-panel__grid strong {
  color: var(--accent-ink);
  font-size: 9px;
  font-weight: 520;
}

.cookie-panel__grid button,
.cookie-panel__grid a {
  display: flex;
  align-items: center;
  cursor: pointer;
  font: 520 8px/1 var(--mono);
  text-transform: uppercase;
}

.cookie-panel__grid button:hover,
.cookie-panel__grid button:focus-visible,
.cookie-panel__grid a:hover,
.cookie-panel__grid a:focus-visible {
  background: var(--accent);
  outline: 0;
}

@media (max-width: 820px) {
  .legal-shell {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 120px;
  }

  .legal-hero {
    grid-column: 1 / -1;
    position: static;
    margin-bottom: 72px;
  }

  .legal-hero h1 {
    font-size: clamp(64px, 20vw, 104px);
  }

  .legal-hero__intro {
    max-width: 36em;
    margin-left: 25%;
  }

  .legal-copy {
    grid-column: 2 / -1;
  }

  .legal-footer {
    grid-template-columns: 1fr 1fr;
    row-gap: 14px;
  }

  .legal-footer > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .legal-copy {
    grid-column: 1 / -1;
  }

  .legal-hero__intro {
    margin-left: 0;
  }

  .legal-section p,
  .legal-section li {
    font-size: 14px;
  }

  .cookie-panel {
    bottom: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
