/* ============================================================
   Design 16 — "HALFTONE"
   Retro pop-art / risograph print aesthetic.
   Terracotta background, grain texture, bold Archivo Black.
   ============================================================ */

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

:root {
  --bg:      #C8502A;
  --ink:     #1A0C06;
  --cream:   #F5EDD8;
  --teal:    #6FA7A3;
  --sage:    #8DA48F;
  --font-display: 'Archivo Black', sans-serif;
  --font-body:    'Archivo', sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
}

/* ── Grain overlay ──────────────────────────────────────── */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* ── Halftone dot pattern (top-right corner) ────────────── */

body::before {
  content: '';
  position: fixed;
  top: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
  background-image: radial-gradient(circle, rgba(245,237,216,0.18) 2px, transparent 2px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -40px;
  left: -40px;
  width: 240px;
  height: 240px;
  background-image: radial-gradient(circle, rgba(26,12,6,0.2) 2px, transparent 2px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
}

/* ── Page layout ────────────────────────────────────────── */

.page {
  position: relative;
  z-index: 10;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 2rem 2.5rem;
}

/* ── Top bar ────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fade-up 0.5s ease both;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar__brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 6px;
}

.topbar__name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.topbar__nav {
  display: flex;
  gap: 1.25rem;
}

.topbar__nav a {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,237,216,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.topbar__nav a:hover { color: var(--cream); }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fade-up 0.5s 0.1s ease both;
}

.hero__tag {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(245,237,216,0.6);
  margin-bottom: 1rem;
}

.hero__heading {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
  margin-bottom: 2.5rem;
}

.hero__word {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 12rem);
  color: var(--cream);
  letter-spacing: -0.02em;
  display: block;
}

.hero__word--alt {
  color: transparent;
  -webkit-text-stroke: 3px var(--cream);
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  gap: 4rem;
}

.hero__body {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(245,237,216,0.6);
  font-weight: 300;
  max-width: 340px;
}

/* ── Form ───────────────────────────────────────────────── */

.form__row { display: flex; }

.form__input {
  height: 48px;
  width: 240px;
  padding: 0 1rem;
  background: rgba(245,237,216,0.1);
  border: 2px solid rgba(245,237,216,0.4);
  border-right: none;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--cream);
  outline: none;
  transition: background 0.2s, border-color 0.2s;
}

.form__input::placeholder { color: rgba(245,237,216,0.3); }
.form__input:focus { background: rgba(245,237,216,0.15); border-color: var(--cream); }

.form__btn {
  height: 48px;
  padding: 0 1.4rem;
  background: var(--cream);
  color: var(--ink);
  border: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.form__btn:hover { background: var(--teal); color: #fff; }
.form__btn:disabled { opacity: 0.5; cursor: default; }

.form__confirm {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--cream);
  font-weight: 700;
}
.form__confirm[hidden] { display: none; }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,237,216,0.3);
  animation: fade-up 0.5s 0.2s ease both;
}

/* ── Keyframes ──────────────────────────────────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 700px) {
  .hero__bottom { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .form__input { width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}
