/* =========================================================================
   Delhi.fyi — Landing page styles
   Editorial. 80% mono + 20% red.
   ========================================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper-alt);
  color: var(--ink);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ——— Layout primitives ——— */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (min-width: 900px) {
  .wrap { padding: 0 56px; }
}

/* ——— Top bar ——— */
.top {
  border-bottom: 1px solid var(--ink-10);
  background: var(--paper-alt);
  position: sticky;
  top: 0;
  z-index: 30;
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  user-select: none;
}
.brand .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 999px;
  margin-left: 2px;
  transform: translateY(-1px);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.issue {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.issue .sep { color: var(--ink-20); }
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(225,27,34,0.5);
  animation: live 1.8s var(--ease-out) infinite;
  display: inline-block;
}
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(225,27,34,0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(225,27,34,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,27,34,0); }
}

/* ——— Hero ——— */
.hero {
  padding: 56px 0 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .hero {
    padding: 96px 0 120px;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 80px;
  }
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.eyebrow-row .hair {
  flex: 0 0 36px;
  border-top: 1px solid var(--ink);
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 11.4vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  text-wrap: balance;
}
.headline .it {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}
.headline .dot-red {
  color: var(--red);
}
.headline .line {
  display: block;
}
.headline-strike {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: var(--ink-40);
  text-decoration-color: var(--ink-40);
}

.lede {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 28px 0 0;
  max-width: 30ch;
  font-variation-settings: "opsz" 14;
}
@media (min-width: 900px) {
  .lede { font-size: 22px; }
}

/* ——— Hero right column ——— */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}
@media (min-width: 900px) {
  .hero-right {
    padding-top: 16px;
    border-left: 1px solid var(--ink-10);
    padding-left: 56px;
  }
}

/* ——— Form ——— */
.signup {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.signup-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
  margin: 0;
}
.signup-sub {
  font-size: 14px;
  color: var(--ink-60);
  margin: -4px 0 6px;
  line-height: 1.5;
}
.field-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  transition: border-color var(--dur-base) var(--ease-out);
}
.field-row:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink-05); }
.field-row.has-error { border-color: var(--red); }
.field-row input[type="email"] {
  flex: 1;
  border: 0;
  outline: none;
  padding: 16px 18px;
  font-family: var(--font-sans);
  font-size: 16px;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
.field-row input::placeholder { color: var(--ink-40); }
.field-row button {
  flex: 0 0 auto;
  border: 0;
  background: var(--red);
  color: var(--paper);
  padding: 0 22px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  text-transform: none;
}
.field-row button:hover  { background: var(--red-hover); }
.field-row button:active { background: var(--red-press); transform: scale(0.98); }
.field-row button:disabled { background: var(--ink-20); cursor: not-allowed; }
.field-row .arr { transition: transform var(--dur-base) var(--ease-out); }
.field-row button:hover .arr { transform: translateX(3px); }

.form-error {
  font-size: 13px;
  color: var(--red);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.count-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-60);
}
.count-num {
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.count-row .stack {
  display: inline-flex;
}
.count-row .stack span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid var(--paper-alt);
  margin-left: -8px;
  display: inline-block;
  background-size: cover;
}
.count-row .stack span:first-child { margin-left: 0; }

/* Confirmation state */
.confirm {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeUp 360ms var(--ease-out);
}
.confirm h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "opsz" 72;
}
.confirm p { margin: 0; font-size: 14px; color: var(--ink-60); }
.confirm .check {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

/* ——— Editors note ——— */
.editors-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 0;
  border-top: 1px solid var(--ink-10);
  margin-top: 4px;
}
.editors-note .salute {
  font-size: 26px;
  line-height: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.4em;
  width: 1.4em;
  filter: saturate(0.9);
}
.editors-note .copy {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.5;
}
.editors-note .copy strong { color: var(--ink); font-weight: 600; }

