/*
 * druewilding.com — site theme on top of klods-css.
 *
 * Colours come from klods tokens (--klods-color-*), which the inline daily
 * theme script (_includes/daily-theme.js) sets from today's Daily Color.
 * Extra tokens it sets: --drue-hero, --drue-hero-2, --drue-on-hero,
 * --drue-secondary. The values below are only the no-JavaScript fallback.
 */

@font-face {
  font-family: "Drue Handwriting";
  src: url("/assets/fonts/handwriting-bold-webfont.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --drue-hero: #11467a;
  --drue-hero-2: #117a46;
  --drue-on-hero: #ffffff;
  --drue-secondary: #b8336a;

  --font-display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-hand: "Drue Handwriting", "Comic Sans MS", cursive;
  --klods-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --klods-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --klods-font-size-base: 17px;
  --klods-line-height-base: 1.6;

  --page-max: 76rem;
  --prose-max: 42rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --lift: 6px;
}

@media (min-width: 48rem) {
  :root {
    --gutter: max(32px, env(safe-area-inset-left, 0px));
    --gutter-r: max(32px, env(safe-area-inset-right, 0px));
  }
}

/* Code colours: GitHub light / dark, following the visitor's mode. Only a
   fallback: the daily theme script replaces them with today's colours. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --klods-code-bg: #161b22;
    --klods-code-fg: #e6edf3;
    --klods-code-keyword: #ff7b72;
    --klods-code-string: #a5d6ff;
    --klods-code-comment: #8b949e;
    --klods-code-number: #79c0ff;
    --klods-code-type: #ffa657;
    --klods-code-attr: #7ee787;
    --klods-code-tag: #7ee787;
    --klods-code-title: #d2a8ff;
  }
}

/* ── Base ─────────────────────────────────────────────────────────────── */

body {
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

a {
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--klods-color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.hand {
  font-family: var(--font-hand);
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--klods-color-bg);
  color: var(--klods-color-fg);
  border-radius: var(--klods-radius-md);
}

.skip-link:focus {
  top: 12px;
}

/* ── The band: today's colour, edge to edge ───────────────────────────── */

.band {
  position: relative;
  overflow: hidden;
  color: var(--drue-on-hero);
  background: linear-gradient(125deg, var(--drue-hero) 0%, var(--drue-hero) 40%, var(--drue-hero-2) 100%);
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  padding-block: 0 clamp(2rem, 5vw, 3.5rem);
}

/* Big soft studs in the background, like a baseplate seen up close */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, currentColor 0 18%, transparent 19%);
  background-size: 56px 56px;
  opacity: 0.07;
  pointer-events: none;
  mask-image: linear-gradient(200deg, #000 0%, transparent 70%);
}

.band__inner {
  position: relative;
  max-width: var(--page-max);
  margin-inline: auto;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.band a {
  color: inherit;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem 0;
}

.site-nav__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.band--home .site-nav__name {
  visibility: hidden;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
}

.site-nav__links a {
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  border-bottom-color: currentColor;
}

.band__intro {
  display: grid;
  gap: 0.75rem;
  max-width: 50rem;
}

.band__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
}

.band__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
}

.band__title--huge {
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.band__lede {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
  max-width: 40rem;
  opacity: 0.92;
}

.band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.band .band__button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: var(--klods-radius-md);
  font-weight: 600;
  text-decoration: none;
  background: var(--drue-on-hero);
  color: var(--drue-hero);
  border: 2px solid var(--drue-on-hero);
  transition: transform var(--klods-transition);
}

.band .band__button--ghost {
  background: transparent;
  color: var(--drue-on-hero);
}

.band .band__button:hover {
  transform: translateY(-2px);
}

/* "today the site is #xxxxxx", the dice and "back to today" */
.today {
  justify-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
}

.today-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem 0.35rem 0.4rem;
  border: 2px solid currentColor;
  border-radius: var(--klods-radius-pill);
  box-shadow:
    0 0 0.5px currentColor,
    inset 0 0 0.5px currentColor;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform var(--klods-transition);
}

.today-pill__swatch {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--drue-hero);
  box-shadow:
    0 0 0 2px currentColor,
    inset 0 0 0 3px var(--drue-hero-2);
}

.today-pill__hex {
  font-family: var(--klods-font-mono);
  font-size: 0.85em;
  font-weight: 600;
}

.today-pill:hover {
  text-decoration: none;
  transform: rotate(-1.5deg);
}

