/* Blog styling.
   Palette, fonts and button treatment are taken from cdn/index.html so the blog reads as the
   same site: orange accent (--accent), Montserrat body, Plus Jakarta Sans on buttons, and the
   canvas gradient from the homepage. Change a token here only if it changed there too. */

@font-face{font-family:'Montserrat';font-style:italic;font-weight:300 700;font-display:swap;src:url(/assets/fonts/montserrat-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Montserrat';font-style:italic;font-weight:300 700;font-display:swap;src:url(/assets/fonts/montserrat-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/montserrat-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/montserrat-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/plus-jakarta-sans-normal-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/plus-jakarta-sans-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
  --canvas: #120F14;
  --panel: #0E0D12;
  --slab: rgba(18, 17, 21, .88);
  --accent: #F95008;
  --accent-hover: #ff6321;
  --ring: #E8622F;
  --vanilla: #E8DCC8;
  --deep: #C3C0FF;
  --btn-ink: #D23F00;
  --ink: #fff;
  --muted: rgba(255, 255, 255, .74);
  --faint: rgba(255, 255, 255, .6);
  --hairline: rgba(255, 255, 255, .08);
  --font-mkt: Montserrat, system-ui, sans-serif;
  --font-app: 'Plus Jakarta Sans', system-ui, sans-serif;
  --wrap: 1120px;      /* header + footer, same as .wrap on the homepage */
  --measure: 48rem;    /* article prose */
  --measure-wide: 55rem; /* blog index listing */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  margin: 0;
  background-color: var(--canvas);
  background-image:
    radial-gradient(90% 42% at 85% -5%, rgba(249, 80, 8, .17), transparent 62%),
    radial-gradient(70% 28% at -5% 30%, rgba(232, 98, 47, .10), transparent 60%),
    radial-gradient(85% 32% at 105% 62%, rgba(249, 80, 8, .09), transparent 60%),
    radial-gradient(90% 34% at 10% 102%, rgba(232, 98, 47, .13), transparent 62%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-mkt);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--btn-ink);
  font-weight: 700;
  padding: .6rem 1rem;
  border-radius: 0 0 .5rem 0;
  z-index: 10;
}
.skip-link:focus { left: 0; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

h1, h2, h3 { letter-spacing: -.03em; text-wrap: balance; }

.site-header { border-bottom: 1px solid var(--hairline); background: var(--slab); }
.site-nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.05rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; line-height: 0; border-radius: .3rem; }
.brand img { height: 26px; width: auto; display: block; transition: opacity .14s ease-out; }
.brand:hover img { opacity: .8; }
@media (prefers-reduced-motion: reduce) { .brand img { transition: none; } }
.nav-links { display: flex; gap: 1.1rem; font-size: .95rem; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

main { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem 4rem; }
main.wide { max-width: var(--measure-wide); }

.breadcrumbs { font-size: .85rem; color: var(--faint); margin: 1.5rem 0 .5rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: rgba(255, 255, 255, .22); }
.breadcrumbs a { color: var(--faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }

h1 { font-size: clamp(2rem, 5.2vw, 2.9rem); line-height: 1.08; margin: .7rem 0 .8rem; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.65rem); line-height: 1.25; margin: 2.5rem 0 .65rem; }
h3 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; }

.post-meta { color: var(--faint); font-size: .9rem; margin: 0 0 1.9rem; }
.post-meta time { white-space: nowrap; }

.summary {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: .7rem;
  padding: 1.15rem 1.3rem 1.15rem 1.45rem;
  margin: 0 0 2.2rem;
}
.summary h2 {
  font-family: var(--font-app);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--vanilla);
  margin: 0 0 .65rem;
}
.summary ul { margin: 0; padding-left: 1.1rem; }
.summary li { margin: .3rem 0; }
.summary li::marker { color: var(--accent); }

.post-body > p:first-of-type { font-size: 1.1rem; color: var(--vanilla); }
figure { margin: 2rem 0; }
figure img { width: 100%; height: auto; border-radius: .7rem; display: block; }
figcaption { color: var(--faint); font-size: .88rem; margin-top: .5rem; }
blockquote {
  margin: 1.8rem 0;
  padding: .1rem 0 .1rem 1.15rem;
  border-left: 3px solid var(--accent);
  color: var(--vanilla);
  font-style: italic;
}
ul, ol { padding-left: 1.3rem; }
li { margin: .45rem 0; }
li::marker { color: var(--accent); }
strong { color: var(--vanilla); }

