/* ==========================================================================
   WEARSHIVER — Coming Soon
   style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --c-bg:        #080808;
  --c-surface:   #111111;
  --c-border:    #2a2a2a;
  --c-text:      #f0ede8;
  --c-muted:     #6b6b6b;
  --c-accent:    #8b1a1a;

  --f-display: 'Bebas Neue', sans-serif;
  --f-body:    'Space Grotesk', sans-serif;
  --f-mono:    'Courier New', Courier, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-weight: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   3. Noise texture (SVG inline via data-uri, no external asset)
   -------------------------------------------------------------------------- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* --------------------------------------------------------------------------
   4. Radial vignette / glow behind title
   -------------------------------------------------------------------------- */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 60% 45% at 50% 42%,
    rgba(255, 255, 255, 0.032) 0%,
    transparent 70%
  );
}

/* --------------------------------------------------------------------------
   5. Stage (main content block)
   -------------------------------------------------------------------------- */
.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 2.5rem;
  width: min(680px, 92vw);

  /* Page-load fade-up */
  animation: fadeUp 1.1s var(--ease-out) both;
}

/* --------------------------------------------------------------------------
   6. Archival tag frame
   -------------------------------------------------------------------------- */
.frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Four L-shaped corner markers, each composed of two pseudo-lines */
.frame__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--c-border);
  border-style: solid;
}

.frame__corner--tl {
  top: 0; left: 0;
  border-width: 1px 0 0 1px;
}
.frame__corner--tr {
  top: 0; right: 0;
  border-width: 1px 1px 0 0;
}
.frame__corner--bl {
  bottom: 0; left: 0;
  border-width: 0 0 1px 1px;
}
.frame__corner--br {
  bottom: 0; right: 0;
  border-width: 0 1px 1px 0;
}

/* --------------------------------------------------------------------------
   7. Meta labels (top / bottom)
   -------------------------------------------------------------------------- */
.meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--c-muted);
  text-transform: uppercase;
}

.meta--top  { margin-bottom: 2.8rem; }
.meta--bottom { margin-top: 2.8rem; }

.meta__tag {
  color: var(--c-accent);
  letter-spacing: 0.18em;
}

/* --------------------------------------------------------------------------
   8. Brand title
   -------------------------------------------------------------------------- */
.brand {
  font-family: var(--f-display);
  font-size: clamp(3.8rem, 13vw, 8rem);
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--c-text);
  text-transform: uppercase;
  cursor: default;
  position: relative;
  /* clip for glitch pseudo-layers */
  isolation: isolate;
}

/* Glitch effect on hover — two pseudo-element offset copies */
.brand::before,
.brand::after {
  content: 'WEARSHIVER';
  position: absolute;
  inset: 0;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
  pointer-events: none;
  opacity: 0;
}

.brand::before { color: var(--c-accent); }
.brand::after  { color: var(--c-muted);  }

/* Glitch fires on hover only, brief & elegant */
.brand:hover::before {
  opacity: 0.7;
  animation: glitchA 0.45s steps(2, end) both;
}
.brand:hover::after {
  opacity: 0.5;
  animation: glitchB 0.45s steps(2, end) both;
}

/* --------------------------------------------------------------------------
   9. Divider
   -------------------------------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 1.6rem 0 1.4rem;
}

.divider__line {
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.divider__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. Headline & subtexts
   -------------------------------------------------------------------------- */
.headline {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 4vw, 1.6rem);
  letter-spacing: 0.55em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.subtext {
  font-family: var(--f-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.subtext--primary {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 400;
  color: var(--c-text);
  margin-bottom: 0.6rem;
}

.subtext--secondary {
  font-size: clamp(0.65rem, 1.8vw, 0.72rem);
  font-weight: 300;
  color: var(--c-muted);
  letter-spacing: 0.16em;
  margin-bottom: 2.8rem;
}

/* --------------------------------------------------------------------------
   11. Notify / email form
   -------------------------------------------------------------------------- */
.notify {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.notify__row {
  display: flex;
  width: 100%;
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.notify__row:focus-within {
  border-color: var(--c-muted);
}

.notify__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.82rem 1rem;
  font-family: var(--f-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--c-text);
  caret-color: var(--c-accent);
}

.notify__input::placeholder {
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}

.notify__btn {
  background: var(--c-text);
  color: var(--c-bg);
  border: none;
  padding: 0.82rem 1.3rem;
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.notify__btn:hover {
  background: var(--c-accent);
  color: var(--c-text);
}

.notify__btn:active {
  transform: scale(0.97);
}

/* Success message */
.notify__success {
  display: none;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text);
  margin-top: 0.9rem;
  animation: fadeUp 0.6s var(--ease-out) both;
}

.notify__success.is-visible {
  display: block;
}

.notify__hint {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 0.9rem;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: fixed;
  bottom: 1.4rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #333;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   13. Keyframes
   -------------------------------------------------------------------------- */

/* Page entry */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glitch A — shift left + red tint */
@keyframes glitchA {
  0%   { clip-path: inset(0 0 88% 0); transform: translateX(-4px); }
  20%  { clip-path: inset(55% 0 15% 0); transform: translateX(3px); }
  40%  { clip-path: inset(10% 0 70% 0); transform: translateX(-2px); }
  60%  { clip-path: inset(80% 0 5% 0); transform: translateX(4px); }
  80%  { clip-path: inset(30% 0 40% 0); transform: translateX(-3px); }
  100% { clip-path: inset(0 0 100% 0); transform: translateX(0); opacity: 0; }
}

/* Glitch B — shift right, grey tint */
@keyframes glitchB {
  0%   { clip-path: inset(40% 0 30% 0); transform: translateX(5px); }
  25%  { clip-path: inset(5% 0 75% 0); transform: translateX(-4px); }
  50%  { clip-path: inset(70% 0 10% 0); transform: translateX(3px); }
  75%  { clip-path: inset(20% 0 55% 0); transform: translateX(-5px); }
  100% { clip-path: inset(0 0 100% 0); transform: translateX(0); opacity: 0; }
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .stage {
    padding: 2.6rem 1.6rem;
  }

  .meta {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }

  .notify__btn {
    padding: 0.82rem 0.9rem;
    font-size: 0.62rem;
  }

  .footer {
    bottom: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   15. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .stage,
  .notify__success {
    animation: none;
  }

  .brand:hover::before,
  .brand:hover::after {
    animation: none;
  }
}