/* GentleVisit™ by ANC Perpetua
   One stylesheet for every page. Phone first; wider screens add columns.
   Palette: dusk ink and lamplight. Cormorant Garamond for headings (ANC family),
   Atkinson Hyperlegible Next for reading. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;

  --ink: #222642;
  --ink-soft: #4a4d6a;
  --heather: #5d5888;
  --mist: #f4f2f7;
  --paper: #fcfbfd;
  --line: #dcd7e4;
  --field: #8e89a8;
  --blush: #f3e6dc;
  --blush-deep: #ead5c6;
  --lamp: #e9be74;
  --gold: #7a5c25;
  --gold-line: #b8955a;
  --dusk: #262b4f;
  --night: #1b1f3b;
  --on-dark: #f1eef6;
  --on-dark-soft: #c9c5da;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 1rem;
  --measure: 38rem;
  --radius: 0.75rem;
  --arch: 50% 50% var(--radius) var(--radius) / 5rem 5rem var(--radius) var(--radius);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--heather);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

h1,
h2,
.fee-line,
.serif-line,
.price-amount,
.sum {
  font-variant-numeric: lining-nums;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.5rem);
}
h2 {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
}
h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 0 0 0.4em;
}
p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}
strong {
  font-weight: 600;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34rem;
}
.quiet {
  color: var(--ink-soft);
}
.small {
  font-size: 0.9375rem;
}
.serif-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.prose {
  max-width: var(--measure);
}
.prose h2 {
  margin-top: 1.4em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}
.prose li + li {
  margin-top: 0.35em;
}

.section {
  padding-block: 3.5rem;
}
.section-tight {
  padding-block: 2.25rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 0.5rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 0.75rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  font: 600 1rem/1.25 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--dusk);
  border-color: var(--dusk);
}
.btn-quiet {
  background: transparent;
  color: var(--ink);
}
.btn-quiet:hover {
  background: var(--paper);
  color: var(--ink);
}
.btn-lamp {
  background: var(--lamp);
  border-color: var(--lamp);
  color: var(--night);
}
.btn-lamp:hover {
  background: #f1cd8f;
  border-color: #f1cd8f;
}
.btn-quiet-dark {
  background: transparent;
  border-color: var(--on-dark-soft);
  color: var(--on-dark);
}
.btn-quiet-dark:hover {
  background: rgba(241, 238, 246, 0.08);
  border-color: var(--on-dark);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1;
  padding-block: 0.55rem;
}
.wordmark-arms {
  width: auto;
  height: 3rem;
  flex: none;
}
@media (min-width: 53rem) {
  .wordmark-arms {
    height: 3.5rem;
  }
}
.wordmark-text {
  display: inline-flex;
  flex-direction: column;
}
.wordmark-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.wordmark-by {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--gold);
  margin-top: 0.15rem;
}
.tm {
  font-family: var(--sans);
  font-size: 0.42em;
  vertical-align: 0.95em;
  margin-left: 0.05em;
  font-weight: 400;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 0.95rem/1 var(--sans);
  cursor: pointer;
}
.menu-toggle-lines {
  display: inline-block;
  width: 1rem;
  height: 0.6rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

/* Phones: menu behind a button (only when JavaScript is running). */
@media (max-width: 52.99rem) {
  .js .menu-toggle {
    display: inline-flex;
  }
  .site-header .wrap {
    flex-wrap: wrap;
  }
  .site-nav {
    flex-basis: 100%;
    padding-bottom: 0.75rem;
  }
  .js .site-nav {
    display: none;
  }
  .js .site-nav.is-open {
    display: block;
  }
  .site-nav li {
    border-top: 1px solid var(--line);
  }
  .site-nav a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1.0625rem;
  }
}
@media (min-width: 53rem) {
  .site-nav ul {
    display: flex;
    gap: 1.6rem;
    font-size: 0.98rem;
  }
  .site-nav a {
    padding-block: 0.5rem;
  }
}

/* ---------- home hero ---------- */

.hero {
  padding-block: 1.75rem 3rem;
}
.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.hero-art {
  width: min(70%, 15rem);
  margin-inline: auto;
}
.hero-art svg {
  width: 100%;
  filter: drop-shadow(0 1.5rem 2rem rgba(38, 43, 79, 0.18));
}
.hero h1 {
  margin-bottom: 0.4em;
}
@media (min-width: 46rem) {
  .hero {
    padding-block: 3.5rem 4.5rem;
  }
  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 3rem;
  }
  .hero-art {
    order: 2;
    width: min(100%, 23rem);
  }
}

/* The lamp comes on, once. */
.lamp-glow {
  animation: lamp-on 2.6s ease-out 0.3s both;
}
.window-warmth {
  animation: warm-in 3.2s ease-out 0.3s both;
}
.evening-star {
  animation: star-in 2.4s ease-out 1.4s both;
}
@keyframes lamp-on {
  from { opacity: 0.12; }
  to { opacity: 1; }
}
@keyframes warm-in {
  from { opacity: 0; }
  to { opacity: 0.55; }
}
@keyframes star-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- two paths ---------- */