/* ——— Ticker ——— */
.ticker {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-alt);
  overflow: hidden;
  position: relative;
}
.ticker-eyebrow {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  font-weight: 600;
  z-index: 2;
  gap: 8px;
}
.ticker-eyebrow .live-dot { background: #fff; }
@keyframes live-white {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.ticker-eyebrow .live-dot { animation: live-white 1.8s var(--ease-out) infinite; }

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
  padding: 18px 0;
  padding-left: 180px;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.ticker-item .place {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 72;
}
.ticker-item .meta {
  color: var(--ink-60);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.005em;
}
.ticker-item .pin {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 999px;
  flex: 0 0 8px;
}
.ticker-item .sep {
  color: var(--ink-20);
  font-family: var(--font-display);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ——— Editors section ——— */
.editors {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--ink-10);
}
.editors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 900px) {
  .editors-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 80px;
  }
}
.editors-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  font-variation-settings: "opsz" 144;
}
.editors-title .it { font-style: italic; font-weight: 300; }
.editors-kicker {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-60);
  max-width: 36ch;
}

.editor-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) {
  .editor-cards { grid-template-columns: 1fr 1fr; gap: 0; }
}
.editor-card {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.editor-card + .editor-card { border-left: 0; }
@media (max-width: 639px) {
  .editor-card + .editor-card { border-left: 1px solid var(--ink); border-top: 0; }
}

.editor-card .role {
  font-size: 11px;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
}
.editor-card .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "opsz" 72;
}
.editor-card .name .it { font-style: italic; font-weight: 300; }
.editor-card .bio {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-80);
  margin: 0;
}
.editor-card .picks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-10);
}
.editor-card .picks .label {
  font-size: 11px;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--ink-40);
  font-weight: 600;
  margin-bottom: 2px;
}
.editor-card .picks .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 14px;
  gap: 16px;
}
.editor-card .picks .row .what {
  font-family: var(--font-serif);
  color: var(--ink);
}
.editor-card .picks .row .where {
  font-family: var(--font-sans);
  color: var(--ink-60);
  font-size: 12px;
  letter-spacing: 0.005em;
}

/* ——— Manifesto ——— */
.manifesto {
  padding: 96px 0;
  border-bottom: 1px solid var(--ink-10);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .manifesto-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}
.manifesto-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.manifesto-item .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.04em;
}
.manifesto-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "opsz" 72;
}
.manifesto-item h3 .it { font-style: italic; font-weight: 300; }
.manifesto-item p {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-80);
  margin: 0;
  max-width: 34ch;
}

/* ——— Footer ——— */
.foot {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) {
  .foot { grid-template-columns: 1fr auto; align-items: end; }
}
.foot-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.foot-mark .reddot {
  width: 0.18em;
  height: 0.18em;
  background: var(--red);
  border-radius: 999px;
  align-self: flex-end;
  margin-bottom: 0.12em;
}
.foot-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-60);
  text-align: left;
}
@media (min-width: 720px) { .foot-meta { text-align: right; } }
.foot-meta .links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--ink);
}
@media (min-width: 720px) { .foot-meta .links { justify-content: flex-end; } }
.foot-meta a { text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.foot-meta a:hover { color: var(--ink-60); border-color: var(--ink-60); }

/* ——— Section header (eyebrow with rule) ——— */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-60);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.section-eyebrow .num { color: var(--red); font-family: var(--font-mono); letter-spacing: 0.04em; }
.section-eyebrow .hair { flex: 1; border-top: 1px solid var(--ink-10); }

