/* Brainfolder landing page.

   The colours come from the icon in dev/brand: a sunrise from warm yellow to
   coral, a pink brain, a cream folder and a dark brown face. The shape the
   page keeps coming back to is the folder with its tab.

   Movement: everything that moves is tied to the scroll position through two
   numbers that site.js writes on each [data-scene]:
     --p  how far the scene has travelled through the window, 0 to 1
     --q  the same, cut to the part of the journey where the scene plays, eased
   Without the script, or with reduced motion, they keep the values below and
   every scene sits in its finished state.

   Two things loop by themselves, and only while they are on screen: the
   labels circling the icon at the top, and the signals on the memory map. */

:root {
  --sun: #ffd98c;
  --apricot: #ffa466;
  --coral: #ff6f61;
  --pink: #ff8fb0;
  --ink: #3a1b16;
  --ink-soft: #77554c;
  --paper: #fffaf4;
  --band: #fff0e2;
  --folder: #fffefb;
  --folder-back: #ffe2cb;
  --line: rgba(58, 27, 22, 0.14);
  --line-strong: rgba(58, 27, 22, 0.32);
  --glass: rgba(255, 254, 251, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --button: #3a1b16;
  --button-text: #fff6ea;
  --shadow: rgba(120, 36, 20, 0.28);
  --focus: #b3245a;
  --rounded: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ffeede;
    --ink-soft: #dcbcab;
    --paper: #26130f;
    --band: #2f1813;
    --folder: #3b211b;
    --folder-back: #6a3526;
    --line: rgba(255, 238, 222, 0.16);
    --line-strong: rgba(255, 238, 222, 0.38);
    --glass: rgba(59, 33, 27, 0.72);
    --glass-edge: rgba(255, 238, 222, 0.18);
    --button: #ffeede;
    --button-text: #3a1b16;
    --shadow: rgba(0, 0, 0, 0.45);
    --focus: #ffd98c;
  }
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--body);
}

h1, h2, h3, .brand, .button, .amount, dt, summary, .bar a, .sat, strong, time { font-family: var(--rounded); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 5; padding: 0.5rem 0.9rem; background: var(--button); color: var(--button-text); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

[data-scene] { --p: 0.5; --p0: 0.5; --q: 1; }

/* --- the bar: a sheet of frosted glass that the page scrolls under --- */

.bar {
  position: fixed; z-index: 4; top: 0.75rem; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.45rem 0.4rem 0.75rem;
  border: 1px solid var(--glass-edge); border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 0.6rem 1.6rem -0.9rem var(--shadow);
  white-space: nowrap;
}
.bar a { padding: 0.45rem 0.8rem; border-radius: 999px; font-size: 0.93rem; font-weight: 650; text-decoration: none; }
.bar .brand { display: inline-flex; align-items: center; gap: 0.5rem; padding-left: 0; font-size: 1.02rem; font-weight: 750; }
.bar .brand img { border-radius: 8px; }
.bar-link:hover { background: var(--line); }
.bar .bar-buy { margin-left: 0.3rem; background: var(--button); color: var(--button-text); }

/* --- hero: the icon's own sunrise, with loose files drifting at different depths --- */

.hero {
  padding-block: 7.5rem 5rem;
  color: #3a1b16;
  background:
    radial-gradient(60rem 30rem at 16% -6rem, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(168deg, var(--sun) 0, var(--apricot) 48%, var(--coral) 100%);
  overflow: clip;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3rem; align-items: center; }
.hero-words { order: 1; }
/* The icon in the middle, with loose files and things people said circling it.
   The whole group drifts a little with the scroll. */
.hero-art {
  order: 2; position: relative; container-type: inline-size;
  width: min(100%, 28rem); aspect-ratio: 1; margin-inline: auto;
  transform: translate3d(0, calc((var(--p0) - var(--p)) * 90px), 0);
}

h1 {
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 800;
}
.lede { max-width: 34rem; margin-top: 1.3rem; font-size: clamp(1.1rem, 1.7vw, 1.28rem); line-height: 1.5; }
.hero-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; margin-top: 1.9rem; }
.terms { max-width: 19rem; font-size: 0.9rem; line-height: 1.4; }

.button {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border: 0; border-radius: 999px;
  background: #3a1b16; color: #fff6ea;
  font-size: 1.05rem; font-weight: 700; text-decoration: none;
  transition: transform 120ms var(--ease-out);
}
.button:active, .bar a:active { transform: scale(0.97); }

.spin { position: absolute; inset: 0; will-change: transform; }
.orbiter { position: absolute; left: 50%; top: 50%; transform: rotate(var(--a)) translateX(40cqw); }
.orbiter:nth-child(1) { --a: -150deg; --r: -7deg; --c: 0; }
.orbiter:nth-child(2) { --a: -62deg; --r: 6deg; --c: 1; }
.orbiter:nth-child(3) { --a: 8deg; --r: -4deg; --c: 2; }
.orbiter:nth-child(4) { --a: 150deg; --r: 5deg; --c: 3; }
.orbiter:nth-child(5) { --a: 74deg; --r: -2deg; --c: 4; }
/* Each label is centred on its point of the circle and turned back upright.
   The fixed part of that turn sits on .upright, so the moving part is a plain
   rotation with nothing to work out per frame: the browser's compositor can
   run it without touching the page, which is what keeps slow motion smooth. */
.upright { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotate(calc(var(--r) - var(--a))); }
.upright > * { will-change: transform; }
/* Three labels share one spot. Only the first shows unless motion is allowed. */
.swap { display: inline-grid; justify-items: center; }
.swap > span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; }
.swap > span:first-child { opacity: 1; }
.swap > span:nth-child(1) { --i: 0; }
.swap > span:nth-child(2) { --i: 1; }
.swap > span:nth-child(3) { --i: 2; }

