/* String Theory: shared styles for every page */

:root {
  --bg: #f7f4ee;
  --card: #ffffff;
  --ink: #1d2733;
  --muted: #4f5b68;
  --accent: #102e5d;
  --accent-soft: #e3ebf6;
  --line: #e3ddd2;
  --banner: #102e5d;       /* banner background */
  --banner-ink: #ffffff;   /* banner text */
  --banner-soft: #dcefee;  /* banner tagline */
  --btn: #102e5d;          /* main button background */
  --btn-ink: #ffffff;      /* main button text */
  --focus: #c98a00;        /* keyboard focus outline */
  --warn-bg: #fff4d6;
  --warn-ink: #4a3400;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171d;
    --card: #1b222b;
    --ink: #eef2f5;
    --muted: #b4bec8;
    --accent: #8fb8ea;
    --accent-soft: #1f3337;
    --line: #2c3540;
    --banner: #164a50;
    --banner-ink: #ffffff;
    --banner-soft: #cfe6e7;
    --btn: #6cc3c9;
    --btn-ink: #0f1a20;
    --focus: #f2c14e;
    --warn-bg: #3a3018;
    --warn-ink: #f7e6b5;
  }
}

* { box-sizing: border-box; }
html { font-size: 112.5%; } /* larger base text for older readers */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  line-height: 1.6;
}
.sans { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ---------- Banner header ---------- */
.banner {
  position: relative;
  overflow: hidden;
  background: var(--banner);
  color: var(--banner-ink);
}
.banner-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.banner-waves path { fill: none; stroke: #ffffff; }
.banner-inner {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 1rem 2.75rem;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .25rem .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;          /* big tap targets */
  padding: 0 .9rem;
  border-radius: 8px;
  color: var(--banner-ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { background: rgba(255, 255, 255, .14); }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .35em;
  text-decoration-thickness: 2px;
}
.banner-title {
  display: block;
  margin: 1.25rem 0 .25rem;
  font-size: clamp(2.6rem, 9vw, 3.8rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--banner-ink);
  text-decoration: none;
}
.banner-tagline {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  letter-spacing: .03em;
  color: var(--banner-soft);
}

/* ---------- Page content ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem;
}
h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .75rem;
}
h2 { line-height: 1.25; }
.badge {
  display: inline-block;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: .35rem .9rem;
  margin-bottom: 1rem;
}
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 2rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1rem;
}
.card h2 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  margin: 0 0 .75rem;
}
.card ul { margin: 0; padding-left: 1.2rem; }
.card li { margin-bottom: .5rem; }
.note { color: var(--muted); margin-top: 2rem; }

/* ---------- Call to action ---------- */
.cta {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: 14px;
  background: var(--accent-soft);
}
.cta h2 { margin: 0 0 .5rem; font-size: 1.6rem; }
.cta p { margin: 0 0 1.25rem; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;           /* about 60px */
  padding: 0 1.75rem;
  border-radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { filter: brightness(.92); }
.btn-secondary { background: var(--card); color: var(--accent); border: 2px solid var(--accent); }

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

/* ---------- Request page ---------- */
.safety {
  margin: 0 0 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.form-frame {
  display: block;
  width: 100%;
  max-width: 640px;
  height: 1500px;               /* raise this if the form looks cut off */
  margin: 0 auto;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
}
.next-steps { margin-top: 2rem; }
.next-steps h2 { font-size: 1.4rem; margin: 0 0 .5rem; }
.next-steps p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
footer {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid var(--line);
}
