:root {
  color-scheme: light;
  --ivory: #fbf3ef;
  --ivory-warm: #fff9f5;
  --rose-mist: #f1d6d3;
  --rose-line: #bb8a86;
  --burgundy: #5f1920;
  --burgundy-deep: #461015;
  --copper: #a35e4f;
  --ink: #57282a;
  --muted: #815e5e;
  --focus: #792832;
  --display: Didot, "Bodoni 72", "Bodoni MT", Baskerville, Georgia, serif;
  --body: Avenir, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  min-width: 320px;
  background: var(--ivory);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

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

.coming-soon {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ivory);
}

.art-scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--ivory);
}

/* The <picture> wrapper must not generate a box of its own; the image inside it
   is the positioned layer. */
.art-scene picture {
  display: contents;
}

.art-scene__fallback,
.art-scene__motion {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.art-scene__fallback {
  object-fit: cover;
  /* The HT monogram lives in the top-left of the artwork. Anchoring there means a
     cover crop always takes from the ribbon field, never from the brand mark.
     app.js mirrors this: offsetX = 0, offsetY = height - drawHeight. */
  object-position: left top;
}

.art-scene__motion {
  z-index: 1;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.33, 0, 0.2, 1);
}

.art-scene__motion.is-ready {
  opacity: 1;
}

.signup {
  position: relative;
  z-index: 2;
  grid-column: 2;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(1.75rem, 9vh, 7.25rem) clamp(2.5rem, 5vw, 5.5rem) clamp(1.75rem, 7vh, 6rem) clamp(2rem, 4.4vw, 4.75rem);
}

.signup__inner {
  width: min(100%, 41.5rem);
  /* The headline sizes off this column, not the viewport, so it cannot outgrow
     the space it is given. */
  container-type: inline-size;
  transform: translateY(-4vh);
}

.signup__header {
  text-align: center;
}

h1,
.refrain,
.intro {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
}