.today-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  box-shadow:
    0 0 0.5px currentColor,
    inset 0 0 0.5px currentColor;
}

.today-button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

.today-button--shuffle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--klods-radius-md);
  transition: transform 300ms ease;
}

.today-button--shuffle:hover {
  background: var(--drue-on-hero);
  color: var(--drue-hero);
  transform: rotate(-12deg);
}

.today-button--shuffle:active {
  transform: rotate(200deg) scale(0.9);
}

.today-button--reset {
  padding: 0.3rem 0.8rem;
  border-style: dashed;
  border-radius: var(--klods-radius-pill);
  font-size: 1.05rem;
  line-height: 1.2;
}

.today-button--reset:hover {
  border-style: solid;
}

/* Only offer "back to today" after a shuffle */
:root:not([data-shuffled]) .today-button--reset {
  display: none;
}

/* Swapping schemes (dice, "back to today") crossfades the whole page as a
   view transition; this sets its speed */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 500ms;
}

/* On wide screens it all hangs skew-whiff at the bottom right of the band */
@media (min-width: 60rem) {
  .today {
    position: absolute;
    right: 0;
    bottom: 0.5rem;
    justify-content: flex-end;
    max-width: 24rem;
    transform: rotate(-4deg) translateZ(0);
    transform-origin: right center;
    /* Drawing the group on its own layer, then rotating, keeps edges smooth */
    backface-visibility: hidden;
  }

  .today-pill:hover {
    transform: rotate(-2deg);
  }

  /* Keep the title and lede clear of the pill on narrower desktops */
  .band__intro {
    max-width: min(50rem, 100% - 24rem);
  }
}

/* ── Page ─────────────────────────────────────────────────────────────── */

.page {
  flex: 1;
  width: 100%;
  max-width: calc(var(--page-max) + 4rem);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  padding-block: clamp(2rem, 5vw, 3.5rem) 4rem;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-content: start;
}

.section {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section__title {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
}

.section__more {
  font-weight: 600;
}

.section__more::after {
  content: " →";
}

/* Shared "brick" hover: lift, with a solid shadow in today's colour */
.post-card,
.tile {
  position: relative;
  display: grid;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  background: var(--klods-color-surface);
  border: 1px solid var(--klods-color-border);
  border-radius: var(--klods-radius-lg);
  transition:
    transform var(--klods-transition),
    box-shadow var(--klods-transition);
}

/* Post cards clip to their corners; tiles don't, so notes can hang off */
.post-card {
  overflow: hidden;
}

.post-card:hover,
.tile:hover,
.post-card:focus-visible,
.tile:focus-visible {
  transform: translate(calc(var(--lift) * -1), calc(var(--lift) * -1));
  box-shadow: var(--lift) var(--lift) 0 var(--drue-hero);
  text-decoration: none;
}

/* ── Post cards ──────────────────────────────────────────────────────── */

.post-card {
  grid-template-rows: auto 1fr;
}

.post-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--klods-color-surface-2);
  overflow: hidden;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.04);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.15rem 1.25rem;
}

.post-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--drue-secondary);
}

.post-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--klods-color-accent);
  text-wrap: balance;
}

.post-card__date {
  font-size: 0.85rem;
  color: var(--klods-color-muted);
}

.post-card__desc {
  font-size: 0.95rem;
  line-height: 1.5;
}

.post-card--feature .post-card__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.post-card--feature .post-card__desc {
  font-size: 1.05rem;
}

@media (min-width: 48rem) {
  .post-card--feature {
    grid-column: 1 / -1;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: none;
  }

  .post-card--feature .post-card__image {
    aspect-ratio: auto;
    min-height: 18rem;
  }

  .post-card--feature .post-card__body {
    justify-content: center;
    padding: 2rem;
    gap: 0.6rem;
  }
}

.latest,
.blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

@media (min-width: 48rem) {
  .latest {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Bento of things i've made ────────────────────────────────────────── */

.bento {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  grid-auto-flow: dense;
}

.tile {
  grid-template-rows: auto 1fr;
}

.tile__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--klods-radius-lg) - 1px) calc(var(--klods-radius-lg) - 1px) 0 0;
  background: var(--klods-color-surface-2);
  border-bottom: 1px solid var(--klods-color-border);
}

.tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.tile:hover .tile__image img {
  transform: scale(1.05);
}

