/* Wissen. Tokens follow the live blrrd.ai site (styles.css + brand.css, Oct 2026):
   offwhite #edece5, charcoal #171917, sulphur #d9ed50, Outfit, tight display type. */

:root {
  --bg: #171917;
  --ink: #edece5;
  --graphite: #d1d3c9;
  --muted: #b7bab0;
  --line: rgba(237, 236, 229, 0.16);
  --sulphur: #d9ed50;
  --charcoal: #171917;
  --offwhite: #edece5;
  --footer: #171917;
  --footer-muted: #b7bab0;
  --footer-line: #56594f;
  --tldr-bg: #171917;
  --tldr-ink: #edece5;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink);
  --font: "Outfit", system-ui, sans-serif;
  --header-h: 80px;
  --measure: 40.5rem;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171917;
    --ink: #edece5;
    --graphite: #d1d3c9;
    --muted: #b7bab0;
    --line: rgba(237, 236, 229, 0.16);
    --tldr-bg: #101210;
    --tldr-ink: #edece5;
    --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

::selection {
  background: var(--sulphur);
  color: var(--charcoal);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--charcoal);
  color: var(--offwhite);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.footer-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(88rem, calc(100% - 7vw));
  min-height: var(--header-h);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 90px;
  height: auto;
}

.logo .wordmark--offwhite {
  display: none;
}

