/* Shared styles for the Mills blog (blog/*.html). Loads after products/product.css,
   which supplies the nav, footer, eyebrow, buttons and tiles. This file adds the
   two-theme token layer, the prose column, and the figure kit that posts build on.

   Dark is the default and matches the rest of the site. Light is opt-in per reader
   (blog.js, stored under mills-blog-theme) and takes its palette from the Atlas app
   style guide: warm off-white surfaces, stone text, teal accents. Every color below
   is a token so a figure written once renders in both. */

:root {
    --bg: #1c1917;
    --bg-alt: #292524;
    --ink: #EBE6DD;
    --body: #D9D4CA;
    --muted: #C5C0B6;
    --faint: #8F8A82;
    --border: rgba(235, 230, 221, 0.12);
    --border-strong: rgba(235, 230, 221, 0.3);
    --card: rgba(235, 230, 221, 0.04);
    --card-2: rgba(235, 230, 221, 0.07);
    --fig-bg: rgba(41, 37, 36, 0.55);
    --input-bg: #292524;
    --tip-bg: #EBE6DD;
    --tip-ink: #1c1917;
    /* Teal: the spot-market hue from the live Atlas map, as on the product pages */
    --teal: #2dd4bf;
    --teal-text: #5eead4;
    --teal-wash: rgba(45, 212, 191, 0.12);
    --teal-edge: rgba(45, 212, 191, 0.4);
    /* Amber: the gasoline hue in Atlas. Posts use it for the RIN. */
    --rin: #f59e0b;
    --rin-text: #fbbf24;
    --rin-wash: rgba(245, 158, 11, 0.14);
    --rin-edge: rgba(245, 158, 11, 0.4);
    --neutral-wash: rgba(235, 230, 221, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] {
    --bg: #EBE6DD;
    --bg-alt: #F5F2EC;
    --ink: #292524;
    --body: #57534E;
    --muted: #78716C;
    --faint: #A8A29E;
    --border: rgba(214, 211, 209, 0.6);
    --border-strong: #A8A29E;
    --card: rgba(255, 255, 255, 0.5);
    --card-2: rgba(255, 255, 255, 0.35);
    --fig-bg: #F5F2EC;
    --input-bg: #fafaf9;
    --tip-bg: #292524;
    --tip-ink: #F5F2EC;
    --teal: #0d9488;
    --teal-text: #0F766E;
    --teal-wash: rgba(13, 148, 136, 0.1);
    --teal-edge: rgba(13, 148, 136, 0.35);
    --rin: #B45309;
    --rin-text: #92400E;
    --rin-wash: rgba(180, 83, 9, 0.12);
    --rin-edge: rgba(180, 83, 9, 0.35);
    --neutral-wash: rgba(120, 113, 108, 0.18);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Re-point product.css so the nav, footer and eyebrow follow the theme */
    --color-dark: #EBE6DD;
    --color-dark-alt: #F5F2EC;
    --color-text: #292524;
    --color-text-muted: #57534E;
    --color-button-text: #F5F2EC;
    --accent: #292524;
    --accent-soft: rgba(41, 37, 36, 0.08);
    --accent-glow: rgba(41, 37, 36, 0.12);
    --border-faint: rgba(214, 211, 209, 0.6);
    --border-mid: #A8A29E;
    color-scheme: light;
}

html {
    color-scheme: dark;
}

body {
    background: var(--bg);
    color: var(--body);
    line-height: 1.8;
    transition: background 0.25s ease, color 0.25s ease;
}

/* product.css paints these two rules with literal dark-theme values */
html[data-theme="light"] .pp-breadcrumb::before {
    background: var(--border-strong);
}

html[data-theme="light"] .pp-footer {
    border-top-color: var(--border);
}

::selection {
    background: var(--teal-wash);
}

/* ---- Post column ---- */
.post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 40px 96px;
}

.post-head {
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.post-head .eyebrow {
    margin-bottom: 20px;
}

.post-title {
    font-family: var(--font-display);
    font-size: 3.25rem;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
    margin-bottom: 16px;
}

.post-dek {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--muted);
    text-wrap: balance;
    margin-bottom: 24px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 0;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.4;
}

