/* ==========================================================================
   Pietro Consavari (consavari.com) — Pass 01 Architectural Monograph Styles
   Dieter Design Tokens · Calibrated Bodoni Moda ("opsz" 18, 500)
   Sticky Curtain Hero · Raised Sheet · Floating Pill Nav · Dual-Layer Cards
   ========================================================================== */

:root {
  /* Canonical Dieter Tokens (Tenet 3) */
  --bg-paper: #FFFFFF;
  --bg-subtle: #F7F7F5;
  --text-ink: #141413;
  --text-lead: #5A5853;
  --text-muted: #8F8C84;
  --border-hairline: #EAEAE6;
  --border-strong: #141413;
  --accent: #F9423A;

  /* Spatial & Editorial Rhythm Tokens */
  --max-width: 1380px;
  --essay-width: 680px;
  --margin: clamp(20px, 4.5vw, 64px);
  --gutter: clamp(16px, 1.6vw, 24px);
  --section-gap: clamp(96px, 11vw, 168px);
  --radius-sheet: 28px;
  --radius-card: 24px;
  --radius-pill: 9999px;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography Families */
  --font-serif: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --font-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid Type Scale */
  --text-display: clamp(48px, 6.8vw, 104px);
  --text-h1-essay: clamp(38px, 4.8vw, 62px);
  --text-heading: clamp(32px, 4.2vw, 62px);
  --text-subheading: clamp(24px, 2.5vw, 38px);
  --text-body-lg: clamp(19px, 1.5vw, 24px);
  --text-body: 17px;
  --text-label: 11px;
}

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

[hidden] {
  display: none !important;
}

html {
  background-color: var(--bg-paper);
  color: var(--text-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-paper);
  color: var(--text-ink);
  min-height: 100vh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

img, svg, canvas {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   1. Calibrated Typography System (Bodoni Moda Law — Unified & Disciplined)
   ========================================================================== */

.font-bodoni,
.t-display,
.t-heading,
.t-subheading,
.t-pullquote,
.brand-name,
.essay-h1,
.essay-prose h2,
.index-title,
.obs-card-title,
.footer-monument-title {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "lnum" 1, "pnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-ink);
}

.t-display {
  font-size: var(--text-display);
  line-height: 0.98;
  letter-spacing: -0.032em;
}

.t-heading {
  font-size: var(--text-heading);
  line-height: 1.03;
  letter-spacing: -0.028em;
}

.t-subheading {
  font-size: var(--text-subheading);
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.t-body-lg {
  font-family: var(--font-sans);
  font-size: var(--text-body-lg);
  line-height: 1.56;
  letter-spacing: -0.008em;
  color: var(--text-lead);
  font-weight: 400;
}

.t-body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.64;
  color: var(--text-lead);
}

.t-label-mono {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-muted);
}

/* ==========================================================================
   2. 12-Column CSS Grid (Fixed grid-column-end: span N for .col-start-N compatibility)
   ========================================================================== */

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.col-span-12 { grid-column: 1 / -1; }
.col-span-10 { grid-column-end: span 10; }
.col-span-9  { grid-column-end: span 9; }
.col-span-8  { grid-column-end: span 8; }
.col-span-7  { grid-column-end: span 7; }
.col-span-6  { grid-column-end: span 6; }
.col-span-5  { grid-column-end: span 5; }
.col-span-4  { grid-column-end: span 4; }
.col-span-3  { grid-column-end: span 3; }

.col-start-1 { grid-column-start: 1; }
.col-start-2 { grid-column-start: 2; }
.col-start-3 { grid-column-start: 3; }
.col-start-4 { grid-column-start: 4; }
.col-start-5 { grid-column-start: 5; }
.col-start-6 { grid-column-start: 6; }
.col-start-7 { grid-column-start: 7; }

.dish-section {
  padding-block: var(--section-gap);
  border-bottom: 1px solid var(--border-hairline);
}

.dish-section:last-of-type {
  border-bottom: none;
}

/* ==========================================================================
   3. Floating Translucent Pill Header & Working 29-Language Switcher
   ========================================================================== */

.site-header {
  position: sticky;
  top: 18px;
  z-index: 100;
  padding-inline: var(--margin);
  pointer-events: none;
}

.header-pill {
  max-width: var(--max-width);
  margin-inline: auto;
  height: 64px;
  padding-inline: 22px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(20, 20, 19, 0.10);
  box-shadow: 0 14px 36px -14px rgba(20, 20, 19, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: auto;
  transition: border-color 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}

.header-pill:hover {
  border-color: rgba(20, 20, 19, 0.22);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark-wrap {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-spring);
}

.brand-lockup:hover .brand-mark-wrap {
  transform: scale(1.08) rotate(-5deg);
}

.brand-name {
  font-size: clamp(17px, 1.4vw, 21px);
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-ink);
  transition: color 0.2s var(--ease-soft);
}

.brand-lockup:hover .brand-name {
  color: var(--accent);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-lead);
  transition: background-color 0.22s var(--ease-soft), color 0.22s var(--ease-soft);
}

