/* EXCEPTIONS · template variants selected with data-* attributes. */
[data-archive-list] li { border-color: var(--rule); }

nav small[data-env="staging"] { color: #8b00ff; font-size: .7em; }

/* ── Design system: code and its rendered counterpart ── */
main[data-design-system] { max-width: var(--col); }
main[data-design-system] > h1 { max-width: 12ch; font-size: clamp(3rem, 7vw, 6.5rem); }
main[data-design-system] > h2 { max-width: 20ch; }
main[data-design-system] > p { max-width: 68ch; }
main[data-design-system] > section {
  margin: 2rem 0;
}
main[data-design-system] > section > article {
  margin: 0; padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-top: 1px solid var(--rule);
}
main[data-design-system] > section > article > h2 {
  padding: 0; margin: 0 0 1.4rem; font-size: clamp(1.8rem, 3.8vw, 3rem); line-height: 1;
}
main[data-design-system] > section > article > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(.75rem, 2vw, 1.5rem);
  align-items: start;
}
main[data-design-system] > section > article > div > figure {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin: 0;
  padding: .75rem;
  align-self: start;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg), var(--ink) 2%);
}
main[data-design-system] > section > article > div figcaption,
main[data-design-system] > section > article > div pre {
  flex: none;
  margin: 0;
  border: 0;
  border-left: 2px solid var(--red);
  padding: .55rem;
  background: color-mix(in srgb, var(--bg), var(--ink) 5%);
  color: var(--ink);
  font: .76rem/1.55 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
main[data-design-system] > section > article > div pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
main[data-design-system] > section > article > div > figure > div {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;

  a { color: var(--link); }
  a:hover { color: var(--red); }
  a, img { transition: none; }

  &:has(> h1) {
    h1 { margin: .2rem 0 .8rem; font-size: clamp(2.5rem, 12vw, 4rem); line-height: .9; }
    p { margin: .5rem 0; }
    blockquote { margin: .8rem 0 0; font: italic 1.35rem/1.25 var(--reading); }
  }

  &:has([data-comments-root]) {
    [data-comments-root] { margin: 0; }
    [data-comments-toggle] { display: none; }
    [data-comments-bar] { justify-content: flex-start; }
  }

  &:has(> [data-theme-sample]) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
  }
}
main[data-design-system] > section > article > div figure[data-layout="post-opening-image"] {
  width: min(100%, 24rem); max-width: 100%; aspect-ratio: 1 / 1; margin: 0 auto; padding: 0;
  border: 0; background: transparent; overflow: visible;
}
main[data-design-system] > section > article > div figure[data-layout="post-opening-image"] picture { position: absolute; inset: 0; width: 100%; height: 100%; }
main[data-design-system] > section > article > div > figure > div a { color: var(--link); }
main[data-design-system] > section > article > div > figure > div a:hover { color: var(--red); }
main[data-design-system] > section > article > div > figure > div a,
main[data-design-system] > section > article > div > figure > div img { transition: none; }
main[data-design-system] > section > article > div > figure > div:has([data-comments-root]) [data-comments-root] { margin: 0; }
main[data-design-system] > section > article > div > figure > div:has([data-comments-root]) [data-comments-toggle] { display: none; }
main[data-design-system] > section > article > div > figure > div:has([data-comments-root]) [data-comments-bar] { justify-content: flex-start; }
main[data-design-system] > section > article > div > figure > div:has(> [data-theme-sample]) { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
main[data-design-system] [data-theme-sample] { display: flex; flex-direction: column; justify-content: space-between; min-height: 8rem; padding: .8rem; font: .8rem/1.3 var(--interface); }
main[data-design-system] [data-theme-sample="light"] { background: #fbfafb; color: #241d22; border: 1px solid #d8d1d8; }
main[data-design-system] [data-theme-sample="dark"] { background: #1b1c20; color: #f1edef; border: 1px solid #39393f; }
main[data-design-system] > section > article > p { max-width: 68ch; margin: 1rem 0 0; font-size: .92rem; }
main[data-design-system] :is([data-theme-switcher], [data-css-stage]) {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 1.5rem 0 0; padding: .75rem 0;
  border-block: 1px solid var(--rule); font: .78rem/1.2 var(--interface); letter-spacing: .04em;
}
main[data-design-system] [data-theme-switcher] span { margin-right: .35rem; opacity: .72; }
main[data-design-system] :is([data-theme-switcher], [data-css-stage]) button {
  padding: .4rem .7rem; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink);
  font: inherit; cursor: pointer;
}
main[data-design-system] :is([data-theme-switcher], [data-css-stage]) button[aria-pressed="true"] { color: var(--bg); background: var(--ink); }
main[data-design-system] :is([data-theme-switcher], [data-css-stage]) button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (min-width: 721px) {
  main[data-design-system] > section > article > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* masthead: full-bleed hero, altezza fissa per lasciare il titolo visibile
   al primo scroll sia desktop che mobile */
figure[data-layout="masthead"] {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-top: 2rem;
  margin-bottom: 3rem;
}
figure[data-layout="masthead"] img {
  width: 100%;
}

/* Intro editoriale dei nuovi post: citazione, titolo e sommario precedono il corpo. */
section[data-post-hero] > div > header {
  margin: 2.5rem 0 0;
  text-align: left;
}
section[data-post-hero] > div > header h1 {
  margin-top: 1.5rem;
}
section[data-post-hero] > div > header > blockquote {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  margin: 0;
  max-width: 28ch;
  white-space: pre-wrap;
}
section[data-post-hero] > div > header > blockquote cite {
  white-space: normal;
}
section[data-post-hero] > div > header > p {
  font-family: var(--interface);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.5;
  margin: 1rem 0 0;
  max-width: 58ch;
  opacity: 0.72;
}

/* Hero editoriale: testo e citazione a sinistra, immagine verticale a destra. */
section[data-post-hero] {
  --hero-overhang: 0px;
  width: 100vw;
  max-width: none;
  position: relative;
  display: block;
  grid-template-columns: 1fr;
  row-gap: 0;
  column-gap: 0;
  isolation: isolate;
  left: 50%;
  margin: 1rem 0 2rem -50vw;
  padding: 0;
  background: transparent;
}
section[data-post-hero]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
}
section[data-post-hero][data-intro-theme="ink"] {
  color: #fbf7fb;
}
section[data-post-hero][data-intro-theme="ink"]::before {
  background: #171217;
}
section[data-post-hero] > div {
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0;
  align-items: center;
}
section[data-post-hero] > div > header {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 1rem 1rem 1.5rem;
  width: auto;
}
section[data-post-hero] h1,
section[data-post-hero] h1:hover {
  background-image: none;
  color: inherit;
}
section[data-post-hero] > div > header > p {
  color: inherit;
  opacity: 0.75;
}
section[data-post-hero] figure[data-layout="masthead"] {
  width: calc(100% + 2rem);
  max-width: none;
  position: relative;
  z-index: 0;
  isolation: isolate;
  left: auto;
  justify-self: center;
  margin: -4rem -1rem;
  aspect-ratio: 3 / 4;
  overflow: visible;
  border-radius: 0 0 1rem 1rem;
  transform: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 14%, black);
  mask-image: linear-gradient(to bottom, transparent, black 14%, black);
}
section[data-post-hero] img[data-layout="masthead-blur"] {
  display: none;
  position: absolute;
  z-index: -1;
  inset: -3.8px -3px;
  border-radius: 2.25rem;
  width: calc(100% + 6px);
  height: calc(100% + 7.6px);
  max-width: none;
  object-fit: cover;
  object-position: var(--focal, center center);
  filter: blur(5.15px);
}
section[data-post-hero] figure[data-layout="masthead"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, center center);
  border-radius: 0 0 1rem 1rem;
}
section[data-post-hero] figure[data-layout="masthead"] img:not([data-layout="masthead-blur"]) {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  border: 1px solid #000;
  background: #fff;
  object-fit: contain;
}
main > header:has(> h1) {
  margin: 1.5rem auto 0;
  width: calc(100% - 2rem);
  max-width: var(--col);
  padding: 0;
}
main > header:has(> h1) h1 {
  margin: 0;
}
main > header:has(> h1) > p {
  font-family: var(--interface);
  font-size: 0.95em;
  line-height: 1.5;
  margin: 1rem 0 0;
  max-width: 58ch;
  opacity: 0.72;
}
@media (min-width: 721px) {
  section[data-post-hero] {
    --hero-overhang: clamp(3.5rem, 4vw, 4rem);
    margin: 3rem 0 1.5rem -50vw;
  }
  section[data-post-hero]::before { inset: 0 0 var(--hero-overhang); }
  section[data-post-hero] > div {
    width: min(68.125rem, calc(100vw - 2rem));
    padding: clamp(1rem, 2.5vw, 2.75rem) 0;
    grid-template-columns: 34.375rem 29.75rem;
    column-gap: 4rem;
    align-items: center;
  }
  section[data-post-hero] > div > header {
    position: static;
    z-index: auto;
    padding: clamp(1rem, 3.5vw, 3.5rem);
  }
  section[data-post-hero] figure[data-layout="masthead"] {
    width: 100%;
    justify-self: auto;
    margin: 0;
    border-radius: 2.25rem;
    transform: translateY(calc(-1 * var(--hero-overhang)));
    margin-bottom: calc(-1 * var(--hero-overhang));
    -webkit-mask-image: none;
    mask-image: none;
  }
  section[data-post-hero] img[data-layout="masthead-blur"] { display: block; }
  section[data-post-hero] figure[data-layout="masthead"] img { border-radius: 2.25rem; }
  main > header:has(> h1) {
    width: min(calc(100% - 2rem), var(--col));
    margin-top: 1.5rem;
  }
}

