/* Kvalitet and För skolan. A section has a head like Funktioner's (direction.css) and a few chapters (.part). A chapter is ruled off like a task of a prov: a hairline, a head with the title and, flush left under it, one lede (the section's own lede sits on column 8, so the two heads do not read alike), the demo at the stage's full width with its bar above the window (direction.css), then plain facts. The reasons and the measures are in README.md, section 9. */

:root { --t-2: 1.563rem; --hang: 40px; --chap-pad: var(--sheet-pad); }   /* --t-2 is the step of the major-third scale between --t-1 and --t-3 (25 px); --hang is a numeral's cell (28 px, right-aligned) and its gap (12 px) */

.quality, .school { padding: var(--s6) 0; }   /* less paper than a section's 96 and 128: the chapters below carry their own */
.quality { counter-reset: part; }

/* A chapter starts under a hairline, as a prov rules off its tasks */
.part { padding-top: var(--s4); border-top: 1px solid var(--rule); }
.part + .part { margin-top: var(--s6); }
.part-head { margin-bottom: var(--s3); }
.part-head h3 { font-size: var(--t-2); line-height: 1.2; letter-spacing: -0.01em; text-box: trim-start cap alphabetic; }   /* the box starts at the cap height: a chapter sheet's paper above it is --chap-pad exactly */
.part-lede { margin-top: var(--s1); max-width: 34em; color: var(--ink-2); font-size: 18px; }
.part-note { margin-top: var(--s2); max-width: 34em; color: var(--ink-2); font: italic 400 16px/1.5 var(--serif); }   /* a note in the margin of a prov: the print voice, as the group labels are */
.part a:not(.button) { color: var(--ink); text-decoration-color: var(--line-strong); }
.part a:not(.button):hover { text-decoration-color: var(--ink); }
:is(.ticks li, .path li) { text-wrap: pretty; }   /* these are not p: no last line of one word */

/* Kvalitet's chapters are numbered like the tasks of a prov: the numeral hangs in its own cell and the title starts on the next edge (the same hang as the tab groups) */
.quality .part { counter-increment: part; }
.quality .part-head { position: relative; }
.quality .part-head::before {
  content: counter(part); position: absolute; left: 0; top: 0; width: 28px; color: var(--ink-2); font: 400 var(--t-2)/1.2 var(--serif); text-box: trim-start cap alphabetic;
  font-variant-numeric: lining-nums tabular-nums; text-align: right;
}
.quality .part-head > :is(h3, .part-lede, .part-note) { margin-left: var(--hang); }
.quality .part-stage .dk-demo.dk-live > .dk-marks { margin-left: calc(var(--hang) - (var(--cell) - var(--digit)) / 2); }   /* the bar's numerals start on the chapter's text edge, not under the chapter's own numeral */
@media (max-width: 1239.98px) { @container demo (max-width: 760px) {   /* the phone bar: the caption on its own line starts on the same edge as the numerals */
  .quality .part-stage .dk-demo.dk-live > .dk-marks { --cell: clamp(20px, calc((100cqi - 150px - var(--hang)) / var(--n, 6)), 28px); }
  .quality .part-stage .dk-demo.dk-live > .dk-steps { margin-left: var(--hang); }
} }

/* The demo sits in a container named demo, which the demo bar's phone layout reads (direction.css); the fit rule (direction.css) sizes its window like every other demo's */
.part-stage { container: demo / inline-size; min-width: 0; }
.part-stage + .ticks { margin-top: var(--s5); }

/* The facts are sub-tasks: a), b), c), the letter in the numeral's cell */
.ticks { counter-reset: tick; display: grid; max-width: 40em; }
.ticks li { position: relative; padding: 14px 0 16px var(--hang); border-top: 1px solid var(--rule); counter-increment: tick; }
:is(.ticks-grid, .ticks-quad) li { padding-right: max(0px, calc(100% - var(--hang) - 34em)); }   /* two columns: the text keeps its measure (34 em), the rule runs the column */
.ticks li::before {
  content: counter(tick, lower-alpha) ')'; position: absolute; left: 0; top: 14px; width: 28px; color: var(--ink-2);
  font-variant-numeric: lining-nums; text-align: right;
}
.ticks li:last-child { border-bottom: 1px solid var(--rule); }

