:root {
  color-scheme: light;
  --bg: #efe8dc;
  --bg-deep: #e4dccb;
  --surface: #fbf8f2;
  --ink: #172230;
  --muted: #3d4b5c;
  --line: #d8d0c3;
  --seal: #0f5e55;
  --seal-strong: #0b433d;
  --seal-soft: #e4f2ef;
  --gold: #8a6118;
  --danger: #8d2f2a;
  --danger-bg: #f8ebe7;
  --shadow: 0 22px 50px rgba(23, 34, 48, 0.08);
  --radius: 22px;
  --max: 1080px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --focus: #0b433d;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #101820;
    --bg-deep: #182230;
    --surface: #1a2633;
    --ink: #f4efe6;
    --muted: #c6bdae;
    --line: #314154;
    --seal: #8ed0c6;
    --seal-strong: #d7f3ee;
    --seal-soft: #14332f;
    --gold: #e2c07a;
    --danger: #ffb4ac;
    --danger-bg: #3c2222;
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
    --focus: #f4efe6;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 220px),
    radial-gradient(circle at 1px 1px, rgba(23, 34, 48, 0.045) 1px, transparent 0);
  background-size: auto, 22px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 220px),
      radial-gradient(circle at 1px 1px, rgba(244, 239, 230, 0.045) 1px, transparent 0);
  }
}

img {
  max-width: 100%;
}

a {
  color: var(--seal-strong);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--seal);
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 4.5rem;
  padding: 0.7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  background: #142033;
  color: #f6f3ec;
  font-family: var(--serif);
  font-size: 1.15rem;
  box-shadow: inset 0 -3px 0 #1f8a7b;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  text-decoration: underline;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  gap: 2rem;
  align-items: end;
  padding: 3.2rem 0 1rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.75rem;
  color: var(--seal);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #0b433d;
  color: #f7fffd;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  max-width: 18em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 42rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.button {
  border: 1px solid transparent;
  background: #0b433d;
  color: #f7fffd;
}

.button:hover {
  background: #083833;
  color: #fff;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

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

.button-secondary:hover {
  border-color: var(--seal);
  color: var(--ink);
}

.ficha {
  margin: 0;
  padding: 1.25rem 1.25rem 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ficha .ficha-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--line);
}

.ficha-top strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.ficha > div:not(.ficha-top) {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-top: 1px solid var(--line);
}

.ficha dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.ficha dd {
  margin: 0;
}

.section {
  padding: 2.6rem 0;
}

main {
  counter-reset: sec;
}

.section h2::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 0.45rem;
  color: var(--seal);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  max-width: 20ch;
}

.prose {
  max-width: 44rem;
}

.prose p,
.note {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 0.4rem;
}

.panel h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.panel ul,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel li,
.plain-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.1rem;
  border-top: 1px solid var(--line);
}

.panel li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--seal);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.3rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
}

.card h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.55rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.tag {
  align-self: flex-start;
  border: 1px solid color-mix(in srgb, var(--seal) 45%, var(--line));
  background: var(--seal-soft);
  color: var(--seal-strong);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote {
  margin: 1.3rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--seal);
  background: var(--surface);
  border-radius: 0 16px 16px 0;
}

.quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--ink);
}

.quote footer {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.assistants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.assistants li {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 650;
}

.form-section {
  padding-bottom: 3rem;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: start;
}

.form-shell,
.success {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.success {
  grid-column: 2;
}

.success h2 {
  max-width: 18em;
}

.form-layout:has(#form-success:not([hidden])) {
  grid-template-columns: minmax(0, 40rem);
  justify-content: center;
}

.form-layout:has(#form-success:not([hidden])) > .prose {
  display: none;
}

.form-layout:has(#form-success:not([hidden])) .success {
  grid-column: 1;
}

.success h2::before {
  content: none;
  counter-increment: none;
}

.success p:last-child {
  margin-bottom: 0;
}

form {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-2:has(> [hidden]) {
  grid-template-columns: 1fr;
}

.field,
fieldset.field {
  margin: 0;
  min-width: 0;
  border: 0;
  padding: 0;
}

legend,
.label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 650;
}

.req {
  color: var(--danger);
  font-weight: 650;
}

.hint,
.noscript,
.fine {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 12px;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.choices {
  display: grid;
  gap: 0.45rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-weight: 500;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  accent-color: #0b433d;
}

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--seal-soft);
}

.consent input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin-top: 0.25rem;
  accent-color: #0b433d;
}

.error,
.alert {
  margin: 0.4rem 0 0;
  color: var(--danger);
  font-size: 0.95rem;
}

.alert {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: var(--danger-bg);
}

.pending {
  margin: 0;
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.band {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}

.footer-inner p {
  margin: 0;
  max-width: 40rem;
}

.domain {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero,
  .form-layout,
  .cards,
  .split {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .success {
    grid-column: auto;
  }
}

.document h1 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  max-width: 16ch;
}

.document h2,
.prose h2 {
  max-width: 36em;
}

.prose h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.35rem;
}

.document h2 {
  margin-top: 2rem;
  font-size: 1.6rem;
}

.document h2::before,
.form-section .success h2::before {
  content: none;
  counter-increment: none;
  display: none;
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .hero {
    padding-top: 2rem;
  }

  .grid-2,
  .ficha > div:not(.ficha-top) {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .ficha > div:not(.ficha-top) {
    padding: 0.65rem 0;
  }

  .button,
  .button-secondary,
  form .button {
    width: 100%;
  }
}

@media (forced-colors: active) {
  .button,
  .mark,
  .tag,
  .card,
  .ficha,
  .form-shell {
    border: 1px solid ButtonText;
  }
}
