:root {
  --ink: #14141e;
  --ink-soft: #3d3d47;
  --muted: #6b6b74;
  --green: #a9e59b;
  --green-pale: #e9f5e6;
  --line: #e6e6ea;
  --navy: #23233a;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

a {
  color: inherit;
}

/* Password gate */
html.gated {
  overflow: hidden;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 12px solid var(--navy);
}

.gate-card {
  max-width: 520px;
  padding: 0 28px;
}

.gate-logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.gate-title {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.gate-text {
  margin-top: 18px;
  color: var(--ink-soft);
}

#gate-form {
  margin-top: 32px;
  display: flex;
  gap: 12px;
}

#gate-input {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  flex: 1;
  min-width: 0;
  outline: none;
}

#gate-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-pale);
}

#gate-form .btn-subscribe {
  border: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
}

.gate-error {
  display: none;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #c0392b;
}

.shake {
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-4px); }
}

/* Top strip */
.top-strip {
  height: 12px;
  background: var(--navy);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-slash {
  color: var(--green);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a.active {
  font-weight: 700;
  color: var(--ink);
}

.btn-subscribe {
  background: var(--green);
  color: var(--ink) !important;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  transition: filter 0.15s ease;
}

.btn-subscribe:hover {
  filter: brightness(0.95);
}

/* Eyebrow labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 28px;
}

.eyebrow .dash {
  letter-spacing: -0.15em;
  margin-right: 6px;
}

/* Hero */
.hero {
  padding: 110px 0 130px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 820px;
}

.cursor {
  display: inline-block;
  width: 0.17em;
  height: 0.82em;
  background: var(--green);
  margin-left: 0.06em;
  vertical-align: -0.08em;
}

.lede {
  margin-top: 36px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
}

/* Writing / coming soon */
.writing {
  background: var(--green-pale);
  padding: 100px 0 110px;
}

.big-text {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 920px;
  color: var(--ink);
}

.big-text strong {
  font-weight: 700;
}

.big-text a {
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--ink);
}

/* Mobile */
@media (max-width: 640px) {
  .site-nav {
    gap: 18px;
  }

  .btn-subscribe {
    padding: 10px 16px;
  }

  .hero {
    padding: 70px 0 90px;
  }

  .writing {
    padding: 70px 0 80px;
  }
}
