:root {
  --bg: #FFF6EE;
  --surface: #FBE3D4;
  --ink: #2A1230;
  --ink-muted: #6B5670;
  --accent: #F04E2A;
  --peach: #FFB199;
  --lila: #C7B4F0;
  --line: #EBD3C4;
  --error: #B3261E;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-accent: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --gutter: 16px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
p,
ul {
  margin: 0;
}

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

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: inherit;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.logo__disc {
  width: 0.92em;
  height: 0.92em;
  border-radius: 50%;
  background: var(--accent);
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 16px;
  text-transform: uppercase;
}

/* Shared type */
.title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 34px;
  text-wrap: balance;
}

.hero__title em,
.title em {
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 16px;
  text-transform: uppercase;
}

/* Hero */
.hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__stage {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
}

.hero__copy {
  padding: 32px 24px 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 40px;
}

.hero__intro {
  max-width: 480px;
  margin-top: 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 28px;
}

.hero__photo {
  order: 1;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: 85% center;
}

/* Signup */
.signup {
  max-width: 480px;
  margin-top: 24px;
}

.signup__label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.signup__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup__input {
  width: 100%;
  height: 56px;
  padding: 0 24px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.signup__input::placeholder {
  color: var(--ink-muted);
  opacity: 1;
}

.signup__input:focus-visible {
  border-color: var(--ink);
}

.signup--dark .signup__input {
  border-color: var(--ink);
}

.signup--dark .signup__input:focus-visible {
  box-shadow: 0 0 0 2px var(--ink);
}

.button {
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

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

.button:hover {
  background: var(--accent);
  color: var(--ink);
}

.button--accent:hover {
  background: var(--ink);
  color: var(--bg);
}

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

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Honeypot: hidden for people, visible for bots */
.signup__trap {
  position: absolute;
  left: -9999px;
}

.signup__note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 18px;
}

.signup--dark .signup__note {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 22px;
}

.signup__note.is-error {
  color: var(--error);
  font-weight: 600;
}

.signup__note.is-success {
  color: var(--ink);
  font-weight: 600;
}

/* Points */
.points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  padding: 20px 24px;
  border: 1.5px solid var(--line);
  border-radius: 28px;
  background: var(--bg);
  list-style: none;
}

.point {
  display: flex;
  align-items: center;
  gap: 12px;
}

.point__icon {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
}

.point__icon--accent {
  background: var(--accent);
}

.point__icon--peach {
  background: var(--peach);
}

.point__icon--lila {
  background: var(--lila);
}

.point__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.point__text {
  font-size: 14px;
  line-height: 22px;
}

.point__text strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 26px;
}

/* Story */
.story {
  display: grid;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px var(--gutter);
}

.story__images {
  position: relative;
  width: 100%;
  max-width: 326px;
  aspect-ratio: 326 / 300;
}

.story__disc,
.story__square {
  position: absolute;
  object-fit: cover;
}

.story__disc {
  top: 0;
  left: 0;
  width: 73.6%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
}

.story__square {
  right: 0;
  bottom: 0;
  width: 55.2%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 28px;
  box-shadow: 0 0 0 6px var(--bg);
}

.story__copy .title {
  margin-top: 16px;
}

.story__body {
  margin-top: 16px;
  color: var(--ink-muted);
}

.story__note {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 22px;
}

/* Signup band */
.band {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
}

.band__inner {
  display: grid;
  gap: 24px;
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--surface);
}

.band__copy p {
  margin-top: 12px;
  color: var(--ink-muted);
}

.band .signup {
  margin-top: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px var(--gutter);
  font-size: 14px;
  line-height: 22px;
}

.footer__copyright {
  order: 1;
  color: var(--ink-muted);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.footer__links a:hover,
.footer__links a:focus-visible {
  text-decoration: underline;
}

/* Message page after confirming */
.message {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px var(--gutter) 96px;
}

.message a {
  color: inherit;
  font-weight: 600;
}

@media (min-width: 560px) {
  .signup__field {
    position: relative;
    display: block;
  }

  .signup__input {
    height: 60px;
    padding-right: 172px;
  }

  .signup--dark .signup__input {
    height: 56px;
  }

  .signup__field .button {
    position: absolute;
    top: 50%;
    right: 9.5px;
    height: 40px;
    padding: 0 18px;
    transform: translateY(-50%);
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }

  .header {
    padding: 24px var(--gutter);
  }

  .logo {
    font-size: 28px;
  }

  .logo--small {
    font-size: 22px;
  }

  .pill {
    padding: 8px 16px;
  }

  .title {
    font-size: 40px;
    letter-spacing: -0.025em;
    line-height: 46px;
  }

  .title em {
    letter-spacing: -0.02em;
  }

  /* Copy and photo side by side until the photo can carry the copy */
  .hero__stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 40px;
  }

  .hero__copy {
    align-self: center;
    padding: 48px 0 48px 40px;
  }

  .hero__title {
    font-size: 48px;
    line-height: 52px;
  }

  .hero__photo {
    height: 100%;
    min-height: 480px;
    object-position: 88% center;
  }

  .story {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 72px var(--gutter);
  }

  .story__images {
    max-width: 520px;
    aspect-ratio: 520 / 440;
  }

  .story__disc {
    width: 69.2%;
  }

  .story__square {
    width: 53.8%;
    border-radius: 40px;
    box-shadow: 0 0 0 8px var(--bg);
  }

  .story__copy .title,
  .story__body,
  .story__note {
    margin-top: 20px;
  }

  .band__inner {
    padding: 48px 40px;
    border-radius: 40px;
  }

  .footer__inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 32px var(--gutter) 40px;
  }

  .footer__copyright {
    order: 0;
  }

  .footer__links {
    gap: 32px;
    margin-left: auto;
  }
}

@media (min-width: 1024px) {
  .points {
    position: relative;
    flex-direction: row;
    gap: 40px;
    width: fit-content;
    margin: -44px auto 0;
    padding: 16px 32px;
    border-radius: 999px;
  }

  .hero__copy {
    padding-bottom: 80px;
  }

  .point__text strong {
    font-size: 20px;
    line-height: 28px;
  }

  .story__body,
  .hero__intro {
    font-size: 20px;
    letter-spacing: -0.01em;
    line-height: 30px;
  }
}

@media (min-width: 1280px) {
  /* Photo fills the stage, copy sits on its calm left half */
  .hero__stage {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 620px;
    padding: 72px 64px 96px;
  }

  .hero__photo {
    position: absolute;
    inset: 0;
    order: 0;
    min-height: 0;
    object-position: right center;
  }

  .hero__copy {
    position: relative;
    width: 600px;
    padding: 0;
  }

  .hero__title {
    font-size: 64px;
    letter-spacing: -0.03em;
    line-height: 68px;
  }

  .hero__title em {
    letter-spacing: -0.025em;
  }

  .hero__intro {
    max-width: min(480px, 34vw);
    margin-top: 20px;
  }

  .signup {
    margin-top: 32px;
  }

  .hero .signup {
    max-width: min(480px, 34vw);
  }

  .story {
    grid-template-columns: 520px minmax(0, 584px);
    justify-content: space-between;
    gap: 96px;
    padding: 96px 120px;
  }

  .band {
    padding: 0 120px 96px;
  }

  .band__inner {
    grid-template-columns: minmax(0, 480px) minmax(0, 480px);
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 56px 64px;
  }

  .footer__inner {
    padding: 32px 120px 40px;
  }
}
