/* =====================================================================
   WarmStart — shared design system
   Warm, cozy-but-premium. Ember on cream. Editorial serif headlines +
   clean sans body. Signature: the Business Warmth Score gauge, with a
   cold↔warm tension (slate = abandoned, ember = alive & tended).
   Used by: warmstart.io, trywarmstart.com, startupchores.com, redirects.
   ===================================================================== */

:root {
  /* paper / ink */
  --cream: #FBF5EA;
  --cream-2: #F5ECDB;
  --cream-3: #EFE2CD;
  --card: #FFFDF8;
  --ink: #2A1F17;
  --ink-soft: #6E5F4F;
  --ink-faint: #9C8B77;

  /* ember + glow (warmth) */
  --ember: #D2691E;
  --ember-deep: #B5551A;
  --ember-press: #9B4714;
  --glow: #E0852B;
  --glow-2: #F2A93B;
  --amber: #F2A93B;
  --amber-soft: #F7E7CC;
  --ember-tint: #F6E6D4;

  /* cold (the abandoned state — used sparingly) */
  --cold: #7C93A6;
  --cold-deep: #5C7384;
  --cold-tint: #E5EBF0;

  /* success / done */
  --green: #2F6F4F;
  --green-soft: #E3EDE5;

  /* lines + dark */
  --line: #E9DECA;
  --line-soft: #F1E8D7;
  --line-strong: #DCCDB2;
  --coal: #221A12;
  --coal-2: #2C2218;
  --coal-3: #382B1E;

  /* radii */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* fonts */
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* shadows (warm-tinted) */
  --sh-sm: 0 2px 10px -5px rgba(42, 31, 23, 0.22);
  --sh-md: 0 16px 40px -22px rgba(42, 31, 23, 0.34);
  --sh-lg: 0 34px 70px -34px rgba(42, 31, 23, 0.42);
  --sh-ember: 0 14px 30px -12px rgba(210, 105, 30, 0.55);
  --glow-ring: 0 0 0 1px rgba(210,105,30,.18), 0 0 40px -8px rgba(224,133,43,.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.serif { font-family: var(--serif); }
.sans { font-family: var(--sans); }
.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1, 'zero' 1; font-variant-numeric: tabular-nums slashed-zero; }

::selection { background: rgba(210,105,30,.22); }

/* ---------------- layout ---------------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 30px; }
.wrap-md { max-width: 980px; margin: 0 auto; padding: 0 30px; }
.wrap-sm { max-width: 760px; margin: 0 auto; padding: 0 30px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ---------------- type ---------------- */
.display {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; line-height: 1.04;
}
h1.display { font-size: clamp(40px, 6vw, 76px); }
h2.display { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; }
h3.display { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); line-height: 1.55; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

.eyebrow {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ember-deep);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 38%, var(--glow-2), var(--ember) 70%);
  box-shadow: 0 0 12px -1px rgba(224,133,43,.8);
}
.eyebrow.bare::before { display: none; }
.eyebrow.on-dark { color: var(--glow-2); }

/* ---------------- buttons ---------------- */
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 15.5px; line-height: 1;
  border-radius: 999px; padding: 14px 24px; display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s cubic-bezier(.2,.7,.2,1), box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { display: block; }
