/* Home page only */

/* Hero */
.hero { background: var(--ink); color: var(--cream); display: flex; flex-wrap: wrap; }
.hero-text {
  flex: 1.7 1 560px; min-width: 0;
  padding: clamp(28px, 4vw, 60px) var(--gutter);
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
.hero h1 { font-size: var(--fs-display); line-height: .84; color: var(--orange); }
.hero-intro { font-size: var(--fs-lead); max-width: 820px; }

.hero-photo {
  flex: 1 1 360px; position: relative; min-height: 340px;
  margin: clamp(16px, 2vw, 28px);
}
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo--empty {
  border: 2px dashed var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 24px; text-align: center;
}
.hero-photo--empty span:last-child { font-size: var(--fs-small); }

/* Ticker */
.ticker { background: var(--orange); color: var(--ink); overflow: hidden; padding: 10px 0; }
.ticker-track {
  display: flex; width: max-content;
  font-size: clamp(15px, 1.1vw, 17px); letter-spacing: .08em;
  animation: qc-ticker 45s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker-track li { white-space: nowrap; }
.ticker-track li::after { content: '·'; padding: 0 16px; }
@keyframes qc-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Board */
.board { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.board-side { flex: 1 1 240px; max-width: 290px; display: flex; flex-direction: column; gap: 18px; }
.board-side h2 { font-size: var(--fs-h2); }
.filters { display: flex; flex-direction: column; border-top: 2px solid var(--ink); margin: 0; padding: 0; list-style: none; }
.filter {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--ink);
  padding: 9px 10px; cursor: pointer;
}
.filter .h { font-size: var(--fs-h4); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.filter[aria-pressed="true"] .lab { color: var(--orange); }
.filter:hover:not([aria-pressed="true"]) { background: rgba(20, 17, 16, .06); }
.board-side .btn { align-self: flex-start; padding: 10px 14px; }

.board-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 26px; }
.board-link { border-bottom: 3px solid var(--orange); padding-bottom: 3px; }
.board-link:hover { text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px 24px; }

.card { display: flex; flex-direction: column; gap: 10px; }
.card-media { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; }
.card-meta span:last-child, .card-foot { font-size: var(--fs-small); }
.card-title { font-size: var(--fs-h4); }
.card-quote { font-size: 16px; }
.card-aunt {
  position: relative; aspect-ratio: 2 / 1; background: var(--ink);
  display: flex; align-items: flex-end; padding: 16px;
}
.card-aunt .bug { padding: 6px 10px; }
.card-aunt .h { font-size: 28px; color: var(--orange); }
.card-ph {
  aspect-ratio: 2 / 1; border: 2px dashed var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.card-lines { display: flex; flex-direction: column; gap: 8px; }
.card-lines span { display: block; height: 14px; background: var(--ink); opacity: .12; }
.card-lines span:first-child { width: 85%; }
.card-lines span:last-child { width: 55%; }
.sold { color: var(--ink); background: var(--orange); padding: 0 6px; }

/* In the app */
.features { display: flex; flex-direction: column; gap: 28px; }
.features h2 { font-size: var(--fs-h2); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); margin: 0; padding: 0; list-style: none; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
.feature { border-top: 4px solid var(--cream); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.feature:first-child { border-top-color: var(--orange); }
.feature h3 { font-size: var(--fs-h4); }



/* Medium and small windows: scale down so nothing feels bulky */
@media (max-width: 1100px) {
  .hero-photo { min-height: 280px; }
  .board-side { max-width: 240px; }
  .card-quote { font-size: 15px; }
}
@media (max-width: 900px) {
  /* hero photo drops below the text: keep it a short landscape box */
  .hero-photo { flex-basis: 100%; min-height: 0; aspect-ratio: 16 / 7; margin-top: 0; }
  /* board filters become one wrapping row of chips above the cards */
  .board-side { max-width: none; flex-basis: 100%; gap: 14px; }
  .filters { flex-direction: row; flex-wrap: wrap; gap: 6px; border-top: 0; }
  .filter { width: auto; border: 1px solid var(--ink); padding: 7px 10px; gap: 10px; }
  .filter .h { font-size: 16px; }
  .board-side > .btn { display: none; }
}
@media (max-width: 640px) {
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-text { gap: 18px; }
  .board-side { max-width: none; }
}

/* Phone: board as 2-up grid, 4 cards then "Show more"; filters on 2 lines */
.board-more { display: none; }
@media (max-width: 640px) {
  .filters { gap: 6px 5px; }
  .filter { padding: 6px 7px; gap: 6px; }
  .filter .lab { font-size: 10px; letter-spacing: .06em; }
  .filter .h { font-size: 15px; }

  .cards { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .cards.is-collapsed .card:nth-child(n+5) { display: none; }
  .card-title { font-size: 15px; }
  .card-meta { flex-direction: column; gap: 0; }
  .card-meta span:last-child, .card-foot { font-size: 12px; }
  .card-quote { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card-aunt { padding: 8px; }
  .card-aunt .bug { padding: 3px 6px; font-size: 9px; }
  .card-aunt .h { font-size: 17px; }
  .card-ph .lab { font-size: 9px; }
  .board-more:not([hidden]) { display: inline-flex; align-self: flex-start; }
}

/* Board event cards link to the event page */
a.card--link { color: inherit; }
a.card--link:hover { text-decoration: none; }
a.card--link:hover .card-title { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 3px; }
