@font-face {
  font-family: "Futura PT";
  src: url("../fonts/FuturaPT-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Futura PT";
  src: url("../fonts/FuturaPT-Demi.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17140d;
  --green: #6ec00f;
  --green-deep: #4b820d;
  --green-gradient: linear-gradient(224.39deg, #5aa30e 0.7%, #4b820d 83.48%);
  --grey-section: #f2f1ef;
  --border: #e5e4e2;
  --grey-text: #5d5a53;
  --yellow: #ffb82c;
  --turquoise: #17a483;
  --shadow-hard: 0.6rem 0.6rem 0 0 rgba(93, 90, 83, 0.25);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Futura PT", Futura, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.screen {
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: column;
}

/* ---------- header ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  flex: none;
  padding: 0 48px;
  background: var(--green-gradient);
  color: #fff;
}

.header__brand {
  display: flex;
  align-items: center;
}

.header__titles {
  margin-left: 36px;
}

.header__logo {
  height: 46px;
  width: auto;
}

.header__title {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
}

.header__site {
  font-size: 18px;
  opacity: 0.85;
  margin-top: 4px;
}

.header__clock {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header__time {
  font-size: 60px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.header__date {
  font-size: 18px;
  opacity: 0.85;
  margin-top: 6px;
  text-transform: capitalize;
}

/* ---------- main ---------- */

.main {
  display: flex;
  height: 770px;
  flex: none;
  min-height: 0;
}

.left {
  display: flex;
  flex-direction: column;
  width: 1220px;
  flex: none;
  padding: 36px 36px 36px 48px;
  min-height: 0;
}

/* ---------- live card ---------- */

.live {
  height: 698px;
  display: flex;
  padding: 40px;
  background: #fff;
  border: 2px solid var(--border);
}

.live__col {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 460px;
  flex: none;
  padding-top: 56px;
}

.hero__sticker {
  position: absolute;
  top: -18px;
  left: 0;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 500;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-hard);
  z-index: 1;
  white-space: nowrap;
}

.live__value {
  font-size: 148px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live__unit {
  font-size: 48px;
  font-weight: 400;
  color: var(--green-deep);
  margin-top: 8px;
}

.live__hr {
  height: 1px;
  background: var(--border);
  margin: 30px 0 26px;
}

.live__meta {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.live__row + .live__row {
  margin-top: 14px;
}

.live__row {
  display: flex;
  align-items: baseline;
}

.live__row dt {
  width: 190px;
  font-size: 26px;
  color: var(--grey-text);
}

.live__row dd {
  margin: 0 0 0 18px;
  font-size: 30px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live__bar-row {
  margin-top: auto;
}

.live__bar {
  height: 10px;
  background: #e5e4e2;
}

.live__bar-fill {
  height: 100%;
  background: var(--green-gradient);
}

.live__bar-fill--over {
  background: var(--yellow);
}

.live__bar-label {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.live__bar-label--over {
  color: #b37900;
}

.live__chart {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 552px;
  flex: none;
  margin-left: 40px;
}

.live__tag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--yellow);
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-hard);
  z-index: 1;
}

.live__svg {
  width: 552px;
  height: 588px;
  flex: none;
}

.live__peak {
  position: absolute;
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  z-index: 1;
}

.curve__axis {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  color: var(--grey-text);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* ---------- weather ---------- */

.wx {
  background: var(--grey-section);
  border-left: 1px solid var(--border);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  width: 700px;
  flex: none;
}

.wx__heading {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 10px;
}

.wx__place {
  font-weight: 400;
  font-size: 24px;
  color: var(--grey-text);
}

.wx__card {
  height: 256px;
  background: #fff;
  border: 2px solid var(--border);
  padding: 18px 28px;
}

.wx__now {
  display: flex;
  align-items: center;
  height: 80px;
}

.wx__icon {
  display: block;
  width: 38px;
  height: 38px;
  flex: none;
}

.wx__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wx__icon--lg {
  width: 76px;
  height: 76px;
}

.wx__temp {
  font-size: 80px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-left: 22px;
}

.wx__text {
  font-size: 26px;
  margin: 4px 0 8px;
}

.wx__meta {
  display: flex;
  margin: auto 0 0;
  padding-top: 14px;
}

.wx__cell {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border-left: 1px solid var(--border);
}

.wx__cell:first-child {
  padding-left: 0;
  border-left: none;
}

.wx__cell dt {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-text);
}

.wx__cell dd {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.wx__wind-arrow {
  display: inline-block;
  transition: transform 0.6s ease;
}

.wx__hours {
  margin-top: 12px;
  height: 148px;
  background: #fff;
  border: 2px solid var(--border);
  display: flex;
  padding: 12px 16px;
}

.wx__hour {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.wx__hour + .wx__hour {
  margin-left: 6px;
}

.wx__hour > * + * {
  margin-top: 4px;
}

.wx__hour-time {
  font-size: 17px;
  color: var(--grey-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wx__hour-temp {
  font-size: 25px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.wx__hour-pop {
  font-size: 15px;
  color: #0ea8ff;
  font-variant-numeric: tabular-nums;
}

.wx__days {
  margin-top: 12px;
  background: #fff;
  border: 2px solid var(--border);
}

.wx__day {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
}

.wx__day > .wx__icon,
.wx__day-temps {
  margin-left: 18px;
}

.wx__day:last-child {
  border-bottom: none;
}

.wx__day-name {
  width: 150px;
  font-size: 24px;
  font-weight: 500;
}

.wx__day-temps {
  display: flex;
  align-items: baseline;
}

.wx__day-max {
  margin-left: 10px;
}

.wx__day-min {
  font-size: 22px;
  color: var(--grey-text);
  font-variant-numeric: tabular-nums;
}

.wx__day-max {
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.wx__day-pop {
  margin-left: auto;
  font-size: 20px;
  color: #0ea8ff;
  font-variant-numeric: tabular-nums;
}

/* ---------- KPI footer ---------- */

.kpis {
  display: flex;
  height: 190px;
  flex: none;
  border-top: 1px solid var(--border);
  background: #fff;
}

.kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 36px;
  border-right: 1px solid var(--border);
}

.kpis > .kpi:nth-child(5) {
  flex-grow: 1.2;
}

.kpis > .kpi:nth-child(7) {
  flex-grow: 0.9;
}

.kpi:last-child { border-right: none; }

.kpi__label {
  font-size: 19px;
  color: var(--grey-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.kpi__value {
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.kpi__unit {
  font-size: 20px;
  font-weight: 400;
  color: var(--grey-text);
  margin-left: 10px;
}

.kpi--accent-turquoise {
  background: var(--turquoise);
  color: #fff;
}

.kpi--accent-turquoise .kpi__label,
.kpi--accent-turquoise .kpi__unit { color: rgba(255, 255, 255, 0.85); }

.kpi--accent-green {
  background: var(--green-deep);
  color: #fff;
}

.kpi--accent-green .kpi__label,
.kpi--accent-green .kpi__unit { color: rgba(255, 255, 255, 0.85); }

.kpi__value--small {
  font-size: 34px;
}

.kpi--status .kpi__value {
  color: var(--grey-text);
  font-weight: 400;
}

.kpi__value--stale {
  color: #db2800;
}

html.night .screen {
  filter: brightness(0.6);
}
