/* ================================================================
   DUSK'N'DAWN — MAIN STYLESHEET
   ================================================================ */


/* ----------------------------------------------------------------
   1. FONTS
   ---------------------------------------------------------------- */

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ----------------------------------------------------------------
   2. DESIGN TOKENS
   ---------------------------------------------------------------- */

:root {
  /* Brand palette */
  --color-amber-hour: #D4923A;
  --color-twilight:   #2D2447;
  --color-dawn-rose:  #F2A78E;
  --color-night-ink:  #15101F;
  --color-linen:      #F8F1E4;
  --color-twilight-80: #3F3654;
  --color-twilight-50: #7A6E92;
  --color-linen-90:   #E8DFCE;

  /* Type scale — major third (×1.250) */
  --text-display-xl: 4.768rem;
  --text-display-l:  3.815rem;
  --text-display-m:  3.052rem;
  --text-heading-l:  2.441rem;
  --text-heading-m:  1.953rem;
  --text-heading-s:  1.563rem;
  --text-body-l:     1.25rem;
  --text-body-m:     1rem;
  --text-body-s:     0.8rem;
  --text-ui:         0.875rem;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Radius */
  --radius-s:    4px;
  --radius-m:    8px;
  --radius-l:    12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Motion */
  --ease:            cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 120ms var(--ease);
  --transition-base: 220ms var(--ease);

  /* Shadows */
  --shadow-s: 0 1px 2px rgba(45, 36, 71, 0.06), 0 1px 3px rgba(45, 36, 71, 0.1);
  --shadow-m: 0 4px 8px rgba(45, 36, 71, 0.08), 0 2px 4px rgba(45, 36, 71, 0.06);
  --shadow-l: 0 12px 24px rgba(45, 36, 71, 0.1), 0 4px 8px rgba(45, 36, 71, 0.06);

  /* Layout */
  --header-height:    64px;
  --content-max:      1200px;
  --content-padding:  clamp(1rem, 4vw, 2.5rem);

  /* Semantic — light mode */
  --bg-page:     var(--color-linen);
  --bg-surface:  var(--color-linen-90);
  --bg-elevated: #ffffff;
  --bg-today:    var(--color-twilight);
  --text-primary:   var(--color-twilight);
  --text-secondary: var(--color-twilight-80);
  --text-muted:     var(--color-twilight-50);
  --text-on-brand:  var(--color-linen);
  --border:         var(--color-linen-90);
  --border-strong:  rgba(45, 36, 71, 0.2);
  --focus-ring:     0 0 0 3px rgba(212, 146, 58, 0.45);
}


/* ----------------------------------------------------------------
   3. COLOUR MODE OVERRIDES
   ---------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page:        var(--color-night-ink);
    --bg-surface:     #1c1629;
    --bg-elevated:    var(--color-twilight);
    --bg-today:       #0d0a14;
    --text-primary:   var(--color-linen);
    --text-secondary: var(--color-linen-90);
    --text-muted:     var(--color-twilight-50);
    --border:         rgba(248, 241, 228, 0.07);
    --border-strong:  rgba(248, 241, 228, 0.14);
    --shadow-s: 0 1px 2px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.25);
    --shadow-m: 0 4px 8px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.2);
    --shadow-l: 0 12px 24px rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.25);
  }
}

[data-theme="dark"] {
  --bg-page:        var(--color-night-ink);
  --bg-surface:     #1c1629;
  --bg-elevated:    var(--color-twilight);
  --bg-today:       #0d0a14;
  --text-primary:   var(--color-linen);
  --text-secondary: var(--color-linen-90);
  --text-muted:     var(--color-twilight-50);
  --border:         rgba(248, 241, 228, 0.07);
  --border-strong:  rgba(248, 241, 228, 0.14);
  --shadow-s: 0 1px 2px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.25);
  --shadow-m: 0 4px 8px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-l: 0 12px 24px rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.25);
}

[data-theme="light"] {
  --bg-page:        var(--color-linen);
  --bg-surface:     var(--color-linen-90);
  --bg-elevated:    #ffffff;
  --bg-today:       var(--color-twilight);
  --text-primary:   var(--color-twilight);
  --text-secondary: var(--color-twilight-80);
  --text-muted:     var(--color-twilight-50);
  --border:         var(--color-linen-90);
  --border-strong:  rgba(45, 36, 71, 0.2);
}


/* ----------------------------------------------------------------
   4. RESET
   ---------------------------------------------------------------- */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body-m);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  transition: background-color var(--transition-base), color var(--transition-base);
  min-height: 100dvh;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: var(--font-body);
  font-size: inherit;
}

a {
  color: var(--color-amber-hour);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

/* Universal focus ring */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}


/* ----------------------------------------------------------------
   5. LAYOUT
   ---------------------------------------------------------------- */

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.site-main {
  flex: 1;
  padding-top: var(--header-height);
}

.content-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-8) var(--content-padding);
}


