/* TypeNames.com - one stylesheet for every page. ASCII only. */
/* Design adopted 15/11/2026: headlines and wordmark in Source Serif 4
   (served from /assets/fonts/), plain navy hero, one ruled style for lists. */
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #1A3A52;
  --navy-deep: #12293b;
  --teal: #2E7D9A;
  --teal-dark: #236580;
  --gold: #B8860B;
  --gold-light: #E3C26B;
  --pale: #E8F4F8;
  --grey-bg: #f8f9fa;
  --rule: rgba(26, 58, 82, 0.22);
  --ink: #1f2a33;
  --muted: #55636e;
  --cream: #FFFBEA;
  --body-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display-font: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display-font); font-weight: 600; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Header bar with wordmark ---------- */
.site-header {
  background: var(--navy);
  text-align: center;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(227, 194, 107, 0.28);
}
/* Home page: seal, name and motto form one group at the top. */
.site-header.brand { padding: 30px 20px 24px; }
.site-header .seal { width: clamp(64px, 9vw, 84px); margin: 0 auto 14px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)); }
.site-header .tagline {
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
}
.site-header .tagline em { font-style: normal; color: var(--gold-light); }
.wordmark {
  display: inline-block;
  font-family: var(--display-font);
  font-weight: 600;
  letter-spacing: 0.005em;
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  line-height: 1.1;
}
.wordmark:hover { color: var(--cream); }
/* The (R) is the font's own mark at the letters' size: the font draws it
   small and raised, so it is not shrunk or lifted again here. */
.wordmark sup { font-size: 1em; vertical-align: baseline; margin-left: 0.04em; }
/* Wordmark typing (home page script): each letter keeps its place and is shown in turn. */
.wm-ch { visibility: hidden; position: relative; }
.wm-ch.on { visibility: visible; }
.wm-ch.cur::after {
  content: "";
  position: absolute; left: 100%; top: 0.16em;
  width: 0.06em; height: 0.9em;
  margin-left: 0.05em;
  background: var(--gold-light);
  animation: caret 1s steps(1) infinite;
}
.wordmark sup.wm-reg { opacity: 0; transition: opacity 0.4s; }
.wordmark sup.wm-reg.on { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 70% 55% at 50% 55%, rgba(46, 125, 154, 0.22) 0%, rgba(46, 125, 154, 0) 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 52px 20px 68px;
}
.hero h1 {
  font-size: clamp(2.3rem, 7vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.hero .lede {
  font-family: var(--display-font);
  font-size: clamp(1.2rem, 3.2vw, 1.7rem);
  line-height: 1.35;
  margin: 0 auto;
  color: var(--cream);
}
.rotator {
  display: inline-block;
  min-height: 1.3em;
  white-space: nowrap;
  color: var(--gold-light);
}
.rotator.typing::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.95em;
  margin-left: 0.08em;
  vertical-align: -0.12em;
  background: currentColor;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.actions { display: grid; grid-auto-columns: 1fr; gap: 12px; width: max-content; max-width: 100%; margin: 36px auto 0; }

.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 3px;
  border: 1px solid var(--teal);
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.6); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rotator.typing::after { animation: none; }
}

/* ---------- Sections ---------- */
section.band { padding: 64px 0; }
section.band.pale { background: var(--pale); }
section.band.navy { background: var(--navy); color: #eef3f6; }
section.band.navy h2 { color: #fff; }
section.band.navy h2::after { background: var(--gold-light); }

h2 {
  color: var(--navy);
  font-size: clamp(1.7rem, 4.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
h2::after {
  content: "";
  display: block;
  width: 44px; height: 2px;
  background: var(--gold);
  margin-top: 14px;
}
.center { text-align: center; }
.center h2::after { margin-left: auto; margin-right: auto; }
.intro { font-size: 1.15rem; max-width: 46em; }
.center .intro { margin-left: auto; margin-right: auto; }
p { margin: 0 0 14px; }

/* One style for every list of items: a thin rule above, no box, no shadow. */
.who { list-style: none; padding: 0; margin: 10px 0 0; display: grid; column-gap: 32px; }
.who li { border-top: 1px solid var(--rule); padding: 15px 0; }

.tiles { list-style: none; padding: 0; margin: 26px 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.tiles li {
  border-top: 1px solid var(--rule);
  padding: 13px 0;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.note { color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; column-gap: 40px; counter-reset: step; }
.steps li {
  counter-increment: step;
  border-top: 1px solid var(--rule);
  padding: 20px 0 20px 52px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 2px; top: 13px;
  font-family: var(--display-font);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--teal-dark);
}
.steps strong { display: block; font-family: var(--display-font); font-weight: 600; color: var(--navy); font-size: 1.2rem; margin-bottom: 4px; }

.reasons { display: grid; gap: 18px; margin: 26px 0 18px; }
.reasons div { border-top: 1px solid var(--rule); padding-top: 16px; }
.reasons h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.3rem; }
.closing-line { font-family: var(--display-font); font-size: 1.3rem; font-weight: 500; line-height: 1.4; color: var(--navy); }

.contact-email {
  display: inline-block;
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  font-weight: 600;
  margin: 6px 0 16px;
  word-break: break-all;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d6e1e8; text-align: center; padding: 28px 20px; font-size: 0.95rem; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-light); }

/* ---------- Policy pages ---------- */
.policy { padding: 44px 0 56px; }
.policy h1 { color: var(--navy); font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 6px; }
.policy .updated { color: var(--muted); margin-bottom: 26px; }
.policy h2 { font-size: clamp(1.35rem, 3.5vw, 1.7rem); margin-top: 40px; }
.policy h3 { color: var(--navy); font-size: 1.2rem; margin: 22px 0 6px; }
.policy ul { padding-left: 1.3em; }
.policy li { margin-bottom: 6px; }
.highlight-box { background: var(--pale); border-top: 1px solid var(--rule); padding: 18px 20px; margin-bottom: 26px; }
.highlight-box p:last-child { margin-bottom: 0; }
.toc { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0; margin-bottom: 10px; }
.toc h2 { font-size: 1.15rem; margin: 0 0 8px; }
.toc h2::after { display: none; }
.toc ol { margin: 0; padding-left: 1.3em; }
.callout { background: var(--grey-bg); border-top: 1px solid var(--rule); padding: 12px 16px; }
.back-home { margin-top: 36px; }

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
  .actions { grid-auto-flow: column; gap: 14px; }
}
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .hero { padding: 84px 20px 108px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  section.band { padding: 84px 0; }
}