h1 {
  color: #70402f;
  font-size: clamp(2.6rem, 11.5cqi, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  /* Deliberately no white-space: nowrap. On a fallback serif such as Georgia the
     words set wider, and a balanced second line is far better than a headline
     sliced off the right edge. */
  text-wrap: balance;
}

.refrain {
  margin-top: 0.35rem;
  color: var(--burgundy-deep);
  font-size: clamp(1.75rem, 7.4cqi, 3.25rem);
  font-style: italic;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.intro {
  margin-top: 0.6rem;
  color: #6b3434;
  font-size: clamp(1.1rem, 4.1cqi, 1.82rem);
  line-height: 1.25;
}

.signup-form {
  margin-top: clamp(1.65rem, 3.5vh, 2.25rem);
}

/* Netlify honeypot. Hidden by position rather than display:none so a naive bot
   still finds and fills it, which is the whole point of the trap. */
.signup-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-form fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

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

.field + .field,
.field-row + .field {
  margin-top: 1rem;
}

.field-row .field + .field {
  margin-top: 0;
}

.field label {
  display: inline-block;
  margin: 0 0 0.42rem 0.1rem;
  color: var(--burgundy-deep);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.055em;
}

.field label span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
}

.field input,
.field select {
  width: 100%;
  min-height: 3.55rem;
  color: var(--burgundy-deep);
  border: 1px solid rgb(112 54 55 / 72%);
  border-radius: 0.55rem;
  background: rgb(255 251 248 / 70%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 66%);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field input {
  padding: 0.75rem 0.95rem;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.05rem;
  width: 0.64rem;
  height: 0.64rem;
  pointer-events: none;
  border-right: 2px solid var(--burgundy-deep);
  border-bottom: 2px solid var(--burgundy-deep);
  transform: translateY(-67%) rotate(45deg);
}

.field select {
  appearance: none;
  padding: 0.75rem 3rem 0.75rem 0.95rem;
  font-family: var(--display);
  font-size: 1.08rem;
}

.field input:hover,
.field select:hover {
  border-color: rgb(95 25 32 / 75%);
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid rgb(121 40 50 / 28%);
  outline-offset: 3px;
}

/* These two have no second focus treatment behind them, so their outline is the
   whole indicator and has to clear 3:1 on its own. */
.notify-button:focus-visible,
.motion-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.field input:focus,
.field select:focus {
  border-color: var(--focus);
  background: rgb(255 253 251 / 90%);
  box-shadow: 0 0 0 1px var(--focus), 0 8px 24px rgb(95 25 32 / 8%);
}

/* Burgundy body with a rose-gold rim drawn from the artwork's own foil
   (#ab5d4f -> #f4c3b7). The dark body keeps the CTA the heaviest thing on a pale
   page; the rim is what stops it reading as a plain slab. */
.notify-button {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  min-height: 4rem;
  margin-top: 1rem;
  padding: 0.85rem 1.5rem;
  color: #fffaf7;
  border: 3px solid transparent;
  border-radius: 0.55rem;
  background:
    linear-gradient(105deg, #832531, #651820 58%, #7c2630) padding-box,
    linear-gradient(135deg, #9c5244, #f4c3b7 18%, #b06a58 38%, #fdd9cd 54%, #b06a58 70%, #9c5244) border-box;
  box-shadow:
    0 12px 30px rgb(78 16 23 / 26%),
    inset 0 0 0 1px rgb(244 195 183 / 30%),
    inset 0 2px 0 rgb(255 255 255 / 16%);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.notify-button > span {
  position: relative;
  z-index: 1;
}

/* A highlight travelling along the metal, the same thing the light does on the
   silk behind it. Capped at 20%: a brighter sweep passing under the ivory label
   drops it to 2.7:1, where 20% still measures 5.2:1 at the sweep's peak. */
.notify-button::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 34%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 240 232 / 20%) 48%, transparent);
  transform: translateX(-140%) skewX(-18deg);
}

@media (prefers-reduced-motion: no-preference) {
  .notify-button::after {
    animation: notify-sheen 7s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  }
}

/* Set by the pause control. Resets the sweep to its off-canvas start rather than
   freezing it mid-button, which would leave a stripe sitting across the CTA. */
.motion-paused .notify-button::after {
  animation: none;
}

@keyframes notify-sheen {
  0% {
    transform: translateX(-140%) skewX(-18deg);
  }

  55%,
  100% {
    transform: translateX(340%) skewX(-18deg);
  }
}

.notify-button:hover {
  filter: brightness(1.05);
  box-shadow:
    0 15px 34px rgb(78 16 23 / 30%),
    inset 0 0 0 1px rgb(244 195 183 / 42%),
    inset 0 2px 0 rgb(255 255 255 / 20%);
  transform: translateY(-1px);
}

.notify-button:active {
  transform: translateY(0);
}

.consent-note,
.form-status {
  margin: 0;
  text-align: center;
}

.form-status:empty {
  min-height: 0;
  margin: 0;
}

.consent-block {
  margin-top: 1.1rem;
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.55;
}

.consent-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 44px;
  cursor: pointer;
}

/* Drawn rather than accent-coloured: this is the only control the visitor has to
   actively tick, and a default browser checkbox was the one element on the page
   still reading as unfinished. The label remains the real 44px tap target. */
.consent-choice input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.1rem 0 0;
  border: 1.5px solid rgb(112 54 55 / 72%);
  border-radius: 0.3rem;
  background: rgb(255 251 248 / 80%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 66%);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.consent-choice input:hover {
  border-color: var(--focus);
}

.consent-choice input:checked {
  border-color: #651820;
  background:
    linear-gradient(105deg, #832531, #651820 58%, #7c2630) padding-box,
    linear-gradient(135deg, #9c5244, #f4c3b7 20%, #b06a58 55%, #9c5244) border-box;
}

/* Drawn tick, so it never depends on a system glyph. */
.consent-choice input:checked::after {
  content: "";
  display: block;
  width: 0.34rem;
  height: 0.64rem;
  margin: 0.14rem 0 0 0.44rem;
  border: solid #fffaf7;
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}

.consent-detail {
  margin: 0.35rem 0 0 2rem;
  font-size: 0.78rem;
}

a {
  color: var(--burgundy);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
.consent-choice input:focus-visible,
.signup-confirmation:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.signup-footer {
  margin-top: 1.65rem;
  text-align: center;
  color: #6f4548;
  font-size: 0.75rem;
  line-height: 1.6;
}

.signup-footer p {
  margin: 0 0 0.15rem;
}

.signup-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.signup-confirmation {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--rose-line);
  border-radius: 0.75rem;
  background: rgb(255 251 248 / 85%);
}

.signup-confirmation h2 {
  margin: 0.5rem 0;
  font: 400 2.5rem/1.1 var(--display);
}

.signup-confirmation p {
  margin: 0;
  line-height: 1.6;
}

.confirmation-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rose-line);
  border-radius: 50%;
  color: var(--burgundy);
  font-size: 1.3rem;
}

.document-page {
  background: radial-gradient(ellipse at top right, #f1d6d36b, transparent 45%), var(--ivory);
}

.document-shell {
  width: min(100% - 3rem, 48rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.document-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rose-line);
}

.document-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
}

.document-brand {
  font: 400 1.6rem var(--display);
  color: var(--burgundy);
}

.document-header {
  margin: 2.5rem 0 2rem;
}

.document-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  text-transform: none;
  letter-spacing: -0.04em;
}

.draft-notice {
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--copper);
  background: rgb(255 251 248 / 80%);
  font-size: 0.9rem;
  line-height: 1.6;
}

.policy-body {
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.policy-body h2 {
  margin: 2.25rem 0 0.65rem;
  color: var(--burgundy);
  font: 400 1.7rem/1.25 var(--display);
}

.policy-body h3 {
  margin-top: 1.4rem;
  font-size: 1rem;
}

.policy-body ul {
  padding-left: 1.3rem;
}

.policy-body li + li {
  margin-top: 0.35rem;
}

.document-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rose-line);
  padding-top: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.document-footer address {
  font-style: normal;
}

