/* irl-strip.css - the DEF banner (irl-strip.js), in motion from 4 Dec 2026: def.social from 3 Dec 2026, first built
   14 Nov 2026 for irl.ing. DEF's own tokens and rules (its docs/brand.md): paper #EEEEEE and #222222, charcoal
   #333333 and #DDDDDD, the record red #FF3B2F (--rec) with ink #1A1A1A on it (never white), the headline on its flat
   block (--hl), Departure Mono, hairlines, and no gradients, glows or shadows. Motion is hard steps only (the script
   sets them); nothing here animates. It follows b0b.dev's LIGHT/DARK (html[data-theme="light"]) and keeps its own
   look in both of b0b.dev's designs. */
@font-face {
  font-family: "Departure Mono";
  src: url("/fonts/departure-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.irl-strip {
  --i-bg: #222222;
  --i-fg: #DDDDDD;
  --i-fg2: #9E9E9E;
  --i-line: #444444;
  --i-hl: #444444;
  --i-rec: #FF3B2F;
  --i-ink: #1A1A1A;
  container-type: inline-size;
  position: relative;
  display: block;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  background: none;
  font-family: "Departure Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  text-align: start;
  text-shadow: none;
}
html[data-theme="light"] .irl-strip {
  --i-bg: #EEEEEE;
  --i-fg: #333333;
  --i-fg2: #666666;
  --i-line: #CCCCCC;
  --i-hl: #CCCCCC;
}
.irl-strip *,
.irl-strip *::before,
.irl-strip *::after {
  box-sizing: border-box;
  text-shadow: none;
}

/* The whole banner is one link. Reset whatever the page does to links. */
.irl-strip a.irl-s,
.irl-strip a.irl-s:visited,
.irl-strip a.irl-s:hover {
  display: flex;
  flex-direction: column;
  padding: 12px 16px 10px;
  background: var(--i-bg);
  color: var(--i-fg);
  border: 1px solid var(--i-line);
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}
.irl-strip a.irl-s:focus-visible {
  outline: 2px solid var(--i-rec);
  outline-offset: 3px;
}

/* The ad label: DEF's label style, small, uppercase, open tracking. */
.irl-s-label {
  display: block;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--i-fg2);
}

/* One grid. From 480 px: the seal, with the wordmark beside it and the stage under the wordmark; then the price,
   with the button beside it. */
.irl-s-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "mk   wm    wm"
    "mk   stage stage"
    "note note  cta";
  align-items: start;
  column-gap: 12px;
  row-gap: 8px;
  margin: 10px 0 0;
}
.irl-s-mk {
  grid-area: mk;
  display: block;
}
.irl-s-wm {
  grid-area: wm;
  display: block;
}
.irl-s-seal {
  display: block;
  flex: none;
  width: 66px; /* the seal's 33-cell grid at 2 px a cell: whole numbers only */
  height: 66px;
}
.irl-s-word {
  display: block;
  flex: none;
  width: 136px; /* the wordmark's 68 x 10 grid at 2 px a cell */
  height: 20px;
  color: var(--i-fg);
}
/* The stage: one frame at a time, as tall as its tallest frame (the script measures it), the frame in its
   middle. The card is what turns edge-on. */
.irl-s-stage {
  grid-area: stage;
  display: flex;
  align-items: center;
  min-width: 0;
}
.irl-s-card {
  display: block;
  width: 100%;
  min-width: 0;
  transform-origin: 50% 50%;
}
.irl-s-h {
  display: inline;
  padding: 3px 8px 0 6px;
  background: var(--i-hl);
  color: var(--i-fg);
  font-size: 28px;
  line-height: 38px;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  overflow-wrap: anywhere;
}
.irl-s-dot {
  color: var(--i-rec);
}
/* A reason: plain words after a red arrow. */
.irl-s-p {
  display: block;
  color: var(--i-fg);
  font-size: 17px;
  line-height: 23px;
  overflow-wrap: anywhere;
}
.irl-s-arr {
  color: var(--i-rec);
}
/* The stop and the arrow hop one step as a line lands. */
.irl-s-dot.is-hop,
.irl-s-arr.is-hop {
  position: relative;
  top: -2px;
}
.irl-s-cta {
  grid-area: cta;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--i-rec);
  color: var(--i-ink);
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.irl-strip a.irl-s:hover .irl-s-cta {
  outline: 2px solid var(--i-fg);
  outline-offset: 2px;
}

