* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #21150f; color: #f4e8d5; }
body { font-family: Georgia, "Times New Roman", serif; }
.ambient {
  width: 100%; height: 100%; min-height: 320px; display: table; table-layout: fixed;
  background: radial-gradient(ellipse at 58% 40%, #5b3822 0%, #2a1a11 58%, #1b120e 100%);
}
.visual, .information { display: table-cell; vertical-align: middle; height: 100%; }
.visual {
  width: 48%; position: relative; padding: 5% 5% 4% 6%;
  background-image: linear-gradient(90deg, rgba(20,12,8,.08) 0%, rgba(24,14,9,.20) 56%, rgba(35,21,14,.88) 100%), url("assets/winter-glow.jpg");
  background-size: auto 88%; background-repeat: no-repeat; background-position: left center;
}
.visual:after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 22%; background: linear-gradient(90deg, transparent, rgba(35,21,14,.8)); }
.brand, blockquote, .visual-caption { position: relative; z-index: 1; }
.brand { text-align: center; margin: 0 auto; max-width: 520px; padding-top: 1vh; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.eyebrow { font: 12px Arial, sans-serif; letter-spacing: .42em; }
h1 { margin: 12px 0 5px; font-size: 42px; font-size: clamp(30px, 4.2vw, 58px); font-weight: normal; letter-spacing: .12em; text-transform: uppercase; }
.ornament { display: inline-block; margin-top: 12px; font-size: 22px; }
blockquote { max-width: 500px; margin: 6vh auto 0; text-align: center; font-size: 28px; font-size: clamp(20px, 2.7vw, 36px); font-style: italic; line-height: 1.35; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.visual-caption { position: absolute; left: 6%; bottom: 5%; font: 10px Arial, sans-serif; letter-spacing: .25em; text-transform: uppercase; opacity: .72; }
.information { width: 52%; padding: 3.8% 4.2% 2.8% 3.4%; background: linear-gradient(90deg, rgba(34,21,14,.82), rgba(28,18,13,.96)); }
.date-block { padding-bottom: 7%; border-bottom: 1px solid rgba(244,232,213,.32); }
.time { font-size: 80px; font-size: clamp(58px, 8.5vw, 112px); line-height: .95; letter-spacing: -.055em; font-weight: normal; }
.date { margin-top: 12px; font-size: 18px; font-size: clamp(14px, 1.7vw, 22px); }
.weather-block { padding: 7% 0; border-bottom: 1px solid rgba(244,232,213,.32); }
.location { font: 12px Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; opacity: .9; margin-bottom: 18px; }
.pin { font-size: 20px; margin-right: 8px; }
.weather-line { display: table; width: 100%; }
.weather-icon, .temperature, .high-low { display: table-cell; vertical-align: middle; }
.weather-icon { width: 18%; font-size: 38px; font-size: clamp(30px, 4vw, 48px); }
.temperature { font-size: 50px; font-size: clamp(38px, 5.2vw, 66px); white-space: nowrap; }
.high-low { text-align: right; font-size: 15px; font-size: clamp(12px, 1.5vw, 18px); line-height: 1.65; white-space: nowrap; }
.condition { margin-top: 12px; font-size: 14px; font-size: clamp(13px, 1.5vw, 17px); opacity: .85; }
.countdown-block { padding-top: 5%; }
.countdown-heading { font-size: 18px; font-size: clamp(15px, 1.8vw, 22px); letter-spacing: .04em; margin-bottom: 18px; }
.countdown-heading span { margin-right: 8px; }
.countdown { display: table; width: 100%; table-layout: fixed; }
.countdown div { display: table-cell; text-align: center; border-right: 1px solid rgba(244,232,213,.3); }
.countdown div:first-child { text-align: left; }
.countdown div:last-child { border: 0; }
.countdown strong { display: block; font-size: 58px; font-size: clamp(42px, 6.4vw, 78px); font-weight: normal; line-height: 1; letter-spacing: -.04em; }
.countdown small { display: block; margin-top: 8px; font: 10px Arial, sans-serif; letter-spacing: .2em; }
footer { margin-top: 4%; font: 9px Arial, sans-serif; letter-spacing: .28em; opacity: .55; }
footer span { padding: 0 8px; }
@media (max-width: 700px) {
  .ambient { display: block; overflow-y: auto; }
  .visual, .information { display: block; width: 100%; height: auto; }
  .visual { min-height: 42vh; padding: 7vh 7vw 6vh; background-position: center 43%; }
  .visual:after { display: none; }
  blockquote { margin-top: 4vh; font-size: 25px; }
  .information { padding: 5vh 8vw; }
  .music-slot { margin-top: 5vh; padding-top: 4vh; }
  .music-art { width: 50px; height: 50px; line-height: 50px; }
  .music-controls { width: 72px; }
  .time { font-size: 19vw; }
  .countdown strong { font-size: 15vw; }
}

/* Reserved music-player area: visual placeholder for the next development phase */
.music-slot {
  display: table;
  width: 100%;
  table-layout: fixed;
  margin-top: 5%;
  padding-top: 4%;
  border-top: 1px solid rgba(244,232,213,.28);
  color: rgba(244,232,213,.92);
}
.music-art, .music-meta, .music-controls { display: table-cell; vertical-align: middle; }
.music-art {
  width: 58px; height: 58px; max-width: 58px;
  border: 1px solid rgba(244,232,213,.42);
  background: linear-gradient(145deg, rgba(244,232,213,.16), rgba(40,24,15,.3));
  text-align: center; font-size: 28px; line-height: 58px;
}
.music-meta { padding: 0 14px; }
.music-kicker { font: 9px Arial,sans-serif; letter-spacing: .24em; opacity: .65; margin-bottom: 5px; }
.music-title { font-size: clamp(14px, 1.5vw, 18px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-artist { font: 10px Arial,sans-serif; letter-spacing: .08em; opacity: .62; margin-top: 4px; }
.music-progress { height: 2px; margin-top: 9px; background: rgba(244,232,213,.22); }
.music-progress span { display: block; width: 0; height: 100%; background: #e8d3b3; }
.music-controls { width: 82px; text-align: right; white-space: nowrap; font: 20px Arial,sans-serif; opacity: .72; }
.music-controls span { display: inline-block; padding-left: 7px; }
.music-controls .play-symbol { font-size: 17px; }
@media (max-height: 650px) and (min-width: 701px) {
  .information { padding-top: 2.5%; padding-bottom: 2%; }
  .date-block { padding-bottom: 4%; }
  .weather-block { padding: 4% 0; }
  .countdown-block { padding-top: 4%; }
  .music-slot { margin-top: 3%; padding-top: 2.5%; }
}

/* Fullscreen toggle */
.fullscreen-toggle {
  position: fixed;
  z-index: 20;
  top: 16px;
  right: 18px;
  display: inline-block;
  padding: 9px 12px;
  border: 1px solid rgba(244,232,213,.28);
  border-radius: 2px;
  background: rgba(25,16,11,.58);
  color: rgba(244,232,213,.86);
  font: 10px Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .68;
  -webkit-appearance: none;
  appearance: none;
}
.fullscreen-toggle:hover, .fullscreen-toggle:focus {
  opacity: 1;
  background: rgba(25,16,11,.88);
  outline: none;
}
.fullscreen-icon { font-size: 16px; vertical-align: -1px; margin-right: 7px; }
.fullscreen-notice {
  display: none;
  position: fixed;
  z-index: 21;
  top: 58px;
  right: 18px;
  max-width: 290px;
  padding: 10px 13px;
  background: rgba(25,16,11,.92);
  border: 1px solid rgba(244,232,213,.25);
  color: #f4e8d5;
  font: 12px/1.45 Arial, sans-serif;
}
.fullscreen-notice.visible { display: block; }
:fullscreen { background: #21150f; }
:-webkit-full-screen { background: #21150f; }
@media (max-width: 700px) {
  .fullscreen-toggle { top: 10px; right: 10px; padding: 8px 9px; font-size: 9px; }
  .fullscreen-notice { top: 48px; right: 10px; max-width: 250px; }
}
