/* ==========================================================================
   devy — pre-launch holding page
   Same brand system as the main site, reduced to type and three colours.
   Deliberately says nothing about what the product is: no imagery, no range,
   and no naming — in the markup or in these styles.
   ========================================================================== */

:root {
  --ink:        #171614;
  --rose:       #A8556F;
  --text-2:     #55514A;
  --rule:       rgba(23, 22, 20, 0.16);
  --rule-strong:rgba(23, 22, 20, 0.28);

  /* The three brand tints, cycled as the page's field. Numbered, not named. */
  --tint-1: #E7E4D5;
  --tint-2: #EFE0DE;
  --tint-3: #E1E7DF;

  --font-body:    'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  --gutter: clamp(24px, 6vw, 64px);
  --cycle:  21s; /* 7s per colour */
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);

  /* The field bleeds; the content sits on a capped, centred column. Without
     this the page is a full-bleed colour screen and reads as an app splash. */
  --content-max: 1200px;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

::selection { background: #E3DBCC; }
input::placeholder { color: #9A948A; }

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

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

/* ---------------------------------------------------------------- stage -- */

.stage {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--tint-1);
  animation: field var(--cycle) var(--ease) infinite;
}

.shell {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 72px);
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(26px, 3.4vw, 38px) var(--gutter) clamp(24px, 3vw, 34px);
}

@keyframes field {
  0%,  26%  { background-color: var(--tint-1); }
  33%, 59%  { background-color: var(--tint-2); }
  66%, 92%  { background-color: var(--tint-3); }
  100%      { background-color: var(--tint-1); }
}

/* ------------------------------------------------------------- masthead -- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1;
  color: var(--rose);
}

.masthead__note {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6B665E;
}

/* --------------------------------------------------------------- notice -- */

.notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(22px, 3vw, 34px);
  margin: auto 0; /* centres the block between masthead and footer */
  max-width: 100%;
}

.headline {
  max-width: 16ch;
  font-size: clamp(34px, 6.4vw, 88px);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.headline em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--rose);
}

/* The three brand colours ------------------------------------------------ */

.swatches { display: flex; align-items: center; gap: 16px; }

.swatch {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--swatch);
  opacity: 0.3;
  transform-origin: center;
  animation: lift var(--cycle) var(--ease) infinite;
}

/* Negative delays put each dot's turn 7s and 14s into the cycle, so the
   raised dot always matches the field colour behind it. */
.swatches li:nth-child(2) .swatch { animation-delay: -14s; }
.swatches li:nth-child(3) .swatch { animation-delay: -7s; }

@keyframes lift {
  0%,  28% { opacity: 1;   transform: scale(1.45); }
  38%, 95% { opacity: 0.3; transform: scale(1); }
  100%     { opacity: 1;   transform: scale(1.45); }
}

/* --------------------------------------------------------------- notify -- */

.notify {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 420px;
  margin-top: 4px;
  border-bottom: 1px solid var(--rule-strong);
}
.notify:focus-within { border-bottom-color: var(--rose); }

.notify input {
  flex: 1;
  min-width: 0;
  padding: 13px 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.notify input:focus-visible { outline: none; }

.notify button {
  padding: 13px 4px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: color 200ms var(--ease);
}
.notify button:hover { color: var(--rose); }

.status {
  min-height: 1em;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B665E;
}

/* --------------------------------------------------------------- footer -- */

.foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B665E;
}

.foot a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.foot a:hover { color: var(--rose); }

/* ----------------------------------------------------- reduced motion -- */

@media (prefers-reduced-motion: reduce) {
  /* Hold one field colour and show all three dots evenly. */
  .stage { animation: none; }
  .swatch { animation: none; opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; }
}
