@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --red: #ff2a12;
  --ink: #062a17;
  --lilac: #d9c6ec;
  --sky: #a8cbe0;
  --peach: #ffbf94;
  --paper: #f6f1e7;
  --lime: #c8f03c;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --row: clamp(64px, 11vw, 132px);
  --bar-h: 92px;
  --gutter: clamp(10px, 1.4vw, 18px);
  --checker: conic-gradient(var(--ink) 25%, var(--paper) 0 50%, var(--ink) 0 75%, var(--paper) 0) 0 0 / 14px 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.3;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.85fr 120px;
  min-height: min(56vh, 470px);
  background: var(--red);
  overflow: hidden;
}
.hero__mark { display: grid; grid-template-rows: 1fr auto; }
.wordmark {
  margin: 0;
  padding: var(--gutter) var(--gutter) 0;
  align-self: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 640;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(80px, 12vw, 190px);
  line-height: 0.74;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.wordmark span { display: block; }
.wordmark span:last-child { padding-left: 0.42em; }
.hero__tagline {
  margin: 0;
  padding: 0.18em var(--gutter) 0.24em;
  background: var(--ink);
  color: var(--lilac);
  font-size: clamp(24px, 3.2vw, 50px);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  text-align: center;
}
.hero__opart { position: relative; background: var(--ink); }
#opart { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__rain {
  position: relative;
  background: linear-gradient(var(--paper), var(--sky));
  overflow: hidden;
  border-left: 2px solid var(--ink);
}
.drop { position: absolute; left: 50%; top: 0; width: 64px; margin-left: -32px; animation: fall var(--cycle) linear var(--delay) infinite; }
.drop svg { width: 100%; height: auto; display: block; }
@keyframes fall {
  from { transform: translate(var(--x), -90px) rotate(0deg); }
  to { transform: translate(calc(var(--x) * -1), var(--fall, 560px)) rotate(var(--spin)); }
}
@keyframes spin { to { rotate: 360deg; } }