.consent-note {
  max-width: 30rem;
  margin-top: 1.35rem;
  margin-right: auto;
  margin-left: auto;
  color: #6f4548;
  font-size: 0.78rem;
  line-height: 1.5;
  text-wrap: balance;
}

.consent-note a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.form-status {
  min-height: 1.25rem;
  margin-top: 0.55rem;
  color: var(--burgundy);
  font-size: 0.84rem;
  line-height: 1.4;
}

.motion-toggle {
  position: absolute;
  z-index: 3;
  left: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  pointer-events: auto;
  color: var(--burgundy-deep);
  border: 1px solid rgb(95 25 32 / 55%);
  border-radius: 50%;
  background: rgb(255 249 245 / 68%);
  box-shadow: 0 6px 20px rgb(80 25 27 / 9%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.motion-toggle[hidden] {
  display: none;
}

.motion-toggle:hover {
  border-color: rgb(95 25 32 / 48%);
  background: rgb(255 249 245 / 90%);
  transform: translateY(-1px);
}

.motion-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: 1.1rem;
  height: 1.1rem;
}

.motion-toggle__icon span {
  display: block;
  width: 0.18rem;
  height: 0.92rem;
  border-radius: 999px;
  background: currentColor;
}

.motion-toggle[aria-pressed="true"] .motion-toggle__icon {
  position: relative;
  gap: 0;
}

.motion-toggle[aria-pressed="true"] .motion-toggle__icon span:first-child {
  width: 0;
  height: 0;
  margin-left: 0.15rem;
  border-top: 0.5rem solid transparent;
  border-bottom: 0.5rem solid transparent;
  border-left: 0.76rem solid currentColor;
  border-radius: 0;
  background: transparent;
}

.motion-toggle[aria-pressed="true"] .motion-toggle__icon span:last-child {
  display: none;
}

.motion-toggle:disabled {
  cursor: default;
  opacity: 0.68;
  transform: none;
}

@media (max-width: 1080px) {
  .coming-soon {
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  }

  .signup {
    padding-right: clamp(2rem, 5vw, 4rem);
    padding-left: clamp(1.25rem, 4vw, 3rem);
  }

}

@media (max-width: 900px) {
  .coming-soon {
    display: block;
    min-height: 100svh;
    overflow: visible;
  }

  /* Tied to viewport height as well as width: on a short phone screen the band
     gives way so the button is not pushed under the fold. */
  .art-scene {
    position: relative;
    width: 100%;
    height: min(clamp(11rem, 50vw, 19rem), 38vh);
  }

  /* The mobile artwork balances the original logo on the left with the woman
     on the right. Fit the whole width so neither is cropped on narrow screens. */
  .art-scene__fallback {
    inset: 0 auto auto 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-position: left 4%;
  }

  /* The band used to end on a hard horizontal cut mid-ribbon. A short dissolve
     softens it without reaching up into her jaw. */
  .art-scene__fallback,
  .art-scene__motion {
    -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
  }

  .signup {
    display: block;
    min-height: 0;
    padding: 0.7rem 1.375rem 1.6rem;
    background:
      radial-gradient(circle at 98% 0%, rgb(231 176 171 / 16%), transparent 42%),
      var(--ivory);
  }

  .signup__inner {
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
    transform: none;
  }

  h1 {
    line-height: 0.96;
  }

  .refrain {
    margin-top: 0.3rem;
  }

  .intro {
    margin: 0.45rem auto 0;
    text-wrap: balance;
  }

  .signup-form {
    margin-top: 0.7rem;
  }

  .field label {
    margin-bottom: 0.22rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .field-row .field + .field {
    margin-top: 0.45rem;
  }

  .field-row + .field {
    margin-top: 0.45rem;
  }

  .intro {
    font-size: 1.03rem;
    line-height: 1.3;
  }

  .consent-block {
    margin-top: 0.7rem;
  }

  .consent-detail {
    margin-top: 0.25rem;
  }

  /* 52px: still comfortably over the 44px touch-target floor. */
  .field input,
  .field select {
    min-height: 3.25rem;
    background: rgb(255 251 248 / 92%);
  }

  .notify-button {
    min-height: 3.4rem;
    margin-top: 0.55rem;
  }

  .consent-note {
    margin-top: 0.85rem;
    font-size: 0.75rem;
  }

  .motion-toggle {
    top: auto;
    right: auto;
    bottom: 1rem;
    left: 0.85rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (max-width: 350px) {

  .signup {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }
}

/* One-shot settle on load. The copy arrives with the same unhurried drift as the
   silk, then holds completely still — nothing here loops. */
@keyframes settle-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  h1,
  .refrain,
  .intro,
  .signup-form,
  .consent-note {
    animation: settle-in 820ms cubic-bezier(0.19, 0.56, 0.23, 1) both;
  }

  h1 {
    animation-delay: 80ms;
  }

  .refrain {
    animation-delay: 170ms;
  }

  .intro {
    animation-delay: 260ms;
  }

  .signup-form {
    animation-delay: 350ms;
  }

  .consent-note {
    animation-delay: 440ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .art-scene__motion {
    display: none;
  }

  .motion-toggle {
    display: none;
  }
}
