/* The editorial overlays (Bloggen, Om oss): the old revify.no pages (styles.css, blog-editorial.css) laid over the 3D
   stop. Ink, bone, one orange; Fraunces + Inter. Shared verbatim with the prerendered article pages, which render the
   same markup without JavaScript (no data-state / data-reveal: everything visible, solid veil). */
.blog-v7 {
  --ed-ink: #0b0907; --ed-bone: #f0eee8; --ed-dim: #cdc8bc; --ed-mist: #a39c90; --ed-acc: #ff7a2f;
  --ed-line: rgba(240, 238, 232, .14);
  --ed-g: clamp(24px, 4.7vw, 72px);
  --ed-out: cubic-bezier(.23, 1, .32, 1); --ed-expo: cubic-bezier(.19, 1, .22, 1);
  position: fixed; inset: 0; z-index: 7;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  color: var(--ed-bone); font: 400 16px/1.55 var(--sans, "Inter", system-ui, sans-serif);
  scroll-timeline: --ed block;
  scrollbar-width: thin; scrollbar-color: #6c655b transparent;
  color-scheme: dark; text-shadow: none;
  transition: opacity 240ms var(--ed-out);
}
.blog-v7[hidden] { display: none !important; }
.blog-v7 *, .blog-v7 *::before, .blog-v7 *::after { box-sizing: border-box; }
.blog-v7 ::selection { color: var(--ed-ink); background: var(--ed-acc); }
.blog-v7 :focus-visible { outline: 2px solid var(--ed-acc); outline-offset: 4px; }
.blog-v7 h1:focus { outline: none; }
.blog-v7 a { color: inherit; }
.blog-v7 img, .blog-v7 video { display: block; max-width: 100%; }

/* ---------- the layer over the world: a veil (lighter where the hero sits), the edge under the header, the way out */
.ed-veil { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 9, 12, .34), rgba(9, 8, 7, .6) 55%, rgba(11, 9, 7, .84));
  -webkit-backdrop-filter: blur(9px) saturate(.92); backdrop-filter: blur(9px) saturate(.92);
  transition: opacity 420ms var(--ed-out); }
html[data-blog-v7-static] .ed-veil { background: var(--ed-ink); }
.ed-edge { position: fixed; inset: 0 0 auto; height: 124px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 8, 7, .97), rgba(9, 8, 7, .9) 58%, rgba(9, 8, 7, 0)); }
/* the header band only arrives once the page scrolls under it (the old header's .scrolled state) */
@supports (animation-timeline: --ed) {
  .blog-v7[data-state="open"] .ed-edge { animation: ed-edge linear both; animation-timeline: --ed; animation-range: 0 140px; }
  @keyframes ed-edge { from { opacity: 0; } }
}
.ed-close { position: fixed; top: 92px; right: 64px; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 14px 10px 18px; border: 1px solid rgba(240, 238, 232, .26); border-radius: 999px;
  background: rgba(11, 9, 7, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ed-bone); font: 600 13px/1 var(--sans, "Inter", sans-serif); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ed-out); }
.ed-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ed-close:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .ed-close:hover { border-color: var(--ed-bone); background: rgba(11, 9, 7, .8); } }
.ed-page { position: relative; z-index: 1; transition: opacity 420ms var(--ed-out) 40ms, transform 520ms var(--ed-expo) 40ms, filter 420ms var(--ed-out) 40ms; }

/* enter (from nothing) and leave (faster) */
.blog-v7[data-state="enter"] .ed-veil, .blog-v7[data-state="enter"] .ed-edge, .blog-v7[data-state="enter"] .ed-close { opacity: 0; transition: none; }
.blog-v7[data-state="enter"] .ed-page { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: none; }
.blog-v7 .ed-edge, .blog-v7 .ed-close { transition: opacity 420ms var(--ed-out), border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ed-out); }
.blog-v7[data-state="closing"] { opacity: 0; pointer-events: none; }
/* a page swap inside the open reader (list ↔ article) rises in */
.blog-v7[data-state="open"] .ed-page { animation: ed-rise 460ms var(--ed-expo) both; }
@keyframes ed-rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- type (old styles.css) */
.ed-hero { position: relative; z-index: 1; min-height: 78svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22vh var(--ed-g) 9vh; }
.ed-kicker { margin: 0 0 26px; font: 700 12px/1.6 var(--sans, "Inter", sans-serif); letter-spacing: .28em; text-transform: uppercase; color: var(--ed-dim); }
.ed-kicker a { color: var(--ed-acc); text-decoration: none; }
.ed-display { margin: 0; font: 600 clamp(2.9rem, 7.4vw, 7.2rem)/.98 var(--display, "Fraunces", Georgia, serif);
  letter-spacing: -.03em; font-optical-sizing: auto; text-wrap: balance; color: var(--ed-bone); }
.ed-display em, .ed-giant em { font-style: italic; color: var(--ed-acc); }
.ed-lede { margin: 26px 0 0; max-width: 46ch; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--ed-dim); }
.ed-giant { margin: 0; font: 600 clamp(2.2rem, 5vw, 4.4rem)/1.02 var(--display, "Fraunces", Georgia, serif); letter-spacing: -.025em; text-wrap: balance; }
.ed-lead { margin: 18px 0 0; max-width: 52ch; font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.6; color: var(--ed-dim); }
.ed-lead.dim { color: var(--ed-mist); }
.ed-lead a { color: var(--ed-bone); text-decoration: none; border-bottom: 1px solid rgba(240, 238, 232, .35); transition: color 200ms ease, border-color 200ms ease; }
.ed-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; font: 800 12px/1 var(--sans, "Inter", sans-serif);
  letter-spacing: .34em; text-transform: uppercase; color: var(--ed-acc); }