@media (prefers-reduced-motion: no-preference) {
  /* The circle turns once in 44 seconds. Every label changes every 5 seconds,
     and the five spots are 3 seconds apart, so something changes every 3. */
  .spin { animation: spin 44s linear infinite; }
  .upright > * { animation: unspin 44s linear infinite; }
  .swap > span { animation: swap 15s infinite; animation-delay: calc(var(--i) * 5s - 15s - var(--c) * 3s); }
  .spin, .upright > *, .swap > span { animation-play-state: paused; }
  [data-live] .spin, [data-live] .upright > *, [data-live] .swap > span { animation-play-state: running; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unspin { to { transform: rotate(-360deg); } }
/* A label pops in while the one before it is still fading, so a spot is never empty. */
@keyframes swap {
  0% { opacity: 0; transform: scale(0.8); }
  3% { opacity: 1; transform: scale(1.06); }
  6%, 33.3% { opacity: 1; transform: scale(1); }
  36%, 100% { opacity: 0; transform: scale(0.92); }
}
.chip, .card {
  padding: 0.5rem 0.8rem;
  border-radius: 0.7rem;
  background: #fffefb; color: #3a1b16;
  font: 0.84rem/1.3 var(--mono);
  white-space: nowrap;
  box-shadow: 0 0.9rem 1.6rem -0.8rem rgba(120, 36, 20, 0.5);
}
.bubble, .said {
  padding: 0.75rem 1rem;
  border-radius: 1.1rem 1.1rem 1.1rem 0.3rem;
  background: #3a1b16; color: #fff6ea;
  font-size: 0.98rem; line-height: 1.4;
}
.bubble { white-space: nowrap; box-shadow: 0 0.9rem 1.6rem -0.8rem rgba(120, 36, 20, 0.6); }
.mascot {
  position: absolute; left: 50%; top: 50%; width: 54%; height: auto;
  transform: translate(-50%, -50%) rotate(4deg);
  filter: drop-shadow(0 1.8rem 1.8rem rgba(140, 40, 20, 0.38));
}

/* --- the folder shape --- */

.folder {
  position: relative;
  padding: 1.5rem;
  border-radius: 0 1.3rem 1.3rem 1.3rem;
  background: var(--folder);
  box-shadow: 0 1.6rem 3rem -1.4rem var(--shadow);
}
.folder::before {
  content: attr(data-tab);
  position: absolute; left: 0; bottom: 100%;
  padding: 0.3rem 1rem 0.2rem;
  border-radius: 0.8rem 0.8rem 0 0;
  background: inherit;
  font: 700 0.85rem/1.5 var(--rounded);
}

/* --- scenes --- */

main > section { padding-block: 6.5rem; }

h2 { max-width: 20ch; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.024em; font-weight: 800; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; }
.sub { max-width: 36rem; margin-top: 1.1rem; font-size: 1.14rem; line-height: 1.55; color: var(--ink-soft); }
.fine { margin-top: 1.5rem; max-width: 36rem; color: var(--ink-soft); font-size: 0.92rem; }
.hero :focus-visible { outline-color: #3a1b16; }

/* scene: you talk, it arranges */

.stage { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; margin-top: 4.2rem; }
.said-side { display: grid; gap: 1rem; }
.said-side .said { font-size: 1.08rem; background: var(--button); color: var(--button-text); }
.said-note { color: var(--ink-soft); font-size: 0.95rem; }
.said-side::after {
  content: "inbox";
  display: block; min-height: 9.5rem; padding: 0.5rem 0.9rem;
  border: 2px dashed var(--line-strong); border-radius: 1rem;
  color: var(--ink-soft);
  font: 700 0.85rem/1.5 var(--rounded);
  opacity: calc(1 - var(--q) * 0.65);
}

.tree { display: grid; gap: 1.05rem; }
.row { --tx: var(--dx); --ty: var(--dy); display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem; min-height: 2.2rem; }
.path { font: 0.86rem/1.3 var(--mono); color: var(--ink-soft); opacity: calc((var(--q) - 0.5) * 2.5); }
.card {
  display: inline-grid;
  background: var(--folder-back); color: var(--ink);
  box-shadow: 0 0.8rem 1.4rem -0.9rem var(--shadow);
  transform:
    translate3d(calc(var(--tx) * (1 - var(--q))), calc(var(--ty) * (1 - var(--q))), 0)
    rotate(calc(var(--rot) * (1 - var(--q))));
  will-change: transform;
}
.card .old, .card .new { grid-area: 1 / 1; }
.card .old { opacity: calc(1 - (var(--q) - 0.45) * 4); }
.card .new { opacity: calc((var(--q) - 0.62) * 4); font-weight: 600; }
.late .card { opacity: calc(var(--q) * 2.6); font-family: var(--body); font-size: 0.92rem; }

/* scene: it grows */

.grows-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center; }
.stages { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
.stages li { padding-left: 1.1rem; border-left: 3px solid var(--pink); color: var(--ink-soft); opacity: clamp(0.3, calc(0.3 + (var(--q) - var(--at)) * 6), 1); }
.stages strong { display: block; color: var(--ink); font-size: 1.08rem; }

.map { transform: translate3d(0, calc((0.5 - var(--p)) * 50px), 0); }
.map svg { width: 100%; height: auto; overflow: visible; }
/* Each link draws itself from one dot to the next as the map grows. */
.map .links line {
  stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: clamp(0, calc(1 - (var(--q) - var(--at)) * 7), 1);
  opacity: clamp(0, calc((var(--q) - var(--at)) * 40), 1);
}
/* Once a link exists, a small signal keeps travelling along it: this is the
   one thing on the page that moves by itself, and only while it is on screen. */
.map .pulses line {
  stroke: var(--coral); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 4 96;
  opacity: clamp(0, calc((var(--q) - var(--at) - 0.14) * 8), 0.95);
  animation: travel 2.8s linear infinite;
  animation-delay: calc(var(--at) * -5s);
  animation-play-state: paused;
}
[data-live] .pulses line { animation-play-state: running; }
@keyframes travel { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.map .dots g {
  opacity: clamp(0, calc((var(--q) - var(--at)) * 8), 1);
  transform: scale(clamp(0.6, calc(0.6 + (var(--q) - var(--at)) * 4), 1));
  transform-box: fill-box; transform-origin: center;
}
.map text { font: 600 13px var(--body); text-anchor: middle; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.map .me { fill: var(--apricot); }
.map .me + text { font: 800 15px var(--rounded); fill: #3a1b16; stroke: none; }
.map .project { fill: var(--pink); }
.map .person { fill: var(--sun); }
.map .decision { fill: var(--coral); }
.map .lesson { fill: var(--ink); }
.map figcaption { margin-top: 0.5rem; text-align: center; color: var(--ink-soft); font-size: 0.88rem; }

/* scene: any AI */

.any { background: var(--band); }
.any-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: center; }
.orbit { --turn: calc((var(--p) - 0.5) * 90deg); --radius: min(11rem, 36vw); position: relative; width: min(100%, 27rem); aspect-ratio: 1; margin-inline: auto; }
.ring { position: absolute; inset: 9%; border: 2px dashed var(--line-strong); border-radius: 50%; }
.ring-2 { inset: 30%; border-style: solid; border-color: var(--line); }
.core {
  position: absolute; left: 50%; top: 50%; width: 31%; height: auto;
  transform: translate(-50%, -50%) rotate(calc((0.5 - var(--p)) * 14deg));
  filter: drop-shadow(0 1rem 1.2rem var(--shadow));
}
.sat {
  position: absolute; left: 50%; top: 50%;
  padding: 0.5rem 0.95rem; border-radius: 999px;
  background: var(--folder); color: var(--ink);
  font-size: 0.92rem; font-weight: 650; white-space: nowrap;
  box-shadow: 0 0.8rem 1.4rem -0.9rem var(--shadow);
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--a) + var(--turn))) translateX(var(--radius))
    rotate(calc((var(--a) + var(--turn)) * -1));
  will-change: transform;
}
.ways { display: grid; margin-top: 1.8rem; max-width: 38rem; }
.ways li { padding-block: 0.85rem; border-top: 1px solid var(--line); color: var(--ink-soft); }
.ways strong { display: block; color: var(--ink); }

/* scene: yours, with a history */

.yours-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 3.5rem; align-items: center; }
.plain { display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.plain li { position: relative; padding-left: 1.3rem; color: var(--ink-soft); }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--pink); }

