:root {
  --navy: #14284b;
  --navy-soft: #3b4a68;
  --sand: #f4efe6;
  --sand-deep: #e8dfcf;
  --paper: #fbf9f4;
  --teal: #1f5f63;
  --teal-dark: #174a4d;
  --line: #d9cfbd;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 68rem;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--navy);
  background: var(--paper);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; padding-bottom: .9rem; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--teal); }

.lang { display: inline-flex; border: 1px solid var(--navy); border-radius: 999px; overflow: hidden; }
.lang button {
  font: inherit; font-size: .85rem; font-weight: 600; letter-spacing: .06em;
  padding: .35rem .9rem; border: 0; background: transparent; color: var(--navy); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Hero */
.hero { background: var(--sand); padding: 5rem 0 5.5rem; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); max-width: 18ch; }
.hero .lead { font-size: 1.2rem; max-width: 40rem; color: var(--navy-soft); margin: 1.4rem 0 2.2rem; }

.btn {
  display: inline-block; background: var(--teal); color: #fff; text-decoration: none;
  font-weight: 600; padding: .85rem 1.7rem; border-radius: 4px; transition: background .15s;
}
.btn:hover { background: var(--teal-dark); color: #fff; }

/* Sections */
section { padding: 4.5rem 0; }
section.alt { background: var(--sand); }
section.dark { background: var(--navy); color: #eef0f4; }
section.dark a { color: #cfe6e4; }
section.dark .eyebrow { color: #9fd0cc; }

h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 1rem; }
.intro { max-width: 40rem; color: var(--navy-soft); margin-bottom: 2.5rem; }
.dark .intro { color: #c9cfdb; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; }
.alt .card { background: var(--paper); }
.dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { margin: 0; font-size: .98rem; color: var(--navy-soft); }
.dark .card p { color: #c9cfdb; }

.note { margin-top: 1.75rem; max-width: 42rem; font-size: .95rem; color: var(--navy-soft); }
.dark .note { color: #c9cfdb; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--teal); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 2rem; color: var(--teal); display: block; line-height: 1; margin-bottom: .6rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--navy-soft); font-size: .98rem; }

/* Two-column text */
.cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); max-width: 52rem; }
.cols p { color: var(--navy-soft); }

/* Contact */
.contact { text-align: center; }
.contact .intro { margin-left: auto; margin-right: auto; }
.mail { font-family: var(--serif); font-size: clamp(1.3rem, 4vw, 1.9rem); display: inline-block; margin-bottom: 1rem; word-break: break-word; }

/* Footer */
.site-footer { background: var(--navy); color: #c9cfdb; padding: 2rem 0; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }

/* Privacy page */
.doc { padding: 4rem 0 5rem; max-width: 44rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 1.5rem; }
.doc h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.doc ul { padding-left: 1.2rem; }

@media (max-width: 40rem) {
  section { padding: 3.25rem 0; }
  .hero { padding: 3.5rem 0 4rem; }
  .site-footer .wrap { flex-direction: column; }
}

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

.eyebrow .sub { text-transform: none; letter-spacing: 0; font-weight: 400; }
.muted { color: var(--navy-soft); }

.mailrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; margin: 0 0 .25rem; }
.mailrow .mail { margin-bottom: 0; }
.copy {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: .4rem 1rem; border: 1px solid var(--teal); border-radius: 4px;
  background: transparent; color: var(--teal);
}
.copy:hover { background: var(--teal); color: #fff; }
.copy-status { min-height: 1.7rem; margin: 0 0 1rem; font-size: .95rem; color: var(--teal); font-weight: 600; }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
