:root {
  color-scheme: light;
  --ink: #102025;
  --muted: #5c6b70;
  --paper: #f6f8f5;
  --panel: #ffffff;
  --lake: #0b6d8c;
  --deep: #063c4f;
  --reed: #547a38;
  --sun: #f0b84f;
  --alert: #c84f36;
  --line: rgba(16, 32, 37, 0.12);
  --shadow: 0 18px 50px rgba(6, 60, 79, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(160deg, rgba(11, 109, 140, 0.16), transparent 36%),
    linear-gradient(20deg, rgba(84, 122, 56, 0.14), transparent 32%),
    var(--paper);
}

a {
  color: inherit;
}

.kiosk-shell {
  width: min(100vw, 1080px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px);
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  gap: clamp(20px, 2.4vw, 34px);
}

.site-header,
.site-footer,
.panel,
.notice-panel,
.event-card,
.extra-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 8px;
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: var(--lake);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.05;
}

h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.35;
}

.clock {
  min-width: 190px;
  text-align: right;
}

.clock span {
  display: block;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
}

.clock small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
}

.hero-band {
  --hero-image: url("assets/lake-pattern.svg");
  min-height: clamp(260px, 28vh, 390px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(32px, 5vw, 58px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 60, 79, 0.92), rgba(6, 60, 79, 0.58)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.hero-band .section-label,
.hero-band p {
  color: rgba(255, 255, 255, 0.86);
}

.hero-band h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(46px, 7vw, 86px);
}

.hero-content {
  min-width: 0;
}

.status-pill {
  flex: 0 0 auto;
  max-width: 300px;
  padding: 18px 22px;
  border-radius: 8px;
  background: var(--sun);
  color: #2b210c;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 900;
  text-align: center;
}

.top-grid,
.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.panel,
.notice-panel {
  min-height: 300px;
  padding: clamp(26px, 3.5vw, 42px);
  border-radius: 8px;
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.icon-badge {
  width: clamp(58px, 7vw, 82px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 900;
}

.temperature {
  display: block;
  color: var(--deep);
  font-size: clamp(44px, 5.8vw, 76px);
  font-weight: 950;
  line-height: 1;
}

.watch-content {
  display: grid;
  grid-template-columns: minmax(112px, 148px) 1fr;
  gap: 22px;
  align-items: center;
}

.leader-photo,
.event-image,
.extra-image,
.notice-image {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(6, 60, 79, 0.08);
}

.leader-photo {
  aspect-ratio: 3 / 4;
}

.leader-photo img,
.event-image img,
.extra-image img,
.notice-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.leader-name {
  display: block;
  color: var(--deep);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 900;
  line-height: 1.08;
}

.leader-meta,
.weather-updated {
  margin-top: 14px;
}

.weather-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.weather-main strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.1;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.event-list,
.extra-list {
  display: grid;
  gap: 16px;
}

.event-card {
  min-height: 122px;
  display: grid;
  grid-template-columns: minmax(130px, 170px) 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-radius: 8px;
}

.event-card.has-image {
  grid-template-columns: minmax(108px, 140px) minmax(130px, 170px) 1fr;
}

.event-image {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.event-date {
  min-height: 80px;
  display: grid;
  align-content: center;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.event-date strong {
  color: var(--lake);
  font-size: clamp(24px, 3vw, 34px);
}

.event-date span {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 800;
}

.notice-panel {
  min-height: 250px;
}

.notice-image {
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin-bottom: 20px;
}

.rules-panel {
  border-top: 8px solid var(--alert);
}

.app-panel {
  border-top: 8px solid var(--reed);
}

.notice-panel p {
  margin-top: 16px;
}

.notice-panel a {
  display: inline-flex;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 800;
  text-decoration: none;
}

.extra-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.extra-card {
  padding: 24px 28px;
  border-radius: 8px;
  border-left: 8px solid var(--lake);
}

.extra-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
}

.empty-state {
  padding: 24px 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-radius: 8px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .kiosk-shell {
    padding: 18px;
    gap: 18px;
  }

  .site-header,
  .hero-band,
  .top-grid,
  .notice-grid,
  .extra-list,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header,
  .hero-band,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .clock {
    min-width: 0;
    text-align: left;
  }

  .hero-band {
    min-height: 320px;
  }

  .status-pill {
    max-width: none;
  }

  .top-grid,
  .notice-grid {
    grid-template-columns: 1fr;
  }

  .weather-main {
    grid-template-columns: 1fr;
  }

  .watch-content {
    grid-template-columns: minmax(96px, 128px) 1fr;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card.has-image {
    grid-template-columns: 1fr;
  }

  .event-date {
    min-height: 0;
    padding-right: 0;
    padding-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