.history { display: grid; gap: 0.9rem; }
.history li {
  display: grid; gap: 0.15rem;
  padding: 1rem 1.2rem; border-radius: 1.1rem;
  background: var(--folder);
  box-shadow: 0 1.2rem 2.2rem -1.4rem var(--shadow);
  transform: translate3d(0, calc((0.5 - var(--p)) * var(--depth) * 1px), 0);
  will-change: transform;
}
.history li:nth-child(2) { margin-left: 1.6rem; }
.history li:nth-child(3) { margin-left: 3.2rem; }
.history li:nth-child(4) { margin-left: 4.8rem; }
.history time { font-size: 0.85rem; font-weight: 750; color: var(--ink-soft); }

/* who it is for */

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.people li { display: grid; gap: 0.9rem; align-content: start; }
.people .said { justify-self: start; background: var(--button); color: var(--button-text); }
.people li > p:last-child { color: var(--ink-soft); }

/* what is in the folder, privacy, price, questions */

.box { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.75rem; margin-top: 2.4rem; }
.box > div { padding-top: 0.85rem; border-top: 3px solid var(--pink); }
.box dt { font-size: 1.12rem; font-weight: 750; }
.box dd { margin-top: 0.2rem; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.4; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; margin-top: 2.2rem; }

main > .buy { padding-block: 3rem 6.5rem; }
.price { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem; align-items: center; padding: 2.5rem; background: var(--folder-back); box-shadow: none; }
.amount { font-size: clamp(3.4rem, 8vw, 5rem); line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.amount .once { font-size: 0.3em; letter-spacing: 0; font-weight: 700; }
.tax { margin-block: 0.7rem 1.4rem; font-size: 0.95rem; }
.price .button { background: var(--button); color: var(--button-text); }
.price-list { margin-top: 0; }
.price-list li { color: var(--ink); }

.beside-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 3.5rem; align-items: start; }
.beside-grid > h2 { max-width: 15ch; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
main > .questions { padding-block: 4rem 6rem; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding-block: 1rem; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.faq p { padding-bottom: 1.2rem; max-width: 40rem; color: var(--ink-soft); }

/* --- the licence and the privacy note: one calm column of text --- */

.legal { max-width: 42rem; padding-block: 8rem 4rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { max-width: none; margin-top: 2.6rem; font-size: 1.45rem; letter-spacing: -0.01em; scroll-margin-top: 6rem; }
.legal p, .legal ul { margin-top: 0.9rem; }
.legal h1 + p { color: var(--ink-soft); }
.legal ul { display: grid; gap: 0.5rem; padding-left: 1.2rem; list-style: disc; }
.legal li::marker { color: var(--pink); }
.thanks ol { display: grid; gap: 0.5rem; margin-top: 0.9rem; padding-left: 1.4rem; list-style: decimal; }
.thanks li::marker { color: var(--pink); font-weight: 700; }
.thanks .key { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.thanks .key code { padding: 0.5em 0.8em; border: 1px solid var(--line); border-radius: 0.6em; font-size: 1.05rem; overflow-wrap: anywhere; user-select: all; }
.thanks .button { display: inline-flex; }
.copy { padding: 0.45em 1em; border: 1px solid var(--line); border-radius: 999px; background: none; color: inherit; font: inherit; cursor: pointer; }
.copy:active { transform: scale(0.97); }
.thanks [hidden] { display: none; }
.blank { padding: 0.05em 0.35em; border-radius: 0.35em; background: var(--sun); color: #3a1b16; font-weight: 700; }
.foot a { text-underline-offset: 0.2em; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.92rem; }
.foot p { display: flex; align-items: center; gap: 0.6rem; }
.foot .foot-links { gap: 0.6rem 1.6rem; flex-wrap: wrap; }

/* --- narrower screens: one column, shorter journeys for the moving pieces --- */

@media (max-width: 56rem) {
  .bar-link { display: none; }
  .hero { padding-block: 5.5rem 3.5rem; }
  .hero-grid, .stage, .grows-grid, .any-grid, .yours-grid, .people, .split, .price, .beside-grid { grid-template-columns: minmax(0, 1fr); }
  .box { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
  .hero-words, .hero-art { order: 0; }
  .hero-art { width: min(100%, 19rem); margin-bottom: 1.5rem; }
  .hero-art .chip { font-size: 0.7rem; padding: 0.35rem 0.55rem; }
  .hero-art .bubble { font-size: 0.74rem; padding: 0.5rem 0.7rem; }
  .hero-art .bubble > span { width: 8.5rem; white-space: normal; text-align: center; }
  .orbiter { transform: rotate(var(--a)) translateX(37cqw); }
  .mascot { width: 50%; }
  main > section { padding-block: 4.2rem; }
  .stage { gap: 3.4rem; margin-top: 2.4rem; }
  .row { --tx: var(--mx); --ty: var(--my); flex-direction: column; align-items: flex-start; }
  .grows-grid, .any-grid, .yours-grid { gap: 2.5rem; }
  .any-grid .orbit { order: 2; }
  .orbit { --radius: min(9.2rem, 33vw); width: min(100%, 22rem); }
  .sat { font-size: 0.8rem; padding: 0.42rem 0.75rem; }
  .history li:nth-child(n) { margin-left: 0; }
  .people { gap: 2.2rem; }
  .price { gap: 1.75rem; padding: 1.5rem; }
  .beside-grid > h2 { max-width: 22ch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .bar a { transition: none; }
  .card, .history li, .map, .core, .sat { will-change: auto; }
  .map .pulses { display: none; }
  .map .pulses line { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .bar { background: var(--folder); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .bar { background: var(--folder); border-color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sub, .said-note, .plain li, .ways li, .box dd, .faq p, .fine { color: var(--ink); }
}
