:root {
  color-scheme: light dark;
  --sand: #FAF3EA;
  --surface: #FFFDF8;
  --surface-soft: #F3EBE1;
  --ink: #33302B;
  --muted: #655F58;
  --line: #D8CEC2;
  --coral: #EE8E71;
  --yellow: #F2C46E;
  --teal: #5E9B95;
  --link: #8A3F2E;
  --glow: #EE8E71;
  --success: #2f6f52;
  --danger: #A63E2E;
  --button-ink: #33302B;
  --shadow: 0 18px 48px rgb(80 48 32 / 9%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --sand: #17191A;
    --surface: #232627;
    --surface-soft: #303435;
    --ink: #F2EEE8;
    --muted: #C7CECC;
    --line: #444A49;
    --link: #EE8E71;
    --success: #83D1A4;
    --danger: #FFB4AB;
    --shadow: 0 18px 48px rgb(0 0 0 / 22%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  background:
    radial-gradient(circle at 50% -12rem, color-mix(in srgb, var(--glow) 20%, transparent), transparent 34rem),
    var(--sand);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--sand);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--sand) 86%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner,
.site-footer,
.document {
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.wordmark img {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.policy-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem 1rem;
  font-size: 0.9rem;
}

.policy-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--coral);
}

.document {
  padding-block: clamp(2.5rem, 8vw, 5.5rem);
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--link);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-weight: 750;
  line-height: 1.22;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 7vw, 3.65rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 2.8rem 0 0.7rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

h3 {
  margin: 1.5rem 0 0.35rem;
  font-size: 1.08rem;
}

p,
ul,
ol {
  margin-block: 0.65rem 1rem;
}

li + li {
  margin-top: 0.4rem;
}

.lede {
  max-width: 44rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.6vw, 1.25rem);
}

.meta {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice,
.summary-card,
.request-panel {
  margin-block: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.notice,
.summary-card {
  padding: clamp(1rem, 4vw, 1.45rem);
}

.notice {
  border-left: 0.35rem solid var(--yellow);
}

.notice strong:first-child {
  display: block;
  margin-bottom: 0.25rem;
}

.notice p:last-child,
.summary-card p:last-child {
  margin-bottom: 0;
}

.plain-list {
  padding-left: 1.25rem;
}

.request-panel {
  overflow: hidden;
}

.request-step {
  padding: clamp(1.1rem, 5vw, 1.75rem);
}

.request-step[hidden] {
  display: none;
}

.request-step h2 {
  margin-top: 0;
}

label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-help {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

button {
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: var(--button-ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: box-shadow 120ms ease, transform 120ms ease;
}

button:hover:not(:disabled) {
  box-shadow: 0 5px 16px color-mix(in srgb, var(--coral) 34%, transparent);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button-secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.status {
  min-height: 1.65rem;
  margin: 0.9rem 0 0;
  font-weight: 650;
}

.status[data-kind="error"] {
  color: var(--danger);
}

.status[data-kind="success"] {
  color: var(--success);
}

.danger-copy {
  color: var(--danger);
  font-weight: 700;
}

.site-footer {
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.site-footer p {
  margin-bottom: 0;
}

code {
  padding: 0.08rem 0.3rem;
  border-radius: 0.3rem;
  background: var(--surface-soft);
  font-size: 0.9em;
}

@media (max-width: 42rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.85rem;
  }

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

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