:root {
  --sf-navy: #1f365c;
  --sf-paper: #fffdf6;
  --sf-teal: #007e7a;
  --sf-violet: #6c5ce7;
  --sf-yellow: #f7c948;
  --sf-raspberry: #c84b6a;
  --sf-border: rgb(31 54 92 / 14%);
  --sf-page-gap: clamp(1rem, 4vw, 2.5rem);
  --sf-section-gap: clamp(4rem, 9vw, 7rem);
  --sf-card-radius: 18px;
  --sf-media-radius: 22px;
  --sf-pill-radius: 999px;
  --sf-transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

:where(p, li) {
  max-width: 70ch;
}

:where(h1, h2, h3, h4, h5, h6) {
  text-wrap: balance;
}

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color var(--sf-transition);
}

a:hover {
  color: var(--sf-violet);
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--sf-violet);
  outline-offset: 3px;
}

.sf-skip-link {
  position: fixed;
  z-index: 100000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--sf-paper);
  background: var(--sf-navy);
  border-radius: 8px;
  transform: translateY(-200%);
}

.sf-skip-link:focus {
  transform: translateY(0);
}

.sf-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--sf-border);
  background: rgb(255 253 246 / 94%);
  backdrop-filter: blur(12px);
}

.sf-header .wp-block-site-logo img {
  max-height: 56px;
  width: auto;
}

.sf-header .wp-block-navigation-item__content {
  text-decoration: none;
}

.sf-domain {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  color: var(--sf-teal);
  background: rgb(0 126 122 / 12%);
  border-radius: var(--sf-pill-radius);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.sf-section {
  padding-block: var(--sf-section-gap);
}

.sf-section--compact {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.sf-hero {
  min-height: min(760px, 82vh);
  padding-block: clamp(4rem, 9vw, 8rem);
}

.sf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.sf-hero__visual {
  position: relative;
  min-height: clamp(20rem, 42vw, 34rem);
  overflow: hidden;
  border-radius: var(--sf-media-radius);
  background: var(--sf-teal);
  isolation: isolate;
}

.sf-hero__visual::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  top: -18%;
  left: -18%;
  border-radius: 50%;
  background: var(--sf-yellow);
  z-index: -1;
}

.sf-hero__visual::after {
  content: "";
  position: absolute;
  width: 44%;
  aspect-ratio: 1;
  right: 9%;
  bottom: 9%;
  border-radius: 28%;
  background: var(--sf-raspberry);
  transform: rotate(-8deg);
}

.sf-kicker {
  color: var(--sf-teal);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sf-card-grid {
  align-items: stretch !important;
}

.sf-card {
  height: 100%;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-card-radius);
  background: rgb(255 255 255 / 52%);
}

.sf-card > :first-child {
  margin-top: 0;
}

.sf-card > :last-child {
  margin-bottom: 0;
}

.sf-card--teal {
  color: var(--sf-paper);
  background: var(--sf-teal);
  border-color: var(--sf-teal);
}

.sf-card--teal :where(h2, h3, h4, a) {
  color: var(--sf-paper);
}

.sf-card--navy {
  color: var(--sf-paper);
  background: var(--sf-navy);
  border-color: var(--sf-navy);
}

.sf-card--navy :where(h2, h3, h4) {
  color: var(--sf-paper);
}

.sf-card--navy a {
  color: var(--sf-yellow);
}

.sf-card--yellow {
  background: var(--sf-yellow);
  border-color: var(--sf-yellow);
}

.sf-prose > * {
  max-width: 70ch;
}

.sf-form-wrap {
  max-width: 760px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-card-radius);
  background: #fff;
}

.sf-form {
  display: grid;
  gap: 1.25rem;
}

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

.sf-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--sf-navy);
  font-size: 0.9375rem;
  font-weight: 650;
}

.sf-form input:not([type="checkbox"]),
.sf-form textarea,
.sf-form select {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  color: var(--sf-navy);
  background: var(--sf-paper);
  border: 1px solid rgb(31 54 92 / 36%);
  border-radius: 10px;
  font: inherit;
}

.sf-form input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0 0.35rem 0 0;
  accent-color: var(--sf-teal);
  vertical-align: -0.15em;
}

.sf-form textarea {
  min-height: 150px;
  resize: vertical;
}

.sf-form button,
.wp-element-button,
.wp-block-button__link {
  min-height: 44px;
  cursor: pointer;
  transition: transform var(--sf-transition), background-color var(--sf-transition), color var(--sf-transition);
}

.sf-form button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
  color: var(--sf-paper);
  background: var(--sf-teal);
  border-color: var(--sf-teal);
  transform: translateY(-1px);
}

.sf-form__help {
  margin: 0;
  color: rgb(31 54 92 / 72%);
  font-size: 0.8125rem;
}

.sf-form__status {
  padding: 1rem;
  border-left: 4px solid var(--sf-teal);
  background: rgb(0 126 122 / 10%);
}

.sf-form__status--error {
  border-left-color: var(--sf-raspberry);
  background: rgb(200 75 106 / 10%);
}

.sf-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.sf-footer {
  margin-top: var(--sf-section-gap);
  color: var(--sf-paper);
  background: var(--sf-navy);
}

.sf-footer :where(h2, h3, p) {
  color: inherit;
}

.sf-footer a {
  color: var(--sf-yellow);
}

@media (max-width: 780px) {
  .sf-hero {
    min-height: auto;
  }

  .sf-hero__grid,
  .sf-form__row {
    grid-template-columns: 1fr;
  }

  .sf-hero__visual {
    min-height: 18rem;
  }

  .sf-header__inner {
    align-items: flex-start !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