/* The path from the free start to the school licence: numbered steps, stacked below 1240 px and in a row from there */
.path { counter-reset: step; display: grid; max-width: 40em; }
.path li { position: relative; padding: 14px 0 20px var(--hang); border-top: 1px solid var(--rule); counter-increment: step; }
.path li:last-child { border-bottom: 1px solid var(--rule); }
.path li::before {
  content: counter(step); position: absolute; left: 0; top: 11px; width: 28px; color: var(--ink-2); font: 400 var(--t-3)/1.2 var(--serif);
  font-variant-numeric: lining-nums tabular-nums; text-align: right;
}
.path strong { display: block; margin-bottom: 2px; font: 500 var(--t-1)/1.3 var(--serif); letter-spacing: -0.005em; text-wrap: balance; }
.path + .actions { margin-top: var(--s4); }

/* The four promises (#tryggt): GDPR, the EU, no AI training, the AI Act. A bento of grey tiles; each is an illustration and its words (a label in the accent, a head,
   one or two sentences). The illustrations are decoration (aria-hidden), drawn for this page in one language: white sheets and cards that lift off the tile, a soft
   glow and thin lines in the app's accent, grey for what is outside. A drawing is fitted whole into its box and its glow runs on past it to the tile's edge. A tile
   says what is built, never that a law is "met" (scripts/landing/CLAIMS.md, section 13). The reasons and the measures are in README.md, section 9. */
:root { --app-accent: #00597d; --tile: #f5f5f7; }   /* the app's accent (landing/demo-kit.css): the labels, the links under the tiles and the point of each illustration */
.trust .section-head h2 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; }
.promises { display: grid; gap: 12px; }
.promise { display: flex; flex-direction: column; min-width: 0; overflow: hidden; isolation: isolate; border-radius: 28px; background: var(--tile); }
.promise-copy { position: relative; z-index: 1; padding: 32px 24px 0; }
.promise-kicker { color: var(--app-accent); font: 600 15px/1.3 var(--sans); }
.promise h3 { margin-top: 8px; font: 600 clamp(1.75rem, 1.3rem + 1.7vw, 2.375rem)/1.06 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }
.promise h3 + p { margin-top: 12px; max-width: 29em; color: var(--ink-2); font: 400 17px/1.47 var(--sans); text-wrap: pretty; }
.promise-art { position: relative; flex: 1 0 auto; margin: 16px 8px 12px; aspect-ratio: 500 / 320; }
.promise.is-gdpr .promise-art { aspect-ratio: 502 / 410; margin-top: 0; }
.promise-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.promise text { font-family: var(--sans); }
.promise-map { display: block; flex: none; width: min(100% - 40px, 352px); height: auto; margin: 28px auto 32px; overflow: visible; }
.promise :is(.ping, .runner) { opacity: 0; transform-box: fill-box; transform-origin: center; }
/* An illustration arrives once, when its tile comes into view (site.js sets data-promises="wait" and then data-drawn on the tile): its parts rise in turn and its lines
   draw. Without script and in reduced motion it is simply there. Nothing loops. */