/* ——— Dark theme variant ——— */
body.dark { background: var(--ink); color: var(--paper); }
body.dark .top { background: var(--ink); border-bottom-color: var(--ink-80); }
body.dark .brand { color: var(--paper); }
body.dark .issue { color: var(--ink-40); }
body.dark .issue .sep { color: var(--ink-80); }
body.dark .headline { color: var(--paper); }
body.dark .headline-strike { color: var(--ink-60); text-decoration-color: var(--ink-60); }
body.dark .lede { color: var(--ink-20); }
body.dark .hero-right { border-color: var(--ink-80); }
body.dark .signup-label { color: var(--paper); }
body.dark .signup-sub { color: var(--ink-40); }
body.dark .field-row { background: var(--ink-95); border-color: var(--paper); }
body.dark .field-row input { color: var(--paper); }
body.dark .field-row input::placeholder { color: var(--ink-60); }
body.dark .editors-note { border-color: var(--ink-80); }
body.dark .editors-note .copy { color: var(--ink-40); }
body.dark .editors-note .copy strong { color: var(--paper); }
body.dark .confirm { background: var(--ink-95); border-color: var(--paper); color: var(--paper); }
body.dark .confirm p { color: var(--ink-40); }
body.dark .ticker { background: var(--ink); border-color: var(--paper); }
body.dark .ticker-eyebrow { background: var(--paper); color: var(--ink); }
body.dark .ticker-eyebrow .live-dot { background: var(--red); }
body.dark .ticker-item { color: var(--paper); }
body.dark .ticker-item .meta { color: var(--ink-40); }
body.dark .ticker-item .sep { color: var(--ink-80); }
body.dark .editors { border-color: var(--ink-80); }
body.dark .editors-title { color: var(--paper); }
body.dark .editors-kicker { color: var(--ink-40); }
body.dark .editor-card { background: var(--ink-95); border-color: var(--paper); color: var(--paper); }
body.dark .editor-card .bio { color: var(--ink-20); }
body.dark .editor-card .picks { border-color: var(--ink-80); }
body.dark .editor-card .picks .label { color: var(--ink-60); }
body.dark .editor-card .picks .row .what { color: var(--paper); }
body.dark .editor-card .picks .row .where { color: var(--ink-40); }
body.dark .manifesto { border-color: var(--ink-80); }
body.dark .manifesto-item h3 { color: var(--paper); }
body.dark .manifesto-item p { color: var(--ink-20); }
body.dark .section-eyebrow { color: var(--ink-40); }
body.dark .section-eyebrow .hair { border-color: var(--ink-80); }
body.dark .foot-mark { color: var(--paper); }
body.dark .foot-meta { color: var(--ink-40); }
body.dark .foot-meta a { color: var(--paper); border-color: var(--paper); }
body.dark .count-row { color: var(--ink-40); }
body.dark .count-num { color: var(--paper); }

/* ——— Reduce motion ——— */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================================================================
   One-page layout — everything in one viewport, no scroll
   ========================================================================= */

html, body {
  height: 100%;
  overflow: hidden;
}

.page {
  min-height: unset;
  height: 100%;
  overflow: hidden;
}

/* Hero fills all remaining space between top bar and footer */
.hero {
  flex: 1;
  min-height: 0;
  padding: 32px 0 24px;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 40px 0 32px;
    gap: 56px;
  }
}

/* Scale headline to fit — was clamp(56px, 11.4vw, 168px) */
.headline {
  font-size: clamp(32px, 6.2vw, 88px);
}

/* Tighter eyebrow margin */
.eyebrow-row { margin-bottom: 18px; }

/* Smaller lede */
.lede {
  font-size: 15px;
  margin: 14px 0 0;
  max-width: 36ch;
}
@media (min-width: 900px) {
  .lede { font-size: 16px; }
}

/* Tighter form */
.signup { gap: 10px; }
.signup-label { font-size: 22px; }
.signup-sub { margin: -2px 0 4px; }

/* Tighter hero-right */
.hero-right { gap: 20px; padding-top: 4px; }
@media (min-width: 900px) {
  .hero-right { padding-top: 8px; padding-left: 40px; }
}

/* Editors note tighter */
.editors-note { padding-top: 16px; }

/* Compact footer — was 56px/40px padding + clamp(80px, 14vw, 220px) foot-mark */
.foot {
  padding: 14px 0 16px;
  gap: 16px;
  border-top: 1px solid var(--ink-10);
}
.foot-mark {
  font-size: clamp(28px, 4.2vw, 60px);
}
.foot-meta { gap: 6px; }
.foot-meta .links { gap: 14px; }
