:root {
  --accent: #4f5bd5; --on-accent: #fff; /* = the app's default accent, Indigo (ui/app.css) */ --bg: #fff; --fg: #000; --dim: #595959; --line: #dedede; --code: #f4f4f4;
  --glass: rgb(255 255 255 / .55); --rim: rgb(0 0 0 / .1); --shine: rgb(255 255 255 / .95); --shade: rgb(0 0 0 / .1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --accent: #8b93ff; --on-accent: #000; --bg: #000; --fg: #fff; --dim: #a3a3a3; --line: #2b2b2b; --code: #141414;
    --glass: rgb(38 38 38 / .5); --rim: rgb(255 255 255 / .14); --shine: rgb(255 255 255 / .38); --shade: rgb(0 0 0 / .5); }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 96px; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; overflow-x: clip; position: relative; }
::selection { background: var(--accent); color: var(--on-accent); }
.hl { color: var(--accent); }
.shot.wide img { box-shadow: 0 0 0 1px var(--rim), 0 30px 110px -30px var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main, footer { max-width: 720px; margin: 0 auto; padding: 0 24px; position: relative; }

/* glass: what is behind shows blurred, with a bright top edge like a lens */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 1px var(--shine), inset 0 0 0 1px var(--rim), 0 10px 28px -8px var(--shade); }
@media (prefers-reduced-transparency: reduce) { .glass { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }

header { position: sticky; top: 16px; z-index: 2; width: min(720px, 100% - 32px); margin: 16px auto 0; border-radius: 999px; padding: 6px 10px 6px 18px; display: flex; align-items: center; justify-content: space-between; }
header a { color: var(--fg); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .94rem; }
nav { display: flex; }
nav a:hover { background: var(--rim); }
header .brand { display: flex; align-items: center; gap: 9px; font-weight: 600; padding-left: 0; }
.mark { display: block; width: 22px; height: 22px; background: var(--accent); -webkit-mask: url(/mark.svg) center / contain no-repeat; mask: url(/mark.svg) center / contain no-repeat; }
.mark.big { position: absolute; width: 460px; height: 460px; top: -30px; left: calc(50% + 100px); opacity: .2; pointer-events: none; }

h1 { font-size: clamp(2.1rem, 8vw, 4rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; margin: 88px 0 20px; text-wrap: balance; }
h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.02em; margin: 64px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.08rem; margin: 28px 0 4px; }
p { margin: 0 0 16px; }
.shot { max-width: 720px; margin: 40px auto; padding: 0 24px; position: relative; }
.shot.wide { max-width: 1240px; margin: 56px auto 72px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--rim), 0 30px 80px -20px var(--shade); }
.shot figcaption { color: var(--dim); font-size: .9rem; margin-top: 14px; text-align: center; }
blockquote { margin: 0; font-size: 1.6rem; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; margin-top: 28px; }
.points h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
.points p { margin: 0; color: var(--dim); }
summary { cursor: pointer; margin: 24px 0 12px; }
.lead { font-size: 1.22rem; line-height: 1.5; margin-bottom: 28px; text-wrap: pretty; }
.dim { color: var(--dim); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 11px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.btn.solid { background: var(--accent); color: var(--on-accent); }
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover, .btn:active { transform: none; } }
ul { padding-left: 22px; }
li { margin: 6px 0; }
li::marker { color: var(--dim); }
dl { display: grid; grid-template-columns: 160px 1fr; gap: 16px 24px; margin: 0; }
dt { font-weight: 600; }
dd { margin: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-weight: 500; }
th:first-child, td:first-child { width: 184px; }
code { font: .88em/1.5 ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; background: var(--code); border-radius: 5px; padding: 2px 5px; overflow-wrap: anywhere; }
pre { background: var(--code); border-radius: 14px; padding: 18px 20px; overflow-x: auto; margin: 0; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
footer { border-top: 1px solid var(--line); margin-top: 80px; padding-top: 24px; padding-bottom: 48px; font-size: .9rem; }
footer a { color: var(--dim); margin-right: 20px; }
@media (max-width: 560px) {
  main { padding: 0 20px; }
  footer { padding: 24px 20px 40px; }
  h1 { margin-top: 64px; }
  header { padding-left: 14px; padding-right: 4px; }
  header a { padding: 8px; font-size: .88rem; }
  .points { grid-template-columns: 1fr; gap: 28px; }
  .shot { padding: 0 20px; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 16px; }
  th:first-child, td:first-child { width: 110px; }
  .mark.big { width: 320px; height: 320px; left: calc(100% - 210px); }
}
