/* Additive a11y + mobile overflow. Loaded after app.css; does not restyle the theme. */

.skip-link,
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--fg, var(--cream, #f3ebe1));
  color: var(--bg, var(--ink, #0c0a09));
}
.skip-link:focus,
.skip-link:focus-visible,
.skip:focus,
.skip:focus-visible {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--accent, var(--amber, #e39b3d));
  outline-offset: 3px;
}

html { overflow-x: clip; }
.app,
main,
.now-mini,
.now-mini > div,
.hero,
.now-stage,
.card,
.page-head,
.rail {
  min-width: 0;
}

h1, h2 {
  line-height: 1.18;
  overflow: visible;
  overflow-wrap: anywhere;
}
.lead,
.prose,
.card p,
.rail-note,
.hero-card p,
.page-head {
  overflow-wrap: anywhere;
}

.nav a,
.chip,
.btn,
.section-head a {
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
}
.nav a,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

img.cover,
img.now-art,
img.dot {
  display: block;
  object-fit: cover;
}
img.cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 16px;
  margin-bottom: 14px;
  background-color: #1a1511;
  flex: 0 0 auto;
}
img.now-art {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 24px;
  background-color: #241910;
}
img.dot {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex: 0 0 auto;
  background-color: #2a2118;
}

#vol,
input[type=range] {
  min-height: 44px;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
}
input[type=range]::-moz-range-thumb {
  width: 24px;
  height: 24px;
}

.contact-card input,
.contact-card textarea {
  min-height: 44px;
  max-width: 100%;
}

.skip-link,
.skip,
.brand {
  min-height: 44px;
}
main footer a,
.meta-line a,
.section-head a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 4px;
}

@media (max-width: 900px) {
  .app {
    padding-bottom: calc(168px + env(safe-area-inset-bottom, 0px));
  }
  .app .nav {
    flex-wrap: wrap;
    overflow-x: visible;
    margin: 0;
  }
  .app .nav a {
    white-space: nowrap;
    min-height: 44px;
  }
  h1 { line-height: 1.15; }
  .player { min-height: 0; }
  .btn,
  .btn-main {
    min-width: 44px;
    min-height: 44px;
  }
}
