﻿:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 48px, 640px); margin: 0 auto; padding: 72px 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(30px, 5vw, 42px); line-height: 1.3; margin: 0 0 28px; }
.home main, .listening main { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.home h1 { text-align: center; font-size: clamp(26px, 4.5vw, 36px); margin: 0; }
.listening main { max-width: 380px; text-align: center; }
.listening h1 { font-size: 30px; margin-bottom: 36px; }
.house-art { position: relative; width: min(100%, 560px); aspect-ratio: 1.25; margin: 0 auto 28px; overflow: hidden; }
.house-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.house-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, #fff, transparent 9%, transparent 91%, #fff),
    linear-gradient(to bottom, #fff, transparent 12%, transparent 86%, #fff);
}
.listening .house-art { max-width: 300px; margin-bottom: 20px; }
.shy-message { font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 4vw, 26px); line-height: 1.6; min-height: 7em; margin: 0; text-wrap: pretty; }
#shy-text { white-space: pre-wrap; }
.typing-cursor { display: inline; margin-left: 2px; font-weight: 400; animation: cursor-blink 1s step-end infinite; }
@keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typing-cursor { animation: none; } }
.eyebrow { color: #686868; font-size: 12px; letter-spacing: .08em; margin: 0 0 14px; }
.intro { color: #555; font-size: 15px; line-height: 1.7; margin-bottom: 32px; }
.panel { padding: 28px 0; border-top: 1px solid #ddd; margin: 24px 0; }
.player-panel { border: 0; padding: 0; margin: 0; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
input { width: 100%; border: 1px solid #aaa; border-radius: 3px; padding: 12px; background: #fff; color: inherit; font: inherit; font-size: 14px; }
input[type=number] { max-width: 150px; }
input::file-selector-button { border: 1px solid #999; border-radius: 3px; background: #f5f5f5; color: #222; padding: 7px 10px; margin-right: 12px; cursor: pointer; }
.hint { font-size: 12px; line-height: 1.7; color: #707070; overflow-wrap: anywhere; }
form .hint { margin-bottom: 26px; }
button {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid #444;
  border-radius: 3px 6px 4px 7px / 6px 3px 7px 4px;
  padding: 16px 24px;
  font: inherit;
  font-size: 16px;
  color: #222;
  background: #fff;
  cursor: pointer;
}
button::after { content: ""; position: absolute; inset: -2px 1px 1px -2px; border: 1px solid #4445; border-radius: 6px 3px 7px 4px / 3px 7px 4px 6px; pointer-events: none; }
button:hover:not(:disabled) { background: #f5f5f5; }
button:active:not(:disabled) { background: #eee; }
button:disabled { opacity: .4; cursor: default; }
.secondary { margin-top: 16px; font-size: 13px; border-color: #999; }
.secondary::after { border-color: #9994; }
#play { padding-block: 20px; font-size: 20px; }
#status { font-size: 13px; color: #666; min-height: 1.5em; margin: 0 0 24px; }
#timing { margin-top: 24px; font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 5px; accent-color: #333; margin: 0 0 24px; }
a { color: inherit; text-underline-offset: 4px; }
.links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
#current { overflow-wrap: anywhere; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #222; outline-offset: 5px; }
[hidden] { display: none !important; }
@media (max-width: 480px) { main { padding-block: 40px; } }
