:root {
  color-scheme: light dark;
  --paper: #f2ead6;
  --surface: #fff8e8;
  --recessed: #e9dfc7;
  --ink: #171713;
  --muted: #5e5a50;
  --coral: #ff523d;
  --blue: #5cb0f0;
  --mint: #4dc7a3;
  --amber: #ffb538;
  --shadow: #171713;
  --grid: rgb(23 23 19 / 7%);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--coral);
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 10;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--surface);
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.site-header,
.page-shell,
.site-footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 950;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-shell {
  padding-block: 52px 72px;
}

.eyebrow,
.section-tag,
.metadata {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 11px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--coral);
  color: var(--ink);
  font-size: 0.75rem;
  box-shadow: 3px 4px 0 var(--shadow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 830px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.policy-page h1 {
  max-width: 900px;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
}

h2 {
  margin-bottom: 15px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.lede {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 650;
}

.metadata {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.72rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-block: 26px 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 17px;
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  background: var(--blue);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 3px 4px 0 var(--shadow);
  transition: transform 80ms ease, box-shadow 80ms ease;
}

.button.secondary {
  background: var(--surface);
}

.button:hover,
.button:focus-visible {
  text-decoration: none;
  transform: translate(2px, 3px);
  box-shadow: 1px 1px 0 var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.card,
.policy-section,
.contact-panel {
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 4px 5px 0 var(--shadow);
}

.card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 24px;
}

.card.accent-coral {
  border-top: 13px solid var(--coral);
}

.card.accent-blue {
  border-top: 13px solid var(--blue);
}

.card.accent-mint {
  border-top: 13px solid var(--mint);
}

.card.accent-amber {
  border-top: 13px solid var(--amber);
}

.card p,
.policy-section p,
.policy-section li,
.contact-panel p {
  color: var(--muted);
}

.card a {
  margin-top: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-stack {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}

.policy-section,
.contact-panel {
  padding: clamp(22px, 4vw, 34px);
}

.policy-section ul,
.policy-section ol {
  margin: 12px 0 0;
  padding-left: 1.3rem;
}

.policy-section li + li {
  margin-top: 8px;
}

.section-tag {
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 0.7rem;
}

.contact-panel {
  margin-top: 30px;
  background: var(--blue);
}

.contact-panel p {
  color: var(--ink);
}

.contact-email {
  overflow-wrap: anywhere;
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 950;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 24px 38px;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

code {
  padding: 0.1em 0.35em;
  border: 1px solid color-mix(in srgb, var(--ink), transparent 60%);
  border-radius: 4px;
  background: var(--recessed);
  color: var(--ink);
}

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

@media (max-width: 700px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page-shell {
    padding-block: 38px 56px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 190px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131311;
    --surface: #23231f;
    --recessed: #191916;
    --ink: #f2ead6;
    --muted: #c1b9a7;
    --shadow: #d9d0bc;
    --grid: rgb(242 234 214 / 5%);
  }

  .eyebrow,
  .button,
  .contact-panel {
    color: #171713;
  }

  .contact-panel p {
    color: #171713;
  }

  .brand img {
    border-color: var(--ink);
  }
}

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

  .button {
    transition: none;
  }
}
