/* ── Writing (built by tools/build-blog.mjs) ──
   Set in the portfolio's own hand: the same grainy charcoal ground
   with its violet haze, light serif headlines, hollow lavender
   numerals and spaced capitals, the folder cards from Projects and
   the same header. Faces are the site's own, self-hosted. */
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2-variations"), url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif.woff2") format("woff2-variations"), url("../fonts/source-serif.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --ink: #c9a6ff;                 /* the accent: lavender */
  --t1: #f4f2f7;
  --t2: #c9c9c9;
  --t3: #8a8a8f;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.045);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.1rem, 3vw, 4rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background-color: #0f0f11; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.wr { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; background: transparent; color: var(--t2); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
/* the ground: two soft lights over a darkening base, and grain so the gradients never band */
body.wr::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(52rem 38rem at 78% 0%, rgba(150, 104, 214, 0.085), transparent 60%), radial-gradient(44rem 38rem at 4% 40%, rgba(70, 106, 178, 0.045), transparent 58%), linear-gradient(178deg, #141318 0%, #111013 44%, #0e0e10 100%); }
body.wr::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35; background-size: 200px 200px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='200'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.82'%20numOctaves='3'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='200'%20height='200'%20filter='url(%23n)'%20opacity='0.5'/%3E%3C/svg%3E"); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--ink); color: #120c1c; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wr-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--t1); color: #111; padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.wr-skip:focus { top: 12px; }

/* ── the header, as on the portfolio ── */
.wr-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem; padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right));
  background: rgba(17, 16, 22, 0.72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line); transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.2, 1); }
