/* Reminiscences of a Spreadsheet Operator
   Palette: cool paper, true black, and ledger green (the color of gridlines and a spreadsheet's header bar). */
:root {
  --paper: #F4F5F2;
  --ink: #000000;
  --green: #1D6F42;
  --green-ink: #FFFFFF;
  --mute: #5F6561;
  --rule: #D3D8D2;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000000;
    --ink: #F4F5F2;
    --green: #2E8B57;
    --mute: #9BA19C;
    --rule: #2B2F2C;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -4rem; background: var(--ink); color: var(--paper); padding: .5rem .75rem; z-index: 50; }
.skip:focus { top: 1rem; }

/* Masthead */
.masthead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem var(--pad);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-weight: 800; font-stretch: 75%; font-size: 1.35rem; letter-spacing: -.01em; text-decoration: none;
}
.masthead ul { display: flex; gap: clamp(1rem, 3vw, 2rem); list-style: none; margin: 0; padding: 0; }
.masthead nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding-bottom: .15rem; border-bottom: 2px solid transparent; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { border-bottom-color: currentColor; }

/* Home: the masthead sits on top of the hero, like a film company's front page */
.home .masthead { position: absolute; inset: 0 0 auto 0; z-index: 2; border-bottom: 0; color: #fff; }

/* Hero: the one loud thing on the site */
.hero {
  position: relative; min-height: min(92vh, 60rem);
  display: flex; align-items: flex-end;
  background: var(--green); color: var(--green-ink);
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 60%); }
.hero-link { position: relative; z-index: 1; display: block; padding: 6rem var(--pad) clamp(2rem, 5vw, 4rem); text-decoration: none; max-width: 100%; }
.hero-kind { display: block; font-size: 1rem; font-weight: 500; margin-bottom: 1rem; }
.hero-title {
  margin: 0;
  font-weight: 850; font-stretch: 62%;
  font-size: clamp(3.75rem, 13vw, 13rem);
  line-height: .86; letter-spacing: -.015em;
  max-width: 14ch; text-wrap: balance;
}
.hero-dek { display: block; margin-top: 1.25rem; font-family: var(--text); font-size: clamp(1.1rem, 2vw, 1.45rem); max-width: 34rem; }
.hero-link:hover .hero-title { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .08em; }

/* Bands and the cell grid */
.band { padding: clamp(2.5rem, 6vw, 5rem) var(--pad); }
.band + .band { border-top: 1px solid var(--rule); }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.band-head h2 { margin: 0; font-weight: 800; font-stretch: 70%; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1; }
.band-head a { font-weight: 500; }

/* Each tile is a cell with gridlines, like a sheet */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.tile { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tile a { display: block; height: 100%; padding: clamp(.75rem, 1.5vw, 1.25rem); text-decoration: none; }
.tile-art { aspect-ratio: 4 / 5; overflow: hidden; background: var(--rule); margin-bottom: 1rem; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; }
.tile-art.is-type { background: var(--green); color: var(--green-ink); display: flex; padding: 1rem; }
.tile-art.is-type span { font-weight: 850; font-stretch: 62%; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: .9; text-wrap: balance; }
.tile-kind { margin: 0 0 .25rem; color: var(--mute); font-size: .9rem; }
.tile-title { margin: 0 0 .35rem; font-size: 1.3rem; font-weight: 700; font-stretch: 85%; line-height: 1.15; }
.tile a:hover .tile-title { text-decoration: underline; }
.tile-meta { margin: 0; color: var(--mute); font-size: .9rem; }
.rating { color: var(--green); letter-spacing: .05em; }

/* Home: places teaser */
.place-names { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.place-names li { border-bottom: 1px solid var(--rule); }
.place-names a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 0; text-decoration: none; }
.pn-name { font-weight: 750; font-stretch: 70%; font-size: clamp(1.5rem, 3.5vw, 2.5rem); line-height: 1.05; }
.pn-where { color: var(--mute); text-align: right; }
.place-names a:hover .pn-name { color: var(--green); }

/* Section pages */
.page-head { padding: clamp(2.5rem, 7vw, 5.5rem) var(--pad) 1.5rem; }
.page-head h1 { margin: 0; font-weight: 850; font-stretch: 62%; font-size: clamp(3rem, 10vw, 8rem); line-height: .88; letter-spacing: -.01em; }
.page-head p { font-family: var(--text); font-size: 1.2rem; max-width: 36rem; margin: 1rem 0 0; color: var(--mute); }

.index { list-style: none; margin: 0; padding: 0 var(--pad) 4rem; }
.index li { border-top: 1px solid var(--rule); }
.index li:last-child { border-bottom: 1px solid var(--rule); }
.index a { display: grid; grid-template-columns: 11rem 1fr; gap: .25rem 2rem; padding: 1.5rem 0; text-decoration: none; }
.index time { color: var(--mute); grid-row: span 2; padding-top: .45rem; }
.index-title { font-weight: 800; font-stretch: 70%; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1; }
.index-dek { font-family: var(--text); font-size: 1.15rem; color: var(--mute); }
.index a:hover .index-title { text-decoration: underline; text-decoration-thickness: 2px; }
.empty { padding: 1.5rem 0; color: var(--mute); }

/* Article */
.entry-head { padding: clamp(2.5rem, 7vw, 5.5rem) var(--pad) 2rem; border-bottom: 1px solid var(--rule); }
.entry-head.has-cover { position: relative; min-height: 70vh; display: flex; align-items: flex-end; color: #fff; border: 0; }
.entry-head.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 60%); }
.entry-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entry-head-inner { position: relative; z-index: 1; max-width: 72rem; }
.entry-kind { margin: 0 0 1rem; font-weight: 500; }
.entry-title { margin: 0; font-weight: 850; font-stretch: 62%; font-size: clamp(3rem, 9vw, 8rem); line-height: .88; letter-spacing: -.01em; max-width: 16ch; text-wrap: balance; }
.entry-dek { font-family: var(--text); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.35; max-width: 36rem; margin: 1.25rem 0 0; }
.entry-meta { margin: 1.25rem 0 0; color: var(--mute); }
.has-cover .entry-meta { color: rgba(255,255,255,.85); }

