/* Good Dog Minute — design tokens + layout */
:root {
  /* brand palette from the IG posts / logo */
  --cream: #fff8eb;
  --paper: #fffdf6;
  --ink: #083426;      /* forest */
  --ink-soft: #3d5a4e;
  --tomato: #ff4f2e;   /* coral "minute" arc */
  --butter: #ffd400;   /* gold */
  --moss: #168c5e;
  --sky: #cfe6da;
  --line: rgba(8, 52, 38, 0.14);

  --f-display: "Anton", "Impact", sans-serif;
  --f-body: "Montserrat", system-ui, sans-serif;

  --t-hero: clamp(3.4rem, 1.2rem + 9vw, 11rem);
  --t-xl: clamp(2.4rem, 1rem + 5vw, 6.5rem);
  --t-l: clamp(1.6rem, 1rem + 2.2vw, 3rem);
  --t-m: clamp(1.1rem, 0.95rem + 0.5vw, 1.35rem);
  --t-s: 0.9rem;

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(5rem, 3rem + 8vw, 11rem);
  --radius-l: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-m);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* paper grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: transform 0.5s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.logo {
  font-family: var(--f-display); font-size: 1.35rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; letter-spacing: -0.01em;
}
.logo-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tomato); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: var(--t-s); font-weight: 600;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(251, 247, 240, 0.7); backdrop-filter: blur(10px);
  transition: background 0.3s, color 0.3s;
}
.nav-links a:hover { background: var(--ink); color: var(--cream); }
.nav-links .pill { background: var(--ink); color: var(--cream); }
.nav-links .pill:hover { background: var(--tomato); }
@media (max-width: 720px) { .nav-links a:not(.pill) { display: none; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 4vw;
  padding: 110px var(--gutter) 60px;
  position: relative;
}
.kicker {
  font-size: var(--t-s); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--t-hero); line-height: 0.88; letter-spacing: -0.035em;
  margin: 0;
}
.hero h1 em { font-style: normal; color: var(--tomato); }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line > span { display: inline-block; }
.hero-sub { max-width: 34ch; margin: 34px 0 0; color: var(--ink-soft); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.btn {
  --bg: var(--ink); --fg: var(--cream);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--tomato); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.97); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { color: var(--cream); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }

.watch { position: relative; width: min(100%, 520px); justify-self: center; aspect-ratio: 1; }
.watch svg { width: 100%; height: 100%; overflow: visible; }
.watch-time {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.4rem);
  background: var(--ink); color: var(--cream);
  padding: 6px 18px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.sticker {
  position: absolute; top: 4%; right: 0;
  width: clamp(92px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%;
  background: var(--butter); display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: 0.8rem; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.04em;
  transform: rotate(12deg);
}
.scroll-hint {
  position: absolute; left: var(--gutter); bottom: 26px;
  font-size: var(--t-s); color: var(--ink-soft); display: flex; gap: 10px; align-items: center;
}
.scroll-hint i { width: 1px; height: 36px; background: var(--ink); transform-origin: top; animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .watch { width: min(84vw, 420px); order: -1; }
  .scroll-hint { display: none; }
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink); color: var(--cream);
  padding: 22px 0; overflow: hidden; transform: rotate(-2deg); margin: 40px -2vw;
}
.marquee-track { display: flex; width: max-content; gap: 0; }
.marquee span {
  font-family: var(--f-display); font-size: clamp(1.8rem, 1rem + 3vw, 3.6rem);
  white-space: nowrap; padding-right: 0.6em;
}
.marquee span b { color: var(--butter); font-weight: 400; padding-left: 0.6em; }

/* ---------- manifesto ---------- */
.manifesto { padding: var(--section) var(--gutter); max-width: 1400px; margin: 0 auto; }
.manifesto p {
  font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.02; letter-spacing: -0.025em; margin: 0;
}
.manifesto .w { opacity: 0.14; transition: opacity 0.2s; }
.manifesto .accent { color: var(--tomato); }

/* ---------- tips (horizontal) ---------- */
.tips { position: relative; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tips-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  padding: var(--section) var(--gutter) 40px;
}
.tips-head h2, .section-title {
  font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl);
  line-height: 0.95; letter-spacing: -0.03em; margin: 0;
}
.tips-head p { max-width: 32ch; color: var(--ink-soft); margin: 0; }
.tips-pin { overflow: hidden; padding-bottom: var(--section); }
.tips-track { display: flex; gap: 24px; padding: 0 var(--gutter); width: max-content; }
.card {
  --c: var(--butter);
  width: clamp(280px, 30vw, 420px); min-height: 520px;
  background: var(--c); border-radius: var(--radius-l);
  padding: 30px; display: flex; flex-direction: column;
  position: relative; transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-8px) rotate(-1deg); }
