:root {
  --bg: #faf9fd;
  --surface: #ffffff;
  --text: #1d1b2a;
  --muted: #5e5b70;
  --line: #e5e1f0;
  --brand-a: #667eea;
  --brand-b: #764ba2;
  --accent: #5a3fa0;
  --link: #4b3a9e;
  --ok: #1d7a4a;
  --err: #b3261e;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(80, 60, 160, 0.10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14121f;
    --surface: #1d1a2e;
    --text: #f1eefb;
    --muted: #b3aecb;
    --line: #342f4d;
    --accent: #b9a8ff;
    --link: #b9c6ff;
    --ok: #6fd6a0;
    --err: #ff9d95;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 Georgia, "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, .sans, button, input, select, label, nav {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--brand-a);
  outline-offset: 2px;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.top { padding: 18px 0; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { font-weight: 800; letter-spacing: -0.01em; text-decoration: none; color: var(--text); font-size: 1.05rem; }
.brand span { background: linear-gradient(90deg, var(--brand-a), var(--brand-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top a.link { font: 600 0.95rem/1 -apple-system, "Segoe UI", Arial, sans-serif; text-decoration: none; }

/* hero */
.hero {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #fff;
  border-radius: 0 0 28px 28px;
  padding: 40px 0 56px;
}
.hero .eyebrow { font: 700 0.78rem/1 -apple-system, "Segoe UI", Arial, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; margin: 0 0 14px; }
.hero h1 { font-size: clamp(1.9rem, 5.2vw, 2.7rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero p.lede { font-size: 1.1rem; margin: 0 0 26px; max-width: 34em; opacity: 0.96; }

/* signup card */
.card {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.signup h2 { font-size: 1.15rem; margin: 0 0 4px; }
.signup p.small { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .row.two { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
input[type=text], input[type=email], select {
  width: 100%;
  font: 1rem/1.3 -apple-system, "Segoe UI", Arial, sans-serif;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.cta {
  margin-top: 14px;
  width: 100%;
  font: 700 1rem/1 -apple-system, "Segoe UI", Arial, sans-serif;
  padding: 14px 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  cursor: pointer;
}
button.cta:hover { filter: brightness(1.06); }
button.cta[disabled] { opacity: 0.6; cursor: not-allowed; }
.status { min-height: 1.4em; margin: 12px 0 0; font: 600 0.95rem/1.4 -apple-system, "Segoe UI", Arial, sans-serif; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* sections */
section { padding: 44px 0 0; }
section h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 14px; }
.grid3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid3 .card { box-shadow: none; }
.grid3 h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--accent); }
.grid3 p { margin: 0; font-size: 0.97rem; color: var(--muted); }

.latest .tag { font: 700 0.75rem/1 -apple-system, "Segoe UI", Arial, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.latest h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 10px; }
.latest ul { margin: 0 0 16px; padding-left: 1.2em; color: var(--muted); }
.latest .readbtn {
  display: inline-block; font: 700 0.98rem/1 -apple-system, "Segoe UI", Arial, sans-serif;
  padding: 12px 18px; border-radius: 10px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.about p { margin: 0 0 10px; }
footer { padding: 44px 0 56px; color: var(--muted); font: 0.9rem/1.5 -apple-system, "Segoe UI", Arial, sans-serif; }
footer .wrap { border-top: 1px solid var(--line); padding-top: 20px; }

/* issue page */
.issue { padding: 12px 0 0; }
.issue .meta { font: 700 0.78rem/1 -apple-system, "Segoe UI", Arial, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 28px 0 10px; }
.issue h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 18px; }
.issue h2 { font-size: 1.25rem; color: var(--accent); margin: 34px 0 8px; }
.issue p, .issue li { margin: 0 0 12px; }
.issue ul { padding-left: 1.25em; margin: 0 0 12px; }
.issue .callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand-a); border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; }
.issue .callout p { margin: 0; }
.cta-box { margin-top: 40px; }
.back { display: inline-block; margin-top: 8px; font: 600 0.95rem/1 -apple-system, "Segoe UI", Arial, sans-serif; text-decoration: none; }

/* author / bio */
.author { display: flex; gap: 22px; align-items: center; }
.author img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--surface); box-shadow: 0 0 0 3px var(--brand-a); }
.author h3 { margin: 0 0 4px; font-size: 1.15rem; }
.author p { margin: 0 0 10px; }
.author .links { display: flex; flex-wrap: wrap; gap: 10px; }
.author .links a {
  font: 600 0.92rem/1 -apple-system, "Segoe UI", Arial, sans-serif;
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--link);
}
.author .links a:hover { border-color: var(--brand-a); }
@media (max-width: 560px) { .author { flex-direction: column; text-align: center; } .author .links { justify-content: center; } }
.author.compact { margin-top: 40px; }
.author.compact img { width: 84px; height: 84px; }
@media (max-width: 560px) { .author.compact img { width: 96px; height: 96px; } }

/* ===== bento stats grid ("the month in six numbers") =====
   Bold solid blocks, one color each. Every text/background pair is >= 4.5:1 (checked). The blocks keep their
   colors in dark mode too, so they read as stand-alone cards. Detail lives in the article below, not in the tiles. */
.stats { margin: 8px 0 36px; }
.stats-title { font-size: 1.3rem; margin: 0 0 4px; color: var(--text); }
.issue .stats-title { margin: 22px 0 4px; color: var(--text); }
.stats-sub { margin: 0 0 16px; color: var(--muted); font: 0.95rem/1.4 -apple-system, "Segoe UI", Arial, sans-serif; }

.bento { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile.wide { grid-column: span 2; } }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(3, 1fr); } .tile.wide:last-child { grid-column: span 3; } }

.tile {
  position: relative; overflow: hidden; border-radius: 20px; padding: 18px 20px 18px;
  display: flex; flex-direction: column; min-height: 150px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --track: rgba(255, 255, 255, 0.28); --fill: #fff; --deco: rgba(255, 255, 255, 0.13);
  color: #fff;
}
.tile::after { content: ""; position: absolute; right: -34px; bottom: -34px; width: 124px; height: 124px; border-radius: 50%; background: var(--deco); pointer-events: none; }
.tile > * { position: relative; z-index: 1; }
.issue .tile p { margin: 0; }
.t-violet  { background: #5b3fd0; --track: #7f68dd; }
.t-teal    { background: #0a7a72; --track: #3b968f; }
.t-coral   { background: #cf3f5a; --track: #d9667c; }
.t-blue    { background: #2459c7; --track: #5079d3; }
.t-magenta { background: #b0287e; --track: #c15497; }
.t-amber   { background: #f5b942; color: #2a1c00; --track: #e2a537; --fill: #2a1c00; --deco: rgba(42, 28, 0, 0.08); }

.tile-emoji { position: absolute !important; top: 14px; right: 16px; font-size: 1.5rem; line-height: 1; z-index: 1; }
.tile-label { font-weight: 700; font-size: 0.88rem; line-height: 1.3; max-width: calc(100% - 44px); }
.tile-value { font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(2.7rem, 8vw, 3.5rem); margin: 6px 0 4px !important; }
.tile.wide .tile-value { font-size: clamp(3.3rem, 10vw, 4.8rem); }
.tile-sub { font-size: 0.9rem; line-height: 1.35; margin: 2px 0 0 !important; }
.tile-sub b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-right: 4px; }
.tile-cap { font-size: 0.86rem; line-height: 1.35; margin-top: auto !important; padding-top: 8px !important; }

.tile-bars { display: grid; gap: 8px; margin: 8px 0 2px; }
@media (min-width: 480px) { .tile.wide .tile-bars { grid-template-columns: 1fr 1fr; gap: 14px; } }
.bar-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 10px; }
.bar-name { grid-column: 1 / -1; font-size: 0.8rem; font-weight: 600; }
.bar { height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--fill); border-radius: 0 5px 5px 0; }
.bar-val { font-size: 0.85rem; font-weight: 800; min-width: 3.1em; text-align: right; }

.stats-src { margin: 12px 0 0; color: var(--muted); font: 0.82rem/1.5 -apple-system, "Segoe UI", Arial, sans-serif; }
.stats-src a { color: var(--link); }
.viz-table { margin-top: 10px; font: 0.9rem/1.4 -apple-system, "Segoe UI", Arial, sans-serif; }
.viz-table summary { cursor: pointer; color: var(--link); font-weight: 600; }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.viz-table table { border-collapse: collapse; width: 100%; min-width: 520px; }
.viz-table th, .viz-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.viz-table thead th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.viz-table tbody th { font-weight: 600; }

/* color-coded article headings: each numbered section wears the color of the numbers it explains */
.issue h2.sec { border-left: 6px solid var(--sc); padding-left: 12px; }
.s1 { --sc: #5b3fd0; } .s2 { --sc: #cf3f5a; } .s3 { --sc: #f5b942; } .s4 { --sc: #0a7a72; } .s5 { --sc: #b0287e; }

/* ===== landing page visual upgrade ===== */
/* hero: floating emoji badges (wide screens only, motion respects the reduced-motion setting) */
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 340px; height: 340px; right: -90px; top: -110px; background: rgba(255, 255, 255, 0.10); }
.hero::after { width: 220px; height: 220px; left: -70px; bottom: -90px; background: rgba(255, 255, 255, 0.08); }
.hero .wrap { position: relative; z-index: 1; }
.hero-emoji { display: none; }
@media (min-width: 1000px) {
  .hero-emoji { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
  .hero-emoji span {
    position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.18); font-size: 2rem; box-shadow: 0 8px 24px rgba(30, 10, 80, 0.18);
    animation: floaty 6s ease-in-out infinite;
  }
  .hero-emoji .e1 { right: 9%; top: 14%; }
  .hero-emoji .e2 { right: 18%; top: 44%; animation-delay: -1.5s; }
  .hero-emoji .e3 { right: 6%; top: 62%; animation-delay: -3s; }
  .hero-emoji .e4 { left: 7%; top: 18%; animation-delay: -2s; }
  .hero-emoji .e5 { left: 11%; top: 66%; animation-delay: -4s; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .hero-emoji span { animation: none; } html { scroll-behavior: auto; } }

/* the latest issue as six colored number blocks */
.minis { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 0 0 14px; }
@media (min-width: 640px) { .minis { grid-template-columns: repeat(3, 1fr); } }
.mini { position: relative; overflow: hidden; border-radius: 18px; padding: 14px 16px 14px; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.mini p { margin: 0; }
.mini-emoji { position: absolute; top: 10px; right: 12px; font-size: 1.25rem; line-height: 1; }
.mini-num { font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.05; }
.mini-lab { font-weight: 600; font-size: 0.82rem; line-height: 1.3; margin-top: 4px !important; max-width: 92%; }
.latest-card { margin-top: 4px; }

/* feature cards: a color per idea, emoji badge */
.features .feature { border-top: 5px solid var(--fc); box-shadow: none; }
.f-violet { --fc: #5b3fd0; --fbg: rgba(91, 63, 208, 0.14); }
.f-teal { --fc: #0a7a72; --fbg: rgba(10, 122, 114, 0.14); }
.f-coral { --fc: #cf3f5a; --fbg: rgba(207, 63, 90, 0.14); }
.badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--fbg); font-size: 1.5rem; margin-bottom: 10px; }
.features .feature h3 { color: var(--text); font-size: 1.1rem; }

/* who it's for */
.chips { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font: 600 0.95rem/1 -apple-system, "Segoe UI", Arial, sans-serif; padding: 12px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.who-note { margin: 0; color: var(--muted); }

.foot-love { margin: 0 0 8px; font-size: 0.95rem; }

/* author photo: a full-length portrait, so a rounded rectangle instead of a circle */
.author img { width: 128px; height: 192px; border-radius: 20px; object-fit: cover; object-position: center top; }
.author.compact img { width: 84px; height: 126px; border-radius: 14px; }
@media (max-width: 560px) { .author img { width: 150px; height: 225px; } .author.compact img { width: 110px; height: 165px; } }

/* stock photo band */
.photo-band figure { margin: 0; position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.photo-band img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 22px 18px; color: #fff;
  background: linear-gradient(to top, rgba(22, 10, 54, 0.85), rgba(22, 10, 54, 0));
  font: 700 clamp(1.05rem, 3.4vw, 1.4rem)/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.photo-credit { margin: 8px 2px 0; color: var(--muted); font: 0.78rem/1.4 -apple-system, "Segoe UI", Arial, sans-serif; }
.photo-credit a { color: var(--link); }

/* "book an intro call" band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 24px; padding: 30px 26px 28px; color: #fff;
  background: linear-gradient(135deg, #5b3fd0 0%, #8a2f9c 55%, #b0287e 100%);
  box-shadow: var(--shadow);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.10); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-eyebrow { margin: 0 0 8px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.cta-band h2, .issue .cta-band h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.4rem, 4.6vw, 1.9rem); line-height: 1.2; letter-spacing: -0.01em; border: 0; padding: 0; }
.cta-text, .issue .cta-text { margin: 0 0 16px; font-size: 1rem; line-height: 1.5; max-width: 34em; }
.cta-chips { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cta-chips li { font-weight: 600; font-size: 0.88rem; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.cta-btn {
  display: inline-block; font-weight: 800; font-size: 1rem; line-height: 1; padding: 15px 22px; border-radius: 12px;
  background: #fff; color: #3b2a9e; text-decoration: none; box-shadow: 0 6px 18px rgba(20, 8, 60, 0.25);
}
.cta-btn:hover { filter: brightness(0.96); transform: translateY(-1px); }
.cta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.call-issue { margin-top: 28px; }
@media (max-width: 560px) { .cta-btn { display: block; text-align: center; } .cta-band { padding: 24px 20px; } }

/* little pixel-art character at the bottom of the page (decorative) */
.foot-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.foot-text { flex: 1; min-width: 0; }
.foot-avatar { flex: none; width: 120px; height: 120px; margin: -4px 0 -6px; image-rendering: pixelated; animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 560px) { .foot-avatar { width: 92px; height: 92px; } }
@media (prefers-reduced-motion: reduce) { .foot-avatar { animation: none; } }