.site-name {
  margin-left: 0.85rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header-back {
  margin-left: auto;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-back:hover,
.site-name:hover {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.page {
  width: min(var(--measure), calc(100% - 7vw));
  margin-inline: auto;
  padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 5.5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tick {
  width: 1px;
  height: 0.95em;
  background: var(--ink);
  flex: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.75rem);
}

.lede {
  margin: 1rem 0 0;
  max-width: 36ch;
  color: var(--graphite);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.4;
}

.post-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}

.post-list a {
  display: block;
  padding: 1.15rem 0 1.25rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.post-list li:last-child a {
  border-bottom: 1px solid var(--line);
}

.post-list time {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-list h2 {
  margin: 0.4rem 0 0.35rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.post-list p {
  margin: 0;
  color: var(--graphite);
  font-size: 1.02rem;
}

.post-list a:hover h2 {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.empty {
  margin: 2rem 0 0;
  color: var(--graphite);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.meta a {
  color: var(--ink);
}

.tldr {
  margin: 1.75rem 0 0;
  padding: 1.05rem 1.15rem 1.1rem 1.05rem;
  background: var(--tldr-bg);
  color: var(--tldr-ink);
  border-left: 3px solid var(--sulphur);
}

.tldr h2 {
  margin: 0 0 0.65rem;
  color: var(--sulphur);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tldr ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tldr li {
  position: relative;
  margin: 0.4rem 0 0;
  padding-left: 0.95rem;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.tldr li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 2px;
  background: var(--sulphur);
}

.story-group {
  margin-top: 2.6rem;
}

.section-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}

.story {
  padding-top: 1.15rem;
}

.story + .story {
  margin-top: 0.4rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.story h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.story__body p {
  margin: 0 0 0.75rem;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

.story__body p:last-child {
  margin-bottom: 0;
}

.story-figure {
  margin: 0 0 0.9rem;
}

.story-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 28rem;
  height: auto;
  margin-inline: auto;
}

.story-figure figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.edition > .story-figure {
  margin-top: 1.5rem;
}

.glance {
  margin-top: 1.35rem;
}

.glance .section-label {
  margin-bottom: 0.7rem;
}

.glance__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
}

.glance__value {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.glance__value::after {
  content: "";
  display: block;
  width: 1.15rem;
  height: 2px;
  margin-top: 0.4rem;
  background: var(--sulphur);
}

.glance__label {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.5rem 0.12rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.tag svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viz {
  margin: 0.15rem 0 1rem;
}

.viz__title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}

.viz__row {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.45rem;
}

.viz__label {
  font-size: 0.875rem;
  line-height: 1.2;
}

.viz__track {
  display: block;
  height: 0.4rem;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.viz__bar {
  display: block;
  height: 100%;
  background: var(--sulphur);
  border-radius: 999px;
}

.viz--bars .viz__num {
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.viz__note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.viz__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.75rem 1rem;
  margin-top: 0.55rem;
}

.viz__stat .viz__num {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.viz__stat .viz__label {
  display: block;
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.sources {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sources a {
  font-weight: 500;
  text-decoration-thickness: 1px;
}

.sources a:hover {
  text-decoration-thickness: 2px;
}

.source-meta {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.back {
  margin: 2.5rem 0 0;
  font-size: 0.9375rem;
}

.site-footer {
  background: var(--footer);
  color: var(--offwhite);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.footer-inner {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  gap: 0;
}

.footer-brand img {
  display: block;
  width: 132px;
  height: auto;
}

.footer-sign {
  margin: 1rem 0 0;
  color: var(--footer-muted);
  font-size: 0.9375rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  width: 100%;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--footer-line);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--offwhite);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
  text-decoration-color: var(--sulphur);
  text-underline-offset: 0.28em;
}

@media (prefers-color-scheme: dark) {
  .logo .wordmark--charcoal {
    display: none;
  }

  .logo .wordmark--offwhite {
    display: block;
  }

  .tick {
    background: var(--sulphur);
  }

  .sources a:hover {
    text-decoration-color: var(--sulphur);
  }
}

@media (max-width: 720px) {
  .glance__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viz__row {
    grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .site-header__inner,
  .footer-inner,
  .page {
    width: 88%;
  }

  .logo img {
    width: 78px;
  }

  .site-name {
    font-size: 1.15rem;
  }
}

@media (max-width: 380px) {
  .header-back {
    font-size: 0.8125rem;
  }

  .site-name {
    margin-left: 0.6rem;
    padding-left: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Dark-first editorial index. The supplied cover gives the latest edition its
   own physical front page; the archive stays deliberately quiet underneath. */
.logo .wordmark--charcoal {
  display: none;
}

.logo .wordmark--offwhite {
  display: block;
}

.language-nav {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.25rem;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.language-nav a {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0.22rem 0.36rem;
  color: var(--muted);
  text-decoration: none;
}

.language-nav a[aria-current="page"] {
  background: var(--sulphur);
  color: var(--charcoal);
}

.index-hero {
  border-bottom: 1px solid var(--line);
}

.index-hero__inner {
  width: min(88rem, calc(100% - 7vw));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(16rem, 1.15fr) minmax(15rem, 0.85fr);
  gap: clamp(2rem, 7vw, 9rem);
  align-items: end;
  padding: clamp(2.8rem, 4vw, 4rem) 0;
}

.index-hero h1 {
  max-width: 12ch;
  font-size: clamp(5rem, 9vw, 8.5rem);
}

.index-hero .lede {
  margin: 0 0 0.45rem;
}

.index.page {
  width: min(88rem, calc(100% - 7vw));
}

.latest-edition {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  padding-bottom: clamp(3.4rem, 7vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.latest-edition:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.latest-edition__cover {
  margin: 0;
}

.latest-edition__cover img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
}

.latest-edition__cover figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.latest-edition__copy time {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.latest-edition__copy h2 {
  margin-top: 0.65rem;
  font-size: clamp(2.1rem, 4.3vw, 4rem);
}

.latest-edition__copy > p:not(.eyebrow):not(.language-hint) {
  max-width: 33ch;
  margin: 1.1rem 0 0;
  color: var(--graphite);
  font-size: 1.08rem;
  line-height: 1.42;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.7rem;
  padding: 0.72rem 1rem 0.76rem;
  background: var(--sulphur);
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--offwhite);
}

.language-hint {
  margin: 0.7rem 0 0;
  color: var(--sulphur);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive {
  padding-top: clamp(3.4rem, 7vw, 6.5rem);
}

.archive > h2 {
  font-size: clamp(2.6rem, 5vw, 4.7rem);
}

.post-list a {
  display: grid;
  grid-template-columns: minmax(10rem, 0.28fr) minmax(15rem, 0.72fr);
  column-gap: 2rem;
  padding: 1.45rem 0 1.6rem;
}

.post-list h3 {
  grid-column: 2;
  margin: -0.15rem 0 0.4rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.post-list p,
.post-list .language-hint {
  grid-column: 2;
}

.post-list a:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--sulphur);
  text-underline-offset: 0.18em;
}

@media (max-width: 760px) {
  .index-hero__inner,
  .index.page {
    width: 88%;
  }

  .index-hero__inner {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 2.6rem 0 2.4rem;
  }

  .index-hero h1 {
    font-size: clamp(5rem, 21vw, 6.8rem);
  }

  .index-hero .lede {
    margin: 0;
  }

  .latest-edition {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }

  .post-list a {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .post-list h3,
  .post-list p,
  .post-list .language-hint {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .header-back {
    display: none;
  }
}
