/* Shared visual system. Draft League intentionally uses its own styles. */
:root {
  --bg: #101016;
  --surface: #181820;
  --text: #eeedf5;
  --body: #b8b5c8;
  --muted: #a09bb3;
  --border: #2c293b;
  --border-hi: #514464;
  --accent: #b59aee;
  --accent-2: #8bb7eb;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Lora', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font-body); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; }
h1 em, h2 em { color: var(--accent); font-weight: 400; }
.wrap, .nav-inner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.site-nav { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-nav .wrap, .nav-inner { display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 20px; }
.nav-logo { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.nav-logo > span:first-child { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-support, .nav-back { font-size: 13px; color: var(--body); }
.nav-links a:hover, .nav-support:hover, .nav-back:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.hero { padding: 56px 0 12px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.2; letter-spacing: -1.5px; }
.bio { margin-top: 12px; font-size: 14px; color: var(--body); }
.home section { margin-top: 52px; }
.label, .section-label, .page-label, .hero-icon-label { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.home .label { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 18px; margin-bottom: 24px; }
.home .label b { display: none; }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: flex; gap: 20px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.card > div { min-width: 0; flex: 1; }
.icon { width: 60px; height: 60px; flex: none; object-fit: cover; border: 1px solid var(--border); border-radius: 13px; }
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.card .top { flex-wrap: wrap; gap: 6px 12px; }
.name { font-size: 18px; font-weight: 600; letter-spacing: -.3px; line-height: 1.4; }
.main:hover { text-decoration: underline; text-underline-offset: 4px; }
.desc { font-size: 14px; line-height: 1.7; color: var(--body); margin-top: 10px; max-width: 70ch; }
.tag { flex-shrink: 0; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding: 3px 9px; border: 1px solid var(--border-hi); border-radius: 5px; }
.tag.app { color: var(--accent); border-color: #584370; background: #b59aee0d; }
.tag.gh, .tag.game { color: var(--accent-2); border-color: #354f70; background: #8bb7eb0a; }
.project-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
.sub { color: var(--accent); font-size: 12px; font-weight: 500; text-underline-offset: 4px; }
.sub:hover { text-decoration: underline; }
.status { color: var(--muted); font-size: 11px; margin-top: 12px; }
.card.game { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 18px; padding: 18px; overflow: hidden; }
.card.game > div { padding: 0; }
.card.game .top { gap: 8px; }
.shot { display: flex; justify-content: center; align-items: center; height: auto; padding: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; }
.shot img { display: block; width: 100%; height: auto; object-fit: contain; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.row { position: relative; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.row:not(.recommender-feature):hover, .row:not(.recommender-feature):focus-within { border-color: var(--border-hi); }
.row:not(.recommender-feature) .main::after { content: ''; position: absolute; inset: 0; border-radius: 8px; }
.row.quiet .name { font-size: 17px; }
#other .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row .sub { display: inline-block; margin-top: 12px; }
.home footer { margin-top: 80px; border-top: 1px solid var(--border); }
.home footer .wrap { display: flex; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; color: var(--muted); font-size: 12px; }
/* Product pages */
.hero-section, .features-section, .cta-section, .section-divider { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.hero-section { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero-icon-wrap { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.hero-icon { width: 58px; height: 58px; overflow: hidden; border-radius: 13px; border: 1px solid var(--border); flex-shrink: 0; }
.hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.hero-left h1 { font-size: clamp(44px, 5.2vw, 66px); line-height: 1.12; letter-spacing: -2px; margin-bottom: 24px; }
.hero-desc { color: var(--body); font-size: 16px; max-width: 420px; margin-bottom: 28px; }
.web-btn, .appstore-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 20px; border: 1px solid var(--accent); border-radius: 5px; font-size: 13px; font-weight: 500; background: var(--accent); color: #171120; margin: 0 8px 12px 0; }
.appstore-btn { background: transparent; color: var(--accent); }
.appstore-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.web-btn:hover { background: #cbb4fa; color: #171120; }
.appstore-btn:hover { background: #262033; }
.release-status { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 6px; }
.hero-right { display: flex; align-items: center; justify-content: center; gap: 18px; background: #1c1926; padding: 36px 24px; border-radius: 8px; }
.screenshot-wrap { width: 48%; max-width: 185px; border: 1px solid var(--border-hi); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 28px #0004; }
.screenshot-wrap.secondary { transform: translateY(16px); }
.screenshot-wrap img { width: 100%; height: auto; display: block; }
.divider { display: flex; gap: 0; margin: 0; }
.divider-line { height: 1px; background: var(--border) !important; flex: 1; }
.divider-gem { display: none; }
.features-section { padding-top: 48px; padding-bottom: 56px; }
.section-label { margin-bottom: 24px; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.feature-card { padding-right: 24px; border-right: 1px solid var(--border); }
.feature-card:last-child { border: 0; }
.feature-icon { display: none; }
.feature-card h3 { font-size: 17px; font-weight: 500; line-height: 1.5; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--body); }
.cta-section { padding-bottom: 64px; }
.cta-inner { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 44px 24px; text-align: center; }
.cta-inner h2 { font-size: 36px; line-height: 1.25; letter-spacing: -1px; }
.cta-inner > p:not(.release-status) { color: var(--body); font-size: 15px; margin: 18px 0 24px; }
body:not(.home) > footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 40px; border-top: 1px solid var(--border); width: 100%; max-width: 1120px; margin: auto auto 0; }
.footer-text, .footer-links { font-size: 11px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
/* Support pages */
.support-page main { width: 100%; max-width: 860px; margin: 0 auto; padding: 64px 40px 80px; }
.page-header { margin-bottom: 36px; }
.page-label { margin-bottom: 20px; }
.page-header h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.2; letter-spacing: -1.5px; }
.page-header > p:last-child { margin-top: 18px; color: var(--body); }
.sections { display: grid; gap: 36px; margin-top: 36px; }
.section h2 { font-size: 25px; margin-bottom: 14px; }
.section .section-label { margin-bottom: 12px; }
.section p, .section li { font-size: 15px; color: var(--body); }
.section ul { padding-left: 20px; }
.section li { margin-bottom: 18px; }
.contact-card { display: inline-flex; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); padding: 18px 24px; margin-top: 20px; max-width: 100%; overflow-wrap: anywhere; }
.contact-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.contact-email { color: var(--accent); }
.policy-link { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
/* Album of the Day: a quiet, dark sleeve for the artwork. */
.music-page { --bg: #0d0d14; --surface: #171620; --border: #302a41; }
.music-page main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 64px 40px 80px; }
.music-page .label { padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pick-details { min-width: 0; }
.pick-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.12; letter-spacing: -1.5px; margin-bottom: 18px; }
.pick-artist { font-size: 22px; color: var(--body); }
.pick-year { color: var(--muted); font-size: 14px; margin-top: 6px; }
.pick-cover { grid-column: 1; grid-row: 1; box-shadow: 0 20px 40px #0003; }
.pick-cover img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pick .divider { margin: 28px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags .tag { padding: 5px 12px; border: 1px solid #40384e; background: #201b2a; color: #c1b8d0; border-radius: 6px; text-transform: none; letter-spacing: .2px; font-size: 12px; }
.tags .tag.mood { color: #c7a8ff; border-color: #644987; background: #a77be619; }
.tags .tag.pace { color: #95c5f5; border-color: #3d5d80; background: #70b0ed14; }
.music-page .label span { color: var(--accent); }
.music-page .divider { gap: 12px; align-items: center; }
.music-page .divider-gem { display: block; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }
.pick-note, .why { color: var(--body); font-size: 13px; margin-top: 18px; }
.actions { margin-top: 28px; }
.spotify-link { display: inline-flex; gap: 18px; color: var(--accent); border-bottom: 1px solid var(--accent); padding: 8px 0; font-size: 14px; }
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; color: var(--body); font-size: 13px; }
.nav-drop summary::-webkit-details-marker { display: none; }
.caret { font-size: 8px; margin-left: 5px; }
.nav-drop details[open] .caret { display: inline-block; transform: rotate(180deg); }
.menu { position: absolute; top: 36px; right: 0; width: 280px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 12px 30px #0002; }
.menu a { display: block; padding: 12px; }
.menu a:hover { background: var(--bg); text-decoration: none; }
.menu-name { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 13px; }
.menu-desc { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
@media (max-width: 900px) {
  .card { flex-direction: column; }
  .hero-section { gap: 32px; }
  .hero-right { padding: 24px 16px; gap: 12px; }
  .pick { gap: 36px; }
}
@media (max-width: 680px) {
  .wrap, .nav-inner { padding-left: 22px; padding-right: 22px; }
  .site-nav .wrap, .nav-inner { min-height: 68px; }
  .nav-links { gap: 16px; }
  .nav-logo { font-size: 13px; }
  .hero { padding-top: 36px; }
  .hero h1 { letter-spacing: -1px; }
  .bio { font-size: 12px; }
  .home section { margin-top: 36px; }
  .apps { grid-template-columns: 1fr; gap: 18px; }
  #other .rows { grid-template-columns: 1fr; }
  .row { padding: 20px; }
  .card { padding: 24px; flex-direction: row; gap: 16px; }
  .icon { width: 48px; height: 48px; }
  .top { gap: 12px; }
  .name { font-size: 17px; }
  .hero-section { grid-template-columns: 1fr; padding: 44px 22px; gap: 36px; }
  .hero-right { padding: 28px; }
  .section-divider, .features-section, .cta-section { padding-left: 22px; padding-right: 22px; }
  .features-grid { grid-template-columns: 1fr; gap: 24px; }
  .feature-card { border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 24px; }
  body:not(.home) > footer { padding: 24px 22px; flex-wrap: wrap; }
  .support-page main { padding: 44px 22px 60px; }
  .music-page main { padding: 36px 22px 56px; }
  .music-page .label { margin-bottom: 28px; }
  .pick { grid-template-columns: 1fr; gap: 32px; }
  .pick-cover { width: 100%; max-width: 420px; }
  .music-page .nav-links { gap: 16px; }
  .music-page .logo-text { display: none; }
  .menu { max-width: calc(100vw - 44px); }
}
@media (max-width: 400px) {
  .home .nav-logo .full { display: none; }
  .card { flex-direction: column; }
  .nav-inner { gap: 12px; }
  .nav-back { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.section p.section-label { font-size: 11px; color: var(--muted); }
@media (max-width: 680px) {
  .nav-drop .menu { position: fixed; top: 68px; left: 22px; right: 22px; width: auto; }
}

/* App artwork anchors the title rather than a separate card column. */
.app-card .top { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.app-card .icon { display: block; width: 44px; height: 44px; border-radius: 10px; }
.app-card .desc { margin-top: 18px; }
.app-card .project-links { gap: 10px 20px; margin-top: 20px; }
@media (max-width: 400px) {
  .app-card .top { grid-template-columns: 40px minmax(0, 1fr); }
  .app-card .icon { width: 40px; height: 40px; grid-row: 1 / 3; }
  .app-card .top .tag { grid-column: 2; justify-self: start; }
  .app-card .top { column-gap: 12px; row-gap: 5px; }
}

/* The analytics remain part of the recommender, with a direct visual entrance. */
.row.recommender-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 32px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
}
.feature-copy { min-width: 0; }
.recommender-feature .name { font-size: 21px; }
.feature-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 24px; }
.feature-links .sub { margin-top: 0; }
.analytics-button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; background: var(--accent); color: #171120; border-radius: 5px; font-size: 13px; font-weight: 600; }
.analytics-button:hover { color: #171120; background: #cbb4fa; }
.analytics-preview { display: block; width: 100%; max-width: 400px; justify-self: end; min-width: 0; border: 1px solid var(--border-hi); border-radius: 5px; overflow: hidden; }
.analytics-preview img { display: block; width: 100%; height: auto; }
.analytics-preview:hover { border-color: var(--accent); }
@media (max-width: 760px) {
  .row.recommender-feature { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .analytics-preview { justify-self: center; }
}
/* Stack the game cards when their text columns would become too narrow. */
@media (min-width: 681px) and (max-width: 1000px) {
  #games .apps { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .card.game { grid-template-columns: 1fr; }
  .card.game .shot { max-width: 220px; justify-self: center; }
}
