@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("public/fonts/bricolage-grotesque-500.woff2") format("woff2");
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("public/fonts/bricolage-grotesque-700.woff2") format("woff2");
}

:root {
  --panel: #3a211c;
  --ink: #f6f0e7;
  --muted: #e7d6c8;
  --button: #f3e6d2;
  --button-ink: #2a1612;
  --button-press: #e7d3b6;
  --font: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --pad-x: 1.25rem;
  --pad-y: 1.15rem;
}

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

html {
  background: var(--panel);
  color-scheme: dark;
  scrollbar-color: #6d4b42 var(--panel);
}

body {
  margin: 0;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-x: clip;
}

::selection {
  background: var(--button);
  color: var(--button-ink);
}

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

.skip:focus-visible {
  left: var(--pad-x);
  top: var(--pad-y);
  z-index: 2;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.55rem 0.8rem;
  overflow: visible;
  clip: auto;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 700;
  text-decoration: none;
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.stage {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  background: var(--panel);
  scroll-margin-top: 0.5rem;
}

.copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  container-type: inline-size;
  padding: calc(var(--pad-y) + env(safe-area-inset-top, 0px)) var(--pad-x) 1rem;
  padding-left: calc(var(--pad-x) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--pad-x) + env(safe-area-inset-right, 0px));
  background: var(--panel);
}

.mast,
.lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.brand {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.eyebrow {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}

.headline {
  margin: 0;
  font-size: clamp(2.75rem, 11cqi, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.headline span {
  display: block;
}

.support {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}

.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  margin-top: 1rem;
  padding: 0.85rem 1.75rem;
  background: var(--button);
  color: var(--button-ink);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease;
}

.go:visited {
  color: var(--button-ink);
}

.go:hover {
  background: var(--button-press);
}

.go:active {
  background: var(--button-press);
  transform: translateY(1px);
}

.go:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.trust {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}

.trust svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}

.portrait {
  position: relative;
  flex: 1 1 auto;
  min-height: 16rem;
  margin: 0;
  background: var(--panel);
}

.portrait::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto 0;
  height: 46%;
  background: linear-gradient(180deg, var(--panel) 0%, rgb(58 33 28 / 0.72) 42%, transparent);
  pointer-events: none;
}

.portrait img {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

@media (min-width: 960px) {
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr);
    align-items: stretch;
    min-height: 100dvh;
  }

  .copy {
    position: relative;
    z-index: 1;
    justify-content: flex-start;
    gap: 0;
    min-height: 100dvh;
    padding: 1.75rem clamp(2rem, 4vw, 3.5rem);
    padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(90deg, var(--panel) 0 76%, transparent);
  }

  .brand {
    font-size: 2rem;
  }

  .eyebrow {
    margin-top: 0.45rem;
    font-size: 1.15rem;
  }

  .lead {
    margin-top: auto;
    margin-bottom: auto;
  }

  .headline {
    font-size: clamp(4rem, 4.6vw, 5.25rem);
    line-height: 1.02;
  }

  .support {
    margin-top: 1.1rem;
    font-size: 1.2rem;
  }

  .go {
    width: auto;
    min-width: 18rem;
    margin-top: 1.25rem;
    padding: 1rem 2.75rem;
    font-size: 1.125rem;
  }

  .trust {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem 1.5rem;
    width: max-content;
    max-width: none;
    margin-top: 1.75rem;
    padding-top: 0;
  }

  .trust li {
    font-size: 1.08rem;
    white-space: nowrap;
  }

  .portrait {
    min-height: 100dvh;
    height: 100%;
    margin-left: -38%;
  }

  .portrait::after {
    inset: 0;
    width: auto;
    height: auto;
    background: linear-gradient(90deg, var(--panel) 0%, rgb(58 33 28 / 0.82) 16%, rgb(58 33 28 / 0.4) 42%, transparent 74%);
  }

  .portrait img {
    object-position: center top;
  }
}

@media (prefers-reduced-motion: reduce) {
  .go {
    transition: none;
  }

  .go:active {
    transform: none;
  }
}