.card:nth-child(2) { --c: var(--sky); }
.card:nth-child(3) { --c: var(--tomato); color: var(--paper); }
.card:nth-child(4) { --c: var(--moss); color: var(--cream); }
.card:nth-child(5) { --c: #e9d7c3; }
.card:nth-child(6) { --c: var(--ink); color: var(--cream); }
.card-top { display: flex; justify-content: space-between; font-weight: 700; font-size: var(--t-s); }
.card-time { font-variant-numeric: tabular-nums; border: 1.5px solid currentColor; border-radius: 999px; padding: 2px 10px; }
.card h3 {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3.2rem);
  line-height: 0.95; letter-spacing: -0.02em; margin: auto 0 18px;
}
.card ol { margin: 0; padding-left: 1.2em; font-size: 1rem; }
.card li + li { margin-top: 6px; }
@media (max-width: 720px) {
  .tips-track { flex-direction: column; width: auto; }
  .card { width: 100%; min-height: 420px; }
}

/* ---------- method (stacked) ---------- */
.method { padding: var(--section) var(--gutter); max-width: 1200px; margin: 0 auto; }
.method .section-title { margin-bottom: 60px; }
.step {
  position: sticky; top: 110px;
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 4vw, 60px); align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(26px, 4vw, 56px); margin-bottom: 24px;
  box-shadow: 0 -20px 40px -30px rgba(27, 23, 18, 0.35);
  transform-origin: top center;
}
.step:nth-child(2) { top: 140px; }
.step:nth-child(3) { top: 170px; }
.step-num { font-family: var(--f-display); font-size: clamp(3rem, 2rem + 4vw, 7rem); line-height: 0.8; color: var(--tomato); }
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-l); margin: 0 0 8px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
.step-range { font-weight: 700; font-size: var(--t-s); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 720px) { .step { grid-template-columns: 1fr; } }

/* ---------- big line ---------- */
.bigline { padding: var(--section) 0; overflow: hidden; }
.bigline p {
  font-family: var(--f-display); font-size: clamp(4rem, 2rem + 13vw, 17rem);
  line-height: 0.85; letter-spacing: -0.045em; white-space: nowrap; margin: 0;
}
.bigline p:nth-child(2) { color: var(--tomato); padding-left: 12vw; }

/* ---------- follow ---------- */
.follow {
  margin: 0 var(--gutter) var(--gutter);
  background: var(--ink); color: var(--cream); border-radius: calc(var(--radius-l) * 1.4);
  padding: var(--section) var(--gutter);
  display: grid; gap: 40px; position: relative; overflow: hidden;
}
.follow h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl); line-height: 0.95; letter-spacing: -0.03em; margin: 0; max-width: 14ch; }
.follow p { color: rgba(244, 238, 227, 0.7); max-width: 44ch; margin: 0; }
.follow .btn { --bg: var(--cream); --fg: var(--ink); justify-self: start; }
.follow .btn:hover { color: var(--cream); }
.follow-dog { position: absolute; right: -40px; bottom: -60px; width: clamp(220px, 30vw, 420px); opacity: 0.95; }
@media (max-width: 720px) { .follow-dog { opacity: 0.25; } }

/* ---------- footer ---------- */
.footer {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 30px var(--gutter) 40px; font-size: var(--t-s); color: var(--ink-soft);
}
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--tomato); }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 140px var(--gutter) var(--section); }
.legal h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl); line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 16px; }
.legal .updated { color: var(--ink-soft); font-size: var(--t-s); margin: 0 0 48px; }
.legal h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-l); margin: 48px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { font-size: 1.05rem; }
.legal li + li { margin-top: 6px; }
.legal .box { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px 28px; }
.legal a { color: var(--tomato); }

/* ---------- brand overrides (Anton is condensed: no negative tracking) ---------- */
.hero h1, .tips-head h2, .section-title, .card h3, .step h3, .bigline p, .follow h2, .legal h1, .legal h2, .marquee span, .step-num, .watch-time {
  letter-spacing: 0.005em; font-weight: 400;
}
.hero h1, .bigline p, .tips-head h2, .section-title, .follow h2, .legal h1 { text-transform: uppercase; }
.hero h1 { line-height: 0.92; }
.manifesto p { font-family: var(--f-body); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; font-size: clamp(2rem, 1rem + 4vw, 5rem); }
.logo { font-family: var(--f-body); font-weight: 800; font-size: 1.05rem; }
.logo img { width: 38px; height: 38px; border-radius: 50%; }
.watch-time { background: var(--tomato); color: var(--cream); }
.card:nth-child(3) { color: var(--ink); }
.card:nth-child(5) { --c: #fff3c4; }
.follow-dog { width: clamp(200px, 26vw, 360px); right: 4%; bottom: -12%; border-radius: 50%; }
.disclosure { flex-basis: 100%; font-size: 0.8rem; max-width: 80ch; margin: 0; }
.legal .updated, .footer { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .manifesto .w { opacity: 1; }
}