/* ---------- bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  padding: 16px var(--gutter);
  background: var(--lilac);
  border-bottom: 2px solid var(--ink);
}
.bar__logo { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-right: 2px solid var(--ink); padding-right: 12px; box-sizing: content-box; }
.bar__logo svg { width: 52px; height: 52px; animation: spin 14s linear infinite; }
.bar__place { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bar__month { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.04em; }
#month-label { min-width: 7.5ch; text-align: center; }
.bar__views { display: flex; gap: 6px; align-items: center; }
.bar__checker { flex: 1 1 0; min-width: 0; height: 56px; background: var(--checker); animation: slide 6s linear infinite; }
@keyframes slide { to { background-position: 140px 0; } }

.btn {
  border: 2px solid var(--ink);
  background: transparent;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--ink); color: var(--lilac); }
.btn:active { transform: scale(0.96); }
.btn--loc { background: var(--red); color: var(--ink); }
.btn--icon { padding: 8px 14px; }
.btn--tab[aria-selected="true"] { background: var(--ink); color: var(--lime); }

.notice {
  flex-basis: 100%;
  margin: 0;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--lime);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  animation: pop 0.35s cubic-bezier(.2,1.5,.4,1) both;
}
body.needs-place #locate, body.needs-place #search { animation: nudge 0.5s ease-in-out 3; outline: 3px solid var(--ink); outline-offset: 2px; }
@keyframes nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.search { position: relative; }
#search {
  width: min(340px, 70vw);
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  padding: 11px 18px;
  font-size: 17px;
  font-weight: 600;
}
#search:focus, .btn:focus-visible, select:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.search__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 320px);
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 30;
}
.search__list li { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid rgba(6, 42, 23, 0.15); }
.search__list li small { opacity: 0.6; margin-left: 6px; }
.search__list li[aria-selected="true"], .search__list li:hover { background: var(--ink); color: var(--lilac); }

/* ---------- shared bands ---------- */
.label-bar {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 7px var(--gutter);
  background: var(--ink);
  color: var(--sky);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(168, 203, 224, 0.45);
}
.label-bar > span:nth-child(2) { border-left: 1.5px solid currentColor; padding-left: 12px; }
.label-bar--red { background: var(--red); color: var(--ink); border-color: rgba(6, 42, 23, 0.4); }
.label-bar--lilac { background: var(--lilac); color: var(--ink); border-color: rgba(6, 42, 23, 0.4); }
.label-bar--peach { background: var(--peach); color: var(--ink); border-color: rgba(6, 42, 23, 0.4); }
.label-bar .tag { background: var(--lime); color: var(--ink); padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.label-bar--ink .tag, .label-bar .tag--soft { background: var(--sky); }

.marquee { overflow: hidden; white-space: nowrap; height: var(--row); display: flex; align-items: center; }
.marquee--ink { background: var(--ink); color: var(--sky); }
.marquee--red { background: var(--red); color: var(--ink); }
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-size: calc(var(--row) * 0.98);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 1;
  text-transform: uppercase;
  will-change: transform;
  animation: marquee var(--speed, 38s) linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__unit { display: inline-flex; align-items: center; gap: 0.25em; padding-right: 0.25em; }
.pill {
  display: inline-grid;
  place-items: center;
  height: calc(var(--row) * 0.8);
  aspect-ratio: 1.7;
  border-radius: calc(var(--row) * 0.2);
  background: var(--peach);
  border: 2px solid var(--ink);
}
.pill .glyph { height: 76%; width: auto; }

/* ---------- now view ---------- */
#main { scroll-margin-top: var(--bar-h); }
.place-head { background: var(--paper); padding: var(--gutter); display: grid; grid-template-columns: 1fr minmax(260px, 440px); gap: var(--gutter); align-items: end; border-bottom: 2px solid var(--ink); }
.place-head h2 { margin: 0; font-size: clamp(42px, 8vw, 128px); font-weight: 500; letter-spacing: -0.07em; line-height: 0.86; }
.place-head h2 em { font-family: var(--serif); font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--red); letter-spacing: -0.04em; }
.place-head p { margin: 10px 0 0; font-weight: 600; max-width: 60ch; }
.climate { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 3px; height: 150px; }
.climate__bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.climate__fill { border: 2px solid var(--ink); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow 0.7s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(var(--i) * 40ms); }
.climate__bar span { font-size: 10px; font-weight: 800; text-align: center; margin-top: 5px; padding: 2px 0; }
.climate__bar b { font-size: 10px; text-align: center; font-weight: 700; }
.climate__bar.is-now span { background: var(--ink); color: var(--lime); border-radius: 3px; }
@keyframes grow { from { transform: scaleY(0); } }
.climate-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; font-weight: 700; }
.climate-note > span { opacity: 0.7; }
.unit-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}
.unit-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.28s cubic-bezier(.3,1.5,.5,1);
}
.unit-toggle[data-active="F"]::before { transform: translateX(100%); }
.unit-toggle button {
  position: relative;
  z-index: 1;
  min-width: 48px;
  padding: 6px 10px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s;
}
.unit-toggle button[aria-pressed="true"] { color: var(--lime); }
.unit-toggle button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 999px; }

.row { --speed: 30s; }
.row .marquee--even { background: var(--red); color: var(--ink); }
.row .marquee--odd { background: var(--ink); color: var(--sky); }
.row .label-bar { grid-template-columns: 120px 1fr auto; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px var(--gutter) 10px;
  background: var(--paper);
  border-top: 2px solid var(--ink);
}
.section-head h3 { margin: 0; font-size: clamp(30px, 5vw, 72px); font-weight: 500; letter-spacing: -0.07em; line-height: 0.9; text-transform: uppercase; }
.section-head p { margin: 0; font-weight: 600; max-width: 46ch; text-align: right; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0;
  background: var(--lilac);
  border-top: 2px solid var(--ink);
}
.tile {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-height: 190px;
  padding: 14px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--lilac);
  animation: pop 0.5s cubic-bezier(.2,1.5,.4,1) both;
  animation-delay: calc(var(--i) * 35ms);
}
.tile:nth-child(3n + 2) { background: var(--sky); }
.tile:nth-child(5n + 3) { background: var(--peach); }
.tile .glyph { width: 74px; height: 74px; justify-self: start; transition: transform 0.3s; }
.tile:hover .glyph { transform: rotate(-14deg) scale(1.12); }
.tile h4 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
.tile p { margin: 4px 0 0; font-size: 12px; font-weight: 600; }
.tile--stored::after { content: ""; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; background: var(--checker); background-size: 8px 8px; border-radius: 50%; border: 2px solid var(--ink); }
@keyframes pop { from { transform: scale(0.6) rotate(-6deg); opacity: 0; } }

