/* Moving to the new Blume: the Notebook site's paper and purple, Blume
   Display over Blume Body, hosted here so a page sends nothing to anyone.
   One sheet, no framework. */

@font-face { font-family: "Blume Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/BlumeDisplay.woff2") format("woff2"); }
@font-face { font-family: "Blume Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/BlumeDisplay.woff2") format("woff2"); }
@font-face { font-family: "Blume Body"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/BlumeBody-Regular.woff2") format("woff2"); }
@font-face { font-family: "Blume Body"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/BlumeBody-Medium.woff2") format("woff2"); }
@font-face { font-family: "Blume Body"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/BlumeBody-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Blume Body"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/BlumeBody-Bold.woff2") format("woff2"); }

:root {
  --paper: #F6F8FC; --raised: #FFFFFF; --sunk: #EAEDF4; --wash: #F1EEF4;
  --ink: #2F2F2F; --muted: #5C6370; --line: #E3E6EE; --line-strong: #D6D6D6;
  --accent: #775496; --accent-deep: #5E4178; --on-accent: #FFFFFF; --glow: rgba(119,84,150,.18);
  --success: #4D7A43; --success-wash: #EAEFE8;
  --warning: #946514; --warning-wash: #F6EEDD;
  --frost: rgba(246,248,252,.86);
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
  --lift: 0 30px 60px -24px rgba(40,20,60,.35), 0 2px 6px rgba(40,20,60,.08);
  --display: "Blume Display", Georgia, "Times New Roman", serif;
  --body: "Blume Body", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #1B1B1B; --raised: #242424; --sunk: #161616; --wash: #3B3540;
  --ink: #F0F0F0; --muted: #A3AAB5; --line: #333333; --line-strong: #454545;
  --accent: #D3ADF5; --accent-deep: #E4C9FA; --on-accent: #1A1A1A; --glow: rgba(211,173,245,.13);
  --success: #70CD88; --success-wash: #2D3A30;
  --warning: #FFC409; --warning-wash: #3D3522;
  --frost: rgba(27,27,27,.86);
  --shadow: 0 1px 2px rgba(0,0,0,.45), 0 4px 14px rgba(0,0,0,.3);
  --lift: 0 30px 60px -24px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.4);
  color-scheme: dark;
}
.on-ink { display: none; }
:root[data-theme="dark"] .on-paper { display: none; }
:root[data-theme="dark"] .on-ink { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.012em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0; }
strong { font-weight: 700; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; }
.glyph { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.eyebrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }
.noscript { padding-top: 40px; padding-bottom: 40px; }

