:root {
  --paper: #eee8d6;
  --paper-light: #f7f3e7;
  --paper-deep: #ddd3ba;
  --ink: #171510;
  --muted: #575143;
  --rule: #252219;
  --accent: #786c48;
  --serif: Georgia, "Times New Roman", Times, serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.8px),
    radial-gradient(circle at 72% 68%, rgba(54, 45, 27, 0.08) 0 0.7px, transparent 1.4px),
    repeating-linear-gradient(7deg, rgba(65, 53, 32, 0.025) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 28%, rgba(88, 71, 38, 0.035) 72%, transparent);
  background-size: 37px 41px, 53px 47px, 100% 9px, 100% 100%;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.2;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.masthead,
.newspaper,
.newspaper-footer {
  width: min(1500px, calc(100% - 40px));
  margin-inline: auto;
}

.masthead {
  position: relative;
  z-index: 50;
  padding-top: 22px;
  text-align: center;
  transition:
    width 180ms ease,
    padding 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

body.has-kannabium-navigation .masthead__actions:empty {
  display: none;
}

body.has-kannabium-navigation .k-page-index {
  font-family: Arial, Helvetica, sans-serif;
}

body.has-kannabium-navigation .newspaper-footer .k-social-links {
  margin-top: 1.1rem;
  text-align: left;
  text-transform: none;
}

.masthead.is-condensed {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  padding: 0.45rem max(1rem, calc((100% - 1500px) / 2));
  background-color: rgba(238, 232, 214, 0.97);
  border-bottom: 3px double var(--rule);
  box-shadow: 0 5px 14px rgba(37, 34, 25, 0.16);
  backdrop-filter: blur(8px);
}

.masthead.is-condensed .masthead__rule,
.masthead.is-condensed .masthead__tagline {
  display: none;
}

.masthead.is-condensed .masthead__brand {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.055em;
}

.masthead.is-condensed .edition-bar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  padding: 0;
  border: 0;
  font-size: 0.68rem;
}

.masthead.is-condensed .masthead__actions {
  padding: 0;
}

.masthead__rule {
  height: 8px;
  border-block: 2px solid var(--rule);
}

