/* Amaryllis Vale: title card. Palette, type and spacing follow the brand handover;
   the gold is metallic (gradients) rather than flat. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2");
}

:root {
  --ground: #0a0a0a;
  --gold: #c9a227;
  --gold-hover: #dcb534;
  --body: #b9b1a2;
  --heading: #efe9dd;
  --placeholder: #5e5a52;
  --hairline: #2c2c2c;
  --gold-light: #f6e48f;
  --gold-deep: #8a6a1c;
  /* Polished gold: dark edge, bright band, warm middle, second soft highlight. */
  --gold-metal: linear-gradient(100deg, #8a6a1c 0%, #c9a227 18%, #f7e7a1 34%, #d8b347 48%,
    #a77d1c 64%, #f0d77f 80%, #b48a24 100%);
  --gold-button: linear-gradient(180deg, #f3dc8a 0%, #d4af37 42%, #b8901f 58%, #e2c46a 100%);
  --gold-button-hover: linear-gradient(180deg, #f8e7aa 0%, #dcb534 42%, #c49a26 58%, #ecd07a 100%);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ground);
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--ground);
  /* Fine grain plus a faint warm glow behind the card, like the foil lockups on dark paper. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 45% at 50% 22%, rgba(201, 162, 39, 0.08), transparent 70%),
    radial-gradient(ellipse at 50% 35%, #15130f 0%, var(--ground) 72%);
  color: var(--body);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.card {
  width: 86vw;
  max-width: 420px;
  margin: 0 auto;
  padding: 64px 0 72px;
  text-align: center;
}

.mark {
  display: block;
  width: auto;
  height: 56px;
  margin: 0 auto;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.7)) drop-shadow(0 0 22px rgba(212, 175, 55, 0.22));
}

/* Tracking adds space after the last letter too; the matching left padding keeps the line centred. */
h1 {
  width: fit-content;
  margin: 34px auto 0;
  padding-left: 0.34em;
  color: var(--gold);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rule {
  width: 44px;
  height: 1px;
  margin: 18px auto 0;
  border: 0;
  background: linear-gradient(90deg, transparent, #b8901f 18%, var(--gold-light) 50%, #b8901f 82%, transparent);
}

.descriptor {
  width: fit-content;
  margin: 14px auto 0;
  padding-left: 0.42em;
  color: var(--gold);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

/* A whispered aside under the descriptor: italic, lower case, no tracking. */
.aside {
  width: fit-content;
  margin: 8px auto 0;
  color: var(--gold);
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
}

.line {
  margin: 46px 0 0;
  color: var(--body);
  font-size: 19px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  text-wrap: balance;
}

.notify {
  display: flex;
  justify-content: center;
  margin: 44px 0 0;
}

.notify input[type="email"] {
  width: 216px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-right: 0;
  border-radius: 0;
  background: transparent;
  color: var(--heading);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  appearance: none;
}

.notify input[type="email"]::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.notify input[type="email"]:focus {
  border-color: var(--gold);
  outline: none;
}

.notify button {
  height: 44px;
  padding: 0 22px 0 calc(22px + 0.24em);
  border: 0;
  border-radius: 0;
  background: var(--gold-button);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  color: #1a1407;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}

.notify button:hover,
.notify button:focus-visible {
  background: var(--gold-button-hover);
}

.notify button:focus-visible {
  outline: 1px solid var(--gold-hover);
  outline-offset: 3px;
}

.notify button:disabled {
  cursor: wait;
}

.status {
  min-height: 16px;
  margin: 18px 0 0;
  color: var(--gold);
  font-size: 13px;
  line-height: 16px;
}

/* Metallic text where the browser can paint a gradient into letters; flat colours otherwise. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1,
  .descriptor,
  .aside {
    background: var(--gold-metal);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  h1 {
    background-size: 220% 100%;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.85)) drop-shadow(0 0 16px rgba(212, 175, 55, 0.16));
    animation: sheen 14s ease-in-out infinite alternate;
  }

  /* Short words: a lighter sweep so they don't fall into the dark ends of the long gradient. */
  .descriptor,
  .aside {
    background: linear-gradient(100deg, #c9a227 0%, #f6e48f 45%, #e3c367 60%, #c9a227 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

/* A slow drift of the light across the name. */
@keyframes sheen {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1 {
    animation: none;
  }
}

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

.hp {
  left: -10000px;
}

@media (max-width: 600px) {
  .card {
    padding: 48px 0 56px;
  }

  .mark {
    height: 48px;
  }

  h1 {
    font-size: min(24px, 6.2vw);
  }

  .line {
    font-size: 17px;
  }

  .notify {
    flex-direction: column;
  }

  .notify input[type="email"] {
    width: 100%;
    border-right: 1px solid var(--hairline);
    border-bottom: 0;
  }

  .notify input[type="email"]:focus {
    border-color: var(--gold);
  }

  .notify button {
    width: 100%;
  }
}
