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

html, body {
  height: 100%;
  width: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root,
[data-theme="ink"] {
  --bg: #1A1A1A;
  --fg: #F5F2EC;
  --fg-muted: rgba(245, 242, 236, 0.62);
  --fg-faint: rgba(245, 242, 236, 0.40);
  --accent: #9B6B3D;
  --accent-light: #C08855;
  --shader-opacity: 0.55;
  --shader-blend: screen;
}

[data-theme="cream"] {
  --bg: #F5F2EC;
  --fg: #1A1A1A;
  --fg-muted: rgba(26, 26, 26, 0.65);
  --fg-faint: rgba(26, 26, 26, 0.45);
  --accent: #9B6B3D;
  --accent-light: #9B6B3D;
  --shader-opacity: 0.30;
  --shader-blend: multiply;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  position: relative;
}

.shader-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: var(--shader-blend);
}

.shader-bg canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.frame {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 40px 56px;
}

.frame-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.frame-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.foot-email {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot-email:hover { color: var(--fg-muted); }

.wordmark {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(60px, 9vw, 132px);
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--fg);
  margin: 0;
  user-select: none;
}

.wordmark svg {
  display: block;
  width: clamp(200px, 38vw, 540px);
  max-width: 100%;
  height: auto;
  color: var(--fg);
}

.slogan {
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.9vw, 24px);
  letter-spacing: normal;
  color: var(--fg-muted);
  margin: clamp(16px, 2.6vw, 26px) 0 0;
}

.cta {
  display: inline-block;
  margin-top: clamp(32px, 5vw, 60px);
  padding: 15px 36px;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

[data-theme="cream"] .cta { color: #F5F2EC; }
[data-theme="ink"] .cta { color: #1A1A1A; background: var(--accent-light); }

.cta:hover { filter: brightness(1.10); }
.cta:active { transform: scale(0.985); }

.frame-body,
.frame-foot {
  opacity: 0;
  animation: enter 700ms ease-out forwards;
}

.frame-body { animation-delay: 350ms; }
.frame-foot { animation-delay: 600ms; }

@keyframes enter {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .frame-body, .frame-foot {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .frame { padding: 32px 40px; }
}

@media (max-width: 640px) {
  .frame { padding: 28px 24px; }
  .frame-foot {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .cta { padding: 14px 28px; }
}

@media (max-width: 380px) {
  .frame { padding: 20px 16px; }
  .wordmark svg { width: min(86vw, 280px); }
  .cta { padding: 13px 24px; font-size: 11px; letter-spacing: 0.12em; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .frame { padding: 16px 32px; }
  .slogan { margin-top: 10px; }
  .cta { margin-top: 18px; padding: 12px 26px; }
  .wordmark svg { width: clamp(180px, 28vw, 360px); }
}
