/* ————————————————————————————————————————
   THE HEIGHTS BUZZ — craftsman porch, est. 1891
   ———————————————————————————————————————— */

:root {
  --bg: #F7F2E7;
  --paper: #FFFDF6;
  --line: #DCD2BC;
  --text: #24352B;
  --muted: #64705F;
  --green: #1F3A2D;
  --accent: #C65D3B;
  --gold: #B98A2F;
  --display: "DM Serif Display", Georgia, serif;
  --body: "Work Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--paper); }

a { color: inherit; }

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

/* ——— header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--display);
  font-size: 22px;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span { color: var(--accent); font-style: italic; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.site-header nav a:hover { color: var(--green); }

.nav-cta {
  color: var(--paper) !important;
  background: var(--green);
  padding: 7px 15px;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s;
}

.nav-cta:hover { background: #2C523F; transform: translateY(-1px); }

/* ——— ticker ——— */

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--green);
  padding: 9px 0;
}

.ticker-track {
  display: flex;
  gap: 26px;
  width: max-content;
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: #EFE6CF;
  animation: ticker 40s linear infinite;
}

.ticker-track span { white-space: nowrap; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ——— hero ——— */

.hero {
  position: relative;
  padding: clamp(84px, 14vh, 160px) var(--gutter) clamp(110px, 18vh, 190px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(110% 90% at 85% -10%, #EFE4CB 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}

/* victorian scallop trim along the hero's bottom edge */
.trim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 26px;
  background:
    radial-gradient(circle at 50% 0, var(--green) 12px, transparent 13px) 0 0 / 26px 26px repeat-x;
  opacity: 0.16;
  pointer-events: none;
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(54px, 11vw, 156px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--green);
  max-width: 12ch;
}

.hero h1 em { font-style: italic; color: var(--accent); }

.lede {
  max-width: 56ch;
  margin-top: 30px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--green);
  border: 1.5px solid var(--green);
  padding: 14px 22px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: var(--green);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ——— sections ——— */

.section {
  padding: clamp(70px, 10vh, 130px) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 22px;
  row-gap: 8px;
  align-items: baseline;
  margin-bottom: clamp(36px, 5vh, 60px);
  max-width: 900px;
}

.section-no {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 58px);
  color: var(--green);
  line-height: 1.05;
}

.section-head p { grid-column: 2; color: var(--muted); max-width: 52ch; }

/* cards */

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 12px;
  padding: 26px 24px 24px;
  box-shadow: 0 1px 0 rgba(31, 58, 45, 0.05);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(31, 58, 45, 0.11);
  border-top-color: var(--accent);
}

.card-no {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  color: var(--gold);
}

.card h3 {
  font-family: var(--display);
  font-size: 25px;
  color: var(--green);
  margin-bottom: 10px;
  max-width: 13ch;
}

.card p { color: var(--muted); font-size: 15px; }

/* calendar */

.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.cal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.cal:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(31, 58, 45, 0.11);
}

.cal-when {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.cal h3 {
  font-family: var(--display);
  font-size: 24px;
  color: var(--green);
  margin-bottom: 10px;
}

.cal p { color: var(--muted); font-size: 15px; }

/* menu list */

.menu-list { list-style: none; max-width: 880px; }

.menu-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding: 20px 4px;
  border-bottom: 1px dashed var(--line);
}

.menu-list li:first-child { border-top: 1px dashed var(--line); }

.menu-list strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 38px);
  color: var(--green);
  transition: color 0.2s;
}

.menu-list li:hover strong { color: var(--accent); }

.menu-list span { color: var(--muted); font-size: 15px; }

/* lore */

.only-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.only {
  border-left: 3px solid var(--gold);
  background: var(--paper);
  border-radius: 0 12px 12px 0;
  padding: 24px;
}

.only h3 {
  font-family: var(--display);
  font-size: 23px;
  color: var(--green);
  margin-bottom: 10px;
}

.only p { color: var(--muted); font-size: 15px; }

/* letter */

.letter { border-bottom: none; }

.letter-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 16px;
  padding: clamp(40px, 7vw, 64px) clamp(24px, 5vw, 56px);
  box-shadow: 0 18px 44px rgba(31, 58, 45, 0.10);
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.letter-card h2 {
  font-family: var(--display);
  font-size: clamp(32px, 5.5vw, 52px);
  color: var(--green);
  margin-bottom: 14px;
}

.letter-card p { color: var(--muted); max-width: 44ch; margin: 0 auto; }

/* footer */

.site-footer {
  padding: 42px var(--gutter) 52px;
  border-top: 1px solid var(--line);
  background: var(--green);
  color: #EFE6CF;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-cities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-cities span { color: #A8B8A0; }

.footer-cities a { text-decoration: none; color: #EFE6CF; transition: color 0.2s; }
.footer-cities a:hover { color: #fff; }

.site-footer > p { color: #A8B8A0; font-size: 13px; }
.site-footer > p a { color: #EFE6CF; }

/* reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .card:hover, .cal:hover, .hero-cta:hover, .nav-cta:hover { transform: none; }
}

/* responsive */

@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-header nav { flex-wrap: wrap; row-gap: 8px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head p { grid-column: 1; }
}