.specials { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); background: var(--peach); border-top: 2px solid var(--ink); }
.special { padding: 16px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); display: grid; gap: 8px; align-content: start; animation: pop 0.5s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(var(--i) * 45ms); }
.special:nth-child(4n + 2) { background: var(--red); }
.special:nth-child(4n + 3) { background: var(--lime); }
.special h4 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 600; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 34px; letter-spacing: -0.03em; line-height: 0.95; }
.special .meta { font-size: 11px; font-weight: 800; text-transform: uppercase; display: flex; gap: 8px; flex-wrap: wrap; }
.special .meta span { border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 8px; }
.special p { margin: 0; font-weight: 500; }
.special a { font-size: 11px; font-weight: 700; opacity: 0.7; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px var(--gutter) 22px; background: var(--paper); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; background: var(--paper); }
.chip .glyph { width: 28px; height: 28px; }
.chip--next { background: var(--lime); }
.chip--leaving { background: var(--sky); }
.empty { padding: 18px var(--gutter); background: var(--paper); font-weight: 600; }

/* ---------- year view ---------- */
.year { background: var(--paper); padding: 0 0 30px; }
.year__legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px var(--gutter); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.year__legend span { display: inline-flex; gap: 6px; align-items: center; }
.swatch { width: 22px; height: 14px; border: 2px solid var(--ink); display: inline-block; }
.swatch--fresh { background: var(--red); }
.swatch--stored { background: var(--checker); background-size: 6px 6px; }
.swatch--now { border-color: var(--red); outline: 2px solid var(--red); background: transparent; }
.grid { display: grid; grid-template-columns: minmax(150px, 230px) repeat(12, minmax(0, 1fr)); padding: 0 var(--gutter); }
.grid__month {
  position: sticky;
  top: var(--bar-h);
  z-index: 5;
  padding: 8px 0;
  background: var(--ink);
  color: var(--sky);
  text-align: center;
  font-size: clamp(12px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
}
.grid__month:hover { color: var(--lime); }
.grid__month .letter { display: none; }
.grid__month.is-now { background: var(--red); color: var(--ink); }
.grid__corner { position: sticky; top: var(--bar-h); z-index: 5; background: var(--ink); }
.grid__cat {
  grid-column: 1 / -1;
  padding: 16px 0 6px;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
}
.grid__name { display: flex; align-items: center; gap: 8px; padding: 3px 6px 3px 0; font-weight: 700; font-size: 13px; border-bottom: 1px solid rgba(6, 42, 23, 0.18); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid__name .glyph { width: 24px; height: 24px; flex: none; }
.cell { border-bottom: 1px solid rgba(6, 42, 23, 0.18); border-left: 1px solid rgba(6, 42, 23, 0.12); padding: 4px 2px; }
.cell.is-now { background: rgba(255, 42, 18, 0.12); }
.cell i { display: block; height: 100%; min-height: 20px; border-radius: 3px; transform-origin: left; animation: sweep 0.45s ease-out both; animation-delay: calc(var(--m) * 30ms + var(--r) * 6ms); }
.cell--fresh i { background: var(--c); border: 2px solid var(--ink); }
.cell--stored i { background: conic-gradient(var(--c) 25%, transparent 0 50%, var(--c) 0 75%, transparent 0) 0 0 / 8px 8px; border: 2px dashed var(--ink); }
.cell--fresh.join-left i { border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -3px; }
@keyframes sweep { from { transform: scaleX(0); } }
.grid__row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.grid__row:hover { background: var(--lime); }

/* ---------- footer ---------- */
.foot { background: var(--sky); color: var(--ink); border-top: 12px solid transparent; border-image: var(--checker) 12; }
.foot__big { margin: 0; padding: 10px var(--gutter) 4px; font-size: clamp(44px, 9vw, 140px); letter-spacing: -0.075em; line-height: 0.9; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.foot__small { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gutter); padding: 12px var(--gutter) 22px; font-size: 12px; font-weight: 600; }
.foot__small p { margin: 0; }

.print-sheet { display: none; }

body[data-view="now"] .btn--tab[data-view="now"],
body[data-view="year"] .btn--tab[data-view="year"] { background: var(--ink); color: var(--lime); }
body.has-place .intro { display: none; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr 70px; grid-template-rows: auto 150px; min-height: 0; }
  .wordmark { padding-top: 28px; padding-bottom: 18px; font-size: clamp(72px, 22vw, 120px); }
  .drop { width: 44px; margin-left: -22px; --fall: 260px; }
  #main { scroll-margin-top: 0; }
  .hero__mark { grid-column: 1 / -1; }
  .hero__opart { grid-column: 1; }
  .hero__rain { grid-column: 2; }
  .place-head { grid-template-columns: 1fr; }
  .label-bar, .row .label-bar { grid-template-columns: 1fr auto; gap: 8px; }
  .row .label-bar > span:first-child { display: none; }
  .row .label-bar > span:nth-child(2) { border-left: 0; padding-left: 0; }
  .intro .label-bar { grid-template-columns: 1fr; }
  .intro .label-bar > span:first-child { display: none; }
  .intro .label-bar > span:nth-child(2) { border-left: 0; padding-left: 0; }
  .grid__month .long { display: none; }
  .grid__month .letter { display: inline; }
  .bar__logo { display: none; }
  .bar { gap: 10px; padding: 14px var(--gutter); }
  .bar__place { width: 100%; }
  .bar__place .search, #search { flex: 1; width: 100%; }
  .btn { padding: 10px 15px; }
  .grid { grid-template-columns: 110px repeat(12, minmax(0, 1fr)); padding: 0 6px; }
  .grid__name { font-size: 11px; }
  .grid__name .glyph { display: none; }
  .grid__month { top: 0; position: static; }
  .grid__corner { position: static; }
  .bar { position: static; }
  .bar__checker { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff; font-size: 7.5pt; }
  .hero, .bar, main, .foot { display: none !important; }
  .print-sheet { display: block !important; }
  * { animation: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.ps { color: var(--ink); font-family: var(--sans); }
.ps__head { display: flex; justify-content: space-between; align-items: end; border-bottom: 2.5pt solid var(--ink); padding-bottom: 2mm; margin-bottom: 2.5mm; }
.ps__title { margin: 0; font-size: 24pt; font-weight: 500; letter-spacing: -0.07em; line-height: 0.85; }
.ps__title em { font-family: var(--serif); font-style: italic; color: var(--red); font-weight: 600; letter-spacing: -0.03em; }
.ps__meta { text-align: right; font-weight: 600; font-size: 7pt; }
.ps__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
.ps__table { width: 100%; border-collapse: collapse; table-layout: fixed; line-height: 1.05; }
.ps__table th { font-size: 6.5pt; font-weight: 800; background: var(--ink); color: #fff; padding: 0.8mm 0; }
.ps__table th.is-now { background: var(--red); color: var(--ink); }
.ps__table th:first-child { width: 30%; text-align: left; padding-left: 1mm; }
.ps__table td { border-bottom: 0.4pt solid #bbb; padding: 0.3mm 0.2mm; height: 3.4mm; }
.ps__table td:first-child { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 6.8pt; }
.ps__table td i { display: block; height: 2.6mm; border-radius: 0.6mm; }
.ps__table td.f i { background: var(--c); border: 0.6pt solid var(--ink); }
.ps__table td.s i { background: repeating-linear-gradient(45deg, var(--c) 0 0.6mm, #fff 0.6mm 1.2mm); border: 0.6pt dashed var(--ink); }
.ps__table tr.cat td { font-size: 8pt; font-weight: 800; text-transform: uppercase; border-bottom: 1pt solid var(--ink); padding-top: 1.5mm; }
.ps__foot { margin-top: 2.5mm; display: flex; justify-content: space-between; gap: 6mm; font-size: 6.5pt; border-top: 1pt solid var(--ink); padding-top: 1.5mm; }
.ps__specials { margin-top: 2mm; font-size: 6.5pt; display: flex; flex-wrap: wrap; gap: 0.6mm 4mm; }
.ps__specials b { text-transform: uppercase; font-weight: 800; }
.ps__specials p { margin: 0; }
@page { size: A4 landscape; margin: 7mm; }