/* ----------------------------------------------------------------
   6. HEADER
   ---------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-s);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.header-inner {
  max-width: var(--content-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.site-logo:hover {
  opacity: 0.85;
  text-decoration: none;
}

.site-logo img,
.site-logo svg {
  height: 44px;
  width: auto;
}

.header-breadcrumb {
  flex: 1;
  font-size: var(--text-body-s);
  color: var(--text-muted);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.header-breadcrumb a:hover {
  color: var(--color-amber-hour);
  text-decoration: none;
}

.header-spacer {
  flex: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}


/* ----------------------------------------------------------------
   7. SEARCH
   ---------------------------------------------------------------- */

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar__icon {
  position: absolute;
  left: var(--space-3);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  width: clamp(140px, 22vw, 260px);
  height: 36px;
  padding: 0 var(--space-8) 0 var(--space-8);
  font-size: var(--text-ui);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-base);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-amber-hour);
  box-shadow: var(--focus-ring);
  background: var(--bg-elevated);
}

.search-hint {
  position: absolute;
  right: var(--space-3);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 1px 5px;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.search-input:focus + .search-hint,
.search-input:not(:placeholder-shown) + .search-hint {
  opacity: 0;
}


/* ----------------------------------------------------------------
   8. THEME TOGGLE
   ---------------------------------------------------------------- */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--bg-elevated);
  color: var(--color-amber-hour);
}

.theme-toggle:focus-visible {
  box-shadow: var(--focus-ring);
}


/* ----------------------------------------------------------------
   9. SHARED COMPONENTS — BADGES
   ---------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 var(--space-3);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge--level {
  background-color: var(--color-amber-hour);
  color: #ffffff;
}

.badge--planned {
  background-color: var(--border);
  color: var(--text-muted);
}

.badge--ready {
  background-color: rgba(212, 146, 58, 0.15);
  color: var(--color-amber-hour);
}


/* ----------------------------------------------------------------
   10. SHARED COMPONENTS — BUTTONS
   ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 38px;
  padding: 0 var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-ui);
  font-weight: 500;
  border-radius: var(--radius-m);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), box-shadow var(--transition-fast),
              transform var(--transition-fast);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  box-shadow: var(--focus-ring);
}

/* Primary */
.btn--primary {
  background-color: var(--color-amber-hour);
  color: #ffffff;
  border-color: var(--color-amber-hour);
}

.btn--primary:hover {
  background-color: #c4852d;
  border-color: #c4852d;
  text-decoration: none;
  color: #ffffff;
}

/* Secondary */
.btn--secondary {
  background-color: var(--color-twilight);
  color: var(--color-linen);
  border-color: var(--color-twilight);
}

.btn--secondary:hover {
  background-color: var(--color-twilight-80);
  border-color: var(--color-twilight-80);
  text-decoration: none;
  color: var(--color-linen);
}

/* Ghost */
.btn--ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  text-decoration: none;
}

/* Sizes */
.btn--small {
  height: 30px;
  padding: 0 var(--space-4);
  font-size: 12px;
  border-radius: var(--radius-s);
}

.btn--large {
  height: 48px;
  padding: 0 var(--space-8);
  font-size: var(--text-body-m);
  font-weight: 600;
  border-radius: var(--radius-l);
}

/* Pin button */
.btn--pin {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--radius-s);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.btn--pin:hover {
  color: var(--color-amber-hour);
  background: var(--bg-surface);
}

.btn--pin.is-pinned {
  color: var(--color-amber-hour);
}


/* ----------------------------------------------------------------
   11. SHARED COMPONENTS — PROGRESS BAR
   ---------------------------------------------------------------- */

.progress-bar {
  height: 4px;
  background-color: var(--border-strong);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background-color: var(--color-amber-hour);
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease);
}


/* ----------------------------------------------------------------
   12. TODAY PANEL
   ---------------------------------------------------------------- */

.today-panel {
  background-color: var(--bg-today);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-10);
  margin-bottom: var(--space-10);
  position: relative;
  overflow: hidden;
}

/* Subtle ambient glow */
.today-panel::before {
  content: '';
  position: absolute;
  inset-block-start: -60px;
  inset-inline-end: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 146, 58, 0.15), transparent 70%);
  pointer-events: none;
}

.today-panel__label {
  font-family: var(--font-body);
  font-size: var(--text-body-s);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-amber-hour);
  margin-bottom: var(--space-3);
}

.today-panel__title {
  font-size: clamp(var(--text-heading-s), 3vw, var(--text-heading-l));
  color: var(--color-linen);
  margin-bottom: var(--space-2);
}

.today-panel__meta {
  font-size: var(--text-body-s);
  color: rgba(248, 241, 228, 0.6);
  margin-bottom: var(--space-6);
}

.today-panel__empty-msg {
  font-size: var(--text-body-m);
  color: rgba(248, 241, 228, 0.5);
  margin-top: var(--space-2);
}

.today-panel .badge {
  margin-bottom: var(--space-4);
}