[data-promises="wait"] .promise .in { transition: opacity 0.6s ease, translate 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-promises="wait"] .promise .d1 { transition-delay: 0.12s; }
[data-promises="wait"] .promise .d2 { transition-delay: 0.26s; }
[data-promises="wait"] .promise .d3 { transition-delay: 0.4s; }
[data-promises="wait"] .promise .d4 { transition-delay: 0.54s; }
[data-promises="wait"] .promise .s { stroke-dasharray: 1; transition: stroke-dashoffset 1.3s cubic-bezier(0.3, 0.7, 0.2, 1) 0.15s; }
[data-promises="wait"] .promise:not([data-drawn]) .in { opacity: 0; translate: 0 12px; }
[data-promises="wait"] .promise:not([data-drawn]) .s { stroke-dashoffset: 1; }
[data-promises="wait"] .promise[data-drawn] .ping { animation: promise-ping 1.9s cubic-bezier(0.2, 0.6, 0.3, 1) 0.7s 2 both; }
[data-promises="wait"] .promise[data-drawn] .runner { animation: promise-run 1.5s cubic-bezier(0.45, 0, 0.55, 1) 0.6s 2 both; }
@keyframes promise-ping { from { opacity: 0.5; scale: 0.3; } to { opacity: 0; scale: 1; } }
@keyframes promise-run { from { opacity: 0; translate: 0 0; } 12% { opacity: 1; } 80% { opacity: 1; } to { opacity: 0; translate: 54px 0; } }
.assure-links { display: flex; flex-wrap: wrap; gap: 4px var(--s4); margin: var(--s3) 0 var(--s4); font: 500 17px/1.3 var(--sans); }
.trust .assure-links { justify-content: center; margin: var(--s4) 0 0; }
.trust .assure-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--app-accent); text-decoration: none; }
.trust .assure-links a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.chev { width: 7px; height: 12px; margin-left: 8px; flex: none; }
/* From 900 px two columns: GDPR and the AI Act are rows across both (the words beside the illustration), the EU and no training stand side by side */
@media (min-width: 900px) {
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .promise-copy { padding: 40px 40px 0; }
  .promise-art { margin: 20px 20px 24px; }
  .promise-map { width: min(100% - 64px, 320px); margin: 32px auto 40px; }
  .promise:is(.is-gdpr, .is-act) { grid-column: 1 / -1; flex-direction: row; min-height: 380px; }
  .promise:is(.is-gdpr, .is-act) .promise-copy { flex: 0 0 43%; align-self: center; padding: 48px 0 48px 48px; }
  .promise:is(.is-gdpr, .is-act) .promise-art { flex: 1 1 0; min-width: 0; aspect-ratio: auto; margin: 0 28px 0 12px; }
  /* beside the words the rings fade out as they reach them: the box starts 40 px in under the words and the drawing sits to the right in it */
  .promise.is-gdpr .promise-copy { flex-basis: 40%; padding-right: 8px; }
  .promise.is-gdpr .promise-art { margin-left: -40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
}
/* From 1240 px a bento of twelve columns: GDPR across the top, the EU's map two rows high on the left, no training and the AI Act beside it as rows */
@media (min-width: 1240px) {
  .promises { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .promise.is-gdpr { grid-column: span 12; min-height: 460px; }
  .promise.is-gdpr .promise-copy { flex-basis: 44%; padding: 64px 0 64px 72px; }
  .promise.is-gdpr .promise-kicker { font-size: 17px; }
  .promise.is-gdpr h3 { margin-top: 10px; font-size: clamp(2.75rem, 0.6rem + 3.2vw, 3.5rem); line-height: 1.03; letter-spacing: -0.04em; }
  .promise.is-gdpr h3 + p { margin-top: 18px; max-width: 24em; font-size: 20px; line-height: 1.42; }
  .promise.is-gdpr .promise-art { margin-right: 64px; }
  .promise.is-eu { grid-column: span 4; grid-row: span 2; }
  .promise.is-eu .promise-copy { padding: 44px 40px 0; }
  .promise-map { width: min(100% - 48px, 400px); margin: auto auto 40px; padding-top: 28px; }
  .promise:is(.is-train, .is-act) { grid-column: span 8; flex-direction: row; min-height: 372px; }
  .promise:is(.is-train, .is-act) .promise-copy { flex: 0 0 44%; align-self: center; padding: 48px 0 48px 48px; }
  .promise:is(.is-train, .is-act) .promise-art { flex: 1 1 0; min-width: 0; aspect-ratio: auto; margin: 0 24px 0 4px; }
}

/* The way in: a sequence, so it is numbered. Three white tiles, the numeral large and light */
.steps { counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; padding: var(--s3); border-radius: 28px; background: var(--tile); color: var(--ink-2); font: 400 16px/1.5 var(--sans); }
.steps li::before { content: counter(step); display: block; margin-bottom: var(--s4); color: var(--ink); font: 600 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.steps strong { display: block; margin-bottom: 6px; color: var(--ink); font: 600 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.15 var(--sans); letter-spacing: -0.025em; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { padding: var(--s4); }
}

@media (min-width: 900px) {
  .quality, .school { padding: var(--s7) 0; }
  .part { padding-top: var(--s5); }
  .part + .part { margin-top: var(--s7); }
  .part-head { margin-bottom: var(--s4); }
  .ticks-grid { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s3); }
  .ticks-grid li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}

@media (min-width: 1240px) {
  /* A head with a note: the title and lede on columns 1 to 7, the note on column 8 (the section lede's column), its last line on the lede's last baseline */
  .part-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s3); }
  .part-head > :is(h3, .part-lede) { grid-column: 1 / span 7; }
  .part-head > .part-lede { grid-row: 2; }
  .part-head > .part-note, .quality .part-head > .part-note { grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: end; align-self: last baseline; margin: 0; }
  .ticks-quad { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s3); }   /* Kursplan's four, each 100 to 190 characters: two by two */
  .ticks-quad li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .ticks-row { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s3); }
  .ticks-row li:last-child { border-bottom: 0; }
  .ticks-row li { padding-bottom: 0; text-box: trim-end text alphabetic; }   /* one row with no rule under it: the chapter's paper is measured from the last baseline */
  .path { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s3); }
  .path li:last-child { border-bottom: 0; }
}