.facts { display: flex; flex-wrap: wrap; margin: 0; padding: 0 var(--pad); border-bottom: 1px solid var(--rule); }
.facts div { padding: 1rem 2rem 1rem 0; margin-right: 2rem; border-right: 1px solid var(--rule); }
.facts div:last-child { border-right: 0; }
.facts dt { color: var(--mute); font-size: .9rem; }
.facts dd { margin: .15rem 0 0; font-weight: 700; font-size: 1.15rem; }

.prose {
  font-family: var(--text); font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.62;
  max-width: 38rem; margin: 0 auto; padding: 3rem var(--pad) 5rem;
  box-sizing: content-box;
}
.prose p { margin: 0 0 1.3em; }
.prose h2, .prose h3 { font-family: var(--display); font-stretch: 75%; font-weight: 800; line-height: 1.05; margin: 2.2em 0 .6em; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.5rem; }
.prose a { text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: .15em; }
.prose blockquote { margin: 1.8em 0; padding-left: 1.25rem; border-left: 3px solid var(--green); font-style: italic; }
.prose img { margin: 2em 0; }
.prose code { font-size: .85em; background: var(--rule); padding: .1em .3em; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 3em 0; }

/* Places */
.filters { display: flex; gap: .5rem; padding: 0 var(--pad) 1.5rem; flex-wrap: wrap; }
.filters button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: .45rem 1rem;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.places { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border-top: 1px solid var(--rule); }
.map { height: min(78vh, 46rem); position: sticky; top: 0; border-right: 1px solid var(--rule); z-index: 0; }
.place-list { list-style: none; margin: 0; padding: 0; }
.place-list li { padding: 1.25rem var(--pad); border-bottom: 1px solid var(--rule); }
.place-list li.is-active { background: color-mix(in srgb, var(--green) 12%, var(--paper)); }
.place-btn { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.place-name { display: block; font-weight: 800; font-stretch: 72%; font-size: 1.75rem; line-height: 1.05; }
.place-btn:hover .place-name { color: var(--green); }
.place-where { display: block; color: var(--mute); margin-top: .2rem; }
.place-note { font-family: var(--text); font-size: 1.1rem; margin: .75rem 0 .5rem; max-width: 34rem; }
.place-addr { margin: 0; font-size: .95rem; color: var(--mute); }
.place-addr a { color: var(--ink); font-weight: 600; }
.leaflet-container { font-family: var(--display); background: var(--rule); }
/* Quiet the map colors so the markers stand out; darken it in dark mode */
.map-tiles { filter: grayscale(.85) contrast(.95); }
@media (prefers-color-scheme: dark) {
  .map-tiles { filter: grayscale(1) invert(1) brightness(.85) contrast(.9); }
}

/* Footer */
.footer { padding: 3rem var(--pad); border-top: 1px solid var(--rule); }
.footer-title { margin: 0; font-weight: 850; font-stretch: 62%; font-size: clamp(2rem, 6vw, 4.5rem); line-height: .9; max-width: 18ch; }
.footer-meta { margin: 1rem 0 0; color: var(--mute); }

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .places { grid-template-columns: 1fr; }
  .map { position: relative; height: 55vh; border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .index a { grid-template-columns: 1fr; }
  .index time { grid-row: auto; padding: 0; }
  .masthead { flex-direction: column; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
