:root {
  --pine: #16302a;
  --pine-2: #1f3d36;
  --pine-3: #2b4f46;
  --snow: #eef1ec;
  --paper: #fbfcfa;
  --ink: #24302d;
  --ink-2: #56645f;
  --lichen: #b8c4a0;
  --falu: #a3352a;
  --falu-2: #c2493b;
  --amber: #e9c46a;
  --rule: #d3dacf;
  --font: Candara, "Gill Sans", "Gill Sans MT", "Trebuchet MS", "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font: 17px/1.6 var(--font);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--falu);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--falu-2);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

h1,
h2 {
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.45em;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

p {
  margin: 0 0 1em;
}

.hoppa {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 8px 14px;
  background: var(--amber);
  color: var(--pine);
  z-index: 5;
}

.hoppa:focus {
  top: 12px;
}

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 28px;
  padding: 16px var(--gutter);
  background: var(--pine);
  color: var(--snow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--snow);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
}

.brand:hover {
  color: #fff;
}

.clock {
  margin: 0;
  color: var(--lichen);
  font-size: 0.95rem;
}

.clock time {
  color: var(--snow);
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

.mainnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.mainnav a {
  color: var(--snow);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.mainnav a:hover {
  border-bottom-color: var(--lichen);
}

.mainnav a[aria-current="page"] {
  border-bottom-color: var(--falu-2);
}

.wall {
  background: var(--pine);
  color: var(--snow);
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(40px, 6vw, 72px);
}

.wall-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 8px 48px;
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.wall-head h1 {
  max-width: 14ch;
  margin: 0;
}

.wall-head p {
  color: #cfd8cc;
  max-width: 46ch;
  margin: 0;
}

.sunline {
  grid-column: 2;
  font-size: 0.95rem;
}

.sunline time {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.tile-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.tile a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--snow);
  text-decoration: none;
  background: var(--pine-2);
  border-radius: 4px;
  overflow: hidden;
}

.tile-media {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #0d1b18;
}

.tile-media video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tile-feature .tile-media video {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.tile-feature .tile-media {
  min-height: 260px;
}

.onair {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px 2px 8px;
  background: var(--falu);
  color: #fff;
  font-size: 0.78rem;
  border-radius: 2px;
}

.onair::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.tile-text {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 12px;
  padding: 12px 14px 14px;
}

.tile-name {
  font-weight: 700;
  font-size: 1.12rem;
}

.tile-feature .tile-name {
  font-size: 1.5rem;
}

.tile-spot {
  grid-row: 2;
  color: var(--lichen);
  font-size: 0.92rem;
}

.tile-temp {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--amber);
  font-size: 0.92rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tile a:hover .tile-name {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.day {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}

.day-copy p {
  max-width: 48ch;
  color: var(--ink-2);
}

.day-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--pine);
  border-radius: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--falu);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.pill:hover {
  background: var(--falu-2);
  color: #fff;
}

.pill-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.pill-quiet:hover {
  background: var(--ink);
  color: var(--snow);
}

.strip {
  padding: 0 var(--gutter) clamp(48px, 7vw, 88px);
}

.strip ul,
.more ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.strip a,
.more a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.strip img,
.more img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
}

.strip span,
.more span {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
}

.strip a:hover span,
.more a:hover span {
  color: var(--falu);
}

.player {
  background: var(--pine);
  padding: clamp(12px, 2.5vw, 32px) var(--gutter) 0;
}

.player-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1513;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}

.screen:fullscreen {
  aspect-ratio: auto;
  border-radius: 0;
}

.feed {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 20px;
}

.modes {
  display: inline-flex;
  border: 1px solid var(--lichen);
  border-radius: 999px;
  overflow: hidden;
}

.modes button,
.ghost {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--snow);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.modes button[aria-pressed="true"] {
  background: var(--lichen);
  color: var(--pine);
  font-weight: 700;
}

.controls-right {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ghost {
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--pine-3);
}

.ghost:hover {
  box-shadow: inset 0 0 0 1px var(--lichen);
}

.ghost[aria-pressed="false"][data-toggle="overlay"] {
  color: var(--lichen);
  text-decoration: line-through;
}

.cam-info {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter);
  box-sizing: content-box;
}

.cam-region {
  color: var(--falu);
  font-weight: 700;
  margin-bottom: 4px;
}

.cam-spot {
  font-size: 1.2rem;
  color: var(--ink-2);
}