/* One sheet per chapter (README section 3): the head and the first chapter lie on one (the wrap's ::before, a grid item over rows 1 and 2), every later chapter on its own, 30 px under the one before. Any .section with a .part gets it; without :has() the section keeps its one sheet */
.section:has(.part) { padding: var(--sheet-top) 0 var(--sheet-foot); }
.section:has(.part)::before { display: none; }
.section:has(.part) > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
.section:has(.part) > .wrap::before {
  content: ''; grid-area: 1 / 1 / 3 / 2; z-index: -1; margin: 0 calc(var(--sheet-out) * -1); pointer-events: none;
  border-radius: var(--radius-sheet); background: var(--sheet-bg); box-shadow: var(--sheet-shadow);
}
.section:has(.part) > .wrap > .section-head { grid-area: 1 / 1; padding-top: var(--sheet-pad); }   /* the sheet's paper above the h2's cap height, as on every sheet */
.section:has(.part) > .wrap > .section-head + .part { grid-area: 2 / 1; padding-bottom: var(--chap-pad); }
.section:has(.part) > .wrap > .part + .part {
  position: relative; margin-top: calc(var(--sheet-top) + var(--sheet-foot)); padding: var(--chap-pad) 0; border-top: 0;
  scroll-margin-top: calc(var(--sheet-top) - 16px);   /* a link lands with the sheet's top where a section's sheet is (direction.css) */
}
.section:has(.part) > .wrap > .part + .part::before {
  content: ''; position: absolute; z-index: -1; inset: 0 calc(var(--sheet-out) * -1); pointer-events: none;
  border-radius: var(--radius-sheet); background: var(--sheet-bg); box-shadow: var(--sheet-shadow);
}
@media (max-height: 420px) { .section:has(.part) > .wrap > .part + .part { scroll-margin-top: 0; } }   /* the header scrolls away with the page here (direction.css) */

@media (forced-colors: active) {
  .section:has(.part) > .wrap::before, .section:has(.part) > .wrap > .part + .part::before { border: 1px solid CanvasText; box-shadow: none; }
  .promise { border: 1px solid CanvasText; }
}