.post-meta .sep {
    margin: 0 10px;
}

/* ---- Theme toggle ---- */
.theme-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 12px 5px 9px;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.theme-toggle:hover {
    color: var(--ink);
    border-color: var(--border-strong);
    background: var(--card);
}

.theme-toggle svg {
    width: 14px;
    height: 14px;
}

.theme-toggle .when-dark,
html[data-theme="light"] .theme-toggle .when-light {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.theme-toggle .when-light,
html[data-theme="light"] .theme-toggle .when-dark {
    display: none;
}

/* ---- In this post ---- */
.post-toc {
    margin-bottom: 40px;
    padding: 20px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.post-toc .eyebrow {
    font-size: 0.6875rem;
    margin-bottom: 10px;
}

.post-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 32px;
}

.post-toc li {
    break-inside: avoid;
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 3px 0;
}

.post-toc a {
    color: var(--body);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-toc a:hover {
    color: var(--ink);
    text-decoration: underline;
}

/* ---- Prose ---- */
.post-body {
    font-size: 1.0625rem;
    line-height: 1.75;
}

.post-body section {
    padding-top: 8px;
    margin-bottom: 48px;
}

.post-body section + section {
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.post-body .eyebrow {
    margin-bottom: 14px;
}

.post-body h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 18px;
    text-wrap: balance;
}

.post-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 36px 0 12px;
    text-wrap: balance;
}

.post-body p {
    margin-bottom: 18px;
}

.post-body p.lede {
    font-size: 1.1875rem;
    line-height: 1.65;
    color: var(--ink);
}

.post-body strong {
    color: var(--ink);
    font-weight: 600;
}

.post-body a {
    color: var(--teal-text);
    text-decoration: underline;
    text-decoration-color: var(--teal-edge);
    text-underline-offset: 2px;
}

.post-body a:hover {
    text-decoration-color: currentColor;
}

.post-body ul,
.post-body ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body ul.summary {
    list-style: none;
    padding: 0;
}

.post-body ul.summary li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
}

.post-body ul.summary li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 14px;
    height: 2px;
    background: var(--teal);
}

sup.ref {
    font-size: 0.7em;
    line-height: 0;
    vertical-align: super;
    margin-left: 1px;
}

sup.ref a {
    color: var(--teal-text);
    text-decoration: none;
    font-weight: 500;
}

/* Formulas are machine literals a reader reads verbatim, so they wear mono. */
.formula {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 20px 0 22px;
    overflow-x: auto;
}

.formula .op {
    color: var(--muted);
    margin: 0 0.2em;
}

.callout,
.note {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 22px 0;
    font-size: 1rem;
    line-height: 1.65;
}

.note {
    border-left-color: var(--rin);
}

.callout .tag,
.note .tag {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-text);
    margin-bottom: 6px;
}

.note .tag {
    color: var(--rin-text);
}

/* ---- FAQ ---- */
.faq dt {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    margin: 26px 0 8px;
}

.faq dd {
    margin: 0 0 8px;
}

/* ---- Sources ---- */
.sources ol {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--muted);
}

.sources li {
    margin-bottom: 8px;
}

.sources li:target {
    color: var(--ink);
}

.sources .fine {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 24px;
}

/* ================================================================
   Figure kit. A figure is a bordered panel in the prose column; add .fig-wide
   to let a table or diagram spread past the column to 1080px.
   ================================================================ */
.fig {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--body);
    background: var(--fig-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px 18px;
    margin: 32px 0;
    box-shadow: var(--shadow);
}

.fig-wide {
    width: min(1080px, calc(100vw - 80px));
    margin-left: calc((100% - min(1080px, calc(100vw - 80px))) / 2);
}

.fig-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-text);
    margin-bottom: 6px;
}

.fig-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 6px;
    text-wrap: balance;
}

.fig-sub {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 16px;
    max-width: 72ch;
}

.fig-cap {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 14px;
    max-width: 80ch;
    line-height: 1.5;
}

