/* ==========================================================================
   Protect Our Paradise — Lauderdale-By-The-Sea
   Palette drawn from the logo: navy ink, ocean & cyan waves, sun gold, sand.
   ========================================================================== */

:root {
  /* light (default) */
  --ground:      #F5F8FB;   /* foam white, faint blue bias */
  --paper:       #FFFFFF;
  --paper-2:     #EAF2F8;
  --ink:         #0B2E55;
  --ink-2:       #3D5A7A;
  --ink-3:       #6E86A0;
  --line:        #D3DFEA;

  --navy:        #0B2E55;
  --navy-fixed:  #0B2E55;   /* stays navy in both themes */
  --royal:       #1B49D3;   /* the t-shirt blue — the badge is always this, in both themes */
  --ocean:       #1B49D3;   /* page accent = shirt blue so the site reads as the same brand */
  --cyan:        #2BB3E6;
  --sun:         #F0B96A;
  --sun-deep:    #D99A3C;
  --on-sun:      #2B1B05;
  --sand:        #F6E7C9;
  --sand-2:      #FBF3E3;
  --sand-line:   #E6D2A8;

  --brand:       #0B2E55;   /* primary solid button */
  --on-brand:    #FFFFFF;

  /* navy band (help section, election strip) */
  --band:        #0B2E55;
  --band-2:      #123B6B;
  --band-ink:    #EEF3F8;
  --band-ink-2:  #B9CBE0;
  --band-line:   #2A4F7E;

  --shadow:      0 24px 60px -24px rgba(11, 46, 85, .35), 0 6px 14px -8px rgba(11, 46, 85, .18);

  /* type */
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --serif:   "Source Serif 4", Georgia, "Times New Roman", serif;

  --fs-hero:  clamp(2.5rem, 5.6vw, 5rem);
  --fs-h2:    clamp(1.85rem, 3.4vw, 2.9rem);
  --fs-h3:    1.3rem;
  --fs-body:  1.0625rem;
  --fs-lede:  clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-label: .78rem;

  --wrap: 1120px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 14px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:     #07192D;
    --paper:      #0D2542;
    --paper-2:    #122F52;
    --ink:        #EAF1F8;
    --ink-2:      #B7C8DA;
    --ink-3:      #86A1BC;
    --line:       #234166;
    --navy:       #EAF1F8;
    --ocean:      #7C9BF5;
    --cyan:       #5CC8F0;
    --sun:        #F3C27A;
    --sun-deep:   #E3A94F;
    --on-sun:     #221604;
    --sand:       #1E2A3C;
    --sand-2:     #172336;
    --sand-line:  #3A4A62;
    --brand:      #7C9BF5;
    --on-brand:   #06192C;
    --band:       #04111F;
    --band-2:     #0A1E36;
    --band-ink:   #EEF3F8;
    --band-ink-2: #A9BDD3;
    --band-line:  #1E3A5F;
    --shadow:     0 24px 60px -24px rgba(0, 0, 0, .7), 0 6px 14px -8px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground:     #07192D;
  --paper:      #0D2542;
  --paper-2:    #122F52;
  --ink:        #EAF1F8;
  --ink-2:      #B7C8DA;
  --ink-3:      #86A1BC;
  --line:       #234166;
  --navy:       #EAF1F8;
  --ocean:      #7C9BF5;
  --cyan:       #5CC8F0;
  --sun:        #F3C27A;
  --sun-deep:   #E3A94F;
  --on-sun:     #221604;
  --sand:       #1E2A3C;
  --sand-2:     #172336;
  --sand-line:  #3A4A62;
  --brand:      #7C9BF5;
  --on-brand:   #06192C;
  --band:       #04111F;
  --band-2:     #0A1E36;
  --band-ink:   #EEF3F8;
  --band-ink-2: #A9BDD3;
  --band-line:  #1E3A5F;
  --shadow:     0 24px 60px -24px rgba(0, 0, 0, .7), 0 6px 14px -8px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-underline-offset: .15em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--sun); color: var(--on-sun); padding: .6rem 1rem;
  border-radius: 8px; font-family: var(--display); font-weight: 700; z-index: 100;
}
.skip:focus { top: 1rem; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-variation-settings: "opsz" 96, "wdth" 92;
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
  font-size: var(--fs-hero);
}
.display em { font-style: normal; color: var(--ocean); }
.display--2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.015em; }

