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

html {

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  color: var(--on-slate);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero {
  position: relative;
  height: var(--hero-height);
  flex-shrink: 0;
  background-color: var(--slate-deep);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position);
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  background-image: linear-gradient(to bottom, var(--scrim-strong), var(--scrim-zero));
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;

  background-image: linear-gradient(to bottom, var(--scrim-zero), var(--hero-seam-bg));
  pointer-events: none;
}

.hero--short { --hero-height: calc(22 * var(--vh)); }
.hero--tall  { --hero-height: calc(44 * var(--vh)); }

.hero--photo {
  --hero-position: 0% 0%;
  max-height: 52vh;
}

.hero--photo .hero__logo {
  display: none;
}

.hero--photo::before,
.hero--photo::after {
  content: none;
}

.hero__logo {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  box-sizing: content-box;
  width: clamp(120px, 30vw, 160px);
  height: auto;
  padding: clamp(18px, 4.5vw, 40px);
  filter: brightness(0) invert(1);
}

.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel-bg);
  padding: clamp(var(--sp-6), 8vw, var(--sp-8)) var(--sp-6) var(--sp-7);
}

.page > main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.page > main > .panel:first-child {
  flex: 1;
}

.panel__inner {
  width: 100%;
  max-width: var(--measure);
}

.panel--centered > .panel__inner {
  margin-inline: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .panel__inner {
    animation: panel-rise 460ms var(--motion-ease) both;
  }
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.headline {
  font-family: var(--sans);
  font-size: var(--fs-h1);
  font-weight: 400;

  line-height: 1.31;
  letter-spacing: -0.015em;
  color: var(--on-slate);

  text-wrap: balance;
}

.headline + .headline {
  margin-top: 1.31em;
}

.headline--sub {
  font-size: var(--fs-h2);
  line-height: 1.32;
}

.headline + .headline--tight {
  margin-top: 0;
}

.headline--display {
  font-size: var(--fs-display);
  line-height: 1.16;
}

.subcopy a,
.footnote a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: from-font;
  transition: color var(--motion-duration) var(--motion-ease);
}

.subcopy a:hover,
.footnote a:hover {
  color: var(--on-slate);
}

.subcopy a:focus-visible,
.footnote a:focus-visible {
  outline: 2px solid var(--on-slate);
  outline-offset: 3px;
  border-radius: 2px;
}

.subcopy {
  font-size: var(--fs-body);

  line-height: 1.4;
  color: var(--on-slate-muted);
  max-width: var(--measure);
}

.headline + .subcopy,
.subcopy + .subcopy {
  margin-top: var(--sp-5);
}

.footnote {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--on-slate-faint);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.stack > .actions,
.actions {
  margin-top: var(--sp-7);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--motion-duration) var(--motion-ease),
    border-color var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease),
    box-shadow var(--motion-duration) var(--motion-ease);
}

.cta:focus-visible {
  outline: 2px solid var(--on-slate);
  outline-offset: 3px;
}

.cta--primary {
  background-color: var(--sage-cta);
  border-color: var(--sage-cta);
  color: var(--on-slate);
  box-shadow: var(--shadow-soft);
}

.cta--primary:hover {
  background-color: var(--sage-cta-deep);
  border-color: var(--sage-cta-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sage);
}

.cta--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.cta--ghost {
  background-color: transparent;
  border-color: var(--cta-ghost-border);
  color: var(--on-slate);
}

.cta--ghost:hover {
  border-color: var(--on-slate-muted);
}

.cta--block {
  width: 100%;
}

@media (min-width: 560px) {
  .cta--block {
    width: auto;
  }
}

.lightsurface {
  --panel-bg: var(--cream);
  --on-slate: var(--ink);
  --on-slate-muted: var(--ink-soft);
  --on-slate-faint: var(--ink-faint);
  --on-slate-hairline: var(--ink-hairline);
  --cta-ghost-border: var(--ink-cta-ghost-border);
  background: var(--panel-bg);
  color: var(--on-slate);
}

.lightsurface .cta--primary {
  color: var(--cream);
}

.stack > * + * {
  margin-top: var(--stack-gap, var(--sp-4));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 900px) {

  .hero--photo {

    width: 100%;
    max-width: var(--sheet);
    align-self: center;

    max-height: min(var(--hero-natural-height), calc(34 * var(--vh)));
    height: var(--hero-natural-height);
  }

  .page {

    --hero-height: calc(34 * var(--vh));
  }

  .hero--short { --hero-height: calc(32 * var(--vh)); }
  .hero--tall  { --hero-height: calc(60 * var(--vh)); }

  .panel {
    padding: var(--sp-7) clamp(var(--sp-7), 7vw, var(--sp-9)) var(--sp-7);
  }
}

@media (max-height: 520px) {
  .page {
    --hero-height: calc(26 * var(--vh));
  }

  .panel {
    padding-top: var(--sp-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta--primary:hover,
  .cta--primary:active {
    transform: none;
  }
}