.fig-cap b {
    color: var(--body);
    font-weight: 600;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--body);
    white-space: nowrap;
}

.chip .sw {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    flex: none;
}

.chip.rin {
    background: var(--rin-wash);
    border-color: var(--rin-edge);
    color: var(--rin-text);
}

.chip.teal {
    background: var(--teal-wash);
    border-color: var(--teal-edge);
    color: var(--teal-text);
}

.sw.rin {
    background: var(--rin);
}

.sw.teal {
    background: var(--teal);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend i {
    display: inline-block;
    width: 14px;
    height: 10px;
    border-radius: 2px;
}

.legend i.rin {
    background: var(--rin);
}

.legend i.kept {
    background: var(--neutral-wash);
    border: 1px solid var(--border);
}

/* Tables */
.tbl-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-2);
}

table.tbl {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.8125rem;
}

.tbl th {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--card);
    vertical-align: top;
}

.tbl td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--body);
    line-height: 1.45;
}

.tbl tr:last-child td {
    border-bottom: none;
}

.tbl td.num,
.tbl th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tbl td strong {
    color: var(--ink);
    font-weight: 600;
}

.tbl tr.rinrow td {
    background: var(--rin-wash);
}

.tbl td.rowhead {
    color: var(--ink);
    font-weight: 600;
    width: 22%;
}

.tbl th .chip {
    text-transform: none;
    letter-spacing: 0.02em;
    margin-top: 4px;
}

/* Stat tiles */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--teal);
    border-radius: 10px;
    padding: 12px 14px 11px;
}

.stat.rin {
    border-top-color: var(--rin);
}

.stat .t-label {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.35;
    min-height: 2.7em;
}

.stat .t-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.1;
    margin: 6px 0 4px;
    font-variant-numeric: tabular-nums;
}

.stat .t-note {
    font-size: 0.75rem;
    color: var(--faint);
    line-height: 1.35;
}

/* Flow diagram */
.flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.15fr) 44px minmax(0, 1fr);
    gap: 10px 0;
    align-items: stretch;
}

.node {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
}

.node h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 4px;
    line-height: 1.15;
}

.node .role {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.node p {
    font-size: 0.8125rem;
    margin-bottom: 8px;
    line-height: 1.45;
}

.node.hub {
    border-color: var(--teal-edge);
    background: var(--teal-wash);
}

.node.out {
    padding: 10px 12px;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--faint);
}

.arrow svg {
    width: 30px;
    height: 20px;
}

.fork {
    grid-column: 1 / -1;
    height: 46px;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    color: var(--faint);
}

.fork svg {
    width: 100%;
    height: 100%;
    display: block;
}

.outs {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
}

.whos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.who {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.8125rem;
    background: var(--card-2);
}

.who b {
    display: block;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 2px;
}

/* Calculator controls */
.ctrls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 14px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.ctrls label {
    font-size: 0.8125rem;
    color: var(--ink);
    font-weight: 500;
}

.ctrls output {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--ink);
    min-width: 5rem;
    text-align: right;
}

.ctrls input[type=range] {
    grid-column: 1 / -1;
    width: 100%;
    accent-color: var(--rin);
    margin: 0 0 4px;
}

.ctrls details {
    grid-column: 1 / -1;
    font-size: 0.75rem;
    color: var(--muted);
}

.ctrls summary,
.fig details.tv summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--teal-text);
}

.ctrls .adv {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.ctrls .adv label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
}

.ctrls .adv input[type=number] {
    width: 100%;
    font: 500 0.8125rem var(--font-body);
    color: var(--ink);
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 8px;
    margin-top: 3px;
}

.ctrls .adv input[type=number]:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--teal-edge);
    border-color: var(--teal);
}

.readout {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.readout b {
    color: var(--ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.tiers {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) 84px;
    gap: 10px 12px;
    align-items: center;
}

.tiers .tl {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
}

.tiers .tl small {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--muted);
}

.trow {
    display: contents;
}

.trow .bar {
    position: relative;
    height: 22px;
    display: flex;
    gap: 2px;
    cursor: default;
    border-radius: 4px;
}

.trow .bar:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--teal-edge);
}