.btn-primary { background: var(--ember); color: #fff; box-shadow: var(--sh-ember); }
.btn-primary:hover { transform: translateY(-2px); background: var(--ember-deep); box-shadow: 0 18px 36px -12px rgba(210,105,30,.7); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { transform: translateY(-2px); background: #1c140d; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--cream-2); border-color: var(--ink-faint); }
.btn-glow { background: linear-gradient(135deg, var(--glow-2), var(--ember)); color: #fff; box-shadow: var(--sh-ember); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(210,105,30,.75); }
.btn-lg { font-size: 17px; padding: 17px 30px; }
.btn-sm { font-size: 14px; padding: 10px 18px; }
.btn-block { width: 100%; justify-content: center; }
.btn-on-dark.btn-ghost { color: var(--cream); border-color: rgba(255,255,255,.22); }
.btn-on-dark.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

.linkish { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ember-deep); cursor: pointer; background: none; border: none; display: inline-flex; align-items: center; gap: 7px; }
.linkish:hover { color: var(--ember); }
.linkish .u { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- logo ---------------- */
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.logo .flame {
  width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--ink);
}
.logo.on-dark { color: var(--cream); }
.logo.on-dark .flame { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.logo.sm { font-size: 19px; }
.logo.sm .flame { width: 27px; height: 27px; border-radius: 8px; }

/* ---------------- tags / pills ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans);
  font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
}
.tag.ember { background: var(--ember-tint); border-color: transparent; color: var(--ember-deep); }
.tag.warm { background: var(--amber-soft); border-color: transparent; color: #95591a; }
.tag.cold { background: var(--cold-tint); border-color: transparent; color: var(--cold-deep); }
.tag.green { background: var(--green-soft); border-color: transparent; color: var(--green); }
.tag .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* ---------------- cards ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-sm);
}
.card-pad { padding: 26px; }
.hr { height: 1px; background: var(--line); border: none; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,245,234,.82); backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.nav .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.nav-links { display: flex; align-items: center; gap: 30px; font-family: var(--sans); font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }

/* ---------------- activity ledger (signature visual) ---------------- */
.ledger { display: grid; }
.sigrow { display: grid; grid-template-columns: auto 1fr auto auto; gap: 13px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.sigrow:first-child { border-top: none; }
.sigrow .si { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--ember-tint); color: var(--ember-deep); }
.sigrow .sn { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); }
.sigrow .st { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.sigrow .sdot { width: 9px; height: 9px; border-radius: 50%; background: var(--ember); flex: none; }
.sigrow.stale .si { background: var(--cream-3); color: var(--ink-faint); }
.sigrow.stale .sn { color: var(--ink-faint); }
.sigrow.stale .st { color: #B5431F; font-weight: 600; }
.sigrow.stale .sdot { background: #C9886A; }
.sigrow .stwarn { color: #B5431F; display: inline-grid; place-items: center; }

.verdict { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }

/* ---------------- chore / done list ---------------- */
.chore-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); font-family: var(--sans);
  transition: background .3s ease, border-color .3s ease;
}
.chore-row .chk {
  width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); background: var(--cream); color: #fff;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.chore-row.done .chk { background: var(--green); border-color: var(--green); }
.chore-row.done .chk svg { animation: pop .3s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { 0% { transform: scale(.3); opacity: .2; } 100% { transform: scale(1); opacity: 1; } }
.chore-row.doing .chk { border-color: var(--ember); background: var(--ember-tint); }
.chore-row .chore-label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.chore-row.done .chore-label { color: var(--ink-soft); }
.chore-row .chore-meta { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); }
.chore-row .ico { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--ember-tint); color: var(--ember-deep); }

/* ---------------- project (portfolio) row ---------------- */
.proj {
  display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
}
.proj .p-name { font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--ink); }
.proj .p-url { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); }
@media (max-width: 480px) { .proj .p-dots { display: none !important; } }

/* ---------------- browser chrome ---------------- */
.chrome { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
.chrome-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--cream-2); }
.chrome-dot { width: 11px; height: 11px; border-radius: 50%; }
.chrome-url { margin-left: 8px; flex: 1; max-width: 320px; height: 26px; border-radius: 7px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 11px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); }

/* ---------------- dark section ---------------- */
.dark { background: var(--coal); color: #EDE4D6; position: relative; overflow: hidden; }
.dark .display { color: #fff; }
.dark .muted { color: #B6A88F; }
.ember-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }

/* ---------------- inputs ---------------- */
.input {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; width: 100%; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus { border-color: var(--ember); box-shadow: 0 0 0 4px rgba(210,105,30,.13); }
.input-group { display: flex; align-items: center; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.input-group:focus-within { border-color: var(--ember); box-shadow: 0 0 0 4px rgba(210,105,30,.13); }
.input-group .prefix { font-family: var(--mono); font-size: 14px; color: var(--ink-faint); padding-left: 15px; }
.input-group input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--sans); font-size: 15.5px; color: var(--ink); padding: 14px 14px 14px 6px; }

/* ---------------- misc ---------------- */
.kicker-num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ember-deep); letter-spacing: .05em; }
.stat-num { font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); font-weight: 600; line-height: 1; color: var(--ink); }
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.grain { position: relative; }

.ws-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(210,105,30,.35); border-top-color: var(--ember); display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* entrance */
@keyframes flicker { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .8; transform: scale(1.06); } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(210,105,30,.4); } 50% { box-shadow: 0 0 0 10px rgba(210,105,30,0); } }
/* reveal-on-scroll: transition-based so the end state is a plain property
   that can never get stuck mid-animation (robust under reloads / capture). */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }
[data-delay="5"] { transition-delay: .40s; }

/* responsive */
@media (max-width: 900px) {
  .nav-links .hide-sm { display: none; }
  .section { padding: 68px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .wrap, .wrap-md, .wrap-sm { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .05ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; }
}