.nav-link:hover {
  color: var(--text-ink);
  background-color: var(--bg-subtle);
}

.nav-link[aria-current="page"] {
  background-color: var(--text-ink);
  color: var(--bg-paper);
}

/* Weekday Edition Switcher (Sunday Editorial Pill & Gallery Popover) */
.day-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.day-switcher-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  border: none;
  background-color: transparent;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-lead);
  white-space: nowrap;
  transition: background-color 0.22s var(--ease-soft), color 0.22s var(--ease-soft);
}

.day-switcher-trigger:hover,
.day-switcher-trigger[aria-expanded="true"] {
  color: var(--text-ink);
  background-color: var(--bg-subtle);
}

.day-switcher-trigger[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.day-switcher-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 264px;
  max-width: calc(100vw - 32px);
  background-color: var(--bg-paper);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(20, 20, 19, 0.18);
  padding: 6px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}

.day-switcher-popover.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.day-switcher-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 11px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 4px;
}

.day-switcher-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 8px 11px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-lead);
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.day-switcher-option:hover {
  background-color: var(--bg-subtle);
  color: var(--text-ink);
}

.day-switcher-option.is-active {
  background-color: var(--text-ink);
  color: var(--bg-paper);
  font-weight: 500;
}

.day-opt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.day-opt-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.25;
  color: inherit;
}

.day-opt-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.day-switcher-option.is-active .day-opt-badge {
  color: rgba(253, 251, 247, 0.72);
}

.day-opt-sub {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* 29-Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background-color: transparent;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-lead);
  transition: background-color 0.22s var(--ease-soft), color 0.22s var(--ease-soft);
}

.lang-trigger:hover,
.lang-trigger[aria-expanded="true"] {
  color: var(--text-ink);
  background-color: var(--bg-subtle);
}

.lang-chevron {
  transition: transform 0.2s var(--ease-soft);
}

.lang-trigger[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 296px;
  max-width: calc(100vw - 32px);
  background-color: var(--bg-paper);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(20, 20, 19, 0.18);
  z-index: 120;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}

.lang-popover.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-popover-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-hairline);
  background-color: var(--bg-subtle);
}

.lang-search-input {
  width: 100%;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-paper);
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-ink);
  outline: none;
}

.lang-search-input:focus {
  border-color: var(--border-strong);
}

.lang-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-lead);
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background-color: var(--bg-subtle);
  color: var(--text-ink);
}

.lang-option.is-active {
  background-color: var(--text-ink);
  color: var(--bg-paper);
  font-weight: 500;
}

.lang-option-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.lang-option.is-active .lang-option-meta {
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   4. Pills, Editorial Links & Living Signature (#beautifullysimple)
   ========================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-soft), background-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}

