:root { --ui-scale: .9; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; min-height: 56px; padding: 15px 20px; border-radius: 8px; background: var(--text); color: var(--bg); text-decoration: none; }
.skip:focus { top: calc(14px + env(safe-area-inset-top)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1080px,100%); min-height: calc(104px + env(safe-area-inset-top)); margin: 0 auto; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; text-decoration: none; }
.brand-symbol { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-family: var(--display); font-size: 32px; font-style: italic; line-height: 1; padding: 0 3px 5px 0; }
.wordmark { font-family: var(--display); font-size: 32px; font-weight: 400; letter-spacing: -.05em; }
.settings-link { display: inline-flex; align-items: center; gap: 9px; min-height: 56px; padding: 0 2px 0 14px; font-size: 14px; text-decoration: none; color: var(--dim); transition: color var(--speed) var(--ease); }
.settings-link svg { width: 20px; height: 20px; }
.settings-link:hover { color: var(--text); }
.home { width: min(1080px,100%); margin: 0 auto; }
.home-heading { padding: clamp(40px,6.5vw,80px) 0 38px; }
.eyebrow { margin: 0 0 15px; color: var(--dim); font-size: 13px; letter-spacing: .04em; }
h1 { margin: 0; font-family: var(--display); font-size: clamp(42px,5.5vw,70px); font-weight: 400; line-height: 1.05; letter-spacing: -.045em; }
.home-description { margin: 18px 0 0; color: var(--dim); font-size: 16px; line-height: 1.5; }
.groups, .group { display: block; }
.tiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 336px; padding: 28px; border: 1px solid var(--line-strong); border-radius: 18px; text-decoration: none; background: var(--surface); color: var(--text); transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease); }
.tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.tile:active { transform: translateY(0) scale(.995); }
.tile-archive { background: var(--accent); border-color: var(--accent); color: #1b2119; }
.tile-archive:hover { background: color-mix(in srgb,var(--accent),#fff 8%); }
.tile-top, .tile-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tile-kind { font-size: 13px; letter-spacing: .02em; }
.tile-arrow { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; font-size: 20px; opacity: .6; transition: transform 180ms var(--ease); }
.tile:hover .tile-arrow { transform: translate(2px,-2px); }
.tile-copy { margin: 20px 0 30px; }
.tile h3 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(36px,4vw,52px); font-weight: 400; letter-spacing: -.04em; line-height: 1.05; white-space: nowrap; }
.tile p { margin: 0; font-size: 16px; line-height: 1.45; }
.tile-bottom { min-height: 28px; font-size: 13px; }
.archive-lines { width: 76px; height: 23px; opacity: .45; }
.sound-lines { width: 66px; height: 27px; color: var(--accent); opacity: .75; }
.tile-live { background: var(--surface); }
.tile-live .tile-kind { color: var(--accent); }
.tile-live p { color: var(--dim); }
.tile-collections { grid-column: 1 / -1; min-height: 210px; background: var(--surface); border-color: var(--line-strong); }
.tile-collections .tile-kind { color: var(--accent); }
.tile-collections p { color: var(--dim); max-width: 48ch; }
.catalog-marks { width: 72px; height: 24px; color: var(--accent); opacity: .7; }
.tile-lock { display: none; width: 24px; height: 24px; margin-left: auto; color: var(--dim); }
.tile-lock svg { display: block; width: 24px; height: 24px; }
.tile.is-locked .tile-lock { display: block; }
.tile.is-locked .tile-arrow { display: none; }
.tile.is-locked .tile-kind { color: var(--dim); }
@media (max-width: 599px) {
  .topbar { min-height: calc(86px + env(safe-area-inset-top)); }
  .wordmark { font-size: 30px; }
  .settings-link span { display: none; }
  .settings-link { justify-content: center; min-width: 56px; padding: 0; }
  .home-heading { padding: 36px 0 30px; }
  .home-description { max-width: 26ch; margin-top: 14px; }
  .tiles { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .tile { min-height: 222px; padding: 23px; border-radius: 16px; }
  .tile-copy { margin: 8px 0 17px; }
  .tile h3 { margin-bottom: 8px; font-size: 36px; }
  .tile p { font-size: 15px; }
  .tile p br { display: none; }
  .tile-top { min-height: 32px; }
  .tile-arrow { width: 30px; height: 30px; font-size: 18px; }
  .tile-kind, .tile-bottom { font-size: 12px; }
}
@media (max-width: 359px) {
  body { padding-left: 18px; padding-right: 18px; }
  .home-heading { padding-top: 30px; }
  h1 { font-size: 39px; }
  .tile { min-height: 210px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .tile-arrow, .settings-link { transition: none; }
  .tile:hover, .tile:hover .tile-arrow { transform: none; }
}
