/* ═══ Container ══════════════════════════════════════════════════════════
   A real 12-column grid, played asymmetrically. No two sections share a
   column split; that is what keeps the page from reading as card-after-card. */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.sec {
  padding-block: var(--sec-y);
}

.sec--tint {
  background: var(--paper-2);
}

/* ── Section head ──────────────────────────────────────────────────────
   The heavy rule is the gazette's section marker. It replaces the tracked
   uppercase eyebrow that would otherwise sit above every heading.         */

.sec__head {
  border-top: var(--rule-heavy) solid var(--rule-strong);
  padding-top: 1.15rem;
  margin-bottom: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
}

.sec__title {
  font-size: var(--t-700);
  font-weight: 700;
  font-stretch: 114%;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.sec__note {
  max-width: var(--measure-narrow);
  margin-top: 0.9rem;
  color: var(--ink-2);
  font-size: var(--t-400);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ═══ Bar ════════════════════════════════════════════════════════════════ */

.bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  height: 64px;
}

.bar__mark {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-shrink: 0;
}

.bar__name {
  font-size: var(--t-200);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.bar__role {
  font-size: var(--t-100);
  color: var(--ink-3);
  white-space: nowrap;
}

.bar__nav {
  margin-left: auto;
}

.bar__nav ul {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.75rem);
}

.bar__nav a {
  font-size: var(--t-200);
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

/* The section the reader is currently in. Set by the scroll spy, and it
   reuses the same rule the hover state draws. */
.bar__nav a[aria-current] {
  color: var(--ink);
  font-weight: 600;
}

.bar__nav a[aria-current]::after {
  clip-path: inset(0 0 0 0);
  transition: clip-path var(--dur-hover) var(--ease-out);
}

.bar__tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang {
  padding: 0.3rem 0.55rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-2);
  font-size: var(--t-100);
  font-weight: 700;
  font-stretch: 106%;
  letter-spacing: 0.02em;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .lang { transition: border-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
  .lang:hover { border-color: var(--ink); color: var(--ink); }
}

/* ═══ Buttons ════════════════════════════════════════════════════════════
   No gradient, no glow, no shimmer. A ruled box that fills on hover, which
   is what a stamp does to paper.                                           */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: var(--t-200);
  font-weight: 600;
  font-stretch: 104%;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-out);
}

.btn:active { transform: scale(0.98); }

.btn__meta,
.verz__fmt {
  font-size: var(--t-100);
  font-weight: 500;
  font-stretch: 96%;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

.btn--stamp {
  border: 1.5px solid var(--stamp);
  color: var(--stamp-deep);
}

.btn--stamp .btn__meta { color: var(--stamp); }

@media (hover: hover) and (pointer: fine) {
  .btn--stamp { transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
  .btn--stamp:hover { background: var(--stamp); color: var(--paper); }
  .btn--stamp:hover .btn__meta { color: var(--paper); }

  .btn--rule { transition: transform var(--dur-press) var(--ease-out), border-color var(--dur-hover) var(--ease-out); }
  .btn--rule:hover { border-color: var(--ink); }
}

.bar__cv { padding: 0.45rem 0.85rem; }

@media (max-width: 860px) {
  .bar__nav { display: none; }
  .bar__inner { justify-content: space-between; }
  .bar__tools { margin-left: auto; }
}

@media (max-width: 460px) {
  .bar__role { display: none; }
}

/* ═══ Footer · the colophon, and the page's anchor ═══════════════════════
   One filled block closing the sheet. Not a theme switch: the colophon of a
   printed notice is set in solid ink, and it is the last thing on the page. */

.foot {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem) 2.25rem;
}

.foot .sec__title { color: var(--paper); }
.foot .sec__note { color: #b6bcc6; }

.foot__head {
  border-top: 2px solid var(--paper);
  padding-top: 1.1rem;
  margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
}

.foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
}

.foot__col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid #3a4049;
  padding-top: 0.9rem;
}

.foot__k {
  font-size: var(--t-100);
  font-weight: 600;
  font-stretch: 106%;
  color: #9aa1ac;
}

.foot__v {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: var(--t-400);
  font-weight: 500;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.foot a::after { background: #e0705c; }
.foot .verz__fmt { color: #9aa1ac; }

.foot__colophon {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-top: 1.1rem;
  border-top: 1px solid #3a4049;
  font-size: var(--t-100);
  color: #9aa1ac;
}

.foot__sep {
  width: 1.75rem;
  height: 1px;
  background: #3a4049;
}
