:root {
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 2px;
}

html[data-theme="dark"] {
  --bg: #0e0e0e;
  --bg2: #161616;
  --ink: #f3f0ea;
  --ink2: #c8c2b8;
  --ink3: #8a8580;
  --rule: #2a2a2a;
  --accent: #e11d48;
  --accent-ink: #fffaf5;
  --glow: rgba(225, 29, 72, 0.12);
}

html[data-theme="light"] {
  --bg: #f7f5f0;
  --bg2: #fffcf7;
  --ink: #121212;
  --ink2: #3d3d3d;
  --ink3: #6b6b6b;
  --rule: #cfc8bb;
  --accent: #9f1239;
  --accent-ink: #fffaf5;
  --glow: rgba(159, 18, 57, 0.08);
}

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

html, body {
  min-height: 100%;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(127, 140, 160, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.top, .hero, .foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--rule);
  animation: fadeDown 0.6s ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
  background: #0a0f1a;
  border-radius: 4px;
}

.brand-word {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.theme-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink2);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
}

.theme-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: min(18vh, 140px) 28px 80px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.lede {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink2);
  max-width: 34em;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cta.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.cta.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.cta.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.cta.ghost:hover {
  border-color: var(--ink);
}

.fine {
  font-size: 12.5px;
  color: var(--ink3);
  max-width: 36em;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 20px 28px 32px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink3);
  animation: fadeUp 0.6s 0.2s ease both;
}

.sep { opacity: 0.5; }

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

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .brand-word { display: none; }
  .hero { padding-top: 12vh; }
}
