:root {
  color-scheme: dark;
  --bg: #0c0d0e;
  --ink: #f5f3ec;
  --ink-secondary: #c8c5bc;
  --blake-gold: #c9a86a;
  --blake-gold-dim: rgba(201, 168, 106, 0.45);
  --blake-gold-glow: rgba(201, 168, 106, 0.12);
  --muted: #84837b;
  --subtle: #3a3b38;
  --rule: rgba(201, 168, 106, 0.14);
  --rule-strong: rgba(255, 255, 255, 0.14);
  --input-bg: rgba(255, 255, 255, 0.03);
  --input-focus-bg: rgba(255, 255, 255, 0.055);
  --accent: #f5f3ec;
  --line-art: #eae7dd;
  --error: #ef7070;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100svh;
  background-color: var(--bg);
}

.site-shell {
  max-width: 1400px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 4.5vw;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  height: 112px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-family: Georgia, 'Newsreader', 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: clamp(38px, 3.6vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transform: translateY(-0.065em);
}

.brand:hover {
  opacity: 0.9;
}

.brand:hover .brand-mark:before,
.brand:hover .brand-mark:after {
  border-color: var(--blake-gold);
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark:before,
.brand-mark:after {
  content: "";
  position: absolute;
  width: 29px;
  height: 29px;
  border: 1.5px solid rgba(201, 168, 106, 0.75);
  transition: border-color 0.2s ease;
}

.brand-mark:after {
  transform: rotate(45deg);
}

.brand-mark span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blake-gold);
  box-shadow: 0 0 10px var(--blake-gold-glow);
}

.footer,
.form-message {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Hero Section */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 6vw;
  align-items: center;
  padding: 48px 0;
}

.intro {
  max-width: 580px;
  padding: 12px 0;
}

h1 {
  font-family: Georgia, 'Newsreader', 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}

h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--blake-gold);
}

/* Signup Form */
.signup {
  max-width: 440px;
  margin-top: 42px;
}

.signup form {
  display: flex;
  align-items: center;
  min-height: 52px;
  background: var(--input-bg);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 4px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.signup form:focus-within {
  border-color: var(--blake-gold-dim);
  background: var(--input-focus-bg);
  box-shadow: 0 0 0 1px var(--blake-gold-dim), 0 0 24px var(--blake-gold-glow);
}

.signup input {
  font: 14px system-ui, -apple-system, sans-serif;
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  color: var(--ink);
  border: 0;
  background: transparent;
  outline: none;
}

.signup input::placeholder {
  color: var(--muted);
}

.signup button {
  min-width: 130px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bg);
  font: 500 13px system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  padding: 0 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.signup button:hover {
  background: var(--blake-gold);
  color: #0c0d0e;
  transform: translateY(-0.5px);
}

.signup button:active {
  transform: translateY(0);
}

.signup button:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

.signup button span {
  font-size: 13px;
  transition: transform 0.2s ease;
}

.signup button:hover span {
  transform: translate(1px, -1px);
}

.form-message {
  min-height: 24px;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0 0;
}

.form-message.error {
  color: var(--error);
}

/* Hairline Blake Artwork */
.artwork {
  margin: 0;
  width: 100%;
  max-width: 530px;
  justify-self: center;
  color: var(--line-art);
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100svh - 200px);
  overflow: visible;
}

/* Hairline Blake Artwork Animations */
@keyframes aura-breathe {
  0% {
    transform: scale(0.96);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.blake-aura-pulse {
  transform-origin: 300px 210px;
  animation: aura-breathe 14s ease-in-out infinite alternate;
}

@keyframes halo-breathe {
  0% {
    opacity: 0.22;
    transform: scale(0.99);
  }
  100% {
    opacity: 0.44;
    transform: scale(1.025);
  }
}

.halo-group {
  transform-origin: 300px 210px;
  animation: halo-breathe 10s ease-in-out infinite alternate;
}

@keyframes beam-pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.85;
  }
}

.beams-group {
  animation: beam-pulse 7s ease-in-out infinite;
}

@keyframes zoas-drift-cw {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.zoas-inner {
  transform-origin: 300px 210px;
  animation: zoas-drift-cw 95s linear infinite;
}

@keyframes zoas-drift-ccw {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.zoas-outer {
  transform-origin: 300px 210px;
  animation: zoas-drift-ccw 125s linear infinite;
}

@keyframes vortex-turn {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.vortex-group {
  transform-origin: 300px 210px;
  animation: vortex-turn 75s linear infinite;
}

@keyframes arc-sweep {
  0% {
    transform: rotate(-14deg);
  }
  100% {
    transform: rotate(14deg);
  }
}

.arc-indicator {
  transform-origin: 300px 210px;
  animation: arc-sweep 18s ease-in-out infinite alternate;
}

@keyframes tide-drift {
  0% {
    transform: translateX(0);
    opacity: 0.18;
  }
  100% {
    transform: translateX(-14px);
    opacity: 0.32;
  }
}

.abyss-tides {
  animation: tide-drift 12s ease-in-out infinite alternate;
}

@keyframes pivot-pulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.35);
    opacity: 1;
  }
}

.pivot-group {
  transform-origin: 300px 210px;
  animation: pivot-pulse 8s ease-in-out infinite alternate;
}

@keyframes tip-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.25;
  }
  100% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.tip-glow-left {
  transform-origin: 170px 570px;
  animation: tip-pulse 6s ease-in-out infinite alternate;
}

.tip-glow-right {
  transform-origin: 430px 570px;
  animation: tip-pulse 6s ease-in-out infinite alternate 1.5s;
}

/* Footer */
.footer {
  height: 64px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--blake-gold);
}

.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;
}

/* Responsive */
@media (max-width: 860px) {
  .site-shell {
    padding: 0 24px;
  }

  .site-header {
    height: 92px;
  }

  .brand {
    font-size: 34px;
    gap: 15px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-mark:before,
  .brand-mark:after {
    width: 24px;
    height: 24px;
    border-width: 1.35px;
  }

  .brand-mark span {
    width: 4px;
    height: 4px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 36px 0 42px;
  }

  .intro {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(42px, 10vw, 68px);
  }

  .artwork {
    max-width: 360px;
  }

  .artwork svg {
    max-height: 340px;
  }

  .footer {
    height: auto;
    padding: 20px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .site-header {
    height: 80px;
  }

  .brand {
    font-size: 29px;
    gap: 12px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-mark:before,
  .brand-mark:after {
    width: 20px;
    height: 20px;
    border-width: 1.25px;
  }

  .brand-mark span {
    width: 3.5px;
    height: 3.5px;
  }

  .hero {
    gap: 36px;
    padding: 24px 0 36px;
  }

  .signup form {
    flex-direction: column;
    min-height: auto;
    padding: 6px;
    gap: 6px;
  }

  .signup input {
    height: 44px;
    width: 100%;
    padding: 0 10px;
  }

  .signup button {
    width: 100%;
    height: 44px;
  }

  .artwork {
    max-width: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.spam-trap { position: absolute; left: -10000px; width: 1px; height: 1px; }