.masthead__brand {
  display: inline-block;
  margin-top: 0.15em;
  font-size: clamp(4.6rem, 13vw, 11rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.08em;
  text-decoration: none;
  text-shadow: 0.35px 0 rgba(0, 0, 0, 0.35), -0.25px 0 rgba(75, 59, 31, 0.2);
}

.masthead__tagline {
  margin: 0.45rem 0 0.85rem;
  font-size: clamp(0.9rem, 1.8vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.edition-bar {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.55rem 0;
  border-block: 3px double var(--rule);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.edition-bar span:first-child {
  text-align: left;
}

.edition-bar span:last-child {
  text-align: right;
}

.masthead__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0 0;
}

.terminal-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.62rem;
  color: #b7ff54;
  background: #03110b;
  border: 1px solid #b7ff54;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 rgba(37, 34, 25, 0.25);
}

.newspaper-footer .terminal-entry {
  justify-self: center;
  margin: 0.55rem 0;
}

.terminal-entry:hover,
.terminal-entry:focus-visible {
  color: #03110b;
  background: #b7ff54;
  outline: 2px solid #03110b;
  outline-offset: 2px;
}

.language-switcher {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.28rem 0.45rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
}

.language-switcher__flag {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.language-switcher a[aria-current="page"] {
  color: var(--paper-light);
  background: var(--ink);
  border-color: var(--ink);
}

.language-switcher a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.story-header {
  max-width: 1230px;
  margin: 2rem auto 1.7rem;
  text-align: center;
}

.story-kicker {
  margin: 0;
  font-size: clamp(0.8rem, 1.25vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.story-header h1 {
  max-width: 1050px;
  margin: 0.2rem auto 0.45rem;
  font-size: clamp(3.2rem, 8.7vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.story-header h1 span {
  display: block;
  white-space: nowrap;
}

.story-deck {
  max-width: 1040px;
  margin: 1rem auto 0;
  font-size: clamp(1.08rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.story-meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(480px, 2fr) minmax(220px, 0.78fr);
  gap: 16px;
  padding-block: 16px;
  border-block: 2px solid var(--rule);
}

.rail,
.lead-column {
  min-width: 0;
  padding: 16px;
  border: 1.5px solid var(--rule);
  background: rgba(247, 243, 231, 0.28);
}

.rail {
  display: flex;
  flex-direction: column;
}

.rail > h2,
.lead-column > h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.25vw, 2rem);
  line-height: 0.98;
  text-align: center;
  text-transform: uppercase;
}

.archive-card {
  margin: 0;
}

.archive-card__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: rgba(221, 211, 186, 0.42);
}

.archive-card__media::after {
  position: absolute;
  right: clamp(0.45rem, 1.4vw, 0.85rem);
  bottom: clamp(0.45rem, 1.4vw, 0.85rem);
  z-index: 2;
  content: "KANNABIUM.COM";
  padding: 0;
  color: rgba(224, 224, 220, 0.72);
  background: transparent;
  border: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.58rem, 0.9vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(23, 21, 16, 0.48);
  opacity: 0.72;
  mix-blend-mode: normal;
  pointer-events: none;
}

.archive-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1) sepia(0.07);
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.archive-card--lead img {
  width: min(100%, 760px);
  margin-inline: auto;
}

.archive-card figcaption {
  padding: 0.5rem 0.3rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
}

.rail > p,
.editorial-copy p,
.history-callout > p:not(.history-callout__label, .method-note) {
  text-align: justify;
  text-wrap: pretty;
}

.timeline,
.impact-list {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}

.timeline h3,
.impact-list h3,
.editorial-copy h3,
.history-callout h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

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

.timeline li {
  display: grid;
  gap: 0.12rem;
}

.timeline strong,
.impact-list dt {
  font-size: 0.88rem;
  text-transform: uppercase;
}

.timeline span,
.impact-list dd,
.rail > p {
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
}

.editorial-copy {
  max-width: 820px;
  margin: 1.5rem auto 0;
}

.quote-transcription {
  max-width: 860px;
  margin: 1.5rem auto 0;
  padding: 1.25rem clamp(1rem, 2.4vw, 2rem);
  border: 1px solid var(--rule);
  background: rgba(247, 243, 231, 0.56);
}

.content-warning {
  display: table;
  margin: 0 auto 0.65rem;
  padding: 0.3rem 0.55rem;
  color: var(--paper-light);
  background: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-transcription h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.quote-transcription__intro,
.quote-transcription__context {
  font-size: clamp(0.96rem, 1.2vw, 1.07rem);
  text-align: justify;
}

.quote-transcription blockquote {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-left: 5px solid var(--accent);
  background: rgba(221, 211, 186, 0.48);
}

.quote-transcription blockquote p {
  margin: 0;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  font-style: italic;
  line-height: 1.42;
}

.quote-transcription .quote-language-label,
.quote-transcription .quote-translation__label {
  margin: 0 0 0.55rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-translation {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(37, 34, 25, 0.45);
}

.quote-translation p:not(.quote-translation__label) {
  font-style: normal;
}

.quote-transcription blockquote p + p {
  margin-top: 0.75rem;
}

.editorial-copy p {
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

.history-callout {
  margin-top: 1.5rem;
  padding: 1.4rem clamp(1rem, 3vw, 2.5rem);
  border-block: 1px solid var(--rule);
  background: rgba(221, 211, 186, 0.42);
}

.history-callout__label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.history-callout > p:not(.history-callout__label, .method-note) {
  font-size: clamp(1.03rem, 1.45vw, 1.2rem);
}

.method-note {
  margin: 1rem 0 0;
  padding: 0.55rem;
  background: rgba(247, 243, 231, 0.74);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.impact-list dl {
  margin: 0;
}

.impact-list dl > div {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(37, 34, 25, 0.55);
  text-align: center;
}

.impact-list dd {
  margin: 0.2rem 0 0;
  line-height: 1.3;
}

.side-briefs {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 3px double var(--rule);
}

.side-briefs h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.side-briefs article {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(37, 34, 25, 0.55);
}

.side-briefs a {
  display: inline;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.side-briefs p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.strategies {
  padding: 2.3rem 0;
  border-bottom: 2px solid var(--rule);
}

.strategies > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.strategies__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--rule);
}

.strategies article {
  min-height: 260px;
  padding: 1.25rem;
  text-align: center;
}

.strategies article + article {
  border-left: 1px solid var(--rule);
}

.strategies span {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.strategies h3 {
  margin: 0.45rem 0 0.65rem;
  font-size: 1.12rem;
  text-transform: uppercase;
}

.strategies p {
  margin: 0;
  font-size: 0.98rem;
}

.sections-index {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 8px double var(--rule);
}

.sections-index__header {
  display: grid;
  grid-template-columns: 0.7fr 2fr;
  gap: 0.5rem 2rem;
  align-items: end;
  margin-bottom: 1.3rem;
}

.sections-index__header .story-kicker {
  grid-row: span 2;
  align-self: start;
  padding-top: 0.4rem;
}

.sections-index__header h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.sections-index__header > p:last-child {
  max-width: 850px;
  margin: 0;
  font-size: 1.05rem;
}

.page-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--rule);
  list-style: none;
}

.page-directory li {
  min-width: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.page-directory li:nth-child(4n + 1) {
  border-left: 1px solid var(--rule);
}

.page-directory a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  min-height: 235px;
  padding: 1.15rem;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.page-directory a:hover,
.page-directory a:focus-visible {
  color: var(--paper-light);
  background: var(--ink);
  outline: none;
}

.page-directory__number {
  grid-row: span 3;
  color: var(--accent);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
}

.page-directory__section {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-directory strong {
  font-size: 1.18rem;
  line-height: 1.08;
}

.page-directory small {
  align-self: end;
  font-size: 0.9rem;
  line-height: 1.35;
}

.source-box {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 2rem;
  margin: 0.85rem 0 0;
  padding: 1.5rem 0;
  border-block: 2px solid var(--rule);
}

.source-box h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
}

.source-box p {
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
}

.newspaper-footer {
  display: grid;
  gap: 0.5rem;
  padding: 1.7rem 0 2.5rem;
  text-align: center;
  text-transform: uppercase;
}

.newspaper-footer strong {
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
}

.newspaper-footer span,
.newspaper-footer a {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

@media (max-width: 1050px) {
  .feature-grid {
    grid-template-columns: 1fr 1.7fr;
  }

  .rail--right {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 0.7fr) 1fr 1.2fr;
    gap: 1.2rem;
    align-items: start;
  }

  .rail--right > h2 {
    grid-column: 1 / -1;
  }

  .rail--right .impact-list {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .strategies__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strategies article {
    min-height: 190px;
    border-bottom: 1px solid var(--rule);
  }

  .strategies article:nth-child(odd) {
    border-left: 0;
  }

  .strategies article:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .page-directory {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-directory li:nth-child(4n + 1) {
    border-left: 0;
  }

  .page-directory li:nth-child(2n + 1) {
    border-left: 1px solid var(--rule);
  }
}

@media (max-width: 720px) {
  .masthead.is-condensed {
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    padding-inline: 0.75rem;
  }

  .masthead.is-condensed .edition-bar {
    display: none;
  }

  .masthead__actions {
    justify-content: space-between;
  }

  .masthead.is-condensed .masthead__actions {
    justify-content: flex-end;
  }

  .terminal-entry {
    font-size: 0.68rem;
  }

  body {
    font-size: 17px;
    background-size: 29px 31px, 41px 37px, 100% 9px, 100% 100%;
  }

  .masthead,
  .newspaper,
  .newspaper-footer {
    width: min(100% - 24px, 1500px);
  }

  .masthead__brand {
    font-size: clamp(4rem, 21vw, 7rem);
  }

  .masthead__tagline {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .edition-bar {
    grid-template-columns: 1fr 1fr;
    font-size: 0.68rem;
  }

  .edition-bar span:nth-child(2) {
    display: none;
  }

  .story-header {
    margin-top: 1.5rem;
  }

  .story-header h1 {
    font-size: clamp(3.35rem, 18vw, 5.4rem);
  }

  .story-header h1 span {
    white-space: normal;
  }

  .feature-grid {
    display: flex;
    flex-direction: column;
  }

  .lead-column {
    order: -1;
  }

  .rail--right {
    display: block;
  }

  .rail > p,
  .editorial-copy p,
  .quote-transcription__intro,
  .quote-transcription__context,
  .history-callout > p:not(.history-callout__label, .method-note) {
    text-align: left;
  }

  .strategies__grid,
  .page-directory,
  .sections-index__header,
  .source-box {
    grid-template-columns: 1fr;
  }

  .strategies article,
  .strategies article + article,
  .strategies article:nth-child(odd) {
    min-height: auto;
    border: 0;
    border-bottom: 1px solid var(--rule);
  }

  .strategies article:last-child {
    grid-column: auto;
  }

  .sections-index__header .story-kicker {
    grid-row: auto;
  }

  .page-directory li,
  .page-directory li:nth-child(2n + 1),
  .page-directory li:nth-child(4n + 1) {
    border-inline: 1px solid var(--rule);
  }

  .page-directory a {
    min-height: 190px;
  }

  .source-box {
    gap: 1rem;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  body::before,
  .skip-link,
  .newspaper-footer a {
    display: none;
  }

  .masthead,
  .newspaper,
  .newspaper-footer {
    width: 100%;
  }

  .page-directory a {
    min-height: 0;
  }

  a {
    text-decoration: none;
  }
}

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

  * {
    transition: none !important;
  }
}