@media (max-width: 1100px) and (min-width: 721px) {
  section[data-post-hero] > div {
    width: min(calc(100vw - 2rem), 68.125rem);
    grid-template-columns: minmax(0, 45vw) minmax(0, 35vw);
    column-gap: 2rem;
  }
  section[data-post-hero] > div > header {
    width: auto;
  }
  section[data-post-hero] figure[data-layout="masthead"] {
    width: 100%;
  }
}

figure[data-layout="cover"] {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}
figure[data-layout="cover"] img {
  width: 100%;
}

/* Home: mobile keeps the image as a wide field; desktop treats it as an
   editorial object in the reading rhythm, never as an oversized hero. */
figure[data-layout="home-cover"] {
  width: 100vw;
  position: relative;
  left: 50%;
  margin: 2rem 0 2.5rem -50vw;
}
figure[data-layout="home-cover"] img {
  width: 100%;
}
@media (min-width: 721px) {
  figure[data-layout="home-cover"] {
    width: min(100%, 42rem);
    left: auto;
    margin: 2rem auto 3rem;
    border-radius: 1rem;
    overflow: hidden;
  }
  figure[data-layout="home-cover"] img {
    border-radius: 1rem;
  }
}

/* Markdown editorial opening: quote → image → title → body. The quote is
   the point of entry, not a theatrical hero competing with the article. */