.tile__live-colour {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--drue-hero);
  color: var(--drue-on-hero);
  font-family: var(--klods-font-mono);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.tile__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1.1rem 1.15rem;
}

.tile__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--klods-color-accent);
}

.tile__desc {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--klods-color-muted);
}

.tile__note {
  position: absolute;
  z-index: 1;
  top: -0.7rem;
  right: -0.9rem;
  max-width: 75%;
  padding: 0.15rem 0.6rem;
  font-size: 1.15rem;
  line-height: 1.15;
  text-align: right;
  color: var(--drue-secondary);
  background: var(--klods-color-bg);
  border: 2px solid currentColor;
  border-radius: var(--klods-radius-md);
  transform: rotate(3deg) translateZ(0);
  /* A half-pixel blur either side of the border softens the jaggies */
  box-shadow:
    0 0 0.5px currentColor,
    inset 0 0 0.5px currentColor,
    var(--klods-shadow-md);
  /* Rotated thin borders look jagged; drawing the note on its own GPU layer
     and then rotating it smooths the edges */
  backface-visibility: hidden;
  outline: 1px solid transparent;
}

@media (min-width: 40rem) {
  .tile--wide {
    grid-column: span 2;
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: none;
  }

  .tile--wide .tile__image {
    aspect-ratio: auto;
    min-height: 100%;
    border-bottom: 0;
    border-right: 1px solid var(--klods-color-border);
    border-radius: calc(var(--klods-radius-lg) - 1px) 0 0 calc(var(--klods-radius-lg) - 1px);
  }

  .tile--wide .tile__body {
    justify-content: center;
    padding: 1.5rem;
  }

  .tile--wide .tile__title {
    font-size: 1.5rem;
  }

  .tile--wide .tile__desc {
    font-size: 1rem;
  }
}

.cv-callout p {
  margin: 0;
  font-size: 1.1rem;
}

/* ── Blog index ───────────────────────────────────────────────────────── */

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}

.pagination > :last-child {
  text-align: right;
}

.pagination__page {
  color: var(--klods-color-muted);
  font-weight: 500;
}

.blog-follow {
  margin: 0;
  color: var(--klods-color-muted);
}

/* ── Single post ──────────────────────────────────────────────────────── */

.page--post {
  max-width: none;
  padding-top: 0;
  justify-items: center;
}

.post-cover {
  width: 100%;
  max-width: 60rem;
  margin: 0;
  margin-top: calc(clamp(2rem, 5vw, 3.5rem) * -0.6);
  position: relative;
}

.post-cover img {
  width: 100%;
  max-height: 32rem;
  object-fit: cover;
  border-radius: var(--klods-radius-lg);
  box-shadow: var(--klods-shadow-lg);
}

.band--post {
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.post-nav {
  width: 100%;
  max-width: 60rem;
  display: grid;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--klods-color-border);
}

/* ── Prose ────────────────────────────────────────────────────────────── */

.prose {
  width: 100%;
  max-width: var(--prose-max);
  min-width: 0;
  font-size: 1.06rem;
}

.prose > * {
  margin-block: 0;
}

.prose > * + * {
  margin-block-start: 1.15em;
}

.prose h2 {
  margin-block-start: 2.2em;
  font-size: 1.8rem;
  letter-spacing: -0.015em;
}

.prose h3 {
  margin-block-start: 1.8em;
  font-size: 1.35rem;
}

.prose h2 + *,
.prose h3 + * {
  margin-block-start: 0.6em;
}

.prose a {
  color: var(--klods-color-accent);
}

.prose img,
.prose iframe,
.prose video {
  max-width: 100%;
  height: auto;
  border-radius: var(--klods-radius-md);
}

/* Images on their own line break out a little wider than the text */
.prose p > img:only-child {
  width: 100%;
}

@media (min-width: 56rem) {
  .prose p:has(> img:only-child) {
    margin-inline: -3rem;
  }

  .prose div.highlighter-rouge,
  .prose figure.highlight {
    margin-inline: -2rem;
  }
}

.prose p > img:only-child {
  box-shadow: var(--klods-shadow-md);
}

.prose blockquote {
  margin-inline: 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--drue-secondary);
  color: var(--klods-color-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose li::marker {
  color: var(--klods-color-accent);
}

.prose hr {
  border: 0;
  height: 6px;
  width: 6rem;
  margin-block: 3rem;
  margin-inline: auto;
  background: radial-gradient(circle, var(--klods-color-muted) 2.5px, transparent 3px) 0 0 / 18px 6px repeat-x;
}

.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--klods-color-border);
  text-align: left;
}

