/* Atlas: an editorial navigation interface for a working game archive. */
:root {
  --atlas-ink: #142c35;
  --atlas-ink-soft: #425c62;
  --atlas-muted: #60767a;
  --atlas-paper: #f7f7f2;
  --atlas-white: #fff;
  --atlas-line: #d9e2df;
  --atlas-ocean: #153841;
  --atlas-ocean-deep: #102d35;
  --atlas-coral: #ed795e;
  --atlas-mint: #bdd9c9;
  --atlas-dark: #0e2026;
  --atlas-dark-raised: #172e34;
  --atlas-dark-line: #385057;
  --atlas-dark-muted: #becdc7;
  --atlas-dark-white: #f2f6ef;
  --atlas-focus: #d65a3c;
  --atlas-font: 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  --ink: var(--atlas-ink);
  --muted: var(--atlas-muted);
  --sea: var(--atlas-ocean);
  --paper: var(--atlas-paper);
  --line: var(--atlas-line);
  font-family: var(--atlas-font);
}
html { scroll-behavior: smooth; }
body { background: var(--atlas-paper); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--atlas-focus); outline-offset: 3px; }
.wrap { width: min(1320px, calc(100% - 96px)); }

/* A compact, legible navigation keeps the archive usable at every width. */
.topbar { min-height: 78px; gap: 42px; padding: 0 48px; background: var(--atlas-white); border-bottom: 1px solid var(--atlas-line); }
.brand { gap: 11px; }
.brand-mark { width: 38px; height: 38px; border: 0; border-radius: 11px; background: var(--atlas-ocean); color: var(--atlas-white); font-size: 22px; }
.brand b { font-size: 15px; color: var(--atlas-ink); }
.brand small { font-size: 8px; letter-spacing: .06em; color: var(--atlas-muted); }
.topnav { gap: 23px; min-height: 78px; }
.topnav a { color: var(--atlas-ink-soft); font-size: 13px; font-weight: 600; }
.topnav a:hover { color: var(--atlas-ink); }
.topnav a.active { color: var(--atlas-ink); border-color: var(--atlas-coral); }