.pill-ink {
  background-color: var(--text-ink);
  color: var(--bg-paper);
  border: 1px solid var(--text-ink);
}

.pill-ink:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pill-outline {
  background-color: var(--bg-paper);
  color: var(--text-ink);
  border: 1px solid var(--border-strong);
}

.pill-outline:hover {
  background-color: var(--bg-subtle);
  transform: translateY(-2px);
}

.editorial-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-ink);
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--text-ink);
  transition: color 0.22s var(--ease-soft), border-color 0.22s var(--ease-soft);
}

.editorial-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.editorial-cta-arrow {
  transition: transform 0.25s var(--ease-soft);
}

.editorial-cta:hover .editorial-cta-arrow {
  transform: translate(3px, -2px);
}

/* Living Interactive Signature: #beautifullysimple */
.bs-signature {
  display: inline;
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-style: italic;
  color: var(--text-ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
  cursor: pointer;
  transition: color 0.25s var(--ease-soft), background-color 0.25s var(--ease-soft);
}

.bs-signature:hover,
body.bs-simplified .bs-signature {
  color: var(--accent);
}

/* ==========================================================================
   5. Sticky Curtain Hero Stage & Raised Overlapping Sheet (`index.html`)
   ========================================================================== */

.hero-curtain {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: calc(100vh - 82px);
  padding-top: clamp(48px, 6.5vw, 96px);
  padding-bottom: clamp(44px, 5.5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(40px, 5vw, 72px);
  background-color: var(--bg-paper);
  overflow: hidden;
  cursor: crosshair;
}

/* Interactive Tinkerer Sketch Canvas Overlay (Renders ON TOP of the Cube) */
#hero-sketch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.hero-curtain-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.hero-curtain-content a,
.hero-curtain-content button,
.hero-curtain-content .bs-signature {
  position: relative;
  z-index: 6;
  pointer-events: auto;
  cursor: pointer;
}

.hero-sculpture-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.monument-cube-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  overflow: visible;
  transition: transform 0.35s var(--ease-soft);
  filter: drop-shadow(0 28px 48px rgba(20, 20, 19, 0.07));
}

.monument-facet {
  transition: transform 0.35s var(--ease-soft), fill 0.35s var(--ease-soft);
}

.cube-invite-annotation {
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
}

.cube-invite-annotation.is-hidden {
  opacity: 0;
  transform: translateY(-6px);
}

.hero-horizon-bar {
  position: relative;
  z-index: 6;
  padding-top: 22px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.design-with-me-tray {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 18px;
}

.dwm-prompt-group {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.dwm-title {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-style: italic;
  font-size: 19px;
  color: var(--text-ink);
  letter-spacing: -0.015em;
}

.dwm-whisper {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-lead);
  transition: opacity 0.2s ease, color 0.2s ease;
}

.dwm-swatches {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dwm-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s ease;
}

.dwm-swatch:hover {
  transform: scale(1.14);
}

.dwm-swatch.is-active {
  border-color: var(--text-ink);
  background-color: var(--bg-paper);
  transform: scale(1.1);
}

.dwm-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
}

.dwm-pill-toggle {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-paper);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-lead);
  transition: all 0.2s var(--ease-soft);
}

.dwm-pill-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-ink);
}

.dwm-pill-toggle[aria-pressed="true"] {
  background-color: var(--text-ink);
  border-color: var(--text-ink);
  color: var(--bg-paper);
}

.dwm-reset-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--accent);
  color: var(--bg-paper);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  transition: transform 0.2s var(--ease-spring), opacity 0.2s ease;
}

.dwm-reset-btn:hover {
  transform: scale(1.05);
}

.horizon-axis {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.horizon-line {
  width: clamp(48px, 8vw, 120px);
  height: 1px;
  background-color: var(--border-strong);
  position: relative;
}

.horizon-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  transform: translate(-50%, -50%);
}