.prose th {
  font-weight: 600;
}

/* JetBrains Mono joins => and === into single symbols; show what was typed */
code,
pre,
kbd {
  font-variant-ligatures: none;
}

.prose :not(pre) > code {
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  background: var(--klods-color-surface-2);
  border-radius: var(--klods-radius-sm);
}

.prose pre {
  margin: 0;
  padding: 1.1rem 1.25rem;
  font-size: 0.86rem;
  line-height: 1.6;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
  background: var(--klods-code-bg);
  color: var(--klods-code-fg);
  border-radius: var(--klods-radius-md);
  border: 1px solid var(--klods-color-border);
}

/* Rouge (Jekyll's highlighter) → klods code tokens */
.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cs,
.highlight .cp {
  color: var(--klods-code-comment);
  font-style: italic;
}

.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .o,
.highlight .ow {
  color: var(--klods-code-keyword);
}

.highlight .kc,
.highlight .m,
.highlight .mi,
.highlight .mf,
.highlight .mh,
.highlight .il,
.highlight .ss {
  color: var(--klods-code-number);
}

.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sr,
.highlight .sx,
.highlight .dl {
  color: var(--klods-code-string);
}

.highlight .nv {
  color: var(--klods-code-attr);
}

.highlight .kt,
.highlight .nc,
.highlight .no,
.highlight .nb,
.highlight .bp {
  color: var(--klods-code-type);
}

.highlight .na,
.highlight .nt {
  color: var(--klods-code-tag);
}

.highlight .nf,
.highlight .fm,
.highlight .nd {
  color: var(--klods-code-title);
}

/* Given / When / Then are the stars of a Cucumber post: today's colour */
.language-gherkin .highlight .nf,
.language-cucumber .highlight .nf {
  color: var(--klods-code-keyword);
}

.highlight .gd {
  color: var(--klods-code-keyword);
}

.highlight .gi {
  color: var(--klods-code-attr);
}

/* ── A year in colour (/colours/) ─────────────────────────────────────── */

.colours {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  min-width: 0;
}

.colours__intro {
  max-width: var(--prose-max);
  margin: 0;
  font-size: 1.06rem;
}

.calendar__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.calendar__year {
  min-width: 4ch;
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 6vw, 3rem);
  font-variant-numeric: tabular-nums;
}

.calendar__step {
  width: 2.75rem;
  height: 2.75rem;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--klods-color-accent);
  background: var(--klods-color-surface);
  border: 2px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
}

.calendar__step:hover {
  color: var(--klods-color-accent-fg);
  background: var(--klods-color-accent);
  border-color: var(--klods-color-accent);
}

.calendar__months {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: 2rem 1.75rem;
}

.month__name {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

/* Phones: two months side by side, so the year doesn't go on forever */
@media (max-width: 40rem) {
  .calendar__months {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }

  .month__name {
    font-size: 1rem;
  }

  .month__days {
    gap: 3px;
  }

  .day {
    font-size: 0.6rem;
    border-radius: 3px;
  }

  .month__weekday {
    font-size: 0.6rem;
  }
}

.month__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.month__weekday {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  color: var(--klods-color-muted);
}

.day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--day-ink);
  background: var(--day);
  border-radius: 5px;
  text-decoration: none;
  /* A hairline so very pale and very dark days still show their edges */
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--klods-color-fg) 12%, transparent);
  transition: transform var(--klods-transition);
}

.day:hover,
.day:focus-visible {
  position: relative;
  z-index: 1;
  transform: scale(1.35);
  box-shadow: var(--klods-shadow-md);
}