[data-post-flow] > blockquote:first-child {
  max-width: 28ch;
  margin: 1rem 0 1.25rem;
  padding: 0 0 0 1.1rem;
  border-left: 0.18rem solid var(--red);
  line-height: 1.28;
}
[data-post-flow] > blockquote:first-child,
[data-quote-reveal] [data-post-flow] > blockquote {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}
[data-post-flow] > blockquote:first-child cite {
  text-align: left;
  font-family: var(--interface);
  font-size: .72em;
  font-style: normal;
  letter-spacing: .02em;
}
figure[data-layout="post-opening-image"] {
  width: min(calc(100% - 1.25rem), 34rem);
  aspect-ratio: 1 / 1;
  position: relative;
  left: auto;
  margin: 0 auto 1.25rem;
  box-sizing: border-box;
  isolation: isolate;
  overflow: visible;
}
figure[data-layout="post-opening-image"] img {
  position: relative;
  max-height: 100%;
  object-fit: contain;
  outline: 1px solid color-mix(in srgb, var(--ink), transparent 72%);
}
figure[data-layout="post-opening-image"][data-image-format="vertical"] {
  padding: 0;
}
figure[data-layout="post-opening-image"] picture {
  position: absolute;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  inset: 0;
  align-items: center;
  justify-content: center;
}
figure[data-layout="post-opening-image"]::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 58%;
  height: 23%;
  right: -1.4%;
  bottom: -2.5%;
  background: var(--red);
  clip-path: polygon(2% 18%, 18% 10%, 36% 15%, 53% 0, 70% 12%, 86% 4%, 100% 9%, 96% 100%, 0 91%);
  pointer-events: none;
}
figure[data-layout="post-opening-image"][data-image-format="horizontal"]::before {
  left: 25%;
  right: -2%;
  bottom: -2.5%;
  width: 77%;
  height: 34%;
  clip-path: polygon(0 18%, 14% 7%, 32% 14%, 48% 0, 65% 12%, 83% 3%, 100% 12%, 97% 100%, 3% 93%);
}
figure[data-layout="post-opening-image"][data-image-format="vertical"]::before {
  top: 13%;
  right: -3%;
  bottom: auto;
  left: 62%;
  width: 40%;
  height: 74%;
  clip-path: polygon(9% 0, 100% 3%, 92% 100%, 0 96%, 5% 72%, 0 47%);
}
figure[data-layout="post-opening-image"]:has(img[data-image-tilt="right"]) img { transform: rotate(3.4deg); }
figure[data-layout="post-opening-image"]:has(img[data-image-tilt="right"])[data-image-format="vertical"]::before { left: 59%; right: -5%; }
figure[data-layout="post-opening-image"]:has(img[data-image-tilt="left"]) img { transform: rotate(-3.4deg); }
figure[data-layout="post-opening-image"]:has(img[data-image-tilt="left"])[data-image-format="vertical"]::before { left: 65%; right: -1%; }
@media (min-width: 721px) {
  [data-post-flow] > blockquote:first-child {
    margin: clamp(1.5rem, 5vw, 4.5rem) 0 0;
  }
  [data-post-flow] > blockquote:first-child cite { font-size: .42em; }
  section[data-post-hero] > div > header > blockquote {
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  }
  [data-post-flow] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 21rem);
    column-gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }
  [data-post-flow] > blockquote:first-child {
    grid-column: 1;
    grid-row: 1;
    margin: clamp(1.5rem, 5vw, 4.5rem) 0 0;
  }
  figure[data-layout="post-opening-image"] {
    grid-column: 2;
    grid-row: 1;
    width: min(100%, 21rem);
    aspect-ratio: 5 / 6;
    left: auto;
    margin: 0;
    overflow: visible;
  }
  figure[data-layout="post-opening-image"] { justify-self: end; }
  [data-post-flow] > :not(blockquote:first-child):not(figure) {
    grid-column: 1 / -1;
  }
  [data-post-flow] > h1:first-of-type {
    margin-top: clamp(3rem, 8vw, 6rem);
  }
}