/* The pilot notice behind "Prova nu": a popover, so it needs no script; Escape and a click outside close it. */
.access { max-width: min(440px, calc(100vw - 32px)); margin: auto; padding: 28px 28px 24px; border: 0; border-radius: var(--radius-sheet);
  background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(27, 32, 38, 0.28); }
.access::backdrop { background: rgba(27, 32, 38, 0.4); }
.access h2 { margin: 0 32px 10px 0; font: 600 22px/1.25 var(--serif); }
.access p { margin: 0 0 20px; color: var(--ink-2); }
.access .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.access .actions .button { white-space: normal; text-align: center; }   /* "Jag har en inbjudan: logga in" wraps at 320 px */
.access-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: var(--radius-ctl);
  background: transparent; color: var(--ink-2); font-size: 24px; line-height: 1; cursor: pointer; }
.access-close:hover { background: rgba(27, 32, 38, 0.06); }

/* "Om oss": the header's octopus opens it (README section 6, "The octopus"). A popover, so it needs no script; Escape and a click outside close it.
   It grows out of the octopus: site.js sets --from-x and --from-y (the mark's centre from the window's, which is the popup's centre) before it opens; without them it grows from the middle.
   The painted wordmark condenses out of a sky of its own, as the sign-off does, and the sky leans a little toward a mouse. */
.about {
  --from-x: 0px; --from-y: 0px; --tx: 0; --ty: 0;
  width: min(640px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); margin: auto; padding: 0; border: 0; border-radius: 24px; overflow: hidden auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 2px 6px rgba(18, 40, 60, 0.12), 0 48px 110px -24px rgba(10, 44, 76, 0.6);
  opacity: 0; translate: var(--from-x) var(--from-y); scale: 0.04;
  transition: opacity 0.2s ease-in 0.06s, translate 0.3s cubic-bezier(0.5, 0, 0.75, 0), scale 0.3s cubic-bezier(0.5, 0, 0.75, 0), overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}
.about:popover-open {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity 0.18s ease, translate 0.62s var(--ease-glide), scale 0.62s cubic-bezier(0.3, 1.18, 0.4, 1), overlay 0.62s allow-discrete, display 0.62s allow-discrete;
}
@starting-style { .about:popover-open { opacity: 0; translate: var(--from-x) var(--from-y); scale: 0.04; } }
.about::backdrop {
  background: rgba(14, 38, 58, 0.42); -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2);
  opacity: 0; transition: opacity 0.3s ease, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}
.about:popover-open::backdrop { opacity: 1; }
@starting-style { .about:popover-open::backdrop { opacity: 0; } }
html:has(.about:popover-open) { overflow: hidden; scrollbar-gutter: stable; }   /* the root only, as the phone menu: the page behind stays put, and a classic scrollbar's room is kept so nothing shifts */