.day--today {
  outline: 3px solid var(--klods-color-fg);
  outline-offset: 2px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

/* Today's colour again, mirrored: the gradient runs the other way and the
   studs gather in the bottom left instead of the top right */
.site-footer {
  position: relative;
  overflow: hidden;
  color: var(--drue-on-hero);
  background: linear-gradient(125deg, var(--drue-hero-2) 0%, var(--drue-hero) 60%, var(--drue-hero) 100%);
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, currentColor 0 18%, transparent 19%);
  background-size: 56px 56px;
  opacity: 0.07;
  pointer-events: none;
  mask-image: linear-gradient(20deg, #000 0%, transparent 70%);
}

.site-footer__inner {
  position: relative;
  max-width: var(--page-max);
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

/* Signed at the bottom, in my own handwriting */
.site-footer__signature {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1;
  transform: rotate(-3deg);
  transform-origin: left center;
}

/* On wider screens the signature sits on the right, mirroring the
   "today the site is" pill at the top right of the header */
@media (min-width: 48rem) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-footer__signature {
    grid-column: 2;
    grid-row: 1 / span 2;
    transform: rotate(3deg);
    transform-origin: right center;
  }
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.site-footer__small {
  font-size: 0.875rem;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .tile,
  .post-card__image img,
  .tile__image img,
  .band__button,
  .today-pill,
  .today-button--shuffle {
    transition: none;
  }

  .today-button--shuffle:hover,
  .today-button--shuffle:active {
    transform: none;
  }

  .post-card:hover,
  .tile:hover,
  .post-card:hover .post-card__image img,
  .tile:hover .tile__image img {
    transform: none;
  }
}

/* ── Tags ─────────────────────────────────────────────────────────────── */

.tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* On phones: one row that scrolls sideways, running to the screen edges */
@media (max-width: 40rem) {
  .tag-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter-r) * -1);
    padding-left: var(--gutter);
    padding-right: var(--gutter-r);
    padding-block: 2px;
  }

  .tag-bar__link {
    flex: none;
  }
}

.tag-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.6rem 0.4rem 0.9rem;
  border: 1.5px solid var(--klods-color-border);
  border-radius: var(--klods-radius-pill);
  background: var(--klods-color-surface);
  color: var(--klods-color-fg);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition:
    border-color var(--klods-transition),
    background var(--klods-transition);
}

.tag-bar__link:hover {
  border-color: var(--klods-color-accent);
  text-decoration: none;
}

.tag-bar__count {
  min-width: 1.6em;
  padding: 0.1em 0.45em;
  border-radius: var(--klods-radius-pill);
  background: var(--klods-color-surface-2);
  color: var(--klods-color-muted);
  font-size: 0.8em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tag-bar__link.is-current {
  background: var(--klods-color-accent);
  border-color: var(--klods-color-accent);
  color: var(--klods-color-accent-fg);
}

.tag-bar__link.is-current .tag-bar__count {
  background: color-mix(in srgb, var(--klods-color-accent-fg) 20%, transparent);
  color: inherit;
}

.tag-bar__link--series {
  border-style: dashed;
  border-color: var(--drue-secondary);
}

.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.pill {
  padding: 0.2rem 0.55rem;
  border: 1.5px solid var(--klods-color-border);
  border-radius: var(--klods-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--klods-color-muted);
}

.pill--series {
  border-color: var(--drue-secondary);
  color: var(--drue-secondary);
}

.band__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.band__tags a {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border: 1.5px solid currentColor;
  border-radius: var(--klods-radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.band__tags a:hover {
  background: var(--drue-on-hero);
  color: var(--drue-hero);
}

/* ── Series ───────────────────────────────────────────────────────────── */

/* Box at the top of a post in a series */
.series-box {
  border: 2px solid var(--drue-secondary);
  border-radius: var(--klods-radius-lg);
  background: var(--klods-color-surface);
  overflow: hidden;
}

.series-box summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.series-box summary::-webkit-details-marker {
  display: none;
}

.series-box summary::after {
  content: "Show all";
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--klods-color-accent);
}

.series-box[open] summary::after {
  content: "Hide";
}

.series-box__part {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--drue-secondary);
}

.series-box__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.series-box .series-box__list {
  display: grid;
  gap: 0.55rem;
  margin: 0 1.1rem;
  padding: 1rem 0 1.1rem 1.9rem;
  border-top: 1px solid var(--klods-color-border);
  font-size: 0.97rem;
  line-height: 1.4;
}

.series-box .series-box__list li {
  margin: 0;
  padding-left: 0.3rem;
}

.series-box .series-box__list li::marker {
  color: var(--klods-color-muted);
  font-variant-numeric: tabular-nums;
}

.series-box__list li[aria-current] {
  font-weight: 600;
}

.series-box__list li[aria-current]::marker {
  color: var(--drue-secondary);
}

.series-box__here {
  font-family: var(--font-hand);
  color: var(--drue-secondary);
  font-size: 1.1rem;
  white-space: nowrap;
}

.series-box__here::before {
  content: "← ";
}

.series-box__all {
  display: inline-block;
  margin: 0 1.1rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.series-box__all::after {
  content: " →";
}

/* "Next in the series" after a post */
.series-next {
  width: 100%;
  max-width: 60rem;
  display: grid;
}

.series-next .post-card {
  border: 2px solid var(--drue-secondary);
}

@media (min-width: 48rem) {
  .series-next .post-card,
  .post-nav .post-card {
    grid-template-columns: 18rem 1fr;
    grid-template-rows: none;
  }

  .series-next .post-card__image,
  .post-nav .post-card__image {
    aspect-ratio: auto;
    min-height: 10rem;
  }
}

.series-next__done {
  margin: 0;
  padding: 1rem 1.25rem;
  border: 2px dashed var(--drue-secondary);
  border-radius: var(--klods-radius-lg);
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--drue-secondary);
  text-align: center;
}

.series-next__done a {
  color: inherit;
}

/* "In this post": a folded box at the top on smaller screens, and a sticky
   list in the right-hand margin when there's room */
.prose h2[id],
.prose h3[id] {
  scroll-margin-top: 1.5rem;
}

/* The "#" after a heading: shows on hover, or faintly on touch screens */
.heading-link {
  position: relative;
  color: var(--klods-color-accent);
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--klods-transition);
}

