/* ==============================================================
   THE WINDOW · page styles
   File: /the-window/the-window.css
   Colours, font and buttons come from site.css.
   The "How it helps" section uses shared styles (site.css, section 13).
   The scene's colours live in the-window.js (section 1).

   Sections:
     1  Layout and intro
     2  The view
     3  The panel
   ============================================================== */


/* --------------------------------------------------------------
   1 · LAYOUT AND INTRO
   -------------------------------------------------------------- */
.window-room {
  padding-block: clamp(1.5rem, 5vw, 3rem) clamp(3rem, 8vw, 5rem);
  background: linear-gradient(var(--c-sky-top), var(--bg));
}
.window-room__intro { max-width: 44rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.window-room__title {
  margin-bottom: .35em;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  font-weight: var(--weight-light);
  letter-spacing: -.025em;
}
.window-room__lede {
  font-size: var(--step-1);
  font-weight: var(--weight-light);
  line-height: 1.45;
}


/* --------------------------------------------------------------
   2 · THE VIEW
   -------------------------------------------------------------- */
.view {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 78svh;
  margin-inline: auto;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #E9E4DA;
}
@media (max-width: 700px) {
  .view { aspect-ratio: 4 / 5; }
}
.view canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.view__clock {
  position: absolute;
  right: .9rem;
  top: .75rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: rgba(20, 24, 28, .35);
  color: #fff;
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(4px);
}


/* --------------------------------------------------------------
   3 · THE PANEL
   -------------------------------------------------------------- */
.window-panel {
  max-width: 46rem;
  margin: 1.5rem auto 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}

.notice__label {
  margin-bottom: .25rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.notice__text {
  min-height: 2.6em;
  margin-bottom: .75rem;
  font-size: var(--step-1);
  font-weight: var(--weight-light);
  line-height: 1.35;
  transition: opacity .6s ease;
}
.notice__text.is-fading { opacity: 0; }

.window-settings {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.time-control__label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
  font-weight: var(--weight-strong);
}
.time-control__label span {
  font-weight: var(--weight-regular);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
#time {
  width: 100%;
  height: 2rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.time-control__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: .35rem;
}
.time-control__note {
  font-size: var(--step--1);
  color: var(--muted);
}

.window-toggles { display: flex; flex-wrap: wrap; gap: .5rem; }

.window-status {
  min-height: 1.65em;
  margin-top: 1rem;
  color: var(--muted);
}