.faq { margin: 2rem 0; }
.faq details {
  border-top: 1px solid var(--hairline);
  padding: .9rem 0;
}
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { display: inline; margin: 0; font-size: 1.05rem; }
.faq p { margin: .6rem 0 0; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 2.6rem 0 0; }
.tags li {
  margin: 0;
  font-family: var(--font-app);
  font-size: .8rem;
  color: var(--vanilla);
  background: rgba(249, 80, 8, .13);
  box-shadow: inset 0 0 0 1px rgba(249, 80, 8, .28);
  border-radius: 999px;
  padding: .22rem .75rem;
}
.tags li::marker { content: ""; }

.cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 1.1rem;
  padding: 1.75rem;
  margin: 3.5rem 0 0;
  overflow: hidden;
}
/* Warm glow behind the phone, echoing the canvas gradients. */
.cta::before {
  content: "";
  position: absolute;
  left: -8%;
  top: 50%;
  width: 260px;
  height: 260px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(249, 80, 8, .28), transparent 68%);
  pointer-events: none;
}
.cta-shot { position: relative; flex: 0 0 auto; line-height: 0; }
.phone {
  width: 132px;
  background: #000;
  border-radius: .7rem;
  overflow: hidden;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .09);
  transform: rotate(-3deg);
  transition: transform .25s ease-out;
}
.cta:hover .phone { transform: rotate(-1deg) translateY(-4px); }
.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  padding: 3px 7px 2px;
  background: #000;
  color: rgba(255, 255, 255, .68);
  font: 500 6.5px/1 var(--font-app);
  letter-spacing: .01em;
}
.phone-icons { display: inline-flex; align-items: center; line-height: 0; }
.phone-icons svg { width: 21px; height: auto; }
.phone-screen { display: block; width: 100%; height: auto; }
.cta-copy { position: relative; flex: 1 1 auto; min-width: 0; }
.cta h2 { margin-top: 0; margin-bottom: .5rem; font-size: 1.4rem; }
.cta p { color: var(--muted); }

.cta-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1.35rem; margin: 1.2rem 0 0; }
.cta-badges a { display: inline-flex; border-radius: .45rem; line-height: 0; }
.cta-badges img { width: auto; display: block; transition: transform .12s ease-out; }
/* The two official badges pad themselves very differently, measured from the files:
   google-play.png is 646x250 with its artwork in a 564x168 box - 41px of transparent margin on
   every side, so the artwork is only 67.2% of the file height. Apple's SVG artwork fills its
   119.66x40 viewBox completely. Equal box heights therefore render Google ~33% smaller.
   Google is rendered 1.49x taller so the ARTWORK matches, and pulled back by its own padding
   (41/250 * 62 = 10px a side) so the visual edges still line up. */
.cta-badges .apple { height: 42px; }
.cta-badges .google { height: 62px; margin: -10px; }
.cta-badges a:hover img { transform: translateY(-2px); }
.cta-badges a:active img { transform: scale(.97); }