.prose :is(h2, h3):hover .heading-link,
.heading-link:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .heading-link {
    opacity: 0.35;
  }
}

.heading-link[data-copied] {
  opacity: 1;
}

.heading-link[data-copied]::after {
  content: "copied!";
  position: absolute;
  left: 100%;
  bottom: 0.6em;
  margin-left: 0.3rem;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--drue-secondary);
  transform: rotate(-6deg);
}

.post-toc {
  margin-bottom: 2rem;
}

.series-box + .post-toc {
  margin-top: 1rem;
}

.post-toc__box {
  border: 1px solid var(--klods-color-border);
  border-radius: var(--klods-radius-lg);
  background: var(--klods-color-surface);
}

.post-toc__summary {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
}

.post-toc__summary::-webkit-details-marker {
  display: none;
}

.post-toc__summary::after {
  content: "Show";
  margin-left: auto;
  font-family: var(--klods-font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--klods-color-accent);
}

.post-toc__box[open] .post-toc__summary::after {
  content: "Hide";
}

.post-toc__count {
  font-family: var(--klods-font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--klods-color-muted);
}

.prose .post-toc__list {
  display: grid;
  gap: 0.15rem;
  margin: 0 1.1rem;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid var(--klods-color-border);
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.35;
}

.prose .post-toc__list li {
  margin: 0;
}

.post-toc__list a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.75rem;
  color: var(--klods-color-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition:
    color var(--klods-transition),
    border-color var(--klods-transition);
}

.post-toc__sub a {
  padding-left: 1.6rem;
  font-size: 0.92em;
}

.post-toc__list a:hover {
  color: var(--klods-color-fg);
}

.post-toc__list a[aria-current] {
  color: var(--klods-color-accent);
  font-weight: 600;
  border-left-color: currentColor;
}

@media (min-width: 84rem) {
  .page--post .prose {
    position: relative;
  }

  /* A strip as tall as the post, so the list inside can stick */
  .post-toc {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% + 5rem);
    width: 15rem;
    margin: 0;
  }

  .series-box + .post-toc {
    margin-top: 0;
  }

  /* Padding inside the scroll area, so the display font's tall letters
     aren't clipped at the edges */
  .post-toc__box {
    position: sticky;
    top: 1.6rem;
    max-height: calc(100vh - 3.2rem);
    overflow-y: auto;
    padding: 0.4rem 0.4rem 0.4rem 0.3rem;
    margin: -0.4rem -0.4rem 0 -0.3rem;
    background: none;
    border: 0;
  }

  .post-toc__summary {
    padding: 0 0 0.5rem;
    cursor: default;
    pointer-events: none;
  }

  .post-toc__summary::after,
  .post-toc__count {
    display: none;
  }

  .prose .post-toc__list {
    margin: 0;
    padding: 0;
    border-top: 0;
    border-left: 1px solid var(--klods-color-border);
  }

  .post-toc__list a {
    margin-left: -2px;
  }
}

/* "Reply on Mastodon" after a post: a speech bubble with a note stuck on */
.post-reply {
  position: relative;
  width: 100%;
  max-width: var(--prose-max);
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--klods-color-surface);
  border: 2px solid var(--klods-color-accent);
  border-radius: var(--klods-radius-lg);
}

