/* ---------------------------------------------------------------------------
   Adorned — coming soon.

   The same world as the product: aged flash paper, ink, flash red for action,
   leaf gold as a decorative mark only. Square edges everywhere, hairline rules,
   and extreme scale contrast between a didone display and tracked micro-labels.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: 'Bodoni Moda';
  src: url('/fonts/bodoni-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('/fonts/bodoni-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: Archivo;
  src: url('/fonts/archivo-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Archivo;
  src: url('/fonts/archivo-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --alabaster: #F9F8F6;   /* aged flash paper, never pure white */
  --charcoal:  #1A1A1A;   /* never pure black */
  --taupe:     #EBE5DE;
  --warmgrey:  #6C6863;   /* 5.2:1 on alabaster */
  --flash:     #E21600;   /* action and state, sampled from a real flash sheet */
  --flash-hot: #FF2A0D;
  --leaf:      #D4AF37;   /* decorative only: 2:1 on alabaster, never text */
  --antique:   #8A6D1F;   /* gold that must be legible on paper, 4.6:1 */
  --rule:      rgba(26, 26, 26, 0.14);
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);

  color-scheme: light;
  scrollbar-color: var(--warmgrey) var(--alabaster);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }

html { background: var(--alabaster); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--alabaster);
  color: var(--charcoal);
  font-family: Archivo, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  /* Without this the caret inherits nothing useful and can vanish in a field. */
  caret-color: var(--flash);
  accent-color: var(--flash);
}

::selection { background: var(--flash); color: var(--alabaster); }

:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 2px;
}

.micro {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warmgrey);
}

.display {
  font-family: 'Bodoni Moda', ui-serif, Georgia, serif;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.015em;
}

/* --- the panther slot ------------------------------------------------------
   Sits behind the type. The page is composed to stand on its own without it, so
   art arriving is an upgrade rather than a rescue. --------------------------- */
.panther {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--panther-src, none);
  background-repeat: no-repeat;
  background-position: right -4vw center;
  background-size: auto 92vh;
  opacity: 0;
}
body.has-panther .panther { opacity: 1; }

/* Behind the copy on a phone, where there is no room beside it. */
@media (max-width: 900px) {
  .panther {
    background-position: center 18%;
    background-size: auto 52vh;
  }
  body.has-panther .panther { opacity: 0.16; }
}

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.wordmark {
  font-family: 'Bodoni Moda', ui-serif, Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
}
.wordmark i { color: var(--leaf); font-style: normal; }

main { flex: 1; display: flex; align-items: center; padding: 4rem 0 2rem; }
.lede { max-width: 34rem; }

.rule-gold { width: 3rem; height: 1px; background: var(--leaf); opacity: 0.75; }

h1 {
  margin: 1.75rem 0 0;
  font-size: clamp(3rem, 11vw, 6rem);
}
h1 em { font-style: italic; }

.sub {
  margin: 1.75rem 0 0;
  max-width: 40ch;
  color: var(--warmgrey);
  line-height: 1.65;
}

/* --- capture ---------------------------------------------------------------- */
form { margin-top: 2.75rem; }

label { display: block; }

.field {
  width: 100%;
  height: 3rem;
  padding: 0;
  background: transparent;
  color: var(--charcoal);
  font: inherit;
  border: 0;
  border-bottom: 1px solid var(--rule);
  transition: border-color 160ms var(--ease);
}
.field:focus { outline: none; border-bottom-color: var(--leaf); }
.field::placeholder { color: #A9A29A; }

textarea.field {
  height: auto;
  min-height: 3.25rem;
  padding: 0.5rem 0;
  resize: vertical;
  line-height: 1.55;
}

.row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-top: 0.75rem; }
.row .field { flex: 1 1 16rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 3rem;
  padding: 0 1.75rem;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--flash);
  color: var(--alabaster);
  border: 1px solid transparent;
  cursor: pointer;
}
/* The leaf-gold slide: the one considered transition this world allows. */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--leaf);
  transform: translateX(-101%);
  transition: transform 500ms var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover, .btn:focus-visible { color: var(--charcoal); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.btn-quiet {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-quiet::before { background: var(--charcoal); }
.btn-quiet:hover, .btn-quiet:focus-visible { color: var(--alabaster); }

.note { margin-top: 1rem; font-size: 0.875rem; color: var(--warmgrey); }
.error { margin-top: 1rem; padding-left: 0.75rem; border-left: 2px solid var(--flash); font-size: 0.875rem; }

/* --- step two: the research ------------------------------------------------- */
.questions { margin-top: 2.5rem; max-width: 44rem; }
.questions .q { padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.questions .q:first-of-type { border-top: 0; padding-top: 0; }
.questions .hint { margin-top: 0.4rem; font-size: 0.875rem; color: var(--warmgrey); }
.questions .field { margin-top: 0.75rem; }

.thanks h2 { margin: 1.5rem 0 0; font-size: clamp(2rem, 6vw, 3.25rem); }

footer {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}
footer a { color: var(--antique); }

[hidden] { display: none !important; }

@media (min-width: 1024px) {
  .shell { padding: 2.5rem 3rem 3rem; }
  main { padding: 2rem 0; }
}

/* Motion answers an action or it does not exist. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