/* ----------------------------------------------------------------
   13. RECENT RAIL
   ---------------------------------------------------------------- */

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-heading-s);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.recent-rail {
  margin-bottom: var(--space-10);
}

.recent-rail__cards {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.recent-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: var(--shadow-s);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.recent-card:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-1px);
}

.recent-card__track {
  font-size: var(--text-body-s);
  font-weight: 600;
  color: var(--color-amber-hour);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recent-card__title {
  font-size: var(--text-ui);
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
  line-height: 1.4;
}


/* ----------------------------------------------------------------
   14. BROWSE GRID
   ---------------------------------------------------------------- */

.browse-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.level-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.level-heading {
  font-family: var(--font-display);
  font-size: var(--text-heading-m);
  color: var(--text-primary);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
}

.track-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  cursor: pointer;
  box-shadow: var(--shadow-s);
  transition: box-shadow var(--transition-base), transform var(--transition-base),
              border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.track-card::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 0;
  height: 3px;
  background: var(--color-amber-hour);
  transition: width var(--transition-base);
  border-radius: 0 var(--radius-s) 0 0;
}

.track-card:hover {
  box-shadow: var(--shadow-l);
  transform: translateY(-2px);
  border-color: rgba(212, 146, 58, 0.35);
}

.track-card:hover::after {
  width: 100%;
}

.track-card:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}

.track-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track-card__title {
  font-family: var(--font-display);
  font-size: var(--text-body-l);
  font-weight: 600;
  color: var(--text-primary);
}

.track-card__desc {
  font-size: var(--text-body-s);
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.track-card__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.track-card__count {
  font-size: var(--text-body-s);
  color: var(--text-muted);
  font-weight: 500;
}


/* ----------------------------------------------------------------
   15. TRACK VIEW
   ---------------------------------------------------------------- */

.track-view {
  max-width: 780px;
}

.track-header {
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.track-header .badge {
  margin-bottom: var(--space-3);
}

.track-header__title {
  font-size: clamp(var(--text-heading-m), 4vw, var(--text-heading-l));
  margin-bottom: var(--space-2);
}

.track-header__desc {
  font-size: var(--text-body-l);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.track-header__count {
  font-size: var(--text-body-s);
  color: var(--text-muted);
  font-weight: 500;
}


/* ----------------------------------------------------------------
   16. SESSION LIST
   ---------------------------------------------------------------- */

.session-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

.session-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-fast);
}

.session-row:last-child {
  border-bottom: none;
}

.session-row:hover {
  background: var(--bg-surface);
}

.session-row--planned {
  opacity: 0.65;
}

.session-row__number {
  font-family: var(--font-body);
  font-size: var(--text-body-s);
  font-weight: 700;
  color: var(--color-amber-hour);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.session-row__content {
  flex: 1;
  min-width: 0;
}

.session-row__title {
  font-family: var(--font-display);
  font-size: var(--text-body-l);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.session-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 1px var(--space-2);
  white-space: nowrap;
}

.session-row__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}


/* ----------------------------------------------------------------
   17. ERROR / EMPTY STATES
   ---------------------------------------------------------------- */

.state-error,
.state-loading {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--text-muted);
}

.state-error h2,
.state-loading h2 {
  font-size: var(--text-heading-s);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.no-results {
  padding: var(--space-8);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-body-s);
}


/* ----------------------------------------------------------------
   18. 404 PAGE
   ---------------------------------------------------------------- */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--space-8) var(--content-padding);
  text-align: center;
}

.error-page__mark {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-8);
  opacity: 0.6;
}

.error-page__code {
  font-family: var(--font-body);
  font-size: var(--text-body-s);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber-hour);
  margin-bottom: var(--space-4);
}

.error-page__heading {
  font-size: clamp(var(--text-heading-m), 5vw, var(--text-display-m));
  margin-bottom: var(--space-4);
  max-width: 500px;
}

.error-page__body {
  font-size: var(--text-body-l);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 420px;
}


/* ----------------------------------------------------------------
   19. NOSCRIPT NOTICE
   ---------------------------------------------------------------- */

.noscript-notice {
  max-width: var(--content-max);
  margin: var(--space-8) auto;
  padding: var(--space-6) var(--content-padding);
  background: var(--bg-surface);
  border-left: 3px solid var(--color-amber-hour);
  border-radius: var(--radius-m);
  font-size: var(--text-body-s);
  color: var(--text-secondary);
}


/* ----------------------------------------------------------------
   20. RESPONSIVE
   ---------------------------------------------------------------- */

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

  .search-input {
    width: 120px;
  }

  .search-hint {
    display: none;
  }

  .today-panel {
    padding: var(--space-6);
  }

  .track-grid {
    grid-template-columns: 1fr;
  }

  .session-row {
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .session-row__meta {
    display: none;
  }

  .recent-card {
    width: 170px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .track-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .header-inner {
    gap: var(--space-6);
  }
}