/* The bubble's tail, a square turned 45° with two of its borders showing */
.post-reply::after {
  content: "";
  position: absolute;
  left: 2.5rem;
  bottom: -11px;
  width: 20px;
  height: 20px;
  background: inherit;
  border: inherit;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
  transform: rotate(45deg);
}

.post-reply__note {
  position: absolute;
  top: -0.9rem;
  right: -0.6rem;
  margin: 0;
  padding: 0.1rem 0.6rem;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--drue-secondary);
  background: var(--klods-color-bg);
  border: 2px solid currentColor;
  border-radius: var(--klods-radius-md);
  transform: rotate(4deg) translateZ(0);
  box-shadow:
    0 0 0.5px currentColor,
    inset 0 0 0.5px currentColor,
    var(--klods-shadow-md);
  backface-visibility: hidden;
  outline: 1px solid transparent;
}

.post-reply__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.post-reply p {
  margin: 0;
}

.post-reply__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.post-reply .post-reply__hint {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--klods-color-muted);
}

/* Series promo on the blog index: a fanned stack of covers */
.series-promo {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
  color: inherit;
  text-decoration: none;
  background: var(--klods-color-surface);
  border: 2px dashed var(--drue-secondary);
  border-radius: var(--klods-radius-lg);
  transition:
    transform var(--klods-transition),
    box-shadow var(--klods-transition);
}

.series-promo:hover,
.series-promo:focus-visible {
  transform: translate(calc(var(--lift) * -1), calc(var(--lift) * -1));
  box-shadow: var(--lift) var(--lift) 0 var(--drue-secondary);
  text-decoration: none;
}

.series-promo__stack {
  position: relative;
  height: 11rem;
}

.series-promo__stack img {
  position: absolute;
  top: 0.5rem;
  left: calc(var(--i) * 18%);
  width: 46%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--klods-radius-md);
  border: 3px solid var(--klods-color-bg);
  box-shadow: var(--klods-shadow-md);
  transform: rotate(calc(-6deg + var(--i) * 4deg));
  transition: transform 300ms ease;
}

.series-promo:hover .series-promo__stack img {
  transform: rotate(calc(-9deg + var(--i) * 6deg)) translateY(calc(var(--i) * -3px));
}

.series-promo__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.series-promo__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--klods-color-accent);
}

.series-promo__desc {
  max-width: 34rem;
}

.series-promo__cta {
  font-weight: 600;
  color: var(--klods-color-accent);
}

.series-promo__cta::after {
  content: " →";
}

@media (min-width: 48rem) {
  .series-promo {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 2.5rem;
  }
}

/* Numbered list on the series page */
.series-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.series-list__item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.75rem;
  align-items: start;
  min-width: 0;
}

.series-list__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  color: var(--drue-secondary);
  text-align: right;
}

@media (min-width: 48rem) {
  .series-list__item {
    grid-template-columns: 5rem 1fr;
    gap: 1.25rem;
  }

  .series-list .post-card {
    grid-template-columns: 20rem 1fr;
    grid-template-rows: none;
  }

  .series-list .post-card__image {
    aspect-ratio: auto;
    min-height: 11rem;
  }

  .series-list .post-card__body {
    justify-content: center;
    padding: 1.25rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .series-promo,
  .series-promo__stack img {
    transition: none;
  }

  .series-promo:hover,
  .series-promo:hover .series-promo__stack img {
    transform: none;
  }
}

/* ── 404 adventure ────────────────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.adventure {
  width: 100%;
  max-width: 46rem;
  display: grid;
  gap: 1.25rem;
}

.adventure__screen {
  display: grid;
  border: 2px solid var(--drue-hero);
  border-radius: var(--klods-radius-lg);
  background: var(--klods-code-bg);
  color: var(--klods-code-fg);
  box-shadow: var(--lift) var(--lift) 0 var(--drue-hero);
  font-family: var(--klods-font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  overflow: hidden;
}

.adventure__log {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-height: 14rem;
  max-height: 26rem;
  overflow-y: auto;
  padding: 1.25rem 1.25rem 0.5rem;
}

.adventure__log p,
.adventure__log div {
  margin: 0;
}

.adventure__log ul {
  margin: 0.4rem 0 0;
  padding-left: 1.4em;
}

.adventure__log a {
  color: var(--klods-color-accent);
}

.adventure__log kbd,
.adventure__exits kbd {
  font-family: inherit;
  font-weight: 600;
  color: var(--klods-color-accent);
}

.adventure__echo {
  color: var(--klods-code-comment);
}

.adventure__hint {
  color: var(--klods-code-comment);
}

.adventure__form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px dashed var(--klods-color-border);
}

.adventure__form[hidden] {
  display: none;
}

.adventure__prompt {
  flex: none;
  font-weight: 600;
  color: var(--klods-color-accent);
}

.adventure__prompt::after {
  content: " >";
}

.adventure__input {
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  caret-color: var(--klods-color-accent);
}

.adventure__input:focus-visible {
  outline: none;
}

.adventure__form:focus-within {
  background: color-mix(in srgb, var(--klods-color-accent) 8%, transparent);
}

.adventure__exits {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.25rem;
  margin: 0;
  font-weight: 600;
}

.adventure__exits .hand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--drue-secondary);
}

.page:has(.adventure) {
  justify-items: center;
}

/* ── Feature tile (Merlin's Castle) ───────────────────────────────────── */

.tile--feature {
  grid-column: 1 / -1;
}

.tile--feature .tile__image {
  aspect-ratio: 16 / 10;
}

.tile__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--drue-secondary);
}

