/* The home page (services/homePage.js; redesign step 5c): a short hero with one gradient phrase beside three of the
   newest flyers pinned up, then fresh flyers, this weekend, towns and kinds. Event cards and town tiles come from
   town-page.css; this adds the rest. */
.home { display: grid; gap: 8px; padding-block: 8px 56px; }

/* Hero */
.home-hero { display: grid; gap: 28px; padding-top: 20px; }
@media (min-width: 860px) { .home-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; padding-top: 44px; } }
.hero-copy { display: grid; gap: 16px; align-content: center; }
.home-kicker { color: var(--ink-3); font-size: 15px; font-weight: 600; }
.home-hero h1 { font-size: clamp(40px, 6.4vw, 64px); line-height: 1.02; font-weight: 650; letter-spacing: -0.035em; text-wrap: balance; }
.grad { background: var(--buzz-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 34em; color: var(--ink-2); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* Search everything from the home page: a plain form to /discover?q= (no script). */
.home-search { display: grid; gap: 6px; width: 100%; max-width: 520px; }
.home-search label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.home-search div { display: flex; gap: 8px; }
.home-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 16px var(--font); }
.home-search .button { min-height: 48px; }
.hero-actions .buzz { min-height: 48px; padding: 0 20px; font-size: 16px; }
.hero-actions .button { min-height: 48px; border-radius: 999px; }
.hero-note { color: var(--ink-3); font-size: 14px; }

/* Three flyers pinned up, whole and slightly turned. */
.collage { position: relative; height: 300px; }
@media (min-width: 860px) { .collage { height: 420px; } }
.collage img { position: absolute; width: 44%; height: auto; max-height: 92%; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow-image); background: var(--fill); }
.collage img:nth-child(1) { left: 2%; top: 26px; transform: rotate(-7deg); }
.collage img:nth-child(2) { left: 28%; top: 0; transform: rotate(3deg); z-index: 1; }
.collage img:nth-child(3) { right: 2%; top: 40px; transform: rotate(8deg); }

/* Sections */
.home-section { display: grid; gap: 12px; padding-top: 36px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.section-head p { color: var(--ink-3); font-size: 14px; }
.section-head a { flex: none; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.home-section .day-label:first-of-type { margin-top: 4px; }

/* Fresh flyers: a strip of whole flyers that scrolls sideways. */
.fresh-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 14px; margin: 0 calc(-1 * clamp(16px, 4vw, 32px)); padding: 2px clamp(16px, 4vw, 32px) 6px;
  overflow-x: auto; scrollbar-width: none; list-style: none; }
.fresh-strip::-webkit-scrollbar { display: none; }
@media (min-width: 860px) { .fresh-strip { grid-auto-columns: 180px; } }
.fresh { display: grid; gap: 6px; align-content: start; color: var(--ink) !important; text-decoration: none; }
.fresh img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; border-radius: 12px; background: var(--fill); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.fresh-title { display: -webkit-box; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.25; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fresh-when { color: var(--ink-3); font-size: 13px; }

/* Kinds of flyer, with counts. */
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.kinds a { display: grid; gap: 2px; min-height: 64px; align-content: center; padding: 10px 14px; border: 1px solid var(--card-edge); border-radius: 18px; background: var(--card);
  color: var(--ink) !important; text-decoration: none; }
.kinds a:hover { border-color: var(--fill-2); }
.kind-name { font-size: 15px; font-weight: 600; }
.kind-count { color: var(--ink-3); font-size: 13px; }

/* How a flyer becomes an event */
.how h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--card-edge); border-radius: 18px; background: var(--card); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 6px; border-radius: 50%; background: var(--fill); color: var(--ink-2); font-size: 14px; font-weight: 650; }
.steps b { font-size: 16px; font-weight: 650; }
.steps span { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