.paths {
  display: grid;
  gap: 1rem;
}
@media (min-width: 46rem) {
  .paths {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
.door {
  display: flex;
  flex-direction: column;
  padding: 3rem 1.5rem 1.75rem;
  border-radius: var(--arch);
}
.door h2 {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem);
}
.door p {
  max-width: 28rem;
}
.door .btn {
  align-self: flex-start;
  margin-top: auto;
}
.door .door-text {
  margin-bottom: 1.5rem;
}
.door-family {
  background: var(--blush);
}
.door-vet {
  background: var(--dusk);
  color: var(--on-dark);
}
.door-vet .quiet {
  color: var(--on-dark-soft);
}
@media (min-width: 46rem) {
  .door {
    padding: 4rem 2.25rem 2.25rem;
  }
}

/* ---------- the coat of arms, given room ---------- */

.crest {
  display: grid;
  gap: 1.75rem;
  justify-items: center;
  text-align: center;
}
.crest-arms {
  width: min(62%, 13rem);
  filter: drop-shadow(0 1.25rem 1.5rem rgba(38, 43, 79, 0.16));
}
.crest-text {
  max-width: 34rem;
}
.crest-text .lead {
  margin-inline: auto;
}
.motto-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--gold);
  margin-bottom: 1rem;
}
@media (min-width: 46rem) {
  .crest {
    grid-template-columns: auto 1fr;
    gap: 4rem;
    justify-items: start;
    align-items: center;
    text-align: left;
  }
  .crest-arms {
    width: 15rem;
  }
  .crest-text .lead {
    margin-inline: 0;
  }
}

/* ---------- page heads ---------- */

.page-head {
  padding-block: 2.5rem 2rem;
}
.page-head h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 3.9rem);
  max-width: 18ch;
}
.page-head .lead {
  margin-bottom: 0;
}
.page-head-family {
  background: linear-gradient(180deg, var(--blush) 0%, var(--mist) 100%);
}
.page-head-vet {
  background: var(--dusk);
  color: var(--on-dark);
  padding-block: 2.75rem 3rem;
}
.page-head-vet .lead {
  color: var(--on-dark-soft);
}
.page-head-vet a:not(.btn) {
  color: var(--on-dark);
}
@media (min-width: 46rem) {
  .page-head {
    padding-block: 4rem 3rem;
  }
  .page-head-vet {
    padding-block: 4.5rem 4rem;
  }
}

/* ---------- bands ---------- */

.band-dusk {
  background: var(--dusk);
  color: var(--on-dark);
}
.band-dusk .quiet,
.band-dusk .lead {
  color: var(--on-dark-soft);
}
.band-dusk :focus-visible {
  outline-color: var(--lamp);
}
.band-paper {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.band-blush {
  background: var(--blush);
}

/* ---------- plain points (hairline groups, not cards) ---------- */

.points {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.points > li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.band-dusk .points > li {
  border-top-color: rgba(241, 238, 246, 0.2);
}
.points p {
  max-width: 34rem;
}
@media (min-width: 46rem) {
  .points-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2.5rem;
  }
  .points-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 3rem;
  }
}

/* ---------- steps (a real sequence) ---------- */

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: step;
  max-width: 44rem;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 3.75rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.35rem;
  width: 2.6rem;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-variant-numeric: lining-nums;
  line-height: 1;
  text-align: center;
  color: var(--gold);
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 2.6rem;
  bottom: 0.5rem;
  border-left: 1px solid var(--gold-line);
  opacity: 0.6;
}
.steps > li:last-child {
  padding-bottom: 0;
}
.steps > li:last-child::after {
  display: none;
}

/* ---------- aftercare options (same size, same order, nothing chosen) ---------- */

.options {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 46rem) {
  .options {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
.options > li {
  padding: 1.5rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* A quiet note under the options, never a fourth option. */
.recommend {
  max-width: var(--measure);
  margin: 0 0 1.5rem;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 3px solid var(--heather);
}
.recommend h3 {
  margin-top: 0;
}
.recommend p:last-child {
  margin-bottom: 0;
}

/* ---------- notes ---------- */

.note {
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--heather);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 44rem;
}
.note-urgent {
  border-left-color: var(--gold-line);
  background: var(--blush);
}
.note + .note {
  margin-top: 1rem;
}

/* ---------- family cost ---------- */

.sum {
  max-width: 34rem;
  margin: 2rem 0 0;
  padding: 0.5rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.sum-row:last-child {
  border-bottom: 0;
}
.sum-row dt {
  margin: 0;
}
.sum-row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.sum-total dt,
.sum-total dd {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
}
.fee-line {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem);
  line-height: 1.2;
  max-width: 30rem;
  margin: 0;
}

/* ---------- vet membership ---------- */

.plans {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 52rem) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan-founding {
  border: 2px solid var(--lamp);
  border-radius: var(--arch);
  padding-top: 2.75rem;
}
.plan h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.85rem;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}
.price-amount {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
}
.price-per {
  color: var(--ink-soft);
}
.plan ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1em;
}
.plan li + li {
  margin-top: 0.3em;
}

