/* Homepage, signup, about and blog. Loaded as home.css?v=8 so a cached copy cannot win. */
.site {
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;
  --s12: 96px;
  --line: rgba(28, 20, 15, 0.08);
  --shadow: 0 1px 2px rgba(28, 20, 15, 0.04), 0 18px 50px rgba(28, 20, 15, 0.1);
  margin: 0;
  background: #fff;
  color: var(--ink);
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: #e64e16; }

.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.btn-lg { min-height: 56px; padding: 0 28px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1c140f;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark span { color: #1c140f; }

.mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: transparent;
}

.mark img { width: 44px; height: 44px; display: block; }

.hero {
  background: #fff;
  color: var(--ink);
  padding: var(--s10) 0 var(--s12);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--s8);
  align-items: center;
}

.eyebrow {
  margin: 0 0 var(--s2);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 9.2em;
  font-size: clamp(2.85rem, 5.4vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.lede {
  margin: var(--s3) 0 0;
  max-width: 34rem;
  color: #3d342e;
  font-size: 1.2rem;
  line-height: 1.5;
}

.hero-actions { margin-top: var(--s4); }

.fine-note {
  margin: var(--s2) 0 0;
  color: #5c534c;
  font-size: 0.95rem;
  line-height: 1.45;
}

.fine-note a { color: var(--ink); }

.issue {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.issue-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--orange);
  color: #fff;
}

.dots { display: flex; gap: 6px; }

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.issue-top strong { font-size: 0.95rem; letter-spacing: -0.02em; }

.issue-top em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.issue-body { padding: 8px 8px 12px; }

.issue article {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.issue article:last-child { border-bottom: 0; }

.race-kicker {
  margin: 0 0 4px;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.issue h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.issue p { margin: 6px 0 0; color: #3d342e; font-size: 0.92rem; line-height: 1.45; }

.issue-foot {
  margin: 0;
  padding: 4px 20px 16px;
  color: #5c534c;
  font-size: 0.8rem;
}

.section { padding: var(--s12) 0; }

.section-muted { background: #f6f3ef; }

.section h2 {
  margin: 0 0 var(--s4);
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.cards,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
}

.card {
  margin: 0;
  padding: var(--s3);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28, 20, 15, 0.04), 0 10px 28px rgba(28, 20, 15, 0.06);
}

.card h3,
.steps h3 {
  margin: 0 0 var(--s1);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.card p,
.steps p { margin: 0; color: #3d342e; line-height: 1.5; }

.steps { list-style: none; padding: 0; gap: var(--s4); }

.step-num {
  display: block;
  margin-bottom: var(--s2);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.close {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: var(--s12) 0;
}

.close h2 {
  margin: 0 auto var(--s3);
  max-width: 14em;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.close .fine-note { color: rgba(255, 255, 255, 0.72); }

.site-foot {
  border-top: 1px solid var(--line);
  padding: var(--s4) 0;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  color: #5c534c;
  font-size: 0.95rem;
}

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

.foot-inner p { margin: 0; }

body.signup {
  background: #f6f3ef;
  color: var(--ink);
  min-height: 100vh;
}

body.signup .signup-main {
  display: flex;
  justify-content: center;
  padding: var(--s8) 20px var(--s12);
}

body.signup .stack {
  width: min(100%, 440px);
  margin: 0;
  padding: var(--s5) var(--s4) var(--s4);
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: left;
}

body.signup h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

body.signup .sub {
  margin: var(--s2) 0 0;
  max-width: none;
  color: #3d342e;
  text-align: left;
}

body.signup form { margin-top: var(--s3); }

body.signup input[type="email"] {
  height: 56px;
  border: 1px solid #e4ddd6;
  border-radius: 12px;
}

body.signup input[type="email"]:focus-visible { outline-color: var(--orange); }

body.signup button {
  height: 56px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

body.signup button:hover { background: #e64e16; }

body.signup .fine,
body.signup .more { color: #5c534c; text-align: left; }

body.signup .more a { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .js-motion .rise { animation: rise 0.7s ease; }

  .js-motion .cards .rise:nth-child(2),
  .js-motion .steps .rise:nth-child(2) { animation-delay: 0.08s; }

  .js-motion .cards .rise:nth-child(3),
  .js-motion .steps .rise:nth-child(3) { animation-delay: 0.16s; }
}

@keyframes rise {
  from { transform: translateY(12px); }
  to { transform: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero h1 { max-width: 12em; }
  .issue { max-width: 560px; }
}

@media (max-width: 800px) {
  .cards,
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(1120px, calc(100% - 32px)); }
  .hero { padding: var(--s5) 0 var(--s8); }
  .hero h1 { font-size: 2.6rem; }
  .lede { font-size: 1.05rem; }
  .section { padding: var(--s8) 0; }
  .topbar .btn { min-height: 40px; padding: 0 12px; font-size: 0.98rem; }
  body.signup .stack { padding: var(--s3) 20px var(--s3); }
}

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

.nav a {
  color: #1c140f;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] { background: #f3efe9; }

.nav a:focus-visible,
.social:focus-visible,
.foot-links a:focus-visible,
.foot-brand:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 0;
}

.topbar-inner > .socials { margin-left: auto; }

.post-body .socials { margin: 8px 0 4px; }

.social {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #5c534c;
  border-radius: 999px;
}

.social:hover { color: #1c140f; background: #f3efe9; }

.social svg { width: 18px; height: 18px; display: block; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.proof {
  margin: 14px 0 0;
  max-width: 34rem;
  color: #3d342e;
  font-size: 0.98rem;
  line-height: 1.45;
}

.proof a { color: #1c140f; font-weight: 600; }

.alert-panel {
  background: #1c140f;
  color: #fff;
  border-radius: 28px;
  padding: 18px 18px 14px;
  box-shadow: 0 24px 60px rgba(28, 20, 15, 0.18);
}

.alerts-label,
.alerts-foot {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.alerts-foot {
  margin-top: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.8rem;
  line-height: 1.4;
}

.alert {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 16px;
  background: #fff;
  color: #1c140f;
  border-radius: 16px;
}

.alert-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alert-kicker::before {
  content: "";
  width: 16px;
  height: 3px;
  background: var(--orange);
  transform-origin: left center;
}

.alert h2 {
  margin: 3px 0 0;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.alert p {
  margin: 4px 0 0;
  color: #3d342e;
  font-size: 0.92rem;
  line-height: 1.4;
}

.alert-flag {
  flex: none;
  margin-top: 2px;
  color: #5c534c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-lede {
  margin: -12px 0 var(--s4);
  max-width: 38rem;
  color: #3d342e;
  font-size: 1.08rem;
  line-height: 1.5;
}

.cards.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.soon-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1ea;
  color: #9a3412;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.issue-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: var(--s6);
  align-items: center;
}

.issue-grid h2 { margin-bottom: var(--s2); }

.issue-grid .section-lede { margin: 0; }

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1c140f;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.foot-brand img { width: 36px; height: 36px; display: block; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.foot-links a {
  color: #1c140f;
  font-weight: 600;
  text-decoration: none;
}

.foot-links a:hover { text-decoration: underline; }

.foot-note { margin: 0; }

.page {
  padding: var(--s8) 0 var(--s12);
}

.page h1 {
  margin: 0;
  max-width: 14em;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.page-lede {
  margin: var(--s3) 0 0;
  max-width: 38rem;
  color: #3d342e;
  font-size: 1.15rem;
  line-height: 1.5;
}

.post-list {
  display: grid;
  gap: 14px;
  margin-top: var(--s5);
}

@media (min-width: 860px) {
  .post-list { grid-template-columns: 1fr 1fr; }
}

.post-card {
  display: block;
  padding: 22px 22px 20px;
  background: #fff;
  border: 1px solid rgba(28, 20, 15, 0.08);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28, 20, 15, 0.04), 0 10px 28px rgba(28, 20, 15, 0.06);
  color: inherit;
  text-decoration: none;
}

.post-card:hover h2 { color: var(--orange); }

.post-card h2 {
  margin: 8px 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.post-card p { margin: 0; color: #3d342e; line-height: 1.5; }

.post-meta,
.byline {
  margin: 0;
  color: #5c534c;
  font-size: 0.88rem;
}

.measure { max-width: 40rem; }

.post-body { margin-top: var(--s4); }

.post-body h2 {
  margin: 2.1rem 0 0.55rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.post-body p,
.post-body li { color: #2a221c; font-size: 1.05rem; line-height: 1.6; }

.post-body ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

.post-body a { color: #1c140f; }

.post-body a:hover { color: var(--orange); }

.rss-link {
  color: #5c534c;
  font-size: 0.88rem;
  font-weight: 600;
}

.post-cta {
  margin-top: var(--s6);
  padding: var(--s4);
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
}

.post-cta h2 {
  margin: 0 0 var(--s3);
  max-width: 16em;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.post-cta p { margin: var(--s2) 0 0; color: rgba(255, 255, 255, 0.76); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 38rem);
}

@media (prefers-reduced-motion: no-preference) {
  .js-motion .alert {
    animation: nudge-in 0.6s cubic-bezier(0.16, 0.84, 0.32, 1) backwards;
  }

  .js-motion .alert:nth-of-type(1) { animation-delay: 0.04s; }
  .js-motion .alert:nth-of-type(2) { animation-delay: 0.12s; }
  .js-motion .alert:nth-of-type(3) { animation-delay: 0.2s; }

  .js-motion .alert-kicker::before {
    animation: bar-in 0.45s cubic-bezier(0.16, 0.84, 0.32, 1) backwards;
  }
}

@keyframes nudge-in {
  from { transform: translateX(18px); }
  to { transform: none; }
}

@keyframes bar-in {
  from { transform: scaleX(0.35); }
  to { transform: scaleX(1); }
}

@media (max-width: 1080px) {
  .cards.cards-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "nav socials";
    align-items: center;
    gap: 8px 12px;
    min-height: 0;
    padding: 12px 0;
  }

  .brand-mark { grid-area: brand; }
  .topbar .btn { grid-area: cta; justify-self: end; }
  .nav { grid-area: nav; }
  .socials { grid-area: socials; margin-left: 0; justify-self: end; }
  .issue-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cards.cards-4 { grid-template-columns: 1fr; }
  .nav a { padding: 6px 8px; font-size: 0.88rem; }
  .mark { width: 40px; height: 40px; }
  .mark img { width: 40px; height: 40px; }
  .brand-mark { gap: 8px; font-size: 1rem; }
  .alert { padding: 12px; }
  .alert h2 { font-size: 1.05rem; }
}
