/* Sichoir — coming soon
   Direction: rehearsal at dusk. Ink-plum hall, ivory voices, brass accent. */

:root {
  --ink:      #171022;
  --ink-2:    #211531;
  --panel:    #2b1d3d;
  --ivory:    #f2ece3;
  --mauve:    #9c86ae;
  --brass:    #c9a24b;
  --brass-lo: #a6803a;
  --line:     rgba(242, 236, 227, 0.16);

  --maxw: 720px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 90% at 50% -10%, #2a1c3d 0%, var(--ink) 55%) fixed,
    var(--ink);
  color: var(--ivory);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle film grain so the flat dark never bands on big screens. */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- chrome ---- */
.topbar,
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.8rem) clamp(1.25rem, 5vw, 3rem);
}

.wordmark {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ivory);
  text-decoration: none;
}
.wordmark__si { color: var(--brass); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mauve);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 0 rgba(201, 162, 75, 0.6);
}

/* ---- stage ---- */
.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 2rem) clamp(1.25rem, 5vw, 3rem) clamp(2rem, 6vw, 3rem);
}

/* ---- signature: SATB stave ---- */
.stave {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0.6rem;
}
.voice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.voice__tag {
  flex: none;
  width: 1.3rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--mauve);
}
.voice__line {
  position: relative;
  height: 1px;
  flex: 1;
  min-width: 0;
  background: linear-gradient(90deg, var(--line), rgba(242, 236, 227, 0.04));
  transform-origin: left center;
}
/* Note sits on the line via absolute position, so it never affects layout width. */
.voice__note {
  position: absolute;
  top: 50%;
  left: var(--at, 50%);
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 12px rgba(201, 162, 75, 0.35);
  opacity: 0;
}

/* ---- type ---- */
.eyebrow {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
}

.headline {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(2.7rem, 9vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.headline__accent {
  font-style: italic;
  font-weight: 500;
  color: var(--brass);
}

.lede {
  margin: 0;
  max-width: 34em;
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  color: rgba(242, 236, 227, 0.78);
}

/* ---- signup ---- */
.signup { margin-top: 0.6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup__row {
  display: flex;
  gap: 0.6rem;
  max-width: 30rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.45rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.signup__row:focus-within {
  border-color: rgba(201, 162, 75, 0.6);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.12);
}

.signup__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--ivory);
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
}
.signup__input::placeholder { color: rgba(156, 134, 174, 0.8); }
.signup__input:focus { outline: none; }

.signup__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brass);
  color: #20160a;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 1.05rem;
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.signup__btn:hover { background: #d9b15c; }
.signup__btn:active { transform: translateY(1px); }
.signup__btn:disabled { opacity: 0.6; cursor: progress; }

.signup__note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--mauve);
}
.signup__note a {
  color: inherit;
  text-decoration-color: rgba(156, 134, 174, 0.5);
  text-underline-offset: 0.2em;
}
.signup__note a:hover { color: var(--ivory); }
.signup__note.is-error { color: #e89a8c; }
.signup__note.is-success { color: var(--brass); }

.dyn {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  color: rgba(242, 236, 227, 0.55);
  margin-right: 0.35rem;
}

/* ---- footer ---- */
.footer {
  font-size: 0.85rem;
  color: var(--mauve);
}
.footer a { color: var(--mauve); text-decoration: none; }
.footer a:hover { color: var(--ivory); }
.footer__sep { opacity: 0.5; }

/* ---- privacy ---- */
.privacy-page {
  display: block;
  min-height: 100svh;
}
.privacy {
  width: min(100%, 44rem);
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 4rem) clamp(1.25rem, 5vw, 3rem);
}
.privacy h1 {
  margin: clamp(3rem, 9vw, 5rem) 0 1rem;
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  line-height: 1.05;
}
.privacy p {
  margin: 0 0 1rem;
  color: rgba(242, 236, 227, 0.78);
}
.privacy a {
  color: var(--brass);
  text-underline-offset: 0.2em;
}

/* ---- a11y ---- */
.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;
}
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---- motion: voices enter in sequence, like a canon ---- */
@media (prefers-reduced-motion: no-preference) {
  .voice__line {
    transform: scaleX(0);
    animation: draw 0.8s var(--ease) forwards;
    animation-delay: calc(0.12s * var(--i) + 0.1s);
  }
  .voice__note {
    animation: settle 0.5s var(--ease) forwards;
    animation-delay: calc(0.12s * var(--i) + 0.5s);
  }
  .eyebrow, .headline, .lede, .signup {
    opacity: 0;
    animation: rise 0.7s var(--ease) forwards;
  }
  .eyebrow  { animation-delay: 0.2s; }
  .headline { animation-delay: 0.32s; }
  .lede     { animation-delay: 0.46s; }
  .signup   { animation-delay: 0.6s; }

  .chip__dot { animation: pulse 2.6s ease-out infinite; }

  @keyframes draw   { to { transform: scaleX(1); } }
  @keyframes settle { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  @keyframes rise   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes pulse  {
    0%   { box-shadow: 0 0 0 0 rgba(201, 162, 75, 0.5); }
    70%  { box-shadow: 0 0 0 7px rgba(201, 162, 75, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 162, 75, 0); }
  }
}

/* ---- responsive ---- */
@media (max-width: 540px) {
  .signup__row { flex-direction: column; }
  .signup__btn { justify-content: center; padding: 0.7rem 1.05rem; }
}