/* The bar */
.bar { position: sticky; top: 0; z-index: 20; background: var(--frost); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar-row { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { height: 34px; width: auto; }
.brand-name { font-weight: 600; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line-strong); white-space: nowrap; }
.bar-nav { display: flex; gap: 4px; }
.bar-nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.bar-nav a:hover { background: var(--sunk); }
.bar-nav a[aria-current="page"] { background: var(--wash); color: var(--accent); }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); color: var(--ink); cursor: pointer; font-size: 1rem; }
.icon-button:hover { border-color: var(--line-strong); }
@media (max-width: 760px) {
  .bar-row { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; row-gap: 4px; }
  .bar-nav { order: 5; width: 100%; overflow-x: auto; margin: 0 -8px; padding: 0 4px; }
  .brand-name, #open-blume { display: none; }
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 1px solid transparent; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.button:hover { background: var(--accent-deep); }
.button.quiet { background: var(--raised); color: var(--accent); border-color: var(--line-strong); }
.button.quiet:hover { background: var(--wash); }
.button.small { min-height: 40px; padding: 6px 16px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Who is reading */
.who { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 28px; padding: 4px; border-radius: 16px; background: var(--sunk); }
.who button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.who button[aria-pressed="true"] { background: var(--raised); color: var(--accent); box-shadow: var(--shadow); }

/* Sections */
.hero { padding-top: clamp(40px, 8vw, 88px); padding-bottom: 8px; }
.hero h1 { max-width: 18ch; margin-top: 14px; }
.hero .lede { margin-top: 20px; }
.page-head { padding-top: clamp(32px, 6vw, 64px); padding-bottom: 28px; }
.page-head h1 { margin-top: 12px; max-width: 22ch; }
.page-head .lede { margin-top: 16px; }
.section { padding-top: clamp(48px, 7vw, 80px); }
.section-lede { margin-top: 10px; color: var(--muted); max-width: 62ch; }
.section > h2 + .grid, .series h2 + .grid { margin-top: 24px; }
.series h2:not(:first-child) { margin-top: 56px; }
.series { padding-top: 12px; }

/* Cards */
.card { display: block; background: var(--raised); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
a.card { color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--lift); }
.card-title { display: block; font-weight: 700; font-size: 1.08rem; line-height: 1.35; }
.card-text { display: block; color: var(--muted); font-size: .96rem; margin-top: 6px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.guide-card { overflow: hidden; }
.guide-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); background: #F6F8FC; }
.guide-card .card-body { display: block; padding: 18px 20px 22px; }
.guide-card .card-title { margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--wash); color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tag.done { background: var(--success-wash); color: var(--success); }

/* The video */
.film { margin: 24px 0 0; }
.film video { width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--lift); background: #F6F8FC; }
.film figcaption { margin-top: 12px; color: var(--muted); font-size: .92rem; }

details.transcript { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); }
details.transcript summary { padding: 14px 20px; font-weight: 700; color: var(--accent); cursor: pointer; }
details.transcript ol { margin: 0; padding: 0 24px 20px 44px; display: grid; gap: 10px; max-width: 80ch; }

/* What has changed */
.changes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.change { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.change dl { margin: 0; display: grid; gap: 12px; flex: 1; align-content: start; }
.change dl div { padding: 12px 14px; border-radius: 14px; background: var(--sunk); }
.change dl .now { background: var(--wash); }
.change dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.change .now dt { color: var(--accent); }
.change dd { margin: 4px 0 0; font-size: .98rem; }
.change dl div:not(.now) dd { color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .95rem; text-decoration: none; }
.more:hover { text-decoration: underline; }
.same { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.same li { display: flex; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--success-wash); }
.same .glyph { color: var(--success); margin-top: 4px; }
.band { margin-top: clamp(48px, 7vw, 80px); padding: clamp(28px, 5vw, 48px); border-radius: 24px; background: var(--wash); }
.band p { margin-top: 12px; max-width: 70ch; }

/* Tables */
.table-scroll { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--raised); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--sunk); white-space: nowrap; }
.moved td:first-child, .words td:first-child { color: var(--muted); }
.moved td { min-width: 200px; }
.search { display: flex; align-items: center; gap: 10px; margin-top: 24px; max-width: 560px; padding: 0 18px; min-height: 56px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--raised); color: var(--muted); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.count { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.empty { margin-top: 24px; color: var(--muted); }
.meter { margin-top: 10px; max-width: 320px; height: 6px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

/* One how-to */
.how-to { padding-top: clamp(24px, 4vw, 40px); max-width: 920px; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.how-to .eyebrow { margin-top: 28px; }
.how-to h1 { margin-top: 10px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.how-to .lede { margin-top: 14px; }
.before { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 16px 20px; border-radius: 16px; background: var(--sunk); color: var(--muted); }
.before .tag { background: var(--raised); color: var(--muted); margin-top: 3px; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 36px; }
.step-text { display: flex; gap: 16px; align-items: flex-start; }
.step-text p { font-size: 1.1rem; padding-top: 4px; max-width: 64ch; }
.step-number { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.step figure { margin: 18px 0 0 54px; }
.zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #F6F8FC; box-shadow: var(--lift); cursor: zoom-in; }
.zoom img { width: 100%; }
/* A phone's picture is tall: drawn at a phone's width, with a phone's corners. */
.step figure.phone { max-width: 300px; }
.step figure.phone .zoom { border-radius: 32px; border-width: 6px; border-color: #1C1C1F; }
#lightbox.phone { width: min(92vw, 430px); border-radius: 32px; }
.band .actions { margin-top: 20px; }
@media (max-width: 640px) { .step figure { margin-left: 0; } .step figure.phone { margin-left: auto; margin-right: auto; } }
.notes { margin-top: 44px; padding: 24px 28px; border-radius: 20px; background: var(--wash); }
.notes h2 { font-size: 1.25rem; }
.notes ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.pager .card { padding: 18px 20px; }
.pager .card-title { margin-top: 6px; }
.pager .next { text-align: right; }
.pager .next .eyebrow { justify-content: flex-end; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager .next { text-align: left; } .pager .next .eyebrow { justify-content: flex-start; } }

/* The picture, larger */
#lightbox { width: min(96vw, 1400px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 16px; background: #F6F8FC; box-shadow: var(--lift); overflow: auto; }
#lightbox::backdrop { background: rgba(10, 8, 14, .72); }
#lightbox img { width: 100%; }
#lightbox .icon-button { position: sticky; top: 12px; margin: 12px 12px -52px auto; z-index: 1; }

/* The foot */
.foot { margin-top: clamp(64px, 9vw, 112px); padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