/* Home: a search-first introduction alongside the actual map. */
.home-hero { background: var(--atlas-paper); color: var(--atlas-ink); }
.home-hero:before { content: none; }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr); align-items: center; gap: clamp(36px, 5vw, 82px); padding: 76px 0 78px; }
.home-hero-copy { min-width: 0; }
.home-label, .home-section-label { display: inline-block; color: var(--atlas-ink-soft); font-size: 12px; font-weight: 700; }
.home-label:before { content: ''; display: inline-block; width: 20px; height: 3px; background: var(--atlas-coral); margin: 0 9px 4px 0; }
.home-hero h1 { color: var(--atlas-ink); font-size: clamp(40px, 4.35vw, 66px); line-height: 1.22; letter-spacing: -.065em; margin: 22px 0; font-weight: 750; overflow-wrap: break-word; }
.home-hero p { color: var(--atlas-ink-soft); font-size: 15px; line-height: 1.85; }
.home-search-form { width: min(100%, 610px); margin-top: 32px; background: var(--atlas-white); border: 1px solid #c9d5d2; border-radius: 8px; box-shadow: 0 8px 25px #1838400b; }
.home-search-form select, .home-search-form input { color: var(--atlas-ink); font-size: 13px; }
.home-search-form input::placeholder { color: var(--atlas-muted); }
.home-search-form button { background: var(--atlas-ocean); border-radius: 5px; font-size: 12px; }
.home-actions { gap: 10px; margin-top: 16px; }
.home-actions a { display: inline-flex; align-items: center; gap: 24px; padding: 14px 18px; font-size: 12px; border-radius: 6px; }
.home-actions .home-primary { background: var(--atlas-ocean); color: var(--atlas-white); }
.home-actions .home-secondary { background: transparent; border: 1px solid #b6c6c1; color: var(--atlas-ink); }
.home-actions a:hover { transform: translateY(-2px); }
.home-chart { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 410px; overflow: hidden; border-radius: 14px; padding: 23px; text-decoration: none; background: linear-gradient(170deg,#173d46b8,#0d3039ef), url('/navigation/maps/uwo-blue.png') 48% 48% / auto 100%; color: var(--atlas-dark-white); }
.home-chart:before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#ffffff0d 1px,transparent 1px), linear-gradient(#ffffff0d 1px,transparent 1px); background-size: 56px 56px; }
.home-chart-top,.home-chart-caption,.home-chart-cross { position: relative; z-index: 1; }
.home-chart-top { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: #e0eae1; }
.home-chart-top span { font-size: 10px; letter-spacing: 0; font-weight: 500; }
.home-chart-caption { display: flex; flex-direction: column; gap: 7px; }
.home-chart-caption small { font-size: 12px; color: #d2e0d6; }
.home-chart-caption strong { font-size: clamp(27px, 2.6vw, 40px); letter-spacing: -.06em; }
.home-chart-caption>span { margin-top: 15px; font-size: 12px; font-weight: 700; }
.home-chart-cross { align-self: end; position: absolute; right: 26px; bottom: 18px; color: #b6d5c2; font-size: 54px; }
.home-chart:hover { filter: brightness(1.08); }
.home-content { padding: 68px 0 90px; border-top: 1px solid var(--atlas-line); }
.home-content .section-head { align-items: end; gap: 20px; }
.home-content .section-head h2, .map-picks h2 { font-size: clamp(25px, 2.5vw, 34px); letter-spacing: -.055em; color: var(--atlas-ink); margin: 10px 0; }
.home-content .section-head p, .map-picks p { color: var(--atlas-muted); font-size: 13px; }
.home-section-link { font-size: 12px; color: var(--atlas-ink-soft); text-decoration: none; white-space: nowrap; padding-bottom: 5px; }
.home-section-link span { margin-left: 12px; }
.home-categories { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; border-top: 1px solid var(--atlas-line); margin: 28px 0 65px; }
.home-category { min-height: 150px; border: 0; border-bottom: 1px solid var(--atlas-line); border-radius: 0; padding: 23px 36px 23px 0; background: transparent; }
.home-category:not(:nth-child(4n)) { border-right: 1px solid var(--atlas-line); }
.home-category:not(:nth-child(4n + 1)) { padding-left: 24px; }
.home-category:hover { background: #eaf0eb; }
.home-category>span { color: #b55740; font-size: 21px; }
.home-category b { color: var(--atlas-ink); font-size: 15px; }
.home-category small { color: var(--atlas-muted); font-size: 11px; line-height: 1.6; }
.home-category i { top: 25px; color: var(--atlas-muted); }
.map-picks { background: #e8efea; border-radius: 12px; padding: clamp(25px,3vw,40px); }
.map-pick-grid { gap: 8px; margin-top: 25px; }
.map-pick-grid a, .map-pick-grid a:nth-child(n) { min-height: 108px; border-radius: 6px; background: var(--atlas-ocean); padding: 18px; }
.map-pick-grid a:hover { background: #28515a; }
.map-pick-grid b { font-size: 13px; }
.map-pick-grid span { font-size: 11px; color: #d6e4dd; }

/* Keep information, asset and map tools visually related to the home page. */
.info-page { padding-top: 42px; }
.info-heading h1 { font-size: 34px; color: var(--atlas-ink); }
.info-heading p, .info-data-note, .info-list-head span { color: var(--atlas-muted); }
.info-categories, .info-search-panel, .map-column, .nav-panel { border-color: var(--atlas-line); border-radius: 8px; }
.info-categories { gap: 3px; padding: 7px; }
.info-categories button { color: var(--atlas-ink-soft); font-size: 12px; }
.info-categories button.active { background: var(--atlas-ocean); }
.info-search-panel { background: #edf2ee; padding: 22px; }
.info-search-title h2, .info-list-head b { color: var(--atlas-ink); }
.info-table th { background: #e8efea; color: var(--atlas-ink-soft); font-size: 12px; }
.info-table td { font-size: 13px; color: var(--atlas-ink-soft); }
.info-name-cell button { color: #1d5960; }
.nav-head h1, .hero h1 { color: var(--atlas-ink); }
.nav-head p, .hero p { color: var(--atlas-muted); }
.primary-button { background: var(--atlas-ocean); }
.map-column, .nav-panel { overflow: hidden; }
.asset-card:hover .asset-image { border-color: #769b91; }

/* The music surface is dark for long listening, with the same maritime accents. */
#music-view { background: var(--atlas-dark); color: var(--atlas-dark-white); }
.music-page { width: min(1160px,calc(100% - 96px)); }
.music-hero { gap: 38px; border-color: var(--atlas-dark-line); }
.music-cover { background: linear-gradient(150deg,#204b53b8,#0e303be8),url('/navigation/maps/uwo-blue.png') center / auto 100%; border-radius: 8px; }
.music-cover b { color: var(--atlas-mint); }
.music-kicker { color: var(--atlas-dark-muted); letter-spacing: .07em; font-size: 11px; }
.music-intro h1 { color: var(--atlas-dark-white); }
.music-intro p, .music-meta, .music-short-option { color: var(--atlas-dark-muted); }
.music-shuffle-start { background: var(--atlas-mint); color: var(--atlas-dark); }
.music-shuffle-start:hover { background: var(--atlas-dark-white); }
.music-search { background: var(--atlas-dark-raised); border-color: var(--atlas-dark-line); }
.music-search input { color: var(--atlas-dark-white); }
.music-search input::placeholder { color: var(--atlas-dark-muted); }
.music-selection, .music-selection>span, .music-page .music-selection-help { color: var(--atlas-dark-muted); }
.music-selection button { background: var(--atlas-dark-raised); border-color: var(--atlas-dark-line); color: var(--atlas-dark-white); }
.music-columns { color: var(--atlas-dark-muted); border-color: var(--atlas-dark-line); }
.music-track { color: var(--atlas-dark-white); border-color: #ffffff14; }
.music-track-number, .music-track-id { color: var(--atlas-dark-muted); }
.music-track.selected { background: #bdd9c91c; }
.music-track.selected strong, .music-track-state { color: #cae9d4; }
.music-dock { background: #102a30; border-color: var(--atlas-dark-line); }
.music-dock-track small, .music-timeline, .music-volume { color: var(--atlas-dark-muted); }
.music-buttons button { color: var(--atlas-dark-muted); }
.music-buttons button.active, .music-buttons button:hover { color: var(--atlas-mint); }
.music-buttons .music-toggle { background: var(--atlas-dark-white); color: var(--atlas-dark); }
.music-buttons .music-toggle:hover { background: var(--atlas-mint); color: var(--atlas-dark); }
.music-page .music-note { color: var(--atlas-dark-muted); }
footer { background: #edf1ed; }
.footer-inner { color: var(--atlas-muted); }

@media (max-width: 1100px) {
  .topbar { gap: 0; padding: 12px 36px 0; }
  .topnav { min-height: 48px; }
  .home-hero-inner { gap: 30px; }
}
@media (max-width: 760px) {
  .wrap, .music-page { width: calc(100% - 36px); }
  .topbar { padding: 10px 18px 0; }
  .topnav { gap: 21px; min-height: 44px; }
  .topnav a { font-size: 12px; }
  .home-hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 30px; padding: 44px 0 42px; }
  .home-hero h1 { font-size: clamp(36px, 9vw, 48px); margin: 16px 0; }
  .home-hero p { font-size: 14px; }
  .home-search-form { margin-top: 24px; }
  .home-actions a { gap: 12px; padding: 13px; }
  .home-chart { min-height: 235px; padding: 18px; }
  .home-chart-caption strong { font-size: 28px; }
  .home-content { padding: 45px 0 60px; }
  .home-content .section-head { align-items: start; }
  .home-section-link { margin-top: 5px; font-size: 11px; }
  .home-categories { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 24px 0 45px; }
  .home-category { min-height: 135px; }
  .home-category:not(:nth-child(4n)) { border-right: 0; }
  .home-category:not(:nth-child(4n + 1)) { padding-left: 0; }
  .home-category:nth-child(odd) { border-right: 1px solid var(--atlas-line); padding-right: 20px; }
  .home-category:nth-child(even) { padding-left: 18px; }
  .map-pick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .music-page { padding-top: 32px; }
  .music-hero { gap: 20px; }
  .music-cover { width: 125px; }
  .music-intro h1 { font-size: 26px; }
  .music-short-option { display: flex; margin: 11px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-actions a { transition: none; }
}
