@font-face {
  font-family: "Manufacturing Consent";
  src: url("fonts/manufacturing-consent.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  font: 100%/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #163e60;
  background: white;
}
* { box-sizing: border-box; }
body { margin: 0; }
.site-header {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  padding: max(8px, env(safe-area-inset-top)) max(clamp(18px, 3vw, 44px), env(safe-area-inset-right)) 0 max(clamp(18px, 3vw, 44px), env(safe-area-inset-left));
  color: #254858;
  pointer-events: none;
}
.site-header h1 {
  margin: 0;
  font-family: "Manufacturing Consent", Georgia, serif;
  font-size: clamp(1.5rem, 2.1vw, 1.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .008em;
}
#listen {
  width: auto;
  min-height: 48px;
  padding: 0;
  border-radius: 2px;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  transform: skewY(-5deg);
  pointer-events: auto;
}
#mix-status {
  max-width: 17rem;
  margin-left: 1rem;
  font-size: .8125rem;
}
main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
}
.seascape {
  position: relative;
  width: min(99%, 164svh, 1760px);
  aspect-ratio: 1672 / 941;
  mask-image: radial-gradient(ellipse 74% 76% at 49% 52%, black 32%, rgb(0 0 0 / .93) 50%, rgb(0 0 0 / .61) 70%, rgb(0 0 0 / .18) 88%, transparent 100%);
}
.seascape picture, #painting, #ocean {
  display: block;
  width: 100%;
  height: 100%;
}
#ocean { position: absolute; inset: 0; }
.cloud-drift {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 58.4%;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 5%, black 24%, black 77%, transparent 95%),
              linear-gradient(to bottom, transparent 8%, black 27%, black 79%, transparent 98%);
  mask-composite: intersect;
}
@media (max-aspect-ratio: 4/5) {
  .seascape { width: min(100%, 60svh); aspect-ratio: 2 / 3; }
}
[hidden] { display: none !important; }
#player {
  position: fixed;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 10px 5vw max(10px, env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 97%);
  border-top: 1px solid #d9e6f0;
}
#player.surf-only { display: flex; gap: clamp(9px, 2.5vw, 28px); }
#player.surf-only .timeline { flex: 1 1 120px; max-width: 380px; }
#player.surf-only .volume { display: flex; }
#source { color: inherit; background: white; border: 1px solid #d9e6f0; border-radius: 4px; font: inherit; }
.record { display: grid; min-width: 0; flex: 0 1 210px; }
.record span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#track-title { font-weight: 600; }
#artist, .volume, .timeline { font-size: .875rem; }
#artist { color: #4e6c82; }
.transport, .timeline, .volume { display: flex; align-items: center; gap: 8px; }
.transport { gap: 0; }
.timeline { flex: 1 1 160px; max-width: 460px; font-variant-numeric: tabular-nums; }
.timeline span { min-width: 4ch; }
input { accent-color: #246da7; min-width: 0; }
.timeline input { width: 100%; }
.volume svg { flex: none; }
.volume input { width: clamp(42px, 8vw, 70px); }
.volume input, .timeline input { height: 32px; }
button {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0;
  background: transparent; color: inherit; cursor: pointer; border-radius: 50%;
}
button:hover { background: #eef6fb; }
button:disabled { opacity: .32; cursor: default; }
#play { color: white; background: #245d8d; }
button:focus-visible, input:focus-visible { outline: 2px solid #145a9b; outline-offset: 2px; }
.play-shape, .skip::before {
  width: 0; height: 0; border-block: 6px solid transparent; border-left: 9px solid currentColor;
}
.play-shape { margin-left: 2px; }
#play.playing .play-shape { margin-left: 0; width: 10px; height: 13px; border: 0; border-inline: 3px solid currentColor; }
.skip { display: flex; align-items: center; gap: 1px; }
.skip::before, .skip::after { content: ""; display: block; }
.skip::after { height: 12px; width: 2px; background: currentColor; }
.back { transform: rotate(180deg); }
#status { font-size: .875rem; }
@media (max-width: 640px) {
  #player { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding-inline: 5vw; }
  .volume { display: none; }
  .timeline, #status { grid-column: 1 / -1; width: 100%; max-width: none; }
  .timeline input { height: 30px; }
  #player.surf-only { padding-inline: 4vw; }
  #player.surf-only .timeline { gap: 4px; font-size: .8125rem; }
  #player.surf-only .volume { gap: 3px; }
  #source:not([hidden]) { grid-column: 1 / -1; justify-self: start; }
}