.trow .seg {
    height: 100%;
    border-radius: 0 4px 4px 0;
    transition: width 0.2s ease-out;
}

.trow .seg.buyer {
    background: var(--rin);
}

.trow .seg.kept {
    background: var(--neutral-wash);
}

.trow .bar:hover .seg.buyer {
    filter: brightness(1.08);
}

.trow .price {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
    font-size: 0.875rem;
}

.trow .price small {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--muted);
}

.tip {
    position: absolute;
    z-index: 30;
    display: none;
    pointer-events: none;
    background: var(--tip-bg);
    color: var(--tip-ink);
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 7px;
    padding: 6px 9px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, calc(-100% - 8px));
    white-space: nowrap;
}

.tip b {
    font-weight: 600;
}

.fig details.tv {
    margin-top: 12px;
    font-size: 0.75rem;
}

/* Floor and ceiling band */
.band-wrap {
    padding: 38px 8px 8px;
    position: relative;
}

.band {
    position: relative;
    height: 14px;
    border-radius: 7px;
    background: var(--teal-wash);
    border: 1px solid var(--teal-edge);
}

.band .dot {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--teal);
    border: 2px solid var(--fig-bg);
    transform: translate(-50%, -50%);
}

.band .dot.zero {
    background: var(--faint);
}

.band .dl {
    position: absolute;
    top: 18px;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    color: var(--body);
    white-space: nowrap;
    text-align: center;
    line-height: 1.3;
}

.band .dl b {
    display: block;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.band .bracket {
    position: absolute;
    left: 0;
    right: 0;
    top: -30px;
    height: 12px;
    border: 1px solid var(--rin);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.band .blab {
    position: absolute;
    left: 50%;
    top: -46px;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--rin-text);
    white-space: nowrap;
}

.ends {
    display: flex;
    justify-content: space-between;
    margin-top: 54px;
    gap: 12px;
}

.end {
    max-width: 46%;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.4;
}

.end b {
    display: block;
    color: var(--ink);
    font-size: 0.8125rem;
    font-weight: 600;
}

.end.r {
    text-align: right;
}

/* ================================================================
   Blog index
   ================================================================ */
.blog-hero {
    padding-top: 64px;
    padding-bottom: 24px;
}

.blog-hero .eyebrow {
    margin-bottom: 20px;
}

.blog-hero h1 {
    font-family: var(--font-display);
    font-size: 4.25rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 22px;
}

.blog-hero .pp-lede {
    max-width: 640px;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 96px;
}

.blog-grid .tile {
    cursor: pointer;
}

.blog-grid .tile-learn {
    text-decoration: none;
}

.blog-grid .tile-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    margin-bottom: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.blog-grid .tile-meta .sep {
    margin: 0 8px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .post {
        padding: 24px 24px 72px;
    }

    .post-title {
        font-size: 2.5rem;
    }

    .post-dek {
        font-size: 1.25rem;
    }

    .post-body {
        font-size: 1rem;
    }

    .post-body h2 {
        font-size: 1.75rem;
    }

    .post-body h3 {
        font-size: 1.3125rem;
    }

    .post-toc ol {
        columns: 1;
    }

    .fig-wide {
        width: auto;
        margin-left: 0;
    }

    .blog-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    .post {
        padding: 16px 20px 64px;
    }

    .fig {
        padding: 16px 16px 14px;
    }

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

    .flow {
        grid-template-columns: 1fr;
    }

    .flow .arrow {
        transform: rotate(90deg);
        height: 44px;
    }

    .flow .arrow.left {
        transform: rotate(-90deg);
    }

    .whos,
    .outs,
    .ctrls .adv {
        grid-template-columns: 1fr;
    }

    .tiers {
        grid-template-columns: 96px minmax(0, 1fr) 72px;
    }

    .theme-toggle {
        margin-left: 0;
        flex-basis: 100%;
        justify-content: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    .trow .seg {
        transition: none;
    }
}
