:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: #111;
  --line: #303030;
  --text: #f5f5f5;
  --muted: #999;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 Inter, system-ui, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: not-allowed; }
.topbar { min-height: 72px; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.logo { font-size: 17px; font-weight: 600; letter-spacing: .22em; }
nav { display: flex; gap: 26px; }
nav a { color: var(--muted); }
nav a.active, nav a:hover { color: var(--text); }
main { max-width: 1440px; margin: auto; padding: 0 5%; }
.intro { padding: 46px 0 30px; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .2em; }
h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; margin: 12px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.filters { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; align-items: end; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
label { display: grid; gap: 7px; color: #c8c8c8; font-size: 12px; }
input, select, .button { min-height: 40px; padding: 9px 12px; border: 1px solid #404040; border-radius: 3px; color: var(--text); background: var(--panel); }
input[type="checkbox"] { min-height: auto; accent-color: #ddd; }
input[type="range"] { min-height: 20px; padding: 0; accent-color: #ddd; }
.button { white-space: nowrap; }
.button:hover:not(:disabled) { border-color: #aaa; }
.button.secondary { background: transparent; }
.mixbar { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mixbar p { margin: 4px 0 0; }
.mix-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.status { color: var(--muted); font-size: 12px; }
.status:empty { display: none; }
.sound-list { border-top: 1px solid var(--line); }
.sound { padding: 21px 0; border-bottom: 1px solid var(--line); }
.sound-head { display: flex; justify-content: space-between; gap: 16px; }
.sound-title { font-weight: 600; overflow-wrap: anywhere; }
.sound-meta { margin-top: 5px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.select-control { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.sound-controls { margin-top: 14px; display: grid; grid-template-columns: auto minmax(100px, 1fr) auto minmax(70px, 120px); align-items: center; gap: 15px; }
.wave { width: 100%; min-width: 0; }
.loop-control { display: flex; align-items: center; gap: 7px; }
.volume-control { display: flex; align-items: center; gap: 8px; }
.volume-control span { color: var(--muted); }
.empty, .error { padding: 30px 0; color: var(--muted); }
.error { color: #ff9a9a; }
footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 40px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 800px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:nth-child(3) { grid-column: 1 / -1; }
  .filters .button { width: 100%; }
  .sound-controls { grid-template-columns: auto minmax(0, 1fr) auto; }
  .volume-control { grid-column: 2 / -1; }
}
@media (max-width: 480px) {
  .topbar { padding: 0 4%; }
  .logo { font-size: 13px; letter-spacing: .13em; }
  nav { gap: 14px; }
  main { padding: 0 4%; }
  .sound-controls { grid-template-columns: auto 1fr; gap: 12px; }
  .wave { grid-column: 1 / -1; grid-row: 1; }
  .volume-control { grid-column: 1 / -1; }
  footer { flex-direction: column; }
}


/* Contact page portrait */
.contact-intro { padding-bottom: 18px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: center; gap: clamp(28px, 6vw, 84px); padding: 10px 0 64px; }
.contact-portrait-wrap { min-width: 0; max-width: 520px; overflow: hidden; background: transparent; justify-self: center; }
.contact-portrait { display: block; width: 100%; max-width: 520px; height: auto; object-fit: contain; }
.contact-details { max-width: 470px; }
.contact-details h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin: 12px 0 18px; }
.contact-details > p { margin: 0 0 18px; }
.contact-email-label { margin-top: 30px !important; margin-bottom: 4px !important; color: var(--muted); font-size: 10px; letter-spacing: .2em; }
.contact-email { overflow-wrap: anywhere; }
.contact-email a { border-bottom: 1px solid #777; padding-bottom: 3px; }
.contact-back { margin-top: 36px !important; color: var(--muted); }
.contact-back a:hover, .contact-email a:hover { color: var(--text); }
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
  .contact-portrait-wrap { max-width: 420px; }
  .contact-details { max-width: none; }
}