.ed-eyebrow::before { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .8; }
.ed-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .ed-lead a:hover { color: var(--ed-acc); border-color: var(--ed-acc); } }

/* the bands carry their own ink, like the old page's sections over its scene */
.ed-band { position: relative; z-index: 1; padding: clamp(80px, 10vw, 150px) max(var(--ed-g), calc((100% - 1180px) / 2)); background: rgba(11, 9, 7, .74); }
.ed-band + .ed-band { padding-top: 0; }
/* the first band after the open hero fades in from the veil instead of starting on a hard edge */
.catalog::before, .post-body::before, .about-two::before { content: ""; position: absolute; inset: auto 0 100%; height: 140px; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 9, 7, 0), rgba(11, 9, 7, .74)); }
.ed-narrow { padding-inline: max(var(--ed-g), calc((100% - 820px) / 2)); }
.ed-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }
.blog-v7 .btn { display: inline-flex; align-items: center; min-height: 48px; padding: 14px 22px; font: 600 14px/1 var(--sans, "Inter", sans-serif); text-decoration: none; border-radius: 999px; }
.blog-v7 .btn.primary { background: var(--ed-acc); color: #120b06; border: 1px solid transparent; }
.blog-v7 .btn.ghost { border: 1px solid rgba(240, 238, 232, .32); background: rgba(11, 9, 7, .35); color: var(--ed-bone); }
@media (hover: hover) and (pointer: fine) { .blog-v7 .btn.ghost:hover { border-color: var(--ed-bone); } .blog-v7 .btn.primary:hover { background: #ff8c4a; } }
.ed-cta { padding-bottom: clamp(110px, 14vw, 190px); }

/* the old reveal: blocks rise once as they enter; images wipe in */
.blog-v7[data-reveal] .rv:not(.in), .blog-v7[data-reveal] .post-card:not(.in) { opacity: 0; transform: translateY(18px); }
.blog-v7 .rv, .blog-v7 .post-card { transition: opacity 900ms var(--ed-expo), transform 1000ms var(--ed-expo); transition-delay: calc(var(--i, 0) * 70ms); }
.blog-v7[data-reveal] .tilt.rv:not(.in) img, .blog-v7[data-reveal] .person.rv:not(.in) img, .blog-v7[data-reveal] .about-film.rv:not(.in) video { clip-path: inset(0 100% 0 0); }
.blog-v7 .tilt img, .blog-v7 .person img, .blog-v7 .about-film video { clip-path: inset(0); transition: clip-path 1.1s var(--ed-expo) .12s, transform 1.2s var(--ed-expo); }

/* ---------- Bloggen: the catalog (old Blog.tsx) */
.catalog { padding-top: clamp(40px, 6vw, 80px); }
.catalog-filters { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .3vw 1.8vw; margin: 0 0 30px; }
.filter-link { position: relative; padding: 6px 0 calc(6px + .25vw); border: 0; background: none; cursor: pointer;
  font: 600 clamp(15px, 1.35vw, 22px)/1.2 var(--display, "Fraunces", Georgia, serif); letter-spacing: -.02em; white-space: nowrap; color: var(--ed-mist);
  transition: color 200ms ease; }
.filter-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--ed-acc);
  transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ed-out); }
.filter-link[aria-pressed="true"] { color: var(--ed-bone); }
.filter-link[aria-pressed="true"]::after { transform: none; }
@media (hover: hover) and (pointer: fine) { .filter-link:hover { color: var(--ed-bone); } }
.catalog-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 26px; }
.blog-v7-count { margin: 0 auto 0 0; font: 700 12px/1 var(--sans, "Inter", sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-mist); font-variant-numeric: tabular-nums; }
.catalog-search { position: relative; display: flex; align-items: center; width: min(300px, 100%); }
.catalog-search svg { position: absolute; left: 13px; width: 16px; height: 16px; fill: none; stroke: var(--ed-mist); stroke-width: 2; pointer-events: none; }
.catalog-search input, .catalog-sort select { height: 44px; border: 1px solid rgba(240, 238, 232, .2); border-radius: 12px; background-color: rgba(240, 238, 232, .06);
  color: var(--ed-bone); font: 400 14px/1 var(--sans, "Inter", sans-serif); padding: 0 12px; caret-color: var(--ed-acc); transition: border-color 160ms ease; }
.catalog-search input { width: 100%; padding-left: 38px; }
.catalog-search input::placeholder { color: var(--ed-mist); }
.catalog-search input:focus-visible, .catalog-sort select:focus-visible { outline: none; border-color: var(--ed-acc); }
.catalog-sort select { appearance: none; padding-right: 32px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ed-mist) 50%), linear-gradient(135deg, var(--ed-mist) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.catalog-sort select option { color: #111; }
.catalog-empty { margin: 40px 0; color: var(--ed-mist); }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px;
  transition: opacity 300ms var(--ed-out), transform 300ms var(--ed-out), filter 300ms var(--ed-out); }
.post-grid[data-fade="out"] { opacity: 0; transform: scale(.97); filter: blur(10px); }
.post-card a { display: block; text-decoration: none; color: inherit; border-radius: 14px; }
.post-cover { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--ed-line); background: #0b0907;
  transition: transform 600ms var(--ed-out), border-color 300ms ease; }