figure[data-layout="wide"] {
  width: 100%;
  margin-left: 0;
  @media (min-width: 721px) { width: calc(100% + 6rem); margin-left: -3rem; }
}
figure[data-layout="wide"] img {
  width: 100%;
}
figure[data-layout="half"] {
  width: 100%;
  float: none;
  margin: 0 0 1rem 0;
  padding-right: 0;
  box-sizing: border-box;
  @media (min-width: 481px) { width: 50%; float: left; padding-right: 0.75rem; }
}
figure[data-layout="half"] img {
  width: 100%;
}
img[data-layout="inline"] {
  float: left;
  width: auto;
  margin: 0 1.25rem 0.5rem 0;
  display: inline;
}
img[data-layout="inline-right"] {
  float: right;
  width: auto;
  margin: 0 0 0.5rem 1.25rem;
  display: inline;
}


[data-archive-list] {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
[data-archive-list] li {
  border-top: 1px solid color-mix(in srgb, var(--ink), transparent 78%);
  padding: 1rem 0;
}
[data-archive-list] a { font-family: var(--interface); font-weight: 700; }
[data-archive-list] small { margin-left: .6em; opacity: .55; }
[data-archive-list] p { margin: .25rem 0 0; }


/* ── Named layouts ───────────────────────────────────────── */
[data-gallery][data-layout="full"] { grid-template-columns: 1fr; }
@media (min-width: 641px) {
  [data-gallery][data-layout="pair"] { grid-template-columns: 1fr 1fr; }
  [data-gallery][data-layout="feature"] { grid-template-columns: 3fr 2fr; }
  [data-gallery][data-layout="triptych"] { grid-template-columns: 1fr 1fr 1fr; }
  [data-gallery][data-layout="mosaic"] {
    grid-template-columns: 2fr 1fr;
    align-items: stretch;
  }
  [data-gallery][data-layout="mosaic"] picture:first-child { grid-row: 1 / span 2; }
  [data-gallery][data-layout="mosaic"] picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ── Photo post: testo in colonna, gallerie nella colonna ── */
body[data-template="photo-post"] main {
  padding-left: 0;
  padding-right: 0;
}

body[data-template="photo-post"] main > *:not([data-gallery]) {
  padding-left: 1rem;
  padding-right: 1rem;
}

body[data-template="photo-post"] [data-gallery] {
  gap: 0.35rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* ── Mosaic alternato: dispari = grande a sinistra,
                        pari   = grande a destra ──────────── */
@media (min-width: 641px) {
  [data-gallery][data-layout="mosaic"]:nth-child(even of [data-gallery][data-layout="mosaic"]) {
    grid-template-columns: 1fr 2fr;
  }
  [data-gallery][data-layout="mosaic"]:nth-child(even of [data-gallery][data-layout="mosaic"]) picture:first-child {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}


/* Editorial return strip, inspired by the FMR catalogue navigation. */
nav[data-breadcrumb] {
  margin: 0.25rem 0 1rem;
  padding: 0;
  border: 0;
  ol { list-style: none; padding: 0; margin: 0; }
  li { margin: 0; }
  [data-crumb-hidden] { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  a[data-back-link] {
    display: inline-flex; align-items: center; gap: 0.55rem;
    min-height: 2rem; color: var(--ink); text-decoration: none;
    font: 400 0.72rem/1.2 var(--interface); letter-spacing: 0.08em; text-transform: uppercase;
  }
  a[data-back-link]:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
  [data-back-icon] { display: block; position: relative; width: 13px; height: 20px; overflow: hidden; }
  svg { width: 13px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.25; transition: transform 240ms ease; }
  svg + svg { position: absolute; top: 0; left: 0; transform: translateX(100%); }
  a:is(:hover, :focus-visible) svg:first-child { transform: translateX(-100%); }
  a:is(:hover, :focus-visible) svg + svg { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  nav[data-breadcrumb] svg { transition: none; }
}


section[data-card-kind="work"] > article {
  border: 1px solid color-mix(in srgb, var(--ink), transparent 82%);
  figure { background: #f5eedf; }
  figure img { object-fit: contain; background: #f5eedf; }
}


figure[data-work-illustration] {
  margin: 2.5rem 0 3.5rem;
  img { width: 100%; }
  figcaption { margin-top: 1rem; color: var(--ink); font: 0.9rem/1.6 var(--interface); }
}
figure[data-work-illustration]:has(img[src*="system-art"]),
figure[data-work-illustration]:has(img[src*="research-art"]),
figure[data-work-illustration]:has(img[src*="story-art"]) { max-width: 38rem; margin-inline: auto; }
aside[data-illustration-note] {
  margin: 1.5rem 0 2.5rem;
  padding: .55rem 1rem;
  border-block: 1px solid color-mix(in srgb, var(--ink), transparent 75%);
  color: var(--ink);
  font: 0.875rem/1.65 var(--interface);
}


section[data-layout="grid"] > article[data-card-kind="book"] figure {
  padding: 0.25rem;
  background: white;
}
section[data-layout="grid"] > article[data-card-kind="book"] figure img {
  object-fit: contain;
}


/* Work entrance · data hooks identify this small, interactive component. */
[data-work-gate] {
  max-width: 42rem;
  margin: 8vh auto;
  text-align: center;
}
[data-work-gate] > p:first-of-type {
  font: .75rem var(--interface);
  letter-spacing: .1em;
  text-transform: uppercase;
}
[data-work-gate] ol {
  list-style: none;
  padding: 0;
  text-align: left;
}
[data-work-gate] li {
  border-top: 1px solid color-mix(in srgb, var(--ink), transparent 75%);
  padding: 1.25rem 0;
}
[data-work-gate] cite { font-family: var(--interface); font-size: .78em; }
[data-work-gate] li > p:first-of-type {
  color: color-mix(in srgb, var(--ink), transparent 28%);
  font-style: italic;
}
[data-work-gate] form > p[aria-live] { min-height: 2em; font-family: var(--mono); }
[data-work-gate] form > button[type="submit"] {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  font: inherit;
  padding: .5rem 1.25rem;
}
[data-work-gate] form > button:disabled { cursor: not-allowed; opacity: .35; }
[data-work-gate] ol button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
[data-work-gate] ol button:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--link), transparent 88%);
  outline: 1px dashed var(--link);
}
[data-work-gate] ol button[aria-pressed="true"] {
  color: var(--link);
  text-decoration: underline 2px;
  text-underline-offset: .2em;
}
[data-work-gate-notice] {
  max-width: var(--col);
  margin: 1.5rem auto -1rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--link);
  background: color-mix(in srgb, var(--link) 12%, transparent);
  font: .95rem/1.45 var(--interface);
}

/* Forced theme used by the Design System preview. */
:root[data-color-mode="light"] {
  color-scheme: light;
  --ink: #241d22;
  --bg: #fbfafb;
  --behind: #fbfafb;
  --link: #790b78;
  --link-hover: var(--red);
  --image-shadow: 0 4px 20px hsl(0 0% 0% / 0.12);
  --red: #b3132b;
  --rule: color-mix(in srgb, var(--ink), transparent 78%);
}

:root[data-color-mode="dark"] {
  color-scheme: dark;
  --ink: #f1edef;
  --bg: #1b1c20;
  --behind: #1b1c20;
  --link: #e15bd7;
  --link-hover: #ff7888;
  --image-shadow: none;
  --red: #ff4057;
  --rule: color-mix(in srgb, var(--ink), transparent 80%);
}