.tile__cta {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--klods-color-accent);
}

.tile__cta::after {
  content: " →";
}

.tile--feature .tile__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tile--feature .tile__desc {
  font-size: 1rem;
  line-height: 1.55;
}

@media (min-width: 48rem) {
  .tile--feature {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: none;
  }

  .tile--feature .tile__image {
    aspect-ratio: auto;
    min-height: 22rem;
    border-bottom: 0;
    border-right: 1px solid var(--klods-color-border);
    border-radius: calc(var(--klods-radius-lg) - 1px) 0 0 calc(var(--klods-radius-lg) - 1px);
  }

  .tile--feature .tile__body {
    justify-content: center;
    gap: 0.6rem;
    padding: 2rem;
  }
}

/* ── Project groups ───────────────────────────────────────────────────── */

.bento-group {
  display: grid;
  /* Room for handwritten notes that hang above the first row */
  gap: 1.5rem;
  min-width: 0;
}

.bento-group + .bento-group {
  margin-top: 1.5rem;
}

.bento-group__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-size: 0.8rem;
  font-family: var(--klods-font-sans);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--klods-color-muted);
}

/* A thin rule runs from the heading to the edge */
.bento-group__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--klods-color-border);
}

/* ── Find me elsewhere ────────────────────────────────────────────────── */

.elsewhere {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Six places: two neat rows of three on wide screens */
@media (min-width: 60rem) {
  .elsewhere {
    gap: 1.25rem;
    grid-template-columns: repeat(3, 1fr);
  }
}

.elsewhere li {
  display: grid;
  min-width: 0;
}

.elsewhere__card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.2rem;
  padding: 0.9rem 2.2rem 1rem 1rem;
  color: inherit;
  text-decoration: none;
  background: var(--klods-color-surface);
  border: 1px solid var(--klods-color-border);
  border-radius: var(--klods-radius-lg);
  transition:
    transform var(--klods-transition),
    box-shadow var(--klods-transition);
}

/* A little arrow pointing off the site */
.elsewhere__card::after {
  content: "↗";
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--klods-color-muted);
  transition: transform var(--klods-transition);
}

.elsewhere__card:hover,
.elsewhere__card:focus-visible {
  transform: translate(calc(var(--lift) * -1), calc(var(--lift) * -1));
  box-shadow: var(--lift) var(--lift) 0 var(--drue-hero);
  text-decoration: none;
}

.elsewhere__card:hover::after {
  color: var(--klods-color-accent);
  transform: translate(2px, -2px);
}

.elsewhere__verb {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--drue-secondary);
}

.elsewhere__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.2;
  color: var(--klods-color-accent);
}

@media (min-width: 48rem) {
  .elsewhere__card {
    padding: 1.1rem 3rem 1.2rem 1.2rem;
  }
}

.elsewhere__handle {
  font-family: var(--klods-font-mono);
  font-size: 0.85rem;
  color: var(--klods-color-muted);
  overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .elsewhere__card,
  .elsewhere__card::after {
    transition: none;
  }

  .elsewhere__card:hover,
  .elsewhere__card:hover::after {
    transform: none;
  }
}
