/* Standalone post-election page. Palette, fonts, and squircles follow the campaign brand. */
/* Self-hosted SIL Open Font License fonts; notices are included in assets/fonts/. */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-400-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-900.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  size-adjust: 102.2%;
  ascent-override: 98.3%;
  descent-override: 28.9%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --mauve-950: #28202a;
  --mauve-900: #4b3b4f;
  --mauve-200: #e6dfe7;
  --mauve-100: #f3eff3;
  --teal-400: #58bdc6;
  --font-sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Montserrat", var(--font-sans);
  --font-signature: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  font-family: var(--font-sans);
  color: var(--mauve-100);
  background: var(--mauve-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-width: 0;
  margin: 0;
  padding: clamp(1.5rem, 3vh, 2rem) 0 1rem;
  background-image:
    radial-gradient(ellipse at 6% 8%, rgb(57 158 167 / 16%), transparent 40rem),
    radial-gradient(ellipse at 100% 48%, rgb(58 162 121 / 9%), transparent 40rem),
    radial-gradient(ellipse at 30% 100%, rgb(75 59 79 / 65%), transparent 46rem);
}

::selection {
  color: #fff;
  background: rgb(57 158 167 / 40%);
}

a {
  color: inherit;
}

a:focus-visible {
  border-radius: 0.5rem;
  outline: 3px solid var(--teal-400);
  outline-offset: 8px;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--mauve-950);
  font-weight: 600;
}

.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.site-header {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.site-logo {
  display: block;
  width: clamp(13rem, 16vw, 17rem);
  max-width: 100%;
  height: auto;
}

.splash {
  width: min(100% - 2rem, 104rem);
  margin: auto;
}

.splash-layout {
  display: grid;
  align-items: stretch;
  gap: 1.5rem;
}

.splash-layout > * {
  min-width: 0;
}

.letter-heading {
  margin-bottom: 1.5rem;
}

.splash-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.025em;
  text-wrap: balance;
  text-transform: uppercase;
}

.splash-title-ending {
  display: inline-block;
  white-space: nowrap;
}

/* The campaign site's surface and ring effect, including its overlay blend. */
.ui-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 18px 48px rgb(40 32 42 / 20%);
}

.ui-surface__ring {
  position: absolute;
  z-index: 100;
  inset: 0;
  display: block;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 30%);
  mix-blend-mode: overlay;
}

.heart {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.08em;
  vertical-align: 0.02em;
}

.community-photo {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--mauve-900);
  background-image:
    radial-gradient(circle at 10% 14%, rgb(57 158 167 / 7.5%), transparent 24rem),
    radial-gradient(circle at 90% 28%, rgb(58 162 121 / 6%), transparent 28rem);
}

.community-photo picture {
  display: flex;
  align-items: center;
  height: 100%;
}

.community-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.concession-letter {
  width: 100%;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  background-color: var(--mauve-900);
  background-image:
    radial-gradient(circle at 10% 14%, rgb(57 158 167 / 7.5%), transparent 24rem),
    radial-gradient(circle at 90% 28%, rgb(58 162 121 / 6%), transparent 28rem);
}

.concession-copy {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.concession-copy p {
  margin: 0;
}

.concession-copy strong {
  color: #fff;
  font-weight: 700;
}

.concession-copy p + p {
  margin-top: 1rem;
}

.concession-copy .closing {
  margin-top: 1.25rem;
  color: #fff;
  font-weight: 400;
}

.concession-copy .signature {
  margin-top: 1rem;
  color: var(--teal-400);
  font-family: var(--font-signature);
  font-size: clamp(2.25rem, 2.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
}

.site-footer {
  width: min(100% - 2rem, 104rem);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgb(230 223 231 / 12%);
  color: var(--mauve-200);
  font-size: 0.75rem;
  line-height: 1.75;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 48rem) {
  .splash,
  .site-footer {
    width: min(100% - 4rem, 104rem);
  }
}

@media (min-width: 80rem) {
  .splash-title {
    font-size: clamp(2rem, 2.5vw, 2.75rem);
    white-space: nowrap;
  }

  .splash-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .community-photo {
    aspect-ratio: auto;
  }

  .community-photo img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
  }
}