.cam-about > p:not(.cam-region):not(.cam-spot) {
  max-width: 60ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.facts dt,
.readings dt {
  color: var(--ink-2);
  font-size: 0.88rem;
}

.facts dd,
.readings dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.now {
  align-self: start;
  background: var(--paper);
  border-top: 4px solid var(--falu);
  padding: 22px 24px 18px;
}

.now h2 {
  font-size: 1.35rem;
}

.readings {
  margin: 0;
}

.readings div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}

.readings dd {
  text-align: right;
}

.note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.yesterday,
.more {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 5vw, 64px);
  box-sizing: content-box;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stills li,
.arch-row li {
  position: relative;
}

.stills img,
.arch-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
}

.stills span,
.arch-row span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 1px 7px;
  background: rgba(22, 48, 42, 0.8);
  color: var(--snow);
  font-size: 0.82rem;
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}

.more ul {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.page-intro {
  padding: clamp(36px, 6vw, 72px) var(--gutter) 24px;
  max-width: 1240px;
  margin: 0 auto;
  box-sizing: content-box;
}

.page-intro p {
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 1.12rem;
}

.arch {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
  box-sizing: content-box;
}

.days {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.days button {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.days button[aria-selected="true"] {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--snow);
  font-weight: 700;
}

.arch-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.arch-row h2 {
  font-size: 1.2rem;
  margin: 4px 0 0;
}

.arch-row h2 a {
  color: var(--ink);
  text-decoration: none;
}

.arch-row h2 a:hover {
  color: var(--falu);
}

.arch-row ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
  box-sizing: content-box;
  align-items: start;
}

.map {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.map .sea {
  fill: #c9d9da;
}

.map .land {
  fill: #dfe5d3;
}

.map .fell {
  fill: #c7cdb8;
}

.map .lake {
  fill: #a9c4c8;
}

.map .river {
  fill: none;
  stroke: #a9c4c8;
  stroke-width: 6;
  stroke-linecap: round;
}

.map .bog {
  fill: #cfcf9f;
}

.map .isles circle {
  fill: #d6d9c8;
}

.map .towns rect {
  fill: #9fa79a;
}

.map .pin circle {
  fill: var(--falu);
  stroke: #fff;
  stroke-width: 3;
}

.map .pin text {
  fill: var(--ink);
  font: 700 20px var(--font);
  paint-order: stroke;
  stroke: #eef1e6;
  stroke-width: 5px;
}

.map .pin:hover circle,
.map .pin:focus circle {
  fill: var(--pine);
}

.map .compass circle {
  fill: rgba(251, 252, 250, 0.8);
}

.map .compass path {
  fill: var(--pine);
}

.map .compass text {
  fill: var(--pine);
  font: 700 16px var(--font);
  text-anchor: middle;
}

.map-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.map-list a {
  display: grid;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.map-list b {
  font-size: 1.15rem;
}

.map-list span {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.map-list a:hover b {
  color: var(--falu);
}

.prose {
  max-width: 720px;
  margin: 0 auto 0 0;
  padding: 0 var(--gutter) 72px;
}

.prose p {
  max-width: 64ch;
}

.prose h2 {
  margin-top: 1.4em;
}

.prose details {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}

.prose summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 700;
}

.prose details p {
  color: var(--ink-2);
}

.lost {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) var(--gutter);
  text-align: center;
}

.lost img {
  margin: 0 auto 28px;
}

.lost p {
  color: var(--ink-2);
}

.lost-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 32px;
  align-items: baseline;
  padding: 28px var(--gutter);
  background: var(--pine);
  color: #cfd8cc;
  font-size: 0.95rem;
}

.foot p {
  margin: 0;
  max-width: 60ch;
}

.foot-brand {
  color: var(--snow);
  font-weight: 700;
  font-size: 1.15rem;
}

.foot nav {
  display: flex;
  gap: 18px;
}

.foot a {
  color: var(--snow);
}

@media (max-width: 1000px) {
  .masthead {
    grid-template-columns: 1fr auto;
  }

  .mainnav {
    grid-column: 1 / -1;
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strip ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .more ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .day,
  .cam-info,
  .map-wrap {
    grid-template-columns: 1fr;
  }

  .foot {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wall-head {
    grid-template-columns: 1fr;
  }

  .sunline {
    grid-column: auto;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  .tile-feature {
    grid-column: auto;
    grid-row: auto;
  }

  .tile-feature .tile-media {
    min-height: 0;
  }

  .tile-feature .tile-media video {
    position: static;
    aspect-ratio: 16 / 9;
  }

  .strip ul,
  .more ul,
  .stills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arch-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .arch-row ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .controls,
  .controls-right {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