.eyebrow {
  font-family: var(--display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ocean);
  margin: 0 0 .9rem;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  margin: 1.4rem 0 0;
}
.lede strong { color: var(--ink); font-weight: 600; }
.lede--narrow { max-width: 30em; }

h3 {
  font-family: var(--display);
  font-variation-settings: "opsz" 40, "wdth" 96;
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5rem;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 96;
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sun { background: var(--sun); color: var(--on-sun); border-color: var(--sun); }
.btn--sun:hover { background: var(--sun-deep); border-color: var(--sun-deep); color: var(--on-sun); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 0 2px 10px -4px rgba(11, 46, 85, .35); }
.btn--paper:hover { color: var(--ocean); }
.btn--sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.brand__mark { width: 40px; height: 40px; flex: none; }

/* ---------- the badge ---------- */
.badge__outer, .badge__inner {
  font-family: var(--display);
  font-variation-settings: "opsz" 96, "wdth" 100;
  font-weight: 800;
}
.badge__outer { font-size: 94px; letter-spacing: 3px; }
.badge__inner { font-size: 74px; letter-spacing: 7px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--display);
  font-variation-settings: "wdth" 90;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em;
}
.brand__place {
  font-family: var(--display);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ocean);
}
.nav__links { display: flex; gap: 1.5rem; }
.nav__links a {
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  color: var(--ink-2); text-decoration: none;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a, .brand__name, .brand__place { white-space: nowrap; }
@media (max-width: 900px) {
  .nav__links { display: none; }
}
@media (max-width: 420px) {
  .brand__text { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(5rem, 12vw, 9rem);
  isolation: isolate;
}
.hero__sea {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__copy .lede { margin-top: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* postcard: the logo on a tilted white card */
.postcard {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 460px);
  background: #FFFFFF;             /* a postcard is white in either theme */
  padding: 1.25rem;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.postcard:hover { transform: translateY(-3px); }
.postcard__badge { display: block; width: 100%; aspect-ratio: 1 / 1; }
.postcard__stamp {
  position: absolute; right: 1.1rem; bottom: .8rem;
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1;
  font-family: var(--display); font-weight: 700; font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: #1B49D3;
  border: 1.5px dashed #A9BAF0; border-radius: 3px;
  padding: .35rem .5rem;
  transform: rotate(6deg);
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .postcard { justify-self: start; width: min(100%, 400px); margin-top: 1rem; }
}

/* ---------- election strip ---------- */
.strip {
  background: var(--band);
  color: var(--band-ink);
  border-block: 1px solid var(--band-line);
}
.strip__inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 2rem;
  align-items: center;
  padding-block: 1.4rem;
}
.strip__label {
  display: block;
  font-family: var(--display); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sun);
  margin-bottom: .2rem;
}
.strip__big {
  font-family: var(--display); font-variation-settings: "wdth" 92;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; line-height: 1.1;
}
.strip__count {
  display: flex; align-items: baseline; gap: .5rem;
  padding-inline: 1.5rem;
  border-inline: 1px solid var(--band-line);
}
.strip__count .strip__label { margin: 0; color: var(--band-ink-2); }
.strip__num {
  font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--sun);
  letter-spacing: -.03em;
}
.strip__seats, .strip__reg { font-size: .98rem; color: var(--band-ink); line-height: 1.35; }
.strip__reg a { color: var(--cyan); }
.strip__reg a:hover { color: var(--band-ink); }
@media (max-width: 960px) {
  .strip__inner { grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; }
  .strip__count { border-inline: 0; padding-inline: 0; justify-self: end; }
}
@media (max-width: 560px) {
  .strip__inner { grid-template-columns: 1fr; }
  .strip__count { justify-self: start; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section__head .lede { margin-top: 1.1rem; }

.section--sand { background: var(--sand-2); border-block: 1px solid var(--sand-line); }
.section--navy { background: var(--band); color: var(--band-ink); }
.section--navy .eyebrow { color: var(--sun); }
.section--navy .lede { color: var(--band-ink-2); }

/* ---------- pledge ---------- */
.pledge {
  background: var(--sand);
  border: 1px solid var(--sand-line);
  border-radius: 6px;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  box-shadow: var(--shadow);
  position: relative;
  max-width: 920px;
}
.pledge::before {
  /* the paper's inner rule */
  content: ""; position: absolute; inset: 10px;
  border: 1px solid color-mix(in srgb, var(--sun-deep) 45%, transparent);
  border-radius: 3px; pointer-events: none;
}
.pledge__head {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.pledge__rule { flex: 1; height: 1px; background: var(--sun-deep); opacity: .6; }
.pledge__title {
  font-family: var(--display); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; text-align: center;
  color: var(--sun-deep);
}
.pledge__items { display: grid; gap: 1.8rem; }
.pledge__item {
  display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: .5rem 2rem; align-items: start;
}
.pledge__item h3 { font-size: 1.45rem; }
.pledge__item p { color: var(--ink-2); }
@media (max-width: 680px) { .pledge__item { grid-template-columns: 1fr; } }
.pledge__sign {
  margin-top: 2.4rem; padding-top: 1.4rem;
  border-top: 1px solid var(--sun-deep);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.pledge__sigline {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-2);
}
.pledge__seal svg { width: 64px; height: 64px; display: block; }

/* ---------- our town ---------- */
.town {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.town__copy .display--2 { margin-bottom: 1.4rem; }
.town__copy p { color: var(--ink-2); }
.town__copy p em { color: var(--ink); font-weight: 600; }
.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--sand-line);
  border: 1px solid var(--sand-line);
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.fact { background: var(--paper); padding: 1.4rem 1.3rem; }
.fact dt {
  font-family: var(--display); font-weight: 800; font-size: 2.3rem; line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink);
}
.fact dt span { font-size: .48em; font-weight: 700; letter-spacing: .04em; color: var(--ocean); margin-left: .15em; }
.fact dd { margin: .55rem 0 0; font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 860px) { .town { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* ---------- the slate ---------- */
.slate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cand {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.cand__photo {
  position: relative; aspect-ratio: 1 / 1; background: var(--paper-2);
  border-bottom: 4px solid var(--sun);
}
.cand__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* monogram shows when the photo file is missing */
.cand__photo::before {
  content: attr(data-initials);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 5rem; letter-spacing: -.04em;
  color: var(--ocean); opacity: .35; z-index: 0;
}
.cand__photo img { position: relative; z-index: 1; }
.cand__photo.is-missing img { display: none; }
.cand__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.cand__body p { max-width: none; margin: 0; }
.cand__seat {
  font-family: var(--display); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sun-deep);
}
.cand__name {
  font-size: 1.7rem; margin: 0;
  font-variation-settings: "opsz" 96, "wdth" 90; font-weight: 800; letter-spacing: -.02em;
}
.cand__role { color: var(--ink-3); font-size: .95rem; font-family: var(--display); font-weight: 600; margin-bottom: .5rem !important; }
.cand__bio { color: var(--ink-2); font-size: .98rem; line-height: 1.55; }
.cand__bio em { color: var(--ink); }
.cand__why {
  margin-top: .8rem !important; padding: .9rem 1rem;
  background: var(--sand-2); border-left: 3px solid var(--sun);
  border-radius: 0 8px 8px 0;
  font-size: .96rem; line-height: 1.5; color: var(--ink);
}
.cand__why span {
  display: block; font-family: var(--display); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sun-deep); margin-bottom: .3rem;
}
.cand__links { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem; font-size: .9rem; }
.cand__links a { font-family: var(--display); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.slate__note { margin-top: 1.6rem; color: var(--ink-3); font-size: .92rem; max-width: 60ch; }
@media (max-width: 960px) { .slate { grid-template-columns: 1fr; max-width: 560px; } .cand { flex-direction: row; } .cand__photo { flex: 0 0 38%; aspect-ratio: auto; border-bottom: 0; border-right: 4px solid var(--sun); } }
@media (max-width: 600px) { .cand { flex-direction: column; } .cand__photo { flex: none; aspect-ratio: 1 / 1; border-right: 0; border-bottom: 4px solid var(--sun); } }

/* ---------- the 8 charter amendments ---------- */
.no { color: #B3261E; }
.charter__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.charter__head .lede { margin-top: 1.2rem; max-width: 40em; }
.charter__vote {
  margin-top: 1.2rem; padding: .8rem 1rem; max-width: 40em;
  background: var(--paper); border: 1px solid var(--sand-line); border-radius: 8px;
  font-size: .98rem; color: var(--ink-2);
}
.charter__vote strong { color: var(--ink); }
.charter__stamp {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 150px; height: 150px; border-radius: 50%;
  border: 5px solid #B3261E; color: #B3261E;
  font-family: var(--display); font-weight: 800; line-height: .9;
  transform: rotate(-12deg);
  margin-top: 1.5rem;
}
.charter__stamp-no { font-size: 4.2rem; letter-spacing: -.04em; }
.charter__stamp-sub { font-size: 1.1rem; letter-spacing: .1em; }
@media (max-width: 720px) { .charter__head { grid-template-columns: 1fr; } .charter__stamp { display: none; } }

.ballot { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.q details {
  background: var(--paper); border: 1px solid var(--sand-line); border-radius: 10px;
}
.q details[open] { box-shadow: var(--shadow); }
.q summary {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; grid-template-rows: auto auto;
  gap: .15rem 1rem; align-items: center;
  padding: 1rem 1.2rem; cursor: pointer; list-style: none;
}
.q summary::-webkit-details-marker { display: none; }
.q summary:hover .q__title { color: var(--ocean); }
.q__num {
  grid-row: 1 / 3;
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.q__title {
  font-family: var(--display); font-variation-settings: "wdth" 94; font-weight: 700;
  font-size: 1.15rem; line-height: 1.2; color: var(--ink); text-wrap: balance;
}
.q__gist { grid-column: 2; color: var(--ink-2); font-size: .95rem; line-height: 1.4; }
.q__vote {
  grid-row: 1 / 3; grid-column: 3;
  font-family: var(--display); font-weight: 800; font-size: .9rem; letter-spacing: .08em;
  color: #B3261E; border: 2px solid #B3261E; border-radius: 6px; padding: .3rem .6rem;
}
.q__body { padding: .2rem 1.2rem 1.4rem calc(2.6rem + 1rem + 1.2rem); display: grid; gap: .9rem; }
.q__body p { max-width: 68ch; margin: 0; font-size: .98rem; line-height: 1.55; }
.q__body p > span {
  display: block; font-family: var(--display); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .2rem;
}
.q__official { color: var(--ink-2); font-style: italic; }
.q__official > span { color: var(--ink-3); }
.q__does > span { color: var(--ocean); }
.q__does em { color: var(--ink); font-style: normal; font-weight: 600; }
.q__why { padding: .8rem 1rem; background: color-mix(in srgb, #B3261E 8%, var(--paper)); border-left: 3px solid #B3261E; border-radius: 0 8px 8px 0; }
.q__why > span { color: #B3261E; }
.charter__foot { margin-top: 1.6rem; }
.charter__foot p { color: var(--ink-3); font-size: .9rem; max-width: 72ch; }
@media (max-width: 600px) {
  .q summary { grid-template-columns: 2rem minmax(0, 1fr); }
  .q__vote { grid-column: 2; grid-row: 3; justify-self: start; margin-top: .3rem; }
  .q__body { padding-left: 1.2rem; }
}

/* ---------- residency questions ---------- */
.residency { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.residency__copy .display--2 { margin-bottom: 1.4rem; }
.residency__copy p { color: var(--ink-2); }
.residency__copy p em { color: var(--ink); font-weight: 600; font-style: normal; }
.residency__copy p strong { color: var(--ink); font-weight: 600; }
.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: q; }
.questions li {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.4rem 4.2rem; counter-increment: q;
}
.questions li::before {
  content: counter(q); position: absolute; left: 1.3rem; top: 1.25rem;
  font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1; letter-spacing: -.03em;
  color: var(--ocean);
}
.questions h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.questions p { color: var(--ink-2); font-size: .98rem; max-width: none; }
.residency__foot { grid-column: 1 / -1; color: var(--ink-2); max-width: 62ch; margin-top: .5rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
@media (max-width: 860px) { .residency { grid-template-columns: 1fr; } }

/* ---------- actions ---------- */
.actions {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.action {
  background: var(--band-2); border: 1px solid var(--band-line);
  border-radius: var(--radius); padding: 1.6rem 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.action h3 { color: var(--band-ink); }
.action p { color: var(--band-ink-2); flex: 1; }
.action a {
  font-family: var(--display); font-weight: 700; text-decoration: none;
  color: var(--sun); margin-top: .8rem;
}
.action a:hover { color: var(--band-ink); }
@media (max-width: 720px) { .actions { grid-template-columns: 1fr; } }

/* ---------- join ---------- */
.join { background: var(--paper-2); border-top: 1px solid var(--line); }
.join__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.join__copy .display--2 { margin-bottom: 1.2rem; }
.join__copy p { color: var(--ink-2); }
.form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem);
  display: grid; gap: 1rem;
  box-shadow: var(--shadow);
}
.form__row { display: grid; gap: .4rem; }
.form label, .check {
  font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--ink);
}
.form label .opt { font-weight: 500; color: var(--ink-3); }
.form input[type="text"], .form input[type="email"] {
  font: inherit; font-family: var(--serif); font-size: 1.05rem;
  padding: .8rem .95rem;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--ground); color: var(--ink);
  width: 100%;
}
.form input:focus { border-color: var(--ocean); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 35%, transparent); }
.form input[aria-invalid="true"] { border-color: #C0392B; }
.check { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--ocean); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: .95rem; min-height: 1.2em; color: var(--ink-2); }
.form__status.is-ok { color: #1E7D4B; }
.form__status.is-err { color: #C0392B; }
.form__fine { font-size: .82rem; color: var(--ink-3); line-height: 1.45; }
.form.is-done .form__row, .form.is-done .check, .form.is-done button { display: none; }
.form.is-done .form__status { font-size: 1.1rem; font-family: var(--display); font-weight: 700; }
@media (max-width: 860px) { .join__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; }
.foot__inner { display: grid; gap: 1.2rem; }
.foot__brand { display: flex; align-items: center; gap: 1rem; }
.foot__brand > div { display: flex; flex-direction: column; gap: .2rem; }
.foot__badge { width: 56px; height: 56px; flex: none; }
.foot__tag { color: var(--ink-3); font-size: .95rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot__links a { font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--ink-2); text-decoration: none; }
.foot__links a:hover { color: var(--ink); }
.foot__fine { font-size: .82rem; color: var(--ink-3); max-width: 70ch; line-height: 1.5; }