.wr-top.is-hidden { transform: translateY(-100%); }
.wr-brand { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.04em; color: #f0f0f0; text-decoration: none; white-space: nowrap; }
.wr-nav { display: flex; align-items: center; gap: 0.15rem; }
.wr-nav a { padding: 0.45rem 0.8rem; border-radius: 999px; font-size: 0.82rem; color: rgba(240, 240, 240, 0.72); text-decoration: none; transition: color 0.25s, background 0.25s; }
.wr-nav a:hover, .wr-nav a.is-on { color: #fff; background: rgba(255, 255, 255, 0.08); }
.wr-nav a.wr-cta { margin-left: 0.4rem; color: #12131a; background: #f0f2f6; font-weight: 600; }
.wr-nav a.wr-cta:hover { background: #fff; }
.wr-menu { display: none; align-items: center; gap: 0.55rem; padding: 0.45rem 0.8rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; background: none; color: #f0f0f0; font: 500 0.82rem var(--sans); cursor: pointer; }
.wr-menu i, .wr-menu i::before, .wr-menu i::after { display: block; width: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.3s; }
.wr-menu i { position: relative; }
.wr-menu i::before, .wr-menu i::after { content: ""; position: absolute; left: 0; }
.wr-menu i::before { top: -4.5px; } .wr-menu i::after { top: 4.5px; }
.wr-menu b { font-weight: 500; }
@media (max-width: 980px) {
  .wr-menu { display: inline-flex; }
  .wr-nav { position: absolute; top: calc(100% + 8px); right: 1rem; left: 1rem; display: none; flex-direction: column; align-items: stretch; padding: 0.5rem; border-radius: 16px; background: rgba(22, 20, 28, 0.96); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
  .wr-top.is-open .wr-nav { display: flex; }
  .wr-nav a { padding: 0.75rem 0.9rem; font-size: 0.95rem; border-radius: 10px; }
  .wr-nav a.wr-cta { margin: 0.3rem 0 0; text-align: center; }
}

.wr-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 30; pointer-events: none; }
.wr-progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, rgba(201, 166, 255, 0.4), var(--ink)); }

.wr-main { flex: 1; width: 100%; }

/* ── a section, like Experience: hollow numeral, spaced label, light serif title ── */
.wr-sec { position: relative; display: grid; grid-template-columns: minmax(13rem, 30%) 1fr; gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4rem, 12vh, 8rem) var(--gutter) clamp(4rem, 10vh, 7rem); max-width: 90rem; margin: 0 auto; }
.wr-sec::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: clamp(1.5rem, 4vh, 2.5rem); height: 1px;
  background: linear-gradient(90deg, rgba(201, 166, 255, 0.34) 0%, rgba(255, 255, 255, 0.09) 22%, rgba(255, 255, 255, 0.05) 100%); }
.wr-sec__head { position: sticky; top: 5.5rem; align-self: start; }
.wr-sec__label, .wr-label { margin: 0; font: 500 clamp(0.62rem, 0.76vw, 0.7rem)/1.4 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); opacity: 0.8; }
.wr-sec__label::before { content: attr(data-n); display: block; margin-bottom: 0.55rem; font: 200 clamp(2.6rem, 6vw, 5.2rem)/0.8 var(--sans); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(201, 166, 255, 0.42); }
.wr-sec__title { margin: 0.9rem 0 0; font: 300 clamp(1.9rem, 3.6vw, 3.2rem)/1.04 var(--serif); letter-spacing: -0.03em; color: var(--t1); }
.wr-sec__lede { margin: 1.1rem 0 0; max-width: 22rem; font-size: 0.98rem; line-height: 1.6; color: var(--t3); }
.wr-sec__links { display: flex; gap: 1.1rem; margin: 1.6rem 0 0; font-size: 0.82rem; }
.wr-sec__links a { display: inline-flex; align-items: center; gap: 0.4rem; color: rgba(240, 240, 240, 0.65); text-decoration: none; }
.wr-sec__links a:hover { color: #fff; }
.wr-sec__links svg, .wr-search svg, .wr-share__btn svg, .wr-pop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wr-search { display: flex; align-items: center; gap: 0.5rem; margin-top: 2rem; padding: 0 0.95rem; height: 2.5rem; max-width: 18rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: var(--glass); color: var(--t3); }
.wr-search:focus-within { border-color: rgba(201, 166, 255, 0.5); }
.wr-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--t1); font: 0.88rem var(--sans); outline: none; }
.wr-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.wr-chips button, .wr-tags a { padding: 0.42rem 0.85rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: none; color: rgba(240, 240, 240, 0.72); font: 500 0.78rem var(--sans); text-decoration: none; cursor: pointer; transition: all 0.25s; }
.wr-chips button:hover, .wr-tags a:hover { color: #fff; border-color: rgba(201, 166, 255, 0.5); }
.wr-chips button.is-on { color: #12131a; background: #f0f2f6; border-color: #f0f2f6; }
.wr-empty { margin: 0; font: 300 1.3rem/1.5 var(--serif); color: var(--t3); }
.wr-empty a { color: var(--ink); }
@media (max-width: 860px) {
  .wr-sec { grid-template-columns: 1fr; gap: 2.4rem; }
  .wr-sec__head { position: static; }
}

/* ── folders, as in Projects ── */
.wr-folds { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.wr-folds--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .wr-folds--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .wr-folds, .wr-folds--3 { grid-template-columns: 1fr; } }
.wr-card[hidden] { display: none; }
.wr-card--big { grid-column: 1 / -1; }
.wr-fold { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; isolation: isolate; text-decoration: none; color: var(--fink); background: #0d0d10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 50px -20px rgba(0, 0, 0, 0.8); transition: transform 0.6s cubic-bezier(0.22, 0.7, 0.2, 1), box-shadow 0.6s ease; }
.wr-card--big .wr-fold { aspect-ratio: 16 / 10; }
@media (max-width: 620px) { .wr-card--big .wr-fold { aspect-ratio: 4 / 5; } }
.wr-fold:hover, .wr-fold:focus-visible { transform: translateY(-4px); outline: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 0 4px rgba(255, 255, 255, 0.05), 0 34px 60px -22px rgba(0, 0, 0, 0.9); }
.wr-fold__back { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.55) 46%, transparent 54%) 0 0 / 260% 100%, radial-gradient(90% 70% at 20% 10%, var(--g3), transparent 60%), linear-gradient(140deg, var(--g1), var(--g2) 55%, var(--g1));
  background-size: 260% 100%, 100% 100%, 200% 200%; background-position: 120% 0, 0 0, 0 0; filter: saturate(1.15); transition: background-position 1.4s cubic-bezier(0.22, 0.7, 0.2, 1); }
.wr-fold:hover .wr-fold__back { background-position: -40% 0, 0 0, 100% 100%; }
/* the cover sits in the folder, under a wash of its colours, and rises on hover */
.wr-fold__img { position: absolute; z-index: 1; left: 6%; right: 6%; top: 6%; width: 88%; height: 52%; object-fit: cover; border-radius: 12px;
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.55); opacity: 0.92; transform: translateY(8%) rotate(-1.5deg); transition: transform 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.15), opacity 0.4s; }
.wr-card--big .wr-fold__img { left: auto; right: 5%; width: 52%; height: 62%; top: 7%; }
.wr-fold:hover .wr-fold__img { transform: translateY(-2%) rotate(0); opacity: 1; }
.wr-fold__face { position: absolute; z-index: 2; left: 0; right: 0; top: 44%; bottom: 0; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto auto auto; padding: 1.1rem 1.25rem 1.3rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--face) 92%, #fff), var(--face) 45%, color-mix(in srgb, var(--face) 85%, #000));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400' preserveAspectRatio='none'%3E%3Cpath d='M0 14 Q0 0 14 0 H158 C172 0 176 26 194 26 H300 V400 H0 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400' preserveAspectRatio='none'%3E%3Cpath d='M0 14 Q0 0 14 0 H158 C172 0 176 26 194 26 H300 V400 H0 Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  transition: transform 0.6s cubic-bezier(0.22, 0.7, 0.2, 1); }
.wr-card--big .wr-fold__face { top: 34%; right: 46%; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
@media (max-width: 620px) { .wr-card--big .wr-fold__img { left: 6%; right: 6%; width: 88%; height: 52%; top: 6%; } .wr-card--big .wr-fold__face { top: 44%; right: 0; } }
.wr-fold:hover .wr-fold__face { transform: translateY(5%); }
.wr-fold__n { grid-column: 1; font: 800 clamp(2.2rem, 3.6vw, 3rem)/1 var(--sans); letter-spacing: -0.04em; color: var(--fink); }
.wr-fold__go { grid-column: 2; align-self: start; margin-top: 0.8rem; font-style: normal; font-size: 0.9rem; color: var(--fsub); transition: transform 0.4s; }
.wr-fold:hover .wr-fold__go { transform: translate(2px, -2px); color: var(--fink); }
.wr-fold__meta { grid-column: 1 / -1; grid-row: 3; margin-bottom: 0.45rem; font: 600 0.62rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fsub); }
.wr-fold__name { grid-column: 1 / -1; grid-row: 4; font: 600 clamp(1rem, 1.5vw, 1.18rem)/1.25 var(--sans); letter-spacing: -0.01em; color: var(--fink); text-wrap: balance; }
.wr-card--big .wr-fold__name { font: 300 clamp(1.5rem, 2.6vw, 2.2rem)/1.08 var(--serif); letter-spacing: -0.02em; }
.wr-fold__text { grid-column: 1 / -1; grid-row: 5; margin-top: 0.35rem; font-size: 0.8rem; line-height: 1.45; color: var(--fsub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wr-card--big .wr-fold__text { font-size: 0.92rem; -webkit-line-clamp: 3; }

/* ── a story ── */
.wr-article { position: relative; max-width: 44rem; margin: 0 auto; padding: clamp(3rem, 9vh, 6rem) 1.25rem 0; }
.wr-back { display: inline-block; margin-bottom: 2.4rem; font-size: 0.82rem; color: rgba(240, 240, 240, 0.6); text-decoration: none; }
.wr-back:hover { color: #fff; }
.wr-kicker { margin: 0 0 1.1rem; font: 500 0.68rem/1.4 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); opacity: 0.85; }
.wr-kicker a { text-decoration: none; }
.wr-kicker a:hover { color: #fff; }
.wr-title { margin: 0; font: 300 clamp(2.4rem, 5.6vw, 4.2rem)/1.02 var(--serif); letter-spacing: -0.035em; color: var(--t1); text-wrap: balance; }
.wr-subtitle { margin: 1.2rem 0 0; font: 300 clamp(1.15rem, 2vw, 1.4rem)/1.45 var(--serif); color: var(--t3); text-wrap: pretty; }
.wr-byline { display: flex; align-items: center; gap: 0.8rem; margin-top: 2.2rem; }
.wr-avatar { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(201, 166, 255, 0.45); font: 300 1.2rem var(--serif); color: var(--ink); text-decoration: none; }
.wr-avatar--lg { width: 3.6rem; height: 3.6rem; font-size: 1.6rem; }
.wr-byline__name { font-size: 0.92rem; font-weight: 600; color: var(--t1); text-decoration: none; }
.wr-byline__name:hover { color: var(--ink); }
.wr-meta { margin: 0.2rem 0 0; font: 500 0.66rem/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); opacity: 0.7; }
.wr-meta b { font-weight: 600; color: #ffd38a; }

/* share: quiet glass pills */
.wr-share { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.wr-share--top { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.wr-share__btn { position: relative; display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); background: var(--glass); color: rgba(240, 240, 240, 0.7); cursor: pointer; text-decoration: none; transition: all 0.25s; }
.wr-share__btn:hover { color: #fff; border-color: rgba(201, 166, 255, 0.5); background: rgba(201, 166, 255, 0.1); }
.wr-share__native { display: none; }
.has-native-share .wr-share__native { display: inline-grid; }
.wr-share__done { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 0.25rem 0.5rem; border-radius: 6px; background: #f0f2f6; color: #12131a; font-size: 0.7rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.wr-share__copy.is-done .wr-share__done { opacity: 1; }

.wr-cover { max-width: 64rem; margin: clamp(2.5rem, 6vh, 4rem) auto 0; padding: 0 1.25rem; }
.wr-cover img { width: 100%; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.wr-cover figcaption, .wr-fig figcaption { margin-top: 0.8rem; text-align: center; font-size: 0.8rem; color: var(--t3); }
.wr-article .wr-cover { padding: 0; margin-left: calc(50% - min(32rem, 50vw - 1.25rem)); margin-right: calc(50% - min(32rem, 50vw - 1.25rem)); max-width: none; }

/* body: the serif, set to read */
.wr-layout { position: relative; }
.wr-body { margin-top: clamp(2.5rem, 6vh, 3.5rem); font-family: var(--serif); font-weight: 400; font-size: clamp(1.1rem, 0.5vw + 1rem, 1.25rem); line-height: 1.75; color: #d6d3db; overflow-wrap: break-word; }
.wr-body > * + * { margin-top: 1.35em; }
.wr-body p { margin-bottom: 0; }
.wr-body h2, .wr-body h3, .wr-body h4 { position: relative; color: var(--t1); }
.wr-body h2 { margin-top: 2.4em; font: 300 1.75em/1.12 var(--serif); letter-spacing: -0.03em; }
.wr-body h3 { margin-top: 2em; font: 600 1.05em/1.3 var(--sans); letter-spacing: -0.01em; }
.wr-body h4 { margin-top: 1.6em; font: 500 0.72em/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.wr-anchor { position: absolute; left: -1.1em; top: 0; width: 1em; color: var(--ink); text-decoration: none; opacity: 0; transition: opacity 0.2s; font-weight: 300; }
.wr-body h2:hover .wr-anchor, .wr-body h3:hover .wr-anchor, .wr-anchor:focus { opacity: 0.7; }
@media (max-width: 760px) { .wr-anchor { display: none; } }
.wr-body a { color: var(--t1); text-decoration: underline; text-decoration-color: rgba(201, 166, 255, 0.55); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.wr-body a:hover { color: var(--ink); }
.wr-body strong { color: var(--t1); font-weight: 600; }
.wr-body ul, .wr-body ol { padding-left: 1.3em; }
.wr-body li + li { margin-top: 0.5em; }
.wr-body li::marker { color: var(--ink); }
.wr-body blockquote { margin: 2em 0; padding: 0 0 0 1.4em; border-left: 1px solid var(--ink); font: 300 italic 1.3em/1.45 var(--serif); color: var(--t1); }
.wr-body hr { border: 0; height: 1px; margin: 3em 0; background: linear-gradient(90deg, rgba(201, 166, 255, 0.34), rgba(255, 255, 255, 0.06)); }
.wr-fig { margin-left: 0; margin-right: 0; }
.wr-body img { border-radius: 14px; }
@media (min-width: 1000px) { .wr-fig { margin-left: -6rem; margin-right: -6rem; } }
.wr-body code { font-family: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace; font-size: 0.82em; padding: 0.12em 0.4em; border-radius: 6px; background: rgba(201, 166, 255, 0.1); color: #e6dcff; }
.wr-body pre { position: relative; padding: 1.2rem 1.4rem; border-radius: 14px; background: rgba(8, 8, 10, 0.7); border: 1px solid var(--line); overflow-x: auto; font-size: 0.85rem; line-height: 1.65; }
.wr-body pre code { padding: 0; background: none; font-size: inherit; color: #ddd; }
.wr-copycode { position: absolute; top: 0.6rem; right: 0.6rem; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(20, 20, 24, 0.9); color: rgba(240, 240, 240, 0.7); font: 500 0.7rem var(--sans); cursor: pointer; opacity: 0; transition: opacity 0.2s; }
.wr-body pre:hover .wr-copycode, .wr-copycode:focus { opacity: 1; }
.wr-body table { width: 100%; border-collapse: collapse; font: 0.82em/1.5 var(--sans); display: block; overflow-x: auto; }
.wr-body th, .wr-body td { padding: 0.75rem 0.9rem 0.75rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.wr-body th { font-weight: 500; font-size: 0.85em; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); opacity: 0.85; }
.wr-body td strong { color: #fff; }
.wr-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.wr-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wr-body mark { background: rgba(201, 166, 255, 0.22); color: #fff; padding: 0 0.15em; border-radius: 3px; }

/* contents, in the margin on wide screens */
.wr-toc { display: none; }
@media (min-width: 1240px) {
  .wr-toc { display: block; position: absolute; top: 0; right: calc(100% + 4rem); width: 13rem; height: 100%; }
  .wr-toc p { position: sticky; top: 6rem; margin: 0; font: 500 0.62rem var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); opacity: 0.75; }
  .wr-toc ol { position: sticky; top: 7.6rem; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
  .wr-toc li a { display: block; margin-left: -1px; padding: 0.35rem 0 0.35rem 0.9rem; border-left: 1px solid transparent; font-size: 0.8rem; line-height: 1.35; color: var(--t3); text-decoration: none; transition: color 0.2s; }
  .wr-toc li.d3 a { padding-left: 1.6rem; font-size: 0.76rem; }
  .wr-toc li a:hover { color: var(--t1); }
  .wr-toc li a.is-on { color: var(--t1); border-left-color: var(--ink); }
}

/* after the story */
.wr-end { margin-top: 4rem; }
.wr-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.wr-end__share { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wr-end__share p { margin: 0; font: 500 0.66rem var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); opacity: 0.8; }
.wr-orig { margin: 1.2rem 0 0; font-size: 0.85rem; color: var(--t3); }
.wr-orig a { color: var(--ink); }
.wr-author { display: flex; gap: 1.2rem; margin-top: 2.6rem; padding: 1.6rem; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.wr-author p { margin: 0.4rem 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--t3); }
.wr-author__by { margin: 0 !important; font: 500 0.62rem var(--sans) !important; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink) !important; opacity: 0.8; }
.wr-author__name { font: 300 1.5rem var(--serif); letter-spacing: -0.02em; color: var(--t1); text-decoration: none; }
.wr-author__links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.8rem !important; }
.wr-author__links a { font-size: 0.82rem; color: rgba(240, 240, 240, 0.7); text-decoration: none; }
.wr-author__links a:hover { color: #fff; }
@media (max-width: 520px) { .wr-author { flex-direction: column; } }
.wr-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.wr-pager a { display: block; padding: 1.2rem 1.3rem; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: var(--t1); font: 300 1.1rem/1.3 var(--serif); transition: border-color 0.25s, background 0.25s; }
.wr-pager a:hover { border-color: rgba(201, 166, 255, 0.45); background: var(--glass); }
.wr-pager span { display: block; margin-bottom: 0.5rem; font: 500 0.62rem var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); opacity: 0.8; }
.wr-pager__next { text-align: right; grid-column: 2; }
@media (max-width: 520px) { .wr-pager { grid-template-columns: 1fr; } .wr-pager__next { grid-column: 1; } }
.wr-more { position: relative; max-width: 72rem; margin: 6rem auto 0; padding: 4rem var(--gutter) 0; }
.wr-more::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: linear-gradient(90deg, rgba(201, 166, 255, 0.34), rgba(255, 255, 255, 0.05)); }
.wr-more h2 { margin: 0 0 2rem; font: 300 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--serif); letter-spacing: -0.03em; color: var(--t1); }

/* select a passage to share it */
.wr-pop { position: absolute; z-index: 40; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(24, 22, 30, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); transform: translate(-50%, -100%); }
.wr-pop[hidden] { display: none; }
.wr-pop button { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 0; border-radius: 50%; background: none; color: #f0f0f0; cursor: pointer; }
.wr-pop button:hover { background: rgba(201, 166, 255, 0.18); }

/* footer */
.wr-foot { margin-top: 7rem; padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; font-size: 0.78rem; color: var(--t3); }
.wr-foot p { margin: 0; }
.wr-foot a { color: rgba(240, 240, 240, 0.7); text-decoration: none; }
.wr-foot a:hover { color: #fff; }

@media print {
  .wr-top, .wr-progress, .wr-share, .wr-end__share, .wr-more, .wr-pager, .wr-foot, .wr-pop, .wr-toc { display: none !important; }
  body.wr::before, body.wr::after { display: none; }
  body.wr, .wr-body, .wr-title { color: #000; background: #fff; }
}
