* { box-sizing: border-box; }

html { min-height: 100%; }

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #fff;
  color: #1d2d35;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
  transition: transform 120ms ease-out;
}

.skip-link:focus {
  outline: 3px solid var(--theme-focus);
  outline-offset: 3px;
  transform: translateY(0);
}

main:focus { outline: none; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--theme-surface);
  color: var(--theme-ink);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.masthead {
  min-height: 82px;
  display: flex;
  align-items: center;
  background: var(--theme-header);
  color: #fff;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.campaign-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 24px;
  font-weight: 800;
  line-height: .9;
}

.campaign-mark span:last-child { color: var(--theme-accent); }

.endorsement {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.phone-link {
  font-weight: 700;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.council-mark {
  display: inline-flex;
  align-items: center;
  padding-left: 18px;
  border-left: 1px solid rgb(255 255 255 / .32);
  text-decoration: none;
}

.council-mark img { width: 150px; height: auto; }

.confirmation {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8.5vw, 124px) 0;
  background: linear-gradient(138deg, var(--theme-hero-start) 0%, var(--theme-hero-end) 100%);
  color: #fff;
}

.confirmation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(300px, .87fr);
  gap: clamp(52px, 8vw, 104px);
  align-items: end;
}

.confirmation-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--theme-accent);
  color: var(--theme-accent-ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.confirmation-label {
  margin-bottom: 17px;
  color: var(--theme-accent);
  font-size: 17px;
  font-weight: 800;
}

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(52px, 6.3vw, 88px);
  line-height: .94;
  letter-spacing: -.035em;
}

.confirmation-intro {
  max-width: 720px;
  margin-bottom: 27px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.45;
}

.reassurance {
  max-width: 700px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / .35);
  font-size: 17px;
}

.next-steps {
  padding-top: 27px;
  border-top: 2px solid var(--theme-accent);
}

.next-steps h2 {
  margin-bottom: 12px;
  font-size: clamp(27px, 2.7vw, 36px);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.next-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: next-step;
}

.next-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgb(255 255 255 / .26);
  counter-increment: next-step;
}

.next-steps li::before {
  content: counter(next-step);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--theme-accent);
  color: var(--theme-accent-ink);
  font-size: 15px;
  font-weight: 800;
}

.learn-more {
  padding: clamp(68px, 8vw, 112px) 0;
  background: var(--theme-surface);
  color: var(--theme-ink);
}

.learn-more-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 8vw, 108px);
  align-items: start;
}

.learn-more h2 {
  max-width: 560px;
  margin-bottom: 25px;
  color: var(--theme-heading);
  font-size: clamp(42px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.032em;
}

.learn-more-copy p {
  max-width: 610px;
  margin-bottom: 28px;
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--theme-button);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.button::after { content: "→"; font-size: 21px; }
.back-link { font-weight: 700; text-underline-offset: 4px; }

.resource-list { border-top: 2px solid var(--theme-resource); }

.resource-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--theme-line);
  text-decoration: none;
}

.resource-link::after {
  content: "↗";
  color: var(--theme-resource);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.resource-title {
  display: block;
  margin-bottom: 5px;
  color: var(--theme-resource);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.resource-description { display: block; max-width: 620px; font-size: 16px; }

footer {
  padding: 32px 0 36px;
  background: var(--theme-footer);
  color: var(--theme-footer-ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

footer .campaign-mark,
footer .campaign-mark span:last-child { color: var(--theme-footer-ink); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.footer-link-column { display: grid; align-content: start; gap: 13px; }
.footer-links a { text-underline-offset: 4px; }

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgb(43 77 89 / .22);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.footer-credit a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}

.footer-credit img { width: 88px; height: 28px; }
.footer-credit a:hover img { opacity: .82; }

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

.resource-link:hover .resource-title,
.back-link:hover,
.footer-links a:hover { text-decoration-thickness: 2px; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .shell { width: min(100% - 32px, 1180px); }
  .masthead { min-height: 0; }
  .masthead-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "council campaign"
      "council phone";
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
    padding: 12px 0;
  }
  .endorsement { display: contents; }
  .council-mark {
    grid-area: council;
    min-height: 44px;
    justify-self: start;
    justify-content: flex-start;
    padding: 4px 0;
    border: 0;
  }
  .council-mark img { width: clamp(144px, 44vw, 164px); }
  .masthead .campaign-mark {
    grid-area: campaign;
    display: block;
    align-self: end;
    justify-self: end;
    color: #fff;
    font-size: clamp(17px, 4.7vw, 19px);
    line-height: 1;
    text-align: right;
    white-space: nowrap;
  }
  .masthead .campaign-mark span:first-child { display: block; }
  .masthead .campaign-mark span:last-child { display: none; }
  .phone-link {
    grid-area: phone;
    position: relative;
    min-height: 0;
    display: block;
    align-self: start;
    justify-self: end;
    margin: 0;
    padding: 0;
    font-size: 12.5px;
    line-height: 1.2;
  }
  .phone-link::before {
    content: "";
    position: absolute;
    inset: -15px -4px -14px;
  }
  .confirmation-grid,
  .learn-more-grid { grid-template-columns: 1fr; }
  .confirmation-grid { gap: 52px; }
  .learn-more-grid { gap: 42px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-credit { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .confirmation { padding: 62px 0 68px; }
  .confirmation-mark { width: 50px; height: 50px; margin-bottom: 24px; font-size: 26px; }
  h1 { margin-bottom: 24px; font-size: clamp(45px, 12vw, 58px); }
  .confirmation-intro { font-size: 19px; }
  .next-steps li { grid-template-columns: 35px 1fr; padding: 16px 0; }
  .learn-more { padding: 62px 0 68px; }
  .learn-more h2 { font-size: clamp(39px, 11vw, 50px); }
  .learn-more-copy p { font-size: 18px; }
  .actions { display: grid; gap: 16px; }
  .button { width: 100%; }
  .back-link { justify-self: start; }
  .resource-link { padding: 21px 0; }
  .resource-title { font-size: 20px; }
  footer { padding: 24px 0 max(24px, env(safe-area-inset-bottom)); }
  footer .campaign-mark { font-size: 20px; }
  .footer-links { gap: 0 20px; font-size: 13px; line-height: 1.25; }
  .footer-link-column { gap: 12px; }
  .footer-credit { margin-top: 20px; padding-top: 16px; }
}