/* The price and the 18+ line under the headline, after a dithered tick. */
.irl-s-note {
  grid-area: note;
  align-self: center;
  display: block;
  position: relative;
  margin: 2px 0 0;
  padding-inline-start: 12px;
  font-size: 13px;
  line-height: 18px;
  color: var(--i-fg2);
}
.irl-s-note::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 4px;
  height: 16px;
  background: repeating-conic-gradient(var(--i-fg2) 0 25%, transparent 0 50%) 0 0 / 2px 2px;
}
.irl-s-offer,
.irl-s-fine {
  display: inline;
  unicode-bidi: isolate; /* "ETH." and "18+." stay in order in Arabic */
}

/* A ruler at the foot: a hairline with ticks, and while the ad runs, a red cell that steps along it. */
.irl-s-ruler {
  position: relative;
  display: block;
  flex: none;
  height: 9px;
  margin-top: 10px;
}
.irl-s-ruler::before {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--i-fg2);
  background:
    repeating-linear-gradient(to right, var(--i-fg2) 0 1px, transparent 1px 125px) left bottom / 100% 8px no-repeat,
    repeating-linear-gradient(to right, var(--i-fg2) 0 1px, transparent 1px 25px) left bottom / 100% 4px no-repeat;
  opacity: 0.6;
}
.irl-s-mark {
  display: none;
  position: absolute;
  bottom: 1px;
  inset-inline-start: calc((100% - 4px) * var(--f, 0));
  width: 4px;
  height: 4px;
  background: var(--i-rec);
}
.irl-strip.is-playing .irl-s-mark {
  display: block;
}

/* The pause button, at the end of the ruler while the ad runs: a 24 px square, drawn in whole pixels. The ruler
   makes room for it. */
.irl-strip.is-running .irl-s-ruler {
  margin-inline-end: 30px;
}
.irl-strip .irl-s-pause {
  position: absolute;
  bottom: 2px;
  inset-inline-end: 8px;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--i-fg2);
  cursor: pointer;
  font: inherit;
}
.irl-strip .irl-s-pause[hidden] {
  display: none;
}
.irl-strip .irl-s-pause:hover {
  color: var(--i-fg);
}
.irl-strip .irl-s-pause:focus-visible {
  outline: 2px solid var(--i-rec);
  outline-offset: 1px;
}
.irl-strip .irl-s-pause::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 8px;
  height: 10px;
  background: linear-gradient(to right, currentColor 0 3px, transparent 3px 5px, currentColor 5px 8px);
}
.irl-strip .irl-s-pause[data-state="paused"]::before {
  left: 9px;
  width: 6px;
  /* a play triangle in whole pixels: 10 rows, widest in the middle */
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 1px 10px no-repeat,
    linear-gradient(currentColor, currentColor) 1px 1px / 1px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 2px 2px / 1px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 3px 3px / 1px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 4px / 1px 2px no-repeat;
}
.irl-strip[dir="rtl"] .irl-s-pause[data-state="paused"]::before {
  transform: scaleX(-1);
}

/* The reasons, for screen readers only (the stage itself isn't read: it moves). */
.irl-s-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Departure Mono has Latin and Cyrillic only. As on DEF's own pages (its src/i18n/i18n.css), the
   other scripts fall through to the reader's own system font, never a monospace one (a fixed-width
   Arabic or Devanagari face pulls the letters apart), and no font is fetched for them. Hindi and
   Korean, which DEF doesn't carry, get the same kind of stack. */
.irl-strip:lang(zh) {
  font-family: "Departure Mono", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}
.irl-strip:lang(ja) {
  font-family: "Departure Mono", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans JP", "Source Han Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}