/* Raised Overlapping Curtain Sheet */
.curtain-sheet {
  position: relative;
  z-index: 5;
  background-color: var(--bg-paper);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  border-top: 1px solid var(--border-hairline);
  box-shadow: 0 -32px 80px -24px rgba(20, 20, 19, 0.10);
}

/* ==========================================================================
   6. Dish 2: Asymmetric Flagship Essay Feature Surface + Spring .card-cta
   ========================================================================== */

.feature-surface-card {
  position: relative;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: clamp(32px, 4.5vw, 64px);
  overflow: hidden;
  transition: transform 0.45s var(--ease-soft), border-color 0.35s var(--ease-soft), box-shadow 0.45s var(--ease-soft);
}

.feature-surface-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 28px 68px -28px rgba(20, 20, 19, 0.14);
}

.feature-card-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 24px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
  border-bottom: 1px solid var(--border-hairline);
}

.card-cta {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--text-ink);
  color: var(--bg-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-spring), background-color 0.25s var(--ease-soft);
}

.feature-surface-card:hover .card-cta,
.staggered-essay-card:hover .card-cta {
  background-color: var(--accent);
  transform: translateY(-4px) scale(1.08) rotate(6deg);
}

/* ==========================================================================
   7. Dish 3 & `essays.html`: Kinetic Index Rows + Floating Preview + Cards View
   ========================================================================== */

.archive-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.view-switcher-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}

.view-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-lead);
  transition: all 0.22s var(--ease-soft);
}

.view-btn[aria-pressed="true"] {
  background-color: var(--bg-paper);
  color: var(--text-ink);
  box-shadow: 0 2px 8px rgba(20, 20, 19, 0.08);
}

.index-list {
  border-top: 1px solid var(--border-hairline);
}

.index-li {
  border-bottom: 1px solid var(--border-hairline);
  position: relative;
  transition: opacity 0.32s var(--ease-soft), background-color 0.3s var(--ease-soft);
}

.index-list.is-hovering .index-li:not(.is-active) {
  opacity: 0.35;
}

.index-li.is-active,
.index-li:hover {
  background-color: var(--bg-subtle);
}

.index-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: clamp(26px, 3.2vw, 42px) 20px;
}

.index-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.index-li.is-active .index-num,
.index-row:hover .index-num {
  color: var(--accent);
  font-weight: 600;
}

.index-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
}

.index-title-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

.index-title {
  font-size: clamp(23px, 2.5vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-ink);
}

.index-diagonal-arrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 22px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-8px, 6px);
  transition: opacity 0.28s var(--ease-soft), transform 0.28s var(--ease-spring);
}

.index-li.is-active .index-diagonal-arrow,
.index-row:hover .index-diagonal-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.index-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
}

/* Cursor-Following / Floating Monograph Preview Card */
.monograph-hover-preview {
  position: fixed;
  right: clamp(24px, 4.5vw, 64px);
  bottom: 36px;
  width: 340px;
  background-color: var(--bg-paper);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 28px 68px -20px rgba(20, 20, 19, 0.22);
  z-index: 110;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
}

.monograph-hover-preview.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mhp-diagram {
  width: 100%;
  height: 110px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  margin-block: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

/* Staggered Asymmetric Cards View on `essays.html` */
.staggered-cards-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
}

.staggered-cards-grid[hidden],
.index-list[hidden] {
  display: none !important;
}

.staggered-essay-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: clamp(28px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  transition: transform 0.42s var(--ease-soft), border-color 0.3s var(--ease-soft), box-shadow 0.42s var(--ease-soft);
}

.staggered-essay-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 56px -24px rgba(20, 20, 19, 0.14);
}

/* ==========================================================================
   8. Dish 4 (`index.html`): Typewriter #beautifullysimple Stage
   ========================================================================== */

.typewriter-stage {
  transition: background-color 0.4s var(--ease-soft), color 0.4s var(--ease-soft);
}

body.bs-simplified .typewriter-stage {
  background-color: var(--bg-subtle);
}

