/* ==========================================================================
   ARCHIVIST | International Journal of Monolithic Architecture & Spatial Culture
   Modern Editorial CSS: Multi-Theme Tokens, Fluid Typography & Modern Standards
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Theme Palettes
   -------------------------------------------------------------------------- */
:root {
  /* Default Theme: Paper Cream (Tactile Uncoated Fedrigoni Paper) */
  --bg-primary: #f6f3ea;
  --bg-surface: #ffffff;
  --bg-card: #fdfcf9;
  --bg-elevated: #eae6da;
  --bg-input: #ffffff;

  --text-primary: #121316;
  --text-sub: #333842;
  --text-muted: #727988;
  --text-contrast: #000000;

  --border-subtle: rgba(18, 19, 22, 0.08);
  --border-light: rgba(18, 19, 22, 0.16);
  --border-strong: rgba(18, 19, 22, 0.9);

  --accent-ink: #1a1b1e;
  --accent-terra: #b45309;
  --accent-gold: #c29d59;

  /* Typography Fonts */
  --font-serif: 'Cinzel', serif;
  --font-reading: 'Newsreader', Georgia, serif;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Fluid Typography Scale (clamp) */
  --text-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --text-sm: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  --text-base: clamp(0.96rem, 0.9rem + 0.25vw, 1.1rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --text-xl: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  --text-2xl: clamp(1.8rem, 1.45rem + 1.4vw, 2.8rem);
  --text-hero: clamp(2.2rem, 1.6rem + 2.4vw, 4.2rem);

  /* System Constants */
  --container-max: 1240px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Theme 2: Obsidian Noir (Dark Luxury Concrete) */
[data-theme="dark"] {
  --bg-primary: #090a0d;
  --bg-surface: #101217;
  --bg-card: #151820;
  --bg-elevated: #1e222d;
  --bg-input: #101217;

  --text-primary: #f3f4f6;
  --text-sub: #cbd5e1;
  --text-muted: #64748b;
  --text-contrast: #ffffff;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.85);

  --accent-ink: #f8fafc;
  --accent-terra: #f97316;
  --accent-gold: #fbbf24;
}

/* Theme 3: Archival Sepia (Historic Kyoto Cedar & Inkwash) */
[data-theme="sepia"] {
  --bg-primary: #1c1815;
  --bg-surface: #24201b;
  --bg-card: #2c2621;
  --bg-elevated: #36302a;
  --bg-input: #24201b;

  --text-primary: #f5ede4;
  --text-sub: #d6cbbe;
  --text-muted: #8c8275;
  --text-contrast: #ffffff;

  --border-subtle: rgba(245, 237, 228, 0.08);
  --border-light: rgba(245, 237, 228, 0.16);
  --border-strong: rgba(245, 237, 228, 0.85);

  --accent-ink: #f5ede4;
  --accent-terra: #ea580c;
  --accent-gold: #d4af37;
}

/* --------------------------------------------------------------------------
   2. Base Reset & Reading Layout
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-reading);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. Top Reading Progress Indicator
   -------------------------------------------------------------------------- */
.reading-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 9999;
}

.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gold);
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   4. Editorial Ticker & Masthead
   -------------------------------------------------------------------------- */
.top-editorial-bar {
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
  letter-spacing: 0.05em;
}

.issue-badge {
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.1em;
}

.theme-picker {
  background: var(--border-subtle);
  padding: 2px;
  border-radius: var(--radius-xs);
}

.theme-btn {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 2px;
  color: var(--text-muted);
}

.theme-btn.active {
  background: var(--bg-surface);
  color: var(--text-contrast);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Journal Masthead */
.masthead-container {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.masthead-pre {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.journal-logo {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 2.5rem + 5vw, 6.5rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--text-contrast);
}

.masthead-sub {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* Sticky Navigation */
.sticky-nav {
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  backdrop-filter: blur(12px);
  padding: 0.85rem 0;
  transition: background-color var(--transition-smooth);
}

.nav-link {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--text-sub);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-contrast);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
}

.saved-count-pill {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Hero Feature Cover Story
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 4.5rem 0;
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-editorial-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.kicker-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--accent-terra);
}

.hero-essay-title {
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--text-contrast);
}

.hero-essay-dek {
  font-size: var(--text-base);
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.visual-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.5s ease;
}

.hero-cover-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-wrapper:hover .hero-cover-img {
  transform: scale(1.04);
}

.image-spatial-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   6. Audio Article Waveform Synthesizer Strip
   -------------------------------------------------------------------------- */
.audio-narration-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}

.audio-player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.audio-play-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.audio-play-toggle:hover {
  transform: scale(1.08);
  background: var(--accent-gold);
  color: #000;
}

.player-waveform-wrap {
  flex: 1;
  min-width: 220px;
  height: 48px;
  display: flex;
  align-items: center;
}

#waveformCanvas {
  width: 100%;
  height: 48px;
}

.speed-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

