/* DOGS NEWS — newspaper-modern. Paper, ink, one accent. */
:root {
  --accent: #d97757;
  --ink: #141413;
  --ink-soft: #5f5e56;
  --cream: #faf9f5;
  --surface: #ffffff;
  --line: #e8e6dc;
  --mid: #b0aea5;
  --dark: #171614;
  --dark-line: #3a3934;
  --font-display: "Poppins", Arial, sans-serif;
  --font-body: "Lora", Georgia, serif;
  --header-h: 4.25rem;
}
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
}
::selection { background: var(--accent); color: var(--cream); }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: fixed; left: -999px; top: 0; z-index: 60;
  background: var(--ink); color: var(--cream); padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---- reading progress: accent hairline under the masthead */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 3px;
}
.progress span {
  display: block; height: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---- fixed masthead */
header.site {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header-h);
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 4px 0 var(--cream), 0 5px 0 var(--ink);
}
.nav {
  max-width: 76rem; height: 100%; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.brand .sep { color: var(--mid); font-family: var(--font-display); }
.brand .project { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.wordmark { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.wordmark img { width: 36px; height: 36px; display: block; }
.wordmark span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.mast-meta { display: flex; align-items: center; gap: 1.5rem; }
.dateline {
  font-family: var(--font-display); font-size: 0.8rem; color: var(--ink-soft);
  letter-spacing: 0.04em; white-space: nowrap;
}
.mast-meta nav { display: flex; gap: 1.5rem; font-family: var(--font-display); font-size: 0.9rem; }
.mast-meta nav a { text-decoration: none; color: var(--ink-soft); }
.mast-meta nav a:hover { color: var(--accent); }
@media (max-width: 640px) { .dateline { display: none; } }

/* ---- section side rail (desktop) */
.rail {
  position: fixed; left: 1.6rem; top: 50%; transform: translateY(-50%); z-index: 30;
  display: none; flex-direction: column; gap: 1.1rem; margin: 0; padding: 0;
}
@media (min-width: 1180px) { .rail { display: flex; } }
.rail a {
  display: flex; align-items: baseline; gap: 0.6rem; text-decoration: none;
  font-family: var(--font-display); font-size: 0.78rem; color: var(--mid);
}
.rail a b { font-weight: 600; font-size: 0.72rem; }
.rail a span { opacity: 0; transform: translateX(-6px); transition: opacity 0.18s ease, transform 0.18s ease; }
.rail a:hover span, .rail a.active span { opacity: 1; transform: none; }
.rail a.active { color: var(--accent); }

/* ---- type */
.eyebrow {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0;
}
.secnum {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.2em; color: var(--mid); margin: 0 0 0.6rem;
}
h1, h2, h3 { font-family: var(--font-display); }
h1.headline {
  font-weight: 700; letter-spacing: -0.035em;
  font-size: clamp(3.4rem, 15vw, 8rem); line-height: 0.98;
  margin: 1rem 0 1.4rem; max-width: 12ch;
}
h2 { font-weight: 600; letter-spacing: -0.015em; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0 0 1rem; }
h3 { font-weight: 600; font-size: 1.15rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--ink-soft); max-width: 36rem; margin: 0 0 1.6rem; font-style: italic; }
.dark .lede, .dark .muted { color: var(--mid); }
.muted { color: var(--ink-soft); }

/* headline word reveal: transform only */
.headline .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.headline .wi { display: inline-block; transform: translateY(112%); }
.headline.on .wi { animation: rise 0.7s cubic-bezier(0.22, 0.9, 0.3, 1) forwards; }
.headline.on .w:nth-child(2) .wi { animation-delay: 0.08s; }
.headline.on .w:nth-child(3) .wi { animation-delay: 0.16s; }
.headline.on .w:nth-child(4) .wi { animation-delay: 0.24s; }
@keyframes rise { to { transform: translateY(0); } }

/* scroll reveal: transform + opacity, fast */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.9, 0.3, 1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .headline .wi { transform: none; }
  .headline.on .wi { animation: none; }
  .ticker-track { animation: none !important; }
}

/* ---- hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 3rem) 0 0; position: relative; overflow: hidden;
}
.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap.narrow { max-width: 52rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 500;
  padding: 0.5rem 1.05rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface);
}
.badge .pip { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: 0.85rem 2rem; border-radius: 10px; border: 1.5px solid var(--ink);
  background: var(--accent); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- ticker */
.ticker {
  margin-top: 4rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  overflow: hidden; background: var(--ink); color: var(--cream);
}
.ticker-track {
  display: inline-flex; white-space: nowrap; padding: 0.7rem 0;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  animation: ticker 26s linear infinite; will-change: transform;
}
.ticker-track span { padding-right: 0.5em; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- sections */
.section { padding: 6rem 0; scroll-margin-top: var(--header-h); }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--dark); color: var(--cream); }

/* newspaper columns with rules, asymmetric */
.columns { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 0; margin-top: 2.75rem; }
.col { padding: 0 2rem; border-left: 1px solid var(--line); }
.col:first-child { border-left: 0; padding-left: 0; }
.col p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.col.lead p::first-letter {
  font-family: var(--font-display); font-weight: 700; font-size: 3.2em;
  float: left; line-height: 0.85; padding-right: 0.12em; color: var(--ink);
}
@media (max-width: 860px) {
  .columns { grid-template-columns: 1fr; gap: 2rem; }
  .col { padding: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 1.6rem; }
  .col:first-child { border-top: 0; padding-top: 0; }
}