.typewriter-dynamic {
  color: var(--accent);
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-style: italic;
  border-right: 2px solid var(--accent);
  padding-right: 4px;
}

/* ==========================================================================
   9. Single Essay (`essay.html`) — Whisper-Quiet 680px Reading Column
   ========================================================================== */

.essay-article-shell {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(96px, 12vw, 168px);
}

.essay-column {
  width: 100%;
  max-width: var(--essay-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.essay-header {
  margin-bottom: clamp(44px, 6vw, 72px);
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-hairline);
}

.essay-h1 {
  font-size: var(--text-h1-essay);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.essay-deck {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text-lead);
  margin-bottom: 28px;
}

.essay-prose {
  font-family: var(--font-sans);
  font-size: 18.5px;
  line-height: 1.84;
  color: #262522;
}

.essay-prose p {
  margin-bottom: 1.65em;
}

/* Strict Brief Rule: No bottom borders under H2s */
.essay-prose h2 {
  font-size: clamp(28px, 3.1vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-ink);
  margin-top: 2.8em;
  margin-bottom: 0.8em;
  border: none;
}

.essay-prose blockquote {
  margin: 2.8em 0;
  padding-left: 24px;
  border-left: 2px solid var(--text-ink);
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(23px, 2.3vw, 29px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--text-ink);
}

.essay-prose strong {
  color: var(--text-ink);
  font-weight: 600;
}

.essay-numbered-list {
  margin: 1.6em 0 2em 0;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
}

.essay-numbered-list li {
  padding-left: 0.35em;
}

/* Simplified 01-drasa Exploration SVG Plates (24px Rounded Tactile Surface) */
.essay-plate-figure {
  margin: 2.8em -36px;
  padding: 24px 28px 28px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
}

@media (max-width: 820px) {
  .essay-plate-figure {
    margin: 2.2em 0;
    padding: 18px;
  }
}

.essay-plate-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.essay-plate-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.svg-axis-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  fill: var(--text-ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.svg-quad-group {
  cursor: pointer;
  border: none;
}

.svg-quad-tile {
  fill: var(--bg-paper);
  stroke: var(--border-hairline);
  stroke-width: 1.2;
  transition: transform 0.25s var(--ease-spring), stroke 0.2s ease, fill 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.svg-quad-tile.is-ink {
  fill: var(--bg-ink);
  stroke: var(--bg-ink);
}

.svg-quad-tile.is-hazard {
  fill: rgba(249, 66, 58, 0.06);
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
}

.svg-quad-group:hover .svg-quad-tile,
.svg-quad-group:focus-visible .svg-quad-tile {
  stroke: var(--accent);
  stroke-width: 2;
  transform: translateY(-2px);
}

.svg-quad-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  fill: var(--text-muted);
  letter-spacing: 0.08em;
}

.svg-quad-mono.is-light {
  fill: rgba(255, 255, 255, 0.64);
}

.svg-quad-mono.is-accent {
  fill: var(--accent);
}

.svg-quad-title {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-size: 29px;
  font-weight: 500;
  fill: var(--text-ink);
  letter-spacing: -0.025em;
}

.svg-quad-title.is-light {
  fill: #FFFFFF;
}

.svg-quad-title.is-accent {
  fill: var(--accent);
}

.svg-quad-sub {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  fill: var(--text-lead);
}

.svg-quad-sub.is-light {
  fill: rgba(255, 255, 255, 0.76);
}

/* ==========================================================================
   10. Inline Hover Triggers & Floating Context Card (`essay.html` & `about.html`)
   ========================================================================== */

.inline-trigger {
  position: relative;
  display: inline;
  color: inherit;
  border-bottom: 1.5px dotted var(--text-muted);
  padding-bottom: 1px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

em.inline-trigger {
  padding-right: 0.12em;
}

.inline-trigger:hover,
.inline-trigger:focus-visible,
.inline-trigger.is-open {
  color: var(--accent);
  border-bottom-style: solid;
  border-bottom-color: var(--accent);
  outline: none;
}

.floating-context-card {
  position: fixed;
  z-index: 150;
  width: 340px;
  max-width: calc(100vw - 32px);
  background-color: var(--bg-paper);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 24px 60px -18px rgba(20, 20, 19, 0.20);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}

.floating-context-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fcc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fcc-close {
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.fcc-title {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-ink);
  margin-bottom: 4px;
}

.fcc-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.fcc-body {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.54;
  color: var(--text-lead);
}

/* ==========================================================================
   11. About Page (`about.html`) — Sticky Chapter Rail + Dual-Layer Obsession Cards
   ========================================================================== */

.bio-rail-sticky {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 16px;
}

.bio-rail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--border-hairline);
  padding-left: 16px;
}

.bio-rail-item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.bio-rail-item.is-active {
  color: var(--text-ink);
  font-weight: 600;
  transform: translateX(4px);
}

.bio-rail-item.is-active::before {
  content: "● ";
  color: var(--accent);
}

.bio-stream {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
}

.bio-paragraph {
  font-family: var(--font-sans);
  font-size: clamp(21px, 2.2vw, 31px);
  line-height: 1.46;
  letter-spacing: -0.015em;
  color: var(--text-ink);
  font-weight: 400;
}

.bio-paragraph.is-closing {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.024em;
}

/* Dual-Layer Interactive 24px-Radius Obsession Cards (Staggered 12-Col Grid) */
.obsessions-cards-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.obs-dual-card {
  position: relative;
  min-height: 390px;
  border-radius: var(--radius-card);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  padding: clamp(34px, 3.4vw, 44px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.45s var(--ease-soft), border-color 0.35s var(--ease-soft);
}

.obs-dual-card:hover,
.obs-dual-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.obs-front-layer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  flex: 1;
  transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-soft);
}