.irl-strip:lang(ko) {
  font-family: "Departure Mono", "Apple SD Gothic Neo", "Noto Sans CJK KR", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
.irl-strip:lang(ar) {
  font-family: "Departure Mono", "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, Arial, sans-serif;
}
.irl-strip:lang(hi) {
  font-family: "Departure Mono", "Noto Sans Devanagari", "Kohinoor Devanagari", "Devanagari Sangam MN", "Nirmala UI", Mangal, sans-serif;
}
/* Scripts that don't take capitals or tracking: no uppercase, no closed-up or opened-up letters
   (letter-spacing would break Arabic's joins). Arabic and Devanagari need more line height. */
.irl-strip:is(:lang(ar), :lang(hi), :lang(zh), :lang(ja), :lang(ko)) .irl-s-h,
.irl-strip:is(:lang(ar), :lang(hi), :lang(zh), :lang(ja), :lang(ko)) .irl-s-label {
  letter-spacing: 0;
  text-transform: none;
}
.irl-strip:is(:lang(ar), :lang(hi)) .irl-s-h,
.irl-strip:is(:lang(ar), :lang(hi)) .irl-s-p {
  line-height: 1.5;
}

/* A column under 900 px: the headline a size down, so two lines of it still fit beside the seal. */
@container (max-width: 899px) {
  .irl-s-h {
    font-size: 22px;
    line-height: 30px;
  }
  .irl-s-p {
    font-size: 16px;
    line-height: 22px;
  }
}
/* Under 600 px: DEF's phone lockup (its scripts/brand/pixel.py), the seal at 1 px a cell, a 9-cell gap and the
   wordmark at twice the seal's cells, with the button beside them (it may take two lines); the stage and the price
   under them at full width. The wordmark keeps its 2 px cells: DEF's smallest size for it on screen is 18 px tall
   (the seal's is 24 px), and a cell that isn't a whole number of pixels blurs it. */
@container (max-width: 599px) {
  .irl-strip a.irl-s,
  .irl-strip a.irl-s:visited,
  .irl-strip a.irl-s:hover {
    padding: 10px 12px 8px;
  }
  .irl-s-row {
    column-gap: 9px;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas:
      "mk    wm    cta"
      "stage stage stage"
      "note  note  note";
  }
  .irl-s-mk,
  .irl-s-wm {
    align-self: center;
  }
  .irl-s-seal {
    width: 33px;
    height: 33px;
  }
  .irl-s-cta {
    justify-self: end;
    max-width: 100%;
    min-height: 44px;
    padding: 6px 12px;
    font-size: 14px;
    white-space: normal;
  }
}
/* A phone: the stage and the price a size down. */
@container (max-width: 479px) {
  .irl-s-h {
    font-size: 21px;
    line-height: 30px;
  }
  .irl-s-p {
    font-size: 13px;
    line-height: 18px;
  }
  .irl-s-note {
    font-size: 12px;
    line-height: 17px;
  }
}
/* Very narrow: everything stacked. */
@container (max-width: 299px) {
  .irl-s-row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "mk    wm"
      "stage stage"
      "note  note"
      "cta   cta";
  }
  .irl-s-cta {
    justify-self: stretch;
  }
}

/* Readers without script get the plain link the page carries, on the same ground and in the same
   space, so nothing moves when the script fills it in: the banner's height in English, measured at each
   container width (4 Dec 2026). */
.irl-strip a.irl-s.irl-s-plain {
  min-height: 195px;
  justify-content: center;
  font-size: 14px;
}
@container (max-width: 899px) { .irl-strip a.irl-s.irl-s-plain { min-height: 205px; } }
@container (max-width: 729px) { .irl-strip a.irl-s.irl-s-plain { min-height: 227px; } }
@container (max-width: 699px) { .irl-strip a.irl-s.irl-s-plain { min-height: 245px; } }
@container (max-width: 599px) { .irl-strip a.irl-s.irl-s-plain { min-height: 247px; } }
@container (max-width: 479px) { .irl-strip a.irl-s.irl-s-plain { min-height: 255px; } }
@container (max-width: 379px) { .irl-strip a.irl-s.irl-s-plain { min-height: 269px; } }
@container (max-width: 359px) { .irl-strip a.irl-s.irl-s-plain { min-height: 286px; } }
@container (max-width: 329px) { .irl-strip a.irl-s.irl-s-plain { min-height: 336px; } }
@container (max-width: 299px) { .irl-strip a.irl-s.irl-s-plain { min-height: 376px; } }

/* An ad has no place in a printed or saved copy of the report. */
@media print {
  .irl-strip {
    display: none !important;
  }
}