@media (max-width: 34rem) {
  .cta { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.4rem; }
  .cta-shot { align-self: center; }
  .phone { width: 116px; }
  .cta::before { left: 50%; top: 0; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .phone, .cta-badges img { transition: none; }
  .cta:hover .phone { transform: rotate(-3deg); }
}

.post-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin: 3rem 0 0; font-size: .95rem; }
.post-nav a { text-decoration: none; color: var(--vanilla); }
.post-nav a:hover { color: var(--accent); }
.post-nav small { display: block; color: var(--faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

.related { margin-top: 3rem; }
.related ul { list-style: none; padding: 0; }

.post-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.post-list > li { border-top: 1px solid var(--hairline); padding: 1.7rem 0; }
.post-list h2 { margin: 0 0 .45rem; font-size: 1.35rem; }
.post-list h2 a { text-decoration: none; color: var(--ink); }
.post-list h2 a:hover { color: var(--accent); }
.post-list p { margin: 0 0 .5rem; color: var(--muted); }

.lede { color: var(--vanilla); font-size: 1.12rem; }
.muted { color: var(--faint); font-size: .9rem; }

.site-footer {
  border-top: 1px solid var(--hairline);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font-size: .9rem;
  color: var(--faint);
}
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: .35rem 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.post-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin: 3rem 0 0; font-size: .95rem; }
.post-nav a { text-decoration: none; color: var(--vanilla); }
.post-nav a:hover { color: var(--accent); }
.post-nav small { display: block; color: var(--faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

.related { margin-top: 3rem; }
.related ul { list-style: none; padding: 0; }

.post-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.post-list > li { border-top: 1px solid var(--hairline); padding: 1.7rem 0; }
.post-list h2 { margin: 0 0 .45rem; font-size: 1.35rem; }
.post-list h2 a { text-decoration: none; color: var(--ink); }
.post-list h2 a:hover { color: var(--accent); }
.post-list p { margin: 0 0 .5rem; color: var(--muted); }

.lede { color: var(--vanilla); font-size: 1.12rem; }
.muted { color: var(--faint); font-size: .9rem; }

.site-footer {
  border-top: 1px solid var(--hairline);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font-size: .9rem;
  color: var(--faint);
}
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: .35rem 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

/* ---------------------------------------------------------------- programmatic pages */
.qset { margin: 2.5rem 0 0; }
.qset > .muted { margin-top: -.25rem; }
.questions { counter-reset: q; list-style: none; padding: 0; margin: 1rem 0 0; }
.questions li {
  counter-increment: q;
  position: relative;
  padding: .7rem 0 .7rem 2.4rem;
  border-top: 1px solid var(--hairline);
}
/* The download bar sits inside the numbered list, so it must not take a number or a rule. */
.questions > li.cta-row {
  counter-increment: none;
  padding: 0;
  border-top: none;
}
.questions > li.cta-row::before { content: none; }
.questions > li.cta-row .cta-inline { margin: 1rem 0 .35rem; }
.questions li::before {
  content: counter(q);
  position: absolute;
  left: 0;
  top: .78rem;
  min-width: 1.6rem;
  font: 700 .78rem/1 var(--font-app);
  color: var(--accent);
}

.card-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.card-list > li {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: .8rem;
  padding: 1.15rem 1.25rem;
}
.card-list h2, .card-list h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.card-list h2 a, .card-list h3 a { color: var(--ink); text-decoration: none; }
.card-list h2 a:hover, .card-list h3 a:hover { color: var(--accent); }
.card-list p { margin: 0 0 .35rem; color: var(--muted); font-size: .95rem; }

.ideas { margin: 2.5rem 0 0; }
.idea-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.idea-list > li { border-top: 1px solid var(--hairline); padding: 1.1rem 0; }
.idea-list h3 { margin: 0 0 .35rem; font-size: 1.08rem; color: var(--vanilla); }
.idea-list p { margin: 0; color: var(--muted); }
.idea-link { margin-top: .45rem !important; font-size: .88rem; }
.idea-link a { text-decoration: none; }
.idea-link a::before { content: "\2197\00a0"; }
.idea-link a:hover { text-decoration: underline; }

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin: 2.25rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: .7rem;
}
.cta-inline p { margin: 0; color: var(--vanilla); font-size: .98rem; }
.cta-inline .cta-badges { margin: 0; gap: 1.2rem; }
.cta-inline .cta-badges .apple { height: 34px; }
.cta-inline .cta-badges .google { height: 50px; margin: -8px; }

/* Games page: the dilemma split is the point, so the percentages lead. */
.game { margin: 2.75rem 0 0; }
.game > p { color: var(--muted); }
.dilemmas { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .8rem; }
.dilemmas > li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: .7rem;
  overflow: hidden;
}
.dilemma-side {
  padding: 1.05rem 1.15rem;
  color: var(--vanilla);
  font-size: .96rem;
  line-height: 1.5;
}
/* The divider is the choice: a rule between the two options, turning horizontal once stacked. */
.dilemma-side + .dilemma-side { border-left: 1px solid var(--hairline); }
@media (max-width: 34rem) {
  .dilemmas > li { grid-template-columns: 1fr; }
  .dilemma-side + .dilemma-side { border-left: 0; border-top: 1px solid var(--hairline); }
}

/* Fills the last grid cell and points at the app instead of leaving a gap. */
.card-list > li.card-more {
  border-style: dashed;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-more h3 a { color: var(--accent); text-decoration: none; }
.card-more h3 a:hover { text-decoration: underline; }

.quiz-sample { color: var(--vanilla) !important; font-style: italic; }