.post-cover[data-tone="paper"] { background: #eee9df; }
.post-cover[data-tone="photo"] { background: #18201f; }
.post-cover img { width: 100%; height: 100%; object-fit: contain; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 16px 0 8px; font: 700 12px/1.4 var(--sans, "Inter", sans-serif); letter-spacing: .06em; text-transform: uppercase; color: var(--ed-mist); font-variant-numeric: tabular-nums; }
.post-card h2 { margin: 14px 0 8px; font: 600 1.35rem/1.15 var(--display, "Fraunces", Georgia, serif); letter-spacing: -.015em; text-wrap: balance; transition: color 240ms ease; }
.post-card .post-meta + h2 { margin-top: 0; }
.post-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ed-dim); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.post-tags span { padding: 4px 9px; border: 1px solid var(--ed-line); border-radius: 999px; font: 500 11px/1.2 var(--sans, "Inter", sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--ed-mist); }
.post-card a:focus-visible { outline-offset: 6px; }
@media (hover: hover) and (pointer: fine) {
  .post-card a:hover .post-cover { transform: translateY(-4px); border-color: rgba(255, 122, 47, .5); }
  .post-card a:hover h2 { color: var(--ed-acc); }
}

/* ---------- Bloggen: the article (old Post.tsx) */
.read-bar { position: fixed; inset: 0 0 auto; height: 2px; z-index: 4; pointer-events: none; }
.read-bar i { display: block; height: 100%; background: var(--ed-acc); box-shadow: 0 0 12px rgba(255, 122, 47, .55); transform-origin: left; transform: scaleX(0);
  animation: ed-read linear both; animation-timeline: --ed; }
@keyframes ed-read { to { transform: scaleX(1); } }
@supports not (animation-timeline: --ed) { .read-bar { display: none; } }
.ed-hero.post-head { min-height: 0; display: block; padding: clamp(150px, 15vw, 200px) max(var(--ed-g), calc((100% - 960px) / 2)) clamp(34px, 5vw, 64px); }
.post-head .ed-kicker { font-size: 11px; line-height: 1.65; color: #b9b4aa; }
.post-head .ed-display { max-width: 24ch; margin: 22px 0; font-size: clamp(2.1rem, 5.2vw, 4.7rem); line-height: 1.06; }
.post-head .ed-lede { max-width: 62ch; margin: 0; font-size: clamp(1.05rem, 1.45vw, 1.2rem); line-height: 1.6; }
.post-head .post-tags { margin-top: 22px; }
.post-figure { position: relative; z-index: 1; width: min(1100px, calc(100% - 2 * var(--ed-g))); margin: 0 auto clamp(46px, 6vw, 80px); }
.post-figure img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #0b0907; border-radius: 6px; }
.post-figure[data-tone="paper"] img { background: #eee9df; }
.post-figure[data-tone="photo"] img { background: #18201f; }
.post-figure figcaption { max-width: 72ch; margin-top: 14px; font-size: 13px; line-height: 1.6; color: #b9b4aa; }
.post-figure figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; } /* launch-site: the case link */
.post-body { padding-top: clamp(56px, 7vw, 96px); }
.ed-prose { max-width: 68ch; margin: 0 auto; font-size: clamp(1.0625rem, 1.3vw, 1.2rem); line-height: 1.75; color: var(--ed-dim); overflow-wrap: break-word; }
.ed-prose > :first-child { margin-top: 0; }
.ed-prose p { margin: 0 0 1.35em; }
.ed-prose h2 { margin: 2.2em 0 .7em; font: 600 clamp(1.5rem, 2.4vw, 2.1rem)/1.1 var(--display, "Fraunces", Georgia, serif); letter-spacing: -.02em; color: var(--ed-bone); text-wrap: balance; }
.ed-prose ul { margin: 0 0 1.4em 1.2em; padding: 0; display: grid; gap: .45em; }
.ed-prose li::marker { color: var(--ed-acc); }
.ed-prose strong { color: var(--ed-bone); font-weight: 600; }
.ed-prose a { color: var(--ed-bone); text-decoration: none; border-bottom: 1px solid rgba(240, 238, 232, .35); }
.ed-prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 1px solid var(--ed-acc); font: 500 1.25em/1.5 var(--display, "Fraunces", Georgia, serif); color: var(--ed-bone); }
@media (hover: hover) and (pointer: fine) { .ed-prose a:hover { color: var(--ed-acc); border-color: var(--ed-acc); } }
.related { padding-top: clamp(64px, 8vw, 110px) !important; }
.post-grid.three .post-card h2 { margin-top: 18px; }
.ed-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 48px; color: var(--ed-bone); text-decoration: none;
  font: 600 14px/1 var(--sans, "Inter", sans-serif); border-bottom: 1px solid rgba(240, 238, 232, .35); transition: color 200ms ease, border-color 200ms ease; }
.ed-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--ed-out); }
@media (hover: hover) and (pointer: fine) { .ed-back:hover { color: var(--ed-acc); border-color: var(--ed-acc); } .ed-back:hover svg { transform: translateX(-3px); } }

