:root{
  --ink: #0d2b4d;
  --ink-deep: #081c33;
  --panel: #17355c;
  --panel-lo: #112f52;
  --panel-line: #2c4a6e;
  --brass: #c9a24b;
  --brass-bright: #e6c977;
  --brass-dim: #6e5a2e;
  --parchment: #f4eee2;
  --parchment-dim: #aebdd0;
  --ember: #c1603f;
  --serif: 'Big Shoulders Display', sans-serif;
  --mono: 'Space Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--sans);
  position: relative;
  overflow-x: hidden;
}

/* ambient brass glow */
body::before{
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 40% at 50% 18%, rgba(201,162,75,0.14), transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(201,162,75,0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* film grain */
body::after{
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page{
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 1.75rem;
}

/* header */
header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mark{
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mark-logo{
  height: 34px;
  width: auto;
  display: block;
}

.eyebrow{
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--parchment-dim);
  text-transform: uppercase;
}

/* hero */
main{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  gap: 2.1rem;
}

.status-line{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--parchment-dim);
  text-transform: uppercase;
}

.status-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 3px rgba(193,96,63,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse{
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* split-flap board */
.board{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.flap{
  position: relative;
  width: 3.1rem;
  height: 3.9rem;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-lo) 100%);
  border: 1px solid var(--panel-line);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--brass-bright);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 6px rgba(0,0,0,0.35);
  overflow: hidden;
}

.flap::after{
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.55);
  transform: translateY(-0.5px);
}

.flap.is-blank{
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.flap.settle{
  animation: settle 0.22s ease-out;
}

@keyframes settle{
  0% { transform: scaleY(0.82); }
  60% { transform: scaleY(1.06); }
  100% { transform: scaleY(1); }
}

.board.board-sub .flap{
  width: 2.1rem;
  height: 2.6rem;
  font-size: 1.05rem;
}

.sub-static{
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--parchment-dim);
}

.lede{
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--parchment-dim);
}

.lede strong{
  color: var(--parchment);
  font-weight: 500;
}

.eta{
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--brass);
  text-transform: uppercase;
}

.tagline{
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.24em;
  font-size: 0.82rem;
  color: var(--brass-bright);
  text-transform: uppercase;
  margin: -0.6rem 0 0;
}

.tagline span{
  color: var(--brass-dim);
  margin: 0 0.3em;
}

/* notify form */
.notify{
  width: 100%;
  max-width: 26rem;
  margin-top: 0.25rem;
}

.notify-label{
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--parchment-dim);
  margin-bottom: 0.6rem;
}

.notify-row{
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--brass-dim);
  padding-bottom: 0.65rem;
  transition: border-color 0.2s ease;
}

.notify-row:focus-within{
  border-color: var(--brass);
}

.notify-row input{
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.3rem 0.1rem;
}

.notify-row input::placeholder{
  color: #52678a;
}

.notify-row input:focus{
  outline: none;
}

.notify-row button{
  flex-shrink: 0;
  background: var(--brass);
  color: var(--ink-deep);
  border: none;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.notify-row button:hover{
  background: var(--brass-bright);
}

.notify-row button:active{
  transform: translateY(1px);
}

.notify-msg{
  min-height: 1.4rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  text-align: left;
}

.notify-msg.ok{ color: #9fb98a; }
.notify-msg.err{ color: var(--ember); }

input:focus-visible,
button:focus-visible{
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

/* footer */
footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--panel-line);
  font-size: 0.75rem;
  color: var(--parchment-dim);
}

footer a{
  color: var(--parchment-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

footer a:hover{
  color: var(--brass-bright);
  border-color: var(--brass-dim);
}

@media (max-width: 640px){
  .flap{ width: 2.1rem; height: 2.7rem; font-size: 1.15rem; }
  .board.board-sub .flap{ width: 1.55rem; height: 2rem; font-size: 0.8rem; }
  main{ padding: 2.5rem 0 2rem; gap: 1.7rem; }
  .notify-row{ flex-wrap: wrap; }
  .notify-row button{ width: 100%; }
}

@media (prefers-reduced-motion: reduce){
  .status-dot{ animation: none; }
  .flap.settle{ animation: none; }
  *{ scroll-behavior: auto !important; }
}