/* ---- roadmap timeline */
.timeline { list-style: none; display: flex; margin: 3rem 0 0; padding: 0; }
.timeline li { flex: 1; position: relative; padding-top: 1.6rem; padding-right: 1rem; }
.timeline li::before {
  content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line);
}
.timeline li.done::before { background: var(--accent); }
.timeline li.now::before { background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%); }
.timeline .dot {
  position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); outline: 3px solid var(--surface);
}
.timeline li.future .dot { background: var(--surface); border: 2px solid var(--mid); width: 10px; height: 10px; }
.timeline li.now .dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.timeline strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.timeline .when { font-family: var(--font-display); font-size: 0.82rem; color: var(--ink-soft); }
.timeline li.future strong { color: var(--ink-soft); }
@media (max-width: 640px) {
  .timeline { flex-direction: column; gap: 1.35rem; margin-top: 2rem; }
  .timeline li { padding: 0 0 0 1.65rem; }
  .timeline li::before { top: 0.4rem; bottom: -1.35rem; left: 5px; right: auto; width: 2px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .timeline li.now::before { background: linear-gradient(180deg, var(--accent) 50%, var(--line) 50%); }
  .timeline .dot { top: 0.32rem; }
}

/* ---- FAQ */
.faqs { margin-top: 2rem; border-top: 1px solid var(--ink); }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary {
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  padding: 1.15rem 2.5rem 1.15rem 0; cursor: pointer; list-style: none; position: relative;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 1.05rem;
  font-size: 1.3rem; color: var(--accent); font-weight: 500; transition: transform 0.2s ease;
}
.faqs details[open] summary::after { transform: rotate(45deg); }
.faqs details p { margin: 0 0 1.4rem; color: var(--ink-soft); max-width: 44rem; }

/* ---- notify form (dark section) */
.notify form { margin-top: 2rem; max-width: 40rem; }
.fields { display: flex; gap: 0.75rem; align-items: flex-end; }
.fields > div { flex: 1; }
.notify label { display: block; font-family: var(--font-display); font-size: 0.85rem; margin-bottom: 0.45rem; color: var(--line); }
.notify input[type="email"] {
  font: inherit; width: 100%; padding: 0.8rem 1rem; border-radius: 10px;
  border: 1.5px solid var(--dark-line); background: #211f1c; color: var(--cream);
}
.notify input[type="email"]::placeholder { color: #8a887f; }
.notify input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.notify input[type="email"][aria-invalid="true"] { border-color: #e08d7a; }
.field-error { color: #f0b4a6; font-size: 0.9rem; min-height: 1.3em; margin: 0.5rem 0 0; font-family: var(--font-display); }
.notify button {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer;
  padding: 0.8rem 1.7rem; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: transform 0.12s ease;
}
.notify button:hover { transform: translateY(-1px); }
.notify button[disabled] { opacity: 0.75; cursor: wait; transform: none; }
.spinner {
  width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid rgba(20,20,19,0.3); border-top-color: #141413;
  animation: spin 0.7s linear infinite; display: none;
}
.notify button.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.6s; } .notify button { transition: none; } }
@media (max-width: 640px) {
  .fields { flex-direction: column; align-items: stretch; }
  .notify button { width: 100%; }
}

/* ---- footer (lives inside the last dark section) */
.foot {
  margin-top: 4.5rem; padding-top: 1.75rem; border-top: 1px solid var(--dark-line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--mid);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-family: var(--font-display); font-size: 0.88rem; }
.foot a { color: var(--mid); text-decoration: none; }
.foot a:hover { color: var(--cream); }
.foot p { margin: 0; font-size: 0.85rem; }
.foot .madeby {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-size: 0.92rem; color: var(--cream);
}
.foot .madeby img { width: 24px; height: 24px; }
.foot .madeby a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--accent); }
.foot .madeby a:hover { color: var(--accent); }
@media (max-width: 640px) { .foot { flex-direction: column; align-items: flex-start; } }

/* ---- sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--ink);
  transition: transform 0.25s ease;
}
.sticky-cta.hide { transform: translateY(110%); }
@media (max-width: 640px) {
  .sticky-cta { display: block; }
  .sticky-cta .btn { width: 100%; }
}

/* ---- stage pages (404 / thanks / derp) */
.stage { text-align: left; max-width: 46rem; padding: calc(var(--header-h) + 2.5rem) 0 4rem; }
.big { font-size: clamp(4rem, 15vw, 6.5rem); margin: 0 0 1rem; line-height: 1; }
.stage h1 { font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 1rem; }
pre.dog { font-family: ui-monospace, monospace; color: var(--ink-soft); line-height: 1.3; overflow-x: auto; }
.madeby-light {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 2.5rem;
  font-family: var(--font-display); font-size: 0.92rem; color: var(--ink-soft);
}
.madeby-light img { width: 22px; height: 22px; }

/* ---- prose pages (privacy / terms) */
.prose { padding: calc(var(--header-h) + 2rem) 0 4rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; }
.prose h2 { font-size: 1.25rem; margin-top: 2.25rem; }
.prose p { max-width: 44rem; }

/* ---- phone-first check */
@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .wrap { padding: 0 1.25rem; }
  .cta-row .btn { flex: 1 1 100%; }
}
