/* People's Front of H Street
   Palette and type pulled from the grabber poster. */

:root {
  --red: #e14a24;
  --red-deep: #c23c1c;
  --cream: #f2e19c;
  --paper: #fbf5dd;
  --navy: #0b2e48;
  --steel: #7896a7;
  --ink: #1a2530;
  --muted: #56646f;

  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;

  --measure: 68ch;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
html:has(.recs-tools) { scroll-padding-top: 9.5rem; }
@media (max-width: 640px) { html:has(.recs-tools) { scroll-padding-top: 11rem; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--cream); color: var(--navy); padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

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

.site-header {
  background: var(--navy);
  color: var(--cream);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  color: var(--cream); text-decoration: none;
  font: 400 1.35rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase;
}
.brand img { width: 34px; height: 34px; border-radius: 50%; background: var(--red); }
.brand:hover { color: #fff; }

.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a {
  color: var(--cream); text-decoration: none;
  padding: .45rem .75rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
}
.nav a:hover { background: rgba(242, 225, 156, .12); color: #fff; }
.nav a[aria-current="page"] { background: var(--cream); color: var(--navy); }

@media (max-width: 640px) {
  .site-header { position: static; }
  .site-header .wrap { padding-block: .6rem; gap: .4rem; }
  .brand { font-size: 1.15rem; }
  .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; margin-inline: -.5rem; }
  .nav a { white-space: nowrap; font-size: .95rem; }
}

/* ---------- sunburst ---------- */

.sunburst {
  background-color: var(--red);
  background-image: repeating-conic-gradient(from 0deg at 50% 55%,
    var(--red) 0deg 6deg, var(--red-deep) 6deg 12deg);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

/* ---------- home ---------- */

.home-hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); text-align: center; }

.poster {
  width: min(78vw, 420px);
  margin: 0 auto;
  border: 6px solid var(--navy);
  box-shadow: 14px 16px 0 rgba(11, 46, 72, .55);
  transform: rotate(-2deg);
}
@media (prefers-reduced-motion: no-preference) {
  .poster { animation: paste .7s cubic-bezier(.2, .9, .3, 1.2) both; }
  @keyframes paste {
    from { transform: rotate(-9deg) scale(.86); opacity: 0; }
    to   { transform: rotate(-2deg) scale(1); opacity: 1; }
  }
}

.slogan {
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  font: 400 clamp(2rem, 6.2vw, 4rem)/1.05 var(--display);
  text-transform: uppercase; letter-spacing: .01em;
  max-width: 16ch;
  text-shadow: 3px 3px 0 var(--navy);
}
.slogan del {
  text-decoration: none; position: relative; color: var(--steel);
  text-shadow: none;
}
.slogan del::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%;
  height: .12em; background: var(--navy); transform: rotate(-4deg);
}
.slogan ins { text-decoration: none; }

.orders { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.orders-grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 4px solid var(--navy);
}
.order {
  display: block; text-decoration: none; color: var(--ink);
  padding: 1.5rem 1.25rem 1.75rem;
  border-bottom: 4px solid var(--navy);
}
@media (min-width: 560px) {
  .order + .order { border-left: 2px solid rgba(11,46,72,.2); }
}
.order h2 {
  margin: 0 0 .4rem; color: var(--red);
  font: 400 2rem/1 var(--display); text-transform: uppercase;
}
.order p { margin: 0; color: var(--muted); max-width: 32ch; }
.order:hover h2 { color: var(--navy); }
.order:hover { background: var(--cream); }

.sunday {
  background: var(--navy); color: var(--cream);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.sunday .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .sunday .wrap { grid-template-columns: 1.1fr 1fr; } }
.sunday h2 { font: 400 clamp(2.2rem, 5vw, 3.4rem)/1 var(--display); text-transform: uppercase; margin: 0 0 1rem; }
.sunday p { max-width: 44ch; margin: 0 0 1.25rem; }
.schedule { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.schedule li { display: flex; gap: 1rem; padding: .6rem 0; border-top: 1px solid rgba(242,225,156,.25); }
.schedule li:last-child { border-bottom: 1px solid rgba(242,225,156,.25); }
.schedule b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; min-width: 7.5rem; color: #fff; letter-spacing: .02em; }
.sunday img { border: 5px solid var(--cream); transform: rotate(1.5deg); }

/* ---------- inner pages ---------- */

.page-hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 {
  margin: 0;
  font: 400 clamp(2.5rem, 11vw, 7.5rem)/.9 var(--display);
  overflow-wrap: anywhere;
  text-transform: uppercase; letter-spacing: .005em;
  text-shadow: 5px 5px 0 var(--navy);
}
.page-hero p { margin: 1rem 0 0; max-width: 52ch; font-size: 1.15rem; color: #fff; font-weight: 500; text-shadow: 0 1px 2px rgba(11,46,72,.7); }

.prose { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem); }
.prose > .wrap > * { max-width: var(--measure); }
.prose h2 {
  font: 400 clamp(1.9rem, 4.5vw, 2.6rem)/1.05 var(--display); text-transform: uppercase;
  color: var(--red); margin: 2.75rem 0 .75rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; line-height: 1.3; margin: 1.75rem 0 .35rem; color: var(--navy); }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose li { margin-bottom: .5rem; }
.prose figure { margin: 1.5rem 0 2rem; }
.prose figure img { border: 4px solid var(--navy); }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

.rule-list { list-style: none; padding: 0; counter-reset: rule; }
.rule-list > li { counter-increment: rule; position: relative; padding-left: 4.25rem; margin: 0 0 2rem; }
.rule-list > li::before {
  content: counter(rule);
  position: absolute; left: 0; top: -.15rem;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--red); color: var(--cream);
  font: 400 1.7rem/3rem var(--display); text-align: center;
}
.rule-list h3 { margin-top: 0; font-size: 1.45rem; }

.callout {
  background: var(--cream); border-left: 6px solid var(--red);
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--red); color: var(--cream);
  font-weight: 700; text-decoration: none;
  padding: .7rem 1.2rem; border-radius: 999px;
  border: 2px solid var(--red);
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.btn.on-dark { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn.on-dark:hover { background: #fff; border-color: #fff; color: var(--navy); }

.facts { display: grid; gap: 1.25rem; margin: 1.5rem 0 2.5rem; max-width: none !important; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.fact { border-top: 4px solid var(--navy); padding-top: .75rem; }
.fact h3 { margin: 0 0 .25rem; }
.fact p { margin: 0; }

/* ---------- recommendations ---------- */

.recs-tools {
  position: sticky; top: 4rem; z-index: 10;
  background: var(--paper);
  border-bottom: 2px solid rgba(11,46,72,.15);
  padding: .85rem 0;
}
@media (max-width: 640px) {
  .recs-tools { top: 0; padding: .6rem 0; }
  .recs-tools .wrap { gap: .5rem; }
  .result-count { font-size: .85rem; }
}
.recs-tools .wrap { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.search { position: relative; flex: 1 1 280px; }
.search input {
  width: 100%;
  font: 500 1.05rem var(--body); color: var(--ink);
  padding: .75rem 1rem .75rem 2.75rem;
  border: 2px solid var(--navy); border-radius: 999px; background: #fff;
}
.search input::placeholder { color: #86919a; }
.search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--navy); pointer-events: none; }
.result-count { color: var(--muted); font-size: .95rem; margin: 0; }

.chips {
  display: flex; gap: .4rem; overflow-x: auto; padding: .1rem 0 .25rem;
  scrollbar-width: thin; width: 100%;
}
.chips a {
  flex: none; text-decoration: none; white-space: nowrap;
  font-size: .9rem; font-weight: 600; color: var(--navy);
  border: 1.5px solid rgba(11,46,72,.35); border-radius: 999px; padding: .3rem .75rem;
}
.chips a:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
@media (min-width: 1000px) { .chips { display: none; } }

.recs-layout { display: grid; gap: 2.5rem; padding: 2rem 0 5rem; }
@media (min-width: 1000px) { .recs-layout { grid-template-columns: 230px 1fr; gap: 3.5rem; } }

.cat-index { display: none; }
@media (min-width: 1000px) {
  .cat-index { display: block; position: sticky; top: 9.5rem; align-self: start; max-height: calc(100vh - 11rem); overflow-y: auto; }
}
.cat-index ol { list-style: none; margin: 0; padding: 0; }
.cat-index a {
  display: flex; justify-content: space-between; gap: .5rem;
  text-decoration: none; color: var(--ink);
  padding: .32rem .6rem; border-radius: 6px; font-size: .95rem;
}
.cat-index a span { color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-index a:hover { background: var(--cream); }
.cat-index a.is-active { background: var(--navy); color: var(--cream); }
.cat-index a.is-active span { color: var(--cream); }
.cat-index a.is-empty { opacity: .35; }

.category { margin-bottom: 3.5rem; }
.category > h2 {
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
  margin: 0 0 .25rem;
  font: 400 clamp(2rem, 5vw, 2.9rem)/1 var(--display); text-transform: uppercase;
  color: var(--red);
  padding-bottom: .5rem; border-bottom: 5px solid var(--navy);
}
.category > h2 small { font: 600 .95rem var(--body); color: var(--muted); text-transform: none; }

.listing { padding: 1.4rem 0 1.5rem; border-bottom: 1px solid rgba(11,46,72,.18); }
.listing:last-child { border-bottom: 0; }
.listing h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; color: var(--navy); }
.listing h3 a { color: inherit; text-decoration: none; }
.listing h3 a:hover { text-decoration: underline; }
.listing .meta { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }

.actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.action {
  display: inline-flex; align-items: center; gap: .4rem;
  text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: .38rem .8rem; border-radius: 999px;
  background: var(--cream); color: var(--navy); border: 1.5px solid transparent;
}
.action svg { flex: none; }
.action:hover { background: var(--navy); color: var(--cream); }
.action small { font-weight: 500; opacity: .8; }

.quotes { margin: .9rem 0 0; display: grid; gap: .7rem; max-width: 72ch; }
.quotes blockquote {
  margin: 0; position: relative;
  padding: .1rem 0 .1rem 2rem;
}
.quotes blockquote::before {
  content: "\201C";
  position: absolute; left: 0; top: -.35rem;
  font: 400 2.4rem/1 var(--display); color: var(--red);
}
.quotes p { margin: 0; }
.quotes p + p { margin-top: .4rem; }

.listing.is-closed h3 { text-decoration: line-through; text-decoration-color: var(--red); opacity: .6; }
.listing.is-closed .quotes, .listing.is-closed .actions { opacity: .6; }
.closed-tag {
  display: inline-block; margin-top: .35rem;
  background: var(--navy); color: var(--cream);
  font-size: .82rem; font-weight: 600; padding: .15rem .6rem; border-radius: 4px;
}

mark { background: var(--cream); color: inherit; padding: 0 .1em; box-shadow: inset 0 -2px 0 var(--red); }

.empty, .load-error {
  text-align: center; padding: 3rem 1rem; max-width: 46ch; margin: 0 auto;
}
.empty h2, .load-error h2 { font: 400 2rem/1 var(--display); text-transform: uppercase; color: var(--navy); margin: 0 0 .5rem; }

.suggest {
  margin-top: 1rem; background: var(--navy); color: var(--cream);
  padding: 1.5rem 1.5rem; border-radius: 4px;
  display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.suggest p { margin: 0; max-width: 48ch; }
.suggest strong { font: 400 1.6rem/1.1 var(--display); text-transform: uppercase; display: block; margin-bottom: .2rem; }

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

.site-footer { background: var(--navy); color: var(--cream); padding: 2.25rem 0; border-top: 6px solid var(--red); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--cream); }
.tagline { font: 400 clamp(1.5rem, 4vw, 2rem)/1.1 var(--script); text-decoration: none; }
.tagline:hover { color: #fff; }
.site-footer small { opacity: .75; }

@media print {
  .site-header, .site-footer, .recs-tools, .cat-index, .suggest { display: none; }
  .sunburst { background: none; color: var(--ink); }
  .page-hero h1 { text-shadow: none; color: var(--ink); }
  .listing { break-inside: avoid; }
}