/* Monthly / Yearly choice. Plain CSS, no JavaScript: the two radio buttons show one price or
   the other. Browsers without :has() skip the choice and show both prices. */
.billing-switch,
.price-alt {
  display: none;
}
.price-alt {
  margin: -0.4rem 0 0.85rem;
  color: var(--ink-soft);
}
@supports selector(:has(*)) {
  .billing-switch {
    display: block;
    border: 0;
    margin: 2rem 0 0;
    padding: 0;
    min-width: 0;
  }
  .billing-switch + .plans {
    margin-top: 1.25rem;
  }
  .price-alt {
    display: block;
  }
  .billing:has(#billing-monthly:checked) .when-yearly,
  .billing:has(#billing-yearly:checked) .when-monthly {
    display: none;
  }
}
.billing-switch legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.billing-options {
  position: relative;
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.billing-options label {
  min-width: 6.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  color: var(--ink-soft);
  text-align: center;
  cursor: pointer;
}
.billing-options input:checked + label {
  background: var(--ink);
  color: var(--on-dark);
}
.billing-options input:focus-visible + label {
  outline: 3px solid var(--heather);
  outline-offset: 2px;
}
.tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: 0.15em;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */

.faq-group + .faq-group {
  margin-top: 3rem;
}
.faq {
  max-width: 46rem;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  display: block;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--heather);
  border-bottom: 2px solid var(--heather);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq .answer {
  padding: 0 0 1.25rem;
  max-width: 40rem;
}

/* ---------- forms ---------- */

.forms {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 60rem) {
  .forms {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}
.form-card {
  padding: 1.75rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-card-family {
  border-top: 4px solid var(--gold-line);
}
.form-card-vet {
  border-top: 4px solid var(--dusk);
}
@media (min-width: 46rem) {
  .form-card {
    padding: 2.25rem 2rem;
  }
}
.form-card h2 {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.4rem);
}
.field {
  margin-top: 1.1rem;
}
.field label,
.field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-top: 0.1rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--field);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink);
  font: 400 1.0625rem/1.4 var(--sans);
}
.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--heather) 50%),
    linear-gradient(135deg, var(--heather) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%;
  background-size: 0.4rem 0.4rem;
  background-repeat: no-repeat;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--heather);
  outline-offset: 1px;
  border-color: var(--heather);
}
fieldset.field {
  border: 0;
  margin-inline: 0;
  padding: 0;
  min-width: 0;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.45rem 0;
  font-weight: 400;
}
/* Keep wrapped choice text beside its box, not under it. */
.field label.choice {
  display: flex;
  margin-bottom: 0;
}
.choice input {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.15rem 0 0;
  accent-color: var(--ink);
}
.form-foot {
  margin-top: 1.5rem;
}
.form-foot .btn {
  width: 100%;
}
@media (min-width: 30rem) {
  .form-foot .btn {
    width: auto;
  }
}
.form-status {
  margin-top: 1rem;
  font-weight: 600;
}
.honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--night);
  color: var(--on-dark-soft);
  padding-block: 3rem 2.5rem;
  font-size: 0.96875rem;
}
.site-footer a {
  color: var(--on-dark);
}
.site-footer :focus-visible {
  outline-color: var(--lamp);
}
.footer-top {
  display: grid;
  gap: 2rem;
}
@media (min-width: 52rem) {
  .footer-top {
    grid-template-columns: 1.1fr 2fr;
    gap: 3rem;
  }
}
.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer-arms {
  width: 6.5rem;
  flex: none;
}
.footer-wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--on-dark);
  margin: 0;
}
.footer-wordmark span {
  display: block;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--lamp);
  margin-top: 0.2rem;
}
.motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--lamp);
  margin: 1rem 0 0;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 40rem) {
  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.footer-nav h2 {
  font-family: var(--sans);
  font-size: 0.96875rem;
  font-weight: 600;
  color: var(--on-dark);
  margin: 0 0 0.5rem;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li + li {
  margin-top: 0.15rem;
}
.footer-nav a {
  display: inline-block;
  padding-block: 0.3rem;
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(241, 238, 246, 0.16);
  max-width: 52rem;
}
.footer-legal p {
  margin-bottom: 0.6rem;
}

/* ---------- preview only ---------- */

.preview-bar {
  background: var(--lamp);
  color: var(--night);
  font-size: 0.9375rem;
  line-height: 1.4;
  padding: 0.6rem var(--gutter);
  text-align: center;
}

/* ---------- small helpers ---------- */

.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}
.center-narrow {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}
.center-narrow .btn-row {
  justify-content: center;
}
.center-narrow .lead {
  margin-inline: auto;
}
.mt-0 {
  margin-top: 0;
}
.mt-2 {
  margin-top: 2rem;
}

@media (min-width: 46rem) {
  :root {
    --gutter: 1.5rem;
  }
  body {
    font-size: 1.125rem;
  }
  .section {
    padding-block: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header nav,
  .menu-toggle,
  .site-footer .footer-nav,
  .btn-row {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