.about-sky {
  position: relative; isolation: isolate; overflow: hidden; padding: 64px 28px 30px;
  background: linear-gradient(180deg, var(--sky-0) 0, var(--sky-1) 34%, var(--sky-2) 68%, var(--sky-3) 100%);
}
.about-sky::before {   /* the sun, low on the left, as on the page */
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(70% 70% at 0% 100%, rgba(255, 224, 188, 0.8), rgba(255, 224, 188, 0) 70%);
}
.about-sky::after {   /* the sky runs into the paper */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; pointer-events: none; background: linear-gradient(rgba(246, 245, 241, 0), var(--paper));
}
.about-cloud {   /* the page's own still of the app's sky (cached on a desktop; a phone fetches it, 9 KB, when the popup opens), a little larger than the box so it can lean */
  position: absolute; z-index: -1; inset: -24px; pointer-events: none; opacity: 0.6;
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url('img/kit/sky-desktop.webp') center 30% / cover no-repeat;
  transform: translate(calc(var(--tx) * -16px), calc(var(--ty) * -10px)) scaleX(-1); transition: transform 0.9s var(--ease-out);
}
.about-art {
  position: relative; width: min(560px, 100%); margin: 0 auto;
  filter: drop-shadow(0 14px 22px rgba(10, 54, 96, 0.28));
  transform: perspective(900px) rotateY(calc(var(--tx) * 5deg)) rotateX(calc(var(--ty) * -4deg)); transition: transform 1.4s var(--ease-out);   /* a picture held in the hand, turned a little toward the pointer */
}
.about-wordmark { width: 100%; height: auto; aspect-ratio: 1882 / 836; }
.about-live { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }   /* octopus.js: the same picture under a moving light, drawn while the popup is open */
.about-art:not(.is-live) .about-live, .about-art.is-live .about-wordmark { visibility: hidden; }
.about:popover-open .about-art { animation: about-condense 1.3s var(--ease-out) 0.18s backwards, about-float 9s ease-in-out 1.5s infinite; }
.about[data-art="wait"] .about-art { animation: none; opacity: 0; }   /* site.js: the picture has not decoded yet; the condensing starts when it has */
@keyframes about-condense { from { opacity: 0; filter: blur(16px) drop-shadow(0 14px 22px rgba(10, 54, 96, 0)); scale: 0.92; } }
@keyframes about-float { 50% { translate: 0 -3px; } }   /* the picture drifts like the cloud it is made of: the one loop on the page, and only while "Om oss" is open */

.about-body { position: relative; margin-top: -1px; padding: 9px 28px 28px; background: var(--paper); }   /* 1 px over the sky: no seam where a fractional pixel row would show its blue */
.about-eyebrow { color: var(--ink-2); font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.about-title { margin-top: 14px; font-size: clamp(26px, 6.4vw, 34px); line-height: 1.1; letter-spacing: -0.015em; }
.about-byline { margin-top: 8px; color: var(--ink-2); font: italic 400 20px/1.3 var(--serif); }
.about-text { margin-top: var(--s3); max-width: 34em; }
.about .actions .button { white-space: normal; }
.about:popover-open .about-body > * { animation: about-rise 0.6s var(--ease-out) backwards; }
.about:popover-open .about-body > :nth-child(2) { animation-delay: 0.26s; }
.about:popover-open .about-body > :nth-child(3) { animation-delay: 0.32s; }
.about:popover-open .about-body > :nth-child(4) { animation-delay: 0.38s; }
.about:popover-open .about-body > :nth-child(5) { animation-delay: 0.44s; }
.about:popover-open .about-body > :first-child { animation-delay: 0.2s; }
@keyframes about-rise { from { opacity: 0; translate: 0 10px; } }

.about-close {   /* the plus from the header, turned into a cross. First in the popup (Tab starts here), so it needs z-index above the sky that follows it */
  position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.72); color: var(--ink); cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 0.5px rgba(27, 32, 38, 0.14), 0 4px 12px -4px rgba(18, 74, 120, 0.35);
  transition: background-color 0.15s ease;
}
.about-close:hover { background: #fff; }
.about-close:focus-visible { outline-offset: 2px; border-radius: 50%; }
.about-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; rotate: 45deg; transition: rotate 0.3s var(--ease-glide); }
.about-close:hover svg { rotate: 135deg; }
.about:popover-open .about-close svg { animation: about-turn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards; }
@keyframes about-turn { from { rotate: -90deg; } }

@media (min-width: 600px) {
  .about-sky { padding: 72px 40px 34px; }
  .about-body { padding: 9px 40px 40px; }
}
@media (prefers-reduced-transparency: reduce) {
  .about::backdrop, .about-close { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .about-close { background: #fff; }
}
@media (forced-colors: active) {
  .about { border: 1px solid CanvasText; }
  .about-sky { background: Canvas; }
  .about-sky::before, .about-sky::after, .about-cloud { display: none; }
  .about-close { border: 1px solid CanvasText; }
}