.obs-front-layer .t-label-mono {
  font-size: 13px;
}

.obs-card-title {
  font-size: clamp(30px, 2.7vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.024em;
  margin-top: auto;
}

.obs-reveal-layer {
  position: absolute;
  inset: 0;
  background-color: var(--text-ink);
  color: var(--bg-paper);
  padding: clamp(34px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.38s var(--ease-soft), transform 0.38s var(--ease-soft);
}

.obs-reveal-copy {
  font-family: var(--font-sans);
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.obs-dual-card:hover .obs-reveal-layer,
.obs-dual-card:focus-within .obs-reveal-layer,
.obs-dual-card.is-flipped .obs-reveal-layer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   12. Dark Architectural Curtain Footer (`footer.site-footer`)
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 6;
  background-color: var(--text-ink);
  color: var(--bg-paper);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: clamp(44px, 5vw, 72px);
  margin-top: auto;
}

.footer-monument-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-monument-title {
  color: var(--bg-paper);
  font-size: clamp(32px, 4.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.footer-bottom-row {
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-signoff {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

/* ==========================================================================
   13. Qfwfq Page (`qfwfq.html`) — Full-Viewport Cosmic Sign Stage
   ========================================================================== */

.qfwfq-stage {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: calc(100vh - 64px);
  margin-top: -64px;
  padding-top: 108px;
  padding-bottom: clamp(28px, 4vw, 48px);
  background-color: var(--text-ink);
  color: var(--bg-paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.7s var(--ease-soft), color 0.7s var(--ease-soft);
}

.qfwfq-stage[data-state="simplified"] {
  background-color: var(--bg-paper);
  color: var(--text-ink);
}

#qfwfq-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: auto;
}

.qfwfq-top-bar {
  position: relative;
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.qfwfq-top-bar .t-label-mono {
  color: rgba(255, 255, 255, 0.56);
  transition: color 0.5s ease;
}

.qfwfq-stage[data-state="simplified"] .qfwfq-top-bar .t-label-mono {
  color: var(--text-muted);
}

.qfwfq-center-prompt {
  position: relative;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-block: auto;
  transition: opacity 0.45s var(--ease-soft), transform 0.45s var(--ease-soft);
}

.qfwfq-center-prompt.is-hidden {
  opacity: 0;
  transform: scale(0.96);
}

.qfwfq-hero-title {
  color: #FFFFFF;
  max-width: 14ch;
}

.qfwfq-hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.56;
  color: rgba(255, 255, 255, 0.72);
  max-width: 48ch;
}

.qfwfq-pen-hint {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.94);
}

.qfwfq-pen-hint-text {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.qfwfq-nib-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.qfwfq-bottom-bar {
  position: relative;
  z-index: 5;
  pointer-events: none;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  transition: border-color 0.5s ease;
}

.qfwfq-stage[data-state="simplified"] .qfwfq-bottom-bar {
  border-top-color: var(--border-hairline);
}

.qfwfq-quote-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 600px;
  flex: 1 1 440px;
}

.qfwfq-narrative-line {
  font-family: var(--font-serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(23px, 2.3vw, 31px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  transition: color 0.5s ease;
}

.qfwfq-stage[data-state="simplified"] .qfwfq-narrative-line {
  color: var(--text-ink);
}

.qfwfq-citation-line {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.01em;
  transition: color 0.5s ease;
}

.qfwfq-stage[data-state="simplified"] .qfwfq-citation-line {
  color: var(--text-lead);
}

.qfwfq-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  pointer-events: auto;
}

.qfwfq-primary-pill {
  background-color: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
  box-shadow: 0 14px 32px -10px rgba(249, 66, 58, 0.45);
  transition: transform 0.35s var(--ease-spring), background-color 0.25s ease;
}

.qfwfq-primary-pill:hover {
  transform: translateY(-3px) scale(1.03);
}

.qfwfq-secondary-btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
}

.qfwfq-stage[data-state="simplified"] .qfwfq-secondary-btn {
  border-color: var(--border-strong);
  color: var(--text-ink);
}

.qfwfq-secondary-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.qfwfq-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.qfwfq-stage[data-state="simplified"] .qfwfq-scroll-cue {
  color: var(--text-muted);
}

.qfwfq-scroll-cue:hover {
  color: var(--accent);
}

/* ==========================================================================
   14. Responsive Breakpoints (1024px, 768px, 375px)
   ========================================================================== */

@media (max-width: 1024px) {
  .col-span-10, .col-span-9, .col-span-8, .col-span-7, .col-span-6, .col-span-5, .col-span-4, .col-span-3 {
    grid-column: 1 / -1;
  }
  .col-start-1, .col-start-2, .col-start-3, .col-start-4, .col-start-5, .col-start-6, .col-start-7 {
    grid-column-start: 1;
  }
  .obsessions-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .obsessions-cards-grid .obs-dual-card {
    grid-column: auto;
  }
  .bio-rail-sticky {
    position: relative;
    top: 0;
    margin-bottom: 24px;
  }
  .monograph-hover-preview {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 10px;
  }
  .header-pill {
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 8px;
    padding: 10px 14px;
    border-radius: 20px;
    gap: 8px;
  }
  .brand-lockup {
    gap: 7px;
  }
  .brand-name {
    font-size: 16px;
  }
  .header-controls {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .primary-nav {
    gap: 8px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }
  .day-switcher-trigger {
    height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }
  .day-switcher-label {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lang-trigger {
    height: 30px;
    padding: 0 9px;
  }
  .pill {
    white-space: normal;
    max-width: 100%;
    line-height: 1.35;
  }
  .index-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .index-meta {
    text-align: left;
    align-items: flex-start;
  }
  .obsessions-cards-grid {
    grid-template-columns: 1fr;
  }
  .obs-dual-card {
    min-height: 260px;
  }
  .floating-context-card {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    top: auto !important;
    width: auto !important;
  }
  .fcc-close {
    display: inline-flex;
  }
}