.speed-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Filterable Essays Grid
   -------------------------------------------------------------------------- */
.section-kicker {
  letter-spacing: 0.2em;
  color: var(--accent-terra);
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-contrast);
}

.filter-tab-group {
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-sub);
  letter-spacing: 0.05em;
}

.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-contrast);
}

.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 700;
  border-color: var(--text-primary);
}

.essays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.essay-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.essay-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.essay-card-media {
  height: 230px;
  position: relative;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.essay-card:hover .card-img {
  transform: scale(1.05);
}

.category-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.card-bookmark-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background var(--transition-fast);
}

.card-bookmark-btn.saved, .btn-bookmark.saved {
  background: var(--accent-gold);
  color: #000;
}

.essay-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.essay-card-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--text-contrast);
}

.essay-card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.link-arrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-terra);
}

.link-arrow:hover {
  color: var(--text-contrast);
}

/* --------------------------------------------------------------------------
   8. Hardcover Archival Print Showcase
   -------------------------------------------------------------------------- */
.print-card-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3rem;
}

@media (max-width: 900px) {
  .print-card-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }
}

.print-image-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.print-mock-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.print-spec-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.print-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-contrast);
  margin: 0.5rem 0 1rem;
}

.print-description {
  font-size: var(--text-base);
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.print-specs-list {
  border-top: 1px solid var(--border-subtle);
}

.spec-row {
  border-bottom: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   9. Buttons & Utilities
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.btn-xs { padding: 0.35rem 0.75rem; font-size: 0.68rem; }
.btn-lg { padding: 0.95rem 1.85rem; font-size: var(--text-sm); }

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-contrast);
}

.btn-outline:hover {
  background: var(--border-subtle);
}

.btn-bookmark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
}

.btn-bookmark:hover {
  color: var(--text-contrast);
  border-color: var(--border-strong);
}

.full-width { width: 100%; }

/* --------------------------------------------------------------------------
   10. Top-Layer Dialogs (Reader View & Order Form)
   -------------------------------------------------------------------------- */
dialog {
  border: none;
  background: transparent;
  color: var(--text-primary);
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
  padding: 0;
  transition: opacity 0.3s ease, transform 0.3s ease, overlay 0.3s ease allow-discrete, display 0.3s ease allow-discrete;
  opacity: 0;
  transform: scale(0.97);
}

dialog[open] {
  opacity: 1;
  transform: scale(1);
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: scale(0.97);
  }
}

dialog::backdrop {
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease, overlay 0.3s ease allow-discrete, display 0.3s ease allow-discrete;
}

dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  dialog[open]::backdrop {
    opacity: 0;
  }
}

/* Article Reader Dialog Full-Screen Shell */
.article-reader-dialog {
  width: 100%;
  max-width: 860px;
  height: 92vh;
}

.reader-shell {
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.reader-topbar, .reader-footer {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.reader-footer {
  border-top: 1px solid var(--border-subtle);
  border-bottom: none;
}

.zoom-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 7px;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
}

.zoom-btn:hover {
  background: var(--border-subtle);
}

.reader-close-btn, .modal-close-btn {
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.reader-close-btn:hover, .modal-close-btn:hover {
  color: var(--text-contrast);
  background: var(--border-subtle);
}

.reader-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 3rem 4rem;
}

@media (max-width: 768px) {
  .reader-content-scroll {
    padding: 1.5rem;
  }
}

.reader-article-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  line-height: 1.2;
  color: var(--text-contrast);
}

.reader-body-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-sub);
  margin-top: 2rem;
}

.lead-paragraph {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.editorial-pullquote {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-style: italic;
  border-left: 3px solid var(--accent-gold);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  color: var(--text-contrast);
  line-height: 1.5;
}

.reader-diagram-figure {
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.reader-fig-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Modal Card Center for Orders */
.modal-dialog {
  width: 100%;
  max-width: 520px;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.modal-card .modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.cart-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: var(--text-xs);
  color: var(--text-contrast);
}

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

/* --------------------------------------------------------------------------
   11. Footer & Colophon
   -------------------------------------------------------------------------- */
.journal-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--text-contrast);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: var(--text-muted);
  max-width: 380px;
}

.footer-header {
  letter-spacing: 0.15em;
  color: var(--accent-terra);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-sub);
}

/* --------------------------------------------------------------------------
   12. Utilities & Micro-Interactions
   -------------------------------------------------------------------------- */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-align { display: flex; align-items: center; }
.text-center { text-align: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.font-serif { font-family: var(--font-serif); }
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

.text-muted { color: var(--text-muted); }
.text-contrast { color: var(--text-contrast); }

.block { display: block; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-8 { margin-top: 2rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.border-t { border-top: 1px solid var(--border-subtle); }
.border-b { border-bottom: 1px solid var(--border-subtle); }
.border { border: 1px solid var(--border-subtle); }
.rounded { border-radius: var(--radius-xs); }

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 22px; height: 22px; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