/* ---------- Om oss (old Om.tsx) */
.about-ed .ed-hero { min-height: 64svh; }
.about-film { position: relative; z-index: 1; width: min(1180px, calc(100% - 2 * var(--ed-g))); margin: 0 auto clamp(64px, 8vw, 110px); }
.about-film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: #120f0c; filter: saturate(.92) contrast(1.04); }
.about-film figcaption { margin-top: 12px; font-size: 12px; color: var(--ed-mist); }
.about-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; padding-top: clamp(80px, 10vw, 150px) !important; }
.tilt { margin: 0; overflow: hidden; border-radius: 16px; }
.tilt img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .tilt:hover img { transform: scale(1.02); } }
.about-does { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.about-does li { padding-top: 22px; border-top: 1px solid var(--ed-line); }
.about-does h3 { margin: 0 0 12px; font: 600 1.5rem/1.15 var(--display, "Fraunces", Georgia, serif); letter-spacing: -.01em; }
.about-does p { margin: 0; color: var(--ed-dim); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 40px; margin-top: 44px; }
.person { margin: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; margin-bottom: 18px; }
.person figcaption { display: grid; gap: 4px; }
.person .n { font: 700 11px/1.4 var(--sans, "Inter", sans-serif); letter-spacing: .3em; color: var(--ed-acc); }
.person b { font: 600 1.4rem/1.2 var(--display, "Fraunces", Georgia, serif); letter-spacing: -.01em; }
.person span:not(.n) { font-size: 13px; color: var(--ed-mist); }
.person p { margin: 8px 0 0; font-size: 14px; color: var(--ed-dim); }
.person a { width: max-content; margin-top: 8px; font-size: 13px; color: var(--ed-bone); text-decoration: none; border-bottom: 1px solid var(--ed-line); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.gallery figure:nth-child(2n) { margin-top: 32px; }

/* ---------- small screens */
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .blog-v7 { --ed-g: 20px; }
  .ed-close { top: 76px; right: 16px; padding: 9px 12px 9px 15px; }
  .ed-edge { height: 122px; }
  .ed-hero { min-height: 70svh; padding: 140px var(--ed-g) 56px; }
  .ed-display { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .ed-hero.post-head { padding-top: 140px; }
  .post-head .ed-display { font-size: clamp(2rem, 9vw, 2.6rem); margin: 18px 0; }
  .ed-band { padding-block: 72px; }
  .catalog-filters { justify-content: flex-start; gap: 2px 18px; }
  .catalog-tools { flex-wrap: wrap; }
  .blog-v7-count { width: 100%; margin-bottom: 6px; }
  .catalog-search { flex: 1; width: auto; }
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .post-figure figcaption { font-size: 12px; }
  .about-ed .ed-hero { min-height: 58svh; }
  .about-two, .about-does, .team { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .ed-page, .post-grid, .blog-v7 .rv, .blog-v7 .post-card, .post-cover, .filter-link::after { transition: opacity 200ms ease !important; transform: none !important; filter: none !important; }
  .blog-v7[data-state="open"] .ed-page { animation: none; }
  .blog-v7 .tilt img, .blog-v7 .person img, .blog-v7 .about-film video { clip-path: none !important; transition: none; }
}
@media (prefers-reduced-transparency: reduce) { .ed-veil { background: rgba(11, 9, 7, .96); -webkit-backdrop-filter: none; backdrop-filter: none; } }
html[data-blog-v7-open] #stats { display: none !important; }
/* perf loading b2 (owner 13.11: the wait is always covered by the loader): a post read before the world is ready keeps the
   loader's progress beside the text, in the corner over the post (was: the loader hidden); closing the post gives the full
   loader back (the route flag goes), and the world's reveal removes it as before */
html[data-blog-v7-route] #loader { z-index: 8; background: transparent; pointer-events: none; }
html[data-blog-v7-route] #loader > :not(.ld-pct) { display: none !important; }
html[data-blog-v7-route] #loader .ld-pct { left: auto; right: clamp(20px, 4.4vw, 64px); bottom: 28px; transform: none; padding: 8px 14px; border-radius: 999px; background: rgba(11, 9, 7, .78); }
html[data-blog-v7-static] body { overflow: hidden; }
@media print {
  .blog-v7 { position: static; overflow: visible; color: #111; }
  .ed-veil, .ed-edge, .ed-close, .read-bar, .related, .ed-cta { display: none; }
  body > :not(.blog-v7) { display: none !important; }
}

/* ================================================================ next-level interface, stage C, group 2 (12.11.2026)
   The reading pages are the same site as the village: its night, its one curve, its label type, 1 px lines, one orange
   thing on screen (the pill at the end), no blur and no glass. And they are for reading first: one left edge under the
   wordmark for everything, a measure of about 68 characters, headings and pictures that arrive once.
   This section stands last on purpose: its rules win over the ones above (the file is shared with the prerendered pages). */
.blog-v7 { --ed-out: cubic-bezier(.65, .05, 0, 1); --ed-expo: cubic-bezier(.65, .05, 0, 1); --ed-io: cubic-bezier(.65, .05, 0, 1);
  --ed-ink: #070c16; --ed-hair: rgba(240, 238, 232, .32); --ed-quiet: rgba(240, 238, 232, .66);
  --ed-label: 500 11px/1 var(--display, "Archivo Wide", Archivo, system-ui, sans-serif); scrollbar-color: #4b5361 transparent; }

/* ---- the layer over the world: the site's own night, no blur. The garden still shows faintly at the top of a page */
.ed-veil { background: linear-gradient(180deg, rgba(5, 8, 14, .88), rgba(5, 8, 14, .95) 48%, rgba(5, 8, 14, .97)); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ed-edge { background: linear-gradient(180deg, rgba(5, 8, 14, .98), rgba(5, 8, 14, .92) 58%, rgba(5, 8, 14, 0)); }
.ed-band { padding: clamp(64px, 8vw, 120px) var(--ed-g); background: none; }
.catalog::before, .post-body::before { content: none; }
.blog-v7[data-state="enter"] .ed-page { transform: translateY(16px); filter: none; }
.ed-page { transition: opacity 420ms var(--ed-io) 40ms, transform 520ms var(--ed-io) 40ms; }
.post-grid { transition: opacity 300ms var(--ed-io); }
.post-grid[data-fade="out"] { transform: none; filter: none; }

/* ---- the way out: a line pill like «Meny» (44 px, radius 22, 1 px); pointing at it turns its cross */
.ed-close { height: 44px; min-height: 44px; padding: 0 16px 0 20px; gap: 12px; border: 0; border-radius: 22px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 0 0 1px var(--ed-hair); font: var(--ed-label); letter-spacing: .14em; text-transform: uppercase; }
.blog-v7 .ed-close { transition: opacity 420ms var(--ed-io), transform 250ms var(--ed-io); }
.ed-close svg { width: 14px; height: 14px; transition: transform 450ms var(--ed-io); }
@media (hover: hover) and (pointer: fine) { .ed-close:hover { background: none; } .ed-close:hover svg { transform: rotate(90deg); } }
.ed-close:focus-visible svg { transform: rotate(90deg); }

/* ---- how far the reader has come: the ruler's own 1 px line */
.read-bar { height: 1px; }
.read-bar i { box-shadow: none; }
.read-bar[data-js] { display: block; }
.read-bar[data-js] i { animation: none; will-change: transform; }

/* ---- type: the village's headline scale and label type; everything on one left edge */
.ed-hero { min-height: 0; display: block; padding: clamp(140px, 12vw, 180px) var(--ed-g) clamp(36px, 4.5vw, 56px); }
.ed-hero.post-head { padding: clamp(140px, 12vw, 176px) var(--ed-g) clamp(28px, 4vw, 44px); }
.blog-v7 .ed-kicker, .blog-v7 .post-head .ed-kicker { margin: 0 0 22px; font: var(--ed-label); line-height: 1.7; letter-spacing: .14em; color: var(--ed-quiet); }
.ed-kicker a { color: var(--ed-bone); border-bottom: 1px solid var(--ed-hair); transition: border-color 300ms var(--ed-io); }
.ed-display { font: 600 clamp(2.5rem, 4.4vw, 4.25rem)/1.04 var(--display, "Archivo Wide", Archivo, system-ui, sans-serif); letter-spacing: -.025em; }
.ed-display em, .ed-giant em { font-style: normal; color: inherit; }
.post-head .ed-display { max-width: 20ch; margin: 18px 0 22px; font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.08; }
/* next-level polish: the list's headline keeps the old page's expression, as Om oss got back (world-about.css): the old
   size and its second line in the orange italic. Article titles keep the line above. */
.blog-ed .ed-hero .ed-display { font-size: clamp(2.9rem, 7.4vw, 7.2rem); line-height: .98; letter-spacing: -.03em; }
.blog-ed .ed-hero .ed-display em { font-style: italic; color: var(--ed-acc); }
.blog-ed .ed-hero .ed-display.lm .ln + .ln { margin-top: -.31em; } /* the masks' padding nets out between the two lines too (the two negative margins collapse to one): the old page's line spacing */
.ed-lede { max-width: 54ch; margin-top: 22px; font-size: clamp(1.05rem, 1.25vw, 1.2rem); }
.post-head .ed-lede { max-width: 58ch; font-size: clamp(1.05rem, 1.25vw, 1.2rem); }
.ed-giant { font: 600 clamp(2rem, 3.6vw, 3.4rem)/1.06 var(--display, "Archivo Wide", Archivo, system-ui, sans-serif); letter-spacing: -.025em; }
.blog-v7 .ed-eyebrow { gap: 14px; margin: 0 0 28px; font: var(--ed-label); letter-spacing: .14em; color: var(--ed-quiet); }
.ed-eyebrow::before { width: 28px; opacity: .6; }
.post-tags { gap: 6px 20px; }
.post-tags span { padding: 0; border: 0; border-radius: 0; font: var(--ed-label); line-height: 1.4; letter-spacing: .14em; }
.post-meta { font: var(--ed-label); line-height: 1.5; letter-spacing: .14em; }
.blog-v7-count { font: var(--ed-label); letter-spacing: .14em; }

/* ---- the article: picture, then the text on a measure made for reading */
.post-figure { width: auto; max-width: 1100px; margin: 0 var(--ed-g) clamp(40px, 4.5vw, 60px); }
.post-figure img { border-radius: 4px; }
.post-figure figcaption { margin-top: 12px; font-size: 12px; color: var(--ed-mist); }
.post-body { padding-top: 0; }
.ed-prose { max-width: 52ch; margin: 0; font-size: clamp(1.0625rem, 1.22vw, 1.1875rem); line-height: 1.72; }
.blog-v7 .ed-prose h2 { margin: 2.4em 0 .8em; font: 600 clamp(1.4rem, 2vw, 1.85rem)/1.16 var(--display, "Archivo Wide", Archivo, system-ui, sans-serif); letter-spacing: -.02em; }
.ed-prose ul { margin: 0 0 1.4em; list-style: none; }
.ed-prose li { position: relative; padding-left: 30px; }
.ed-prose li::before { content: ""; position: absolute; left: 0; top: .86em; width: 14px; height: 1px; background: rgba(240, 238, 232, .5); } /* a tick, as on the ruler */
.ed-prose a { border-bottom-color: rgba(240, 238, 232, .4); transition: border-color 300ms var(--ed-io); }
@media (hover: hover) and (pointer: fine) { .ed-prose a:hover, .ed-kicker a:hover, .post-figure figcaption a:hover { color: var(--ed-bone); border-color: var(--ed-bone); } }

/* ---- headings and pictures arrive once as they come into view (editorial-v7.ts revealIn: seen is seen) */
.blog-v7[data-reveal] .rv:not(.in), .blog-v7[data-reveal] .post-card:not(.in) { transform: translateY(14px); }
.blog-v7 .rv, .blog-v7 .post-card { transition: opacity 700ms var(--ed-io), transform 900ms var(--ed-io); }
/* motion fix (9): the title and the headings in line masks (blog-v7.ts dress): the title 900 ms, 90 ms apart, 120 ms after
   the sheet; a heading 700 ms, 60 ms apart, when it comes into view (in place of the 14 px fade-up) */
.blog-v7 .lm .ln { display: block; overflow: hidden; overflow: visible clip; padding: .16em .06em .15em; margin: -.16em -.06em -.15em; }
.blog-v7 .lm .ln > span { display: block; will-change: transform; }
.blog-v7[data-state="open"] #blog-v7-title.lm .ln > span { animation: ed-line 900ms var(--ed-io) calc(120ms + var(--k, 0) * 90ms) both; }
.blog-v7[data-reveal] .ed-prose h2.lm.rv { opacity: 1; transform: none; transition: none; }
.blog-v7[data-reveal] .ed-prose h2.lm.rv:not(.in) .ln > span { transform: translateY(110%); }
.blog-v7[data-reveal] .ed-prose h2.lm.rv.in .ln > span { animation: ed-line 700ms var(--ed-io) calc(var(--k, 0) * 60ms) both; }
@keyframes ed-line { from { transform: translateY(110%); } to { transform: none; } }
/* motion fix (D + 9, second pass): in a swap the sheet is already there: the title rises first (-200 ms, past its curve's
   flat start: -300 ms, below; it waits one frame for its masks), the rest of the page rises 150 ms later (title, then text). With the
   review's 180 ms + 460 ms page rise + the title at 120 ms the sheet stood empty 200 ms and the title came after its text */
.blog-v7[data-swapped][data-state="open"] .ed-page { animation: none; }
.blog-v7[data-swapped][data-state="open"] :is(.ed-page > :not(.ed-hero), .ed-hero > :not(h1)) { animation: ed-rise 460ms var(--ed-expo) 150ms both; }
.blog-v7[data-swapped][data-state="open"] #blog-v7-title.lm .ln > span { animation-delay: calc(-300ms + var(--k, 0) * 90ms); } /* -300 ms: at -200 ms (the review's value) the strip still showed the sheet empty about 170 ms (the curve is flat for its first quarter) */
.blog-v7[data-swapped] #blog-v7-title:not(.lm) { opacity: 0; }

/* ---- the list: filters are words with a line; a card's picture moves inside its frame; nothing turns orange */
.catalog { padding-top: clamp(24px, 3vw, 40px); }
.catalog-filters { justify-content: flex-start; gap: 0 28px; margin: 0 0 18px; }
.filter-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font: var(--ed-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-quiet); transition: color 300ms var(--ed-io); }
.filter-link::after { bottom: 11px; height: 1px; background: var(--ed-bone); transition: transform 450ms var(--ed-io); }
@media (hover: hover) and (pointer: fine) { .filter-link:hover::after { transform: none; } }
.catalog-search input, .catalog-sort select { border-radius: 22px; border-color: var(--ed-hair); background-color: transparent; padding: 0 18px; transition: border-color 300ms var(--ed-io); }
.catalog-search input { padding-left: 42px; }
.catalog-search svg { left: 17px; stroke-width: 1.6; }
.catalog-sort select { padding-right: 36px; background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; }
.catalog-search input:focus-visible, .catalog-sort select:focus-visible { border-color: var(--ed-bone); outline: 2px solid var(--ed-acc); outline-offset: 3px; }
.post-grid { gap: 48px 28px; }
.post-card a { border-radius: 4px; }
.post-cover { border-radius: 4px; transition: none; }
.post-cover img { transition: transform 900ms var(--ed-io); }
.post-card h2 { margin: 16px 0 8px; font: 600 1.2rem/1.2 var(--display, "Archivo Wide", Archivo, system-ui, sans-serif); letter-spacing: -.015em; transition: none; }
@media (hover: hover) and (pointer: fine) {
  .post-card a:hover .post-cover { transform: none; border-color: var(--ed-line); }
  .post-card a:hover .post-cover img { transform: scale(1.035); }
  .post-card a:hover h2 { color: inherit; }
  /* motion fix (10): the card answers in the site's link language: the title's 1 px line draws, «Les →» enters beside the
     meta, the picture scales in 700 ms */
  .post-cover img { transition-duration: 700ms; }
  .post-card h2 { position: relative; }
  .post-card h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ed-bone); transform: scaleX(0); transform-origin: left; transition: transform 450ms var(--ed-io); }
  .post-card a:hover h2::after { transform: scaleX(1); transition-delay: 90ms; }
  .post-card .post-meta { position: relative; }
  .post-card .post-meta::after { content: "Les \2192" / ""; /* perf frames (item 12): was a U+0011 control character + "92" (the escape lost its 2): 30-60 ms of forced layout at the list's first open, and a wrong label */ position: absolute; right: 0; top: 0; color: var(--ed-bone); opacity: 0; transform: translateX(-8px); transition: opacity 400ms var(--ed-io), transform 400ms var(--ed-io); }
  .post-card a:hover .post-meta::after { opacity: 1; transform: none; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) { .post-card h2::after, .post-card .post-meta::after { transform: none !important; transition: opacity 180ms linear; } .post-card h2::after { opacity: 0; } .post-card a:hover h2::after { opacity: 1; } } /* motion fix (10) */

/* ---- the end of an article: what to read next, the two ways back, then the one orange thing */
.related { padding-top: clamp(56px, 7vw, 96px) !important; margin-top: clamp(56px, 7vw, 96px); }
.related::before { content: ""; position: absolute; left: var(--ed-g); right: var(--ed-g); top: 0; height: 1px; background: var(--ed-line); }
.ed-back, .blog-v7 .btn.ghost { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; height: 44px; margin-top: 40px; padding: 0; border: 0; border-radius: 0; background: none;
  color: var(--ed-bone); font: 500 13px/1 var(--display, "Archivo Wide", Archivo, system-ui, sans-serif); letter-spacing: 0; text-transform: none; text-decoration: none; }
.ed-back + .ed-back { margin-left: 36px; }
.blog-v7 .btn.ghost { margin-top: 0; }
:is(.ed-back, .blog-v7 .btn.ghost)::before, :is(.ed-back, .blog-v7 .btn.ghost)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; transition: transform 450ms var(--ed-io); }
:is(.ed-back, .blog-v7 .btn.ghost)::before { background: rgba(240, 238, 232, .4); transform-origin: right; }
:is(.ed-back, .blog-v7 .btn.ghost)::after { background: var(--ed-bone); transform: scaleX(0); transform-origin: left; }
.ed-back svg { width: 14px; height: 14px; transition: transform 450ms var(--ed-io); }
@media (hover: hover) and (pointer: fine) {
  :is(.ed-back, .blog-v7 .btn.ghost):hover { color: var(--ed-bone); border-color: transparent; }
  :is(.ed-back, .blog-v7 .btn.ghost):hover::before { transform: scaleX(0); }
  :is(.ed-back, .blog-v7 .btn.ghost):hover::after { transform: scaleX(1); transition-delay: 90ms; }
  .ed-back:hover svg { transform: translateX(-4px); }
}
.ed-ctas { gap: 12px 28px; align-items: center; margin-top: 30px; }
.blog-v7 .btn.primary { position: relative; justify-content: center; height: 44px; min-height: 44px; padding: 0 24px; border: 0; border-radius: 22px; background: var(--ed-acc); color: #140b05;
  font: 600 11px/1 var(--display, "Archivo Wide", Archivo, system-ui, sans-serif); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: transform 200ms var(--ed-io); }
.blog-v7 .btn.primary:active { transform: scale(.97); transition-duration: 100ms; transition-timing-function: cubic-bezier(.2,.8,.2,1); } /* motion fix (12) */
.blog-v7 .btn.primary:focus-visible { outline: 2px solid var(--ed-bone); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .blog-v7 .btn.primary:hover { background: var(--ed-acc); } }
.ed-cta { padding-bottom: clamp(96px, 12vw, 160px); }

/* ---- the way out keeps a column of its own at the right: nothing on the page passes under it */
@media (min-width: 761px) { .ed-band, .ed-hero, .ed-hero.post-head { padding-right: 168px; } .post-figure { margin-right: 168px; } .related::before { right: 168px; } }

/* ---- small screens: one column, so the way out stands on the band under the header (held dark down to the pill's foot) */
@media (max-width: 760px) {
  .ed-edge { height: 134px; background: linear-gradient(180deg, rgba(5, 8, 14, .98), rgba(5, 8, 14, .97) 88%, rgba(5, 8, 14, 0)); }
  .ed-close { top: 76px; right: 16px; height: 40px; min-height: 40px; padding: 0 12px 0 16px; border-radius: 20px; }
  .ed-hero, .ed-hero.post-head { padding: 132px var(--ed-g) 28px; }
  .ed-display { font-size: clamp(2.2rem, 10vw, 3rem); }
  .post-head .ed-display { font-size: clamp(1.75rem, 7.6vw, 2.3rem); margin: 14px 0 18px; }
  .blog-ed .ed-hero .ed-display { font-size: clamp(2.6rem, 12vw, 3.6rem); } /* next-level polish: the old page's phone size (as Om oss) */
  .ed-band { padding-block: 56px; }
  .post-body { padding-top: 0; }
  .post-figure { margin-inline: var(--ed-g); }
  .ed-prose { font-size: 1.0625rem; line-height: 1.68; }
  .catalog-filters { gap: 0 20px; }
  .ed-back + .ed-back { margin-left: 0; }
  .related .ed-back { display: flex; width: max-content; margin-top: 20px; }
  .related .post-grid + .ed-back { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .filter-link::after { opacity: 0; } .filter-link[aria-pressed="true"]::after, .filter-link:hover::after, .filter-link:focus-visible::after { opacity: 1; }
  .ed-close svg, .post-cover img, .ed-back svg, :is(.ed-back, .blog-v7 .btn.ghost)::before, :is(.ed-back, .blog-v7 .btn.ghost)::after { transition: opacity 180ms linear !important; transform: none !important; }
  :is(.ed-back, .blog-v7 .btn.ghost)::after { opacity: 0; }
  :is(.ed-back, .blog-v7 .btn.ghost):is(:hover, :focus-visible)::after { opacity: 1; }
  .blog-v7[data-state="enter"] .ed-page { transform: none; }
}
@media print { .related::before { display: none; } .blog-v7[data-reveal] .rv, .blog-v7[data-reveal] .post-card { opacity: 1 !important; transform: none !important; } } /* a heading not yet scrolled to still prints */

/* ================================================================ next-level interface, stage C, group 5 (12.11.2026)
   The section ruler: the place ruler's own language (1 px ticks on the right edge, the current one at full length, its
   name in the label type to the left, all names when the ruler is pointed at or reached by keyboard) for an article's
   own headings. It stands in the column the way out keeps free, absolutely placed, so it never moves the text; its
   list is sticky, so nothing is computed while the page scrolls (blog-v7.ts marks the current section when a heading
   crosses a line, and only then). Hidden where the window is too narrow or too low for it, on phones and on paper. */
.sec-ruler { display: none; }
.blog-v7 .ed-prose h2 { scroll-margin-top: 150px; }
.blog-v7 .ed-prose h2:focus { outline: none; } /* a tick moves the focus to its heading (as the title gets it on opening): no box round a heading; the ruler marks where you are */
.blog-v7 .btn.ghost { transition: color 300ms var(--ed-io); -webkit-backdrop-filter: none; backdrop-filter: none; } /* it kept .btn's old curve and glass */
@media (min-width: 1181px) and (min-height: 560px) {
  .sec-ruler { display: block; position: absolute; top: 0; bottom: 0; right: 64px; width: 72px; pointer-events: none; }
  .sec-ruler ol { position: sticky; top: max(168px, calc(50vh - var(--n, 6) * 19px)); margin: 0; padding: 0; list-style: none; pointer-events: auto; }
  .sec-ruler ol::after { content: ""; position: absolute; right: 0; top: 19px; bottom: 19px; width: 5px; opacity: .22; pointer-events: none;
    background: repeating-linear-gradient(to bottom, var(--ed-bone) 0 1px, transparent 1px 9.5px); } /* the fine graduation between the ticks */
  .sec-ruler a { position: relative; display: block; width: 72px; height: 38px; border: 0; color: var(--ed-bone); text-decoration: none; }
  .sec-ruler a::before { content: ""; position: absolute; right: 0; top: 50%; width: 28px; height: 1px; margin-top: -.5px; background: var(--ed-bone); opacity: .42;
    transform: scaleX(.43); transform-origin: right center; transition: transform 350ms var(--ed-io), opacity 350ms var(--ed-io); }
  .sec-ruler a[data-visited]::before { opacity: .85; }
  .sec-ruler a[aria-current]::before { opacity: 1; transform: none; }
  .sec-ruler a:focus-visible { outline: none; } /* the ring went round the 72 px tick box and cut through its label: it goes round the label */
  .sec-ruler a:focus-visible span { outline: 2px solid var(--ed-acc); outline-offset: 6px; border-radius: 4px; }
  /* where the article ends the sticky list is pushed up under «Lukk»: it steps back once it leaves its line (blog-v7.ts sets data-off) */
  .sec-ruler ol { transition: opacity 250ms var(--ed-io); }
  .sec-ruler[data-off]:not(:focus-within) ol { opacity: 0; pointer-events: none; }
  .sec-ruler span { position: absolute; right: 40px; top: 50%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: max-content; max-width: 320px;
    font: var(--ed-label); line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; text-align: right; pointer-events: none;
    opacity: 0; transform: translate(6px, -50%); transition: opacity 250ms var(--ed-io), transform 250ms var(--ed-io); }
  .sec-ruler a[aria-current] span, .sec-ruler a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
  .sec-ruler ol:has(a:focus-visible) span { opacity: .66; transform: translate(0, -50%); }
  .sec-ruler ol:has(a:focus-visible) :is(a:focus-visible, a[aria-current]) span { opacity: 1; }
}
@media (min-width: 1181px) and (min-height: 560px) and (hover: hover) and (pointer: fine) {
  .sec-ruler ol:hover span { opacity: .66; transform: translate(0, -50%); transition-delay: calc(var(--r, 0) * 20ms); }
  .sec-ruler ol:hover :is(a:hover, a[aria-current]) span { opacity: 1; }
  .sec-ruler a:hover::before { opacity: 1; transform: scaleX(.72); }
  .sec-ruler a[aria-current]:hover::before { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .sec-ruler a::before, .sec-ruler span, .sec-ruler ol { transition: opacity 150ms linear !important; } .sec-ruler span { transform: translate(0, -50%) !important; } }
@media print { .sec-ruler { display: none; } }
