:root {
  --paper: #f5f2ec;        /* the warm white page */
  --card: #fffefb;         /* the card */
  --ink: #17191c;          /* the big degrees, the place */
  --muted: #8a8b88;        /* small print */
  --line: #e7e3db;         /* hairlines, the glass */
  --tick: #cfcac0;         /* the scale ticks at rest */
  --accent: #e0592a;       /* the single accent: the warm column */
  --accent-cool: #f0a27c;  /* the same accent, cooled down for the colder hours */
  --pill: #f3efe7;         /* the chosen hour */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 2vh 12px;
}

.card {
  width: min(410px, 94vw);
  background: var(--card);
  border: 1px solid #ebe6dc;
  border-radius: min(26px, 5vh);
  padding: min(20px, 3.4vh) min(20px, 4.4vw) min(14px, 2.6vh);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(40, 30, 10, .05), 0 24px 48px -24px rgba(50, 35, 10, .26);
  display: flex;
  flex-direction: column;
  gap: min(12px, 2vh);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.place {
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -.01em;
}

.date, .brand {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.brand {
  font-family: "JetBrains Mono Variable", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .02em;
  margin-top: 3px;
}

.body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: min(18px, 4vw);
}

.thermo { height: clamp(140px, 44vh, 250px); aspect-ratio: 76 / 250; }
.thermo svg { width: 100%; height: 100%; display: block; overflow: visible; }

.ticks line { stroke: var(--tick); stroke-width: 1; stroke-linecap: round; }
.ticks text {
  font-family: "JetBrains Mono Variable", ui-monospace, monospace;
  font-size: 7.5px;
  fill: var(--muted);
  text-anchor: end;
}

.glass__tube, .glass__bulb { fill: #fbf9f5; stroke: var(--line); stroke-width: 1.2; }
.glass__mask { fill: #fbf9f5; }
.column, .bulbfill { fill: var(--accent); }
.shine { fill: #fff; opacity: .45; }
.shine--bulb { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: .7; }

.mark line { stroke: var(--ink); stroke-width: 1; stroke-linecap: round; opacity: .55; }
.mark text {
  font-family: "JetBrains Mono Variable", ui-monospace, monospace;
  font-size: 7.5px;
  fill: var(--muted);
}

.readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: min(6px, 1vh);
}

.big {
  font-size: clamp(56px, min(20vw, 17vh), 92px);
  font-weight: 560;
  font-variation-settings: "wdth" 88;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.big__digits { display: inline-flex; align-items: flex-start; }

.digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  position: relative;
}

.digit__roll { display: flex; flex-direction: column; }
.digit__roll span { display: block; height: 1em; line-height: 1; }

.deg {
  width: .19em;
  height: .19em;
  border: .042em solid var(--accent);
  border-radius: 50%;
  margin-left: .05em;
  margin-top: .06em;
  flex: none;
}

.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.feels {
  font-size: 12.5px;
  color: var(--muted);
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
}

.feels__val {
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.range {
  display: flex;
  gap: 14px;
  font-family: "JetBrains Mono Variable", ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
}

.range b { color: var(--ink); font-weight: 560; }

.sky { font-size: 12px; color: var(--muted); }

.hours {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: min(10px, 1.8vh);
}

.hours__pill {
  position: absolute;
  top: min(10px, 1.8vh);
  left: 0;
  height: calc(100% - min(10px, 1.8vh));
  border-radius: 12px;
  background: var(--pill);
  pointer-events: none;
}

.hour {
  position: relative;
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: min(7px, 1.2vh) 0;
  cursor: pointer;
  border-radius: 12px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.hour__t { font-family: "JetBrains Mono Variable", ui-monospace, monospace; font-size: 10.5px; }
.hour__v { font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hour.is-on .hour__t { color: var(--ink); }
.hour:focus-visible { box-shadow: 0 0 0 1.5px var(--accent) inset; }

@media (hover: hover) {
  .hour:hover .hour__t { color: var(--ink); }
}
