/* findchalk.com: same look as the app. cream, terracotta, bricolage for
   headings, figtree for reading, chango only for the wordmark. the one loud
   thing is the board on the home page: a pub chalkboard of what's on today. */

@font-face { font-family: 'Chango'; src: url('fonts/Chango_400Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('fonts/BricolageGrotesque-Heading.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/Figtree_500Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/Figtree_600SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --cream: #F8F3E7;
  --card: #FCF8ED;
  --inset: #EDE5D8;
  --ink: #1C1814;
  --soft: #6E6358;
  --clay: #845141;
  --line: #E2D8C8;
  --slate: #2B2723;          /* the chalkboard */
  --chalk: #F8F3E7;
  --chalk-dim: rgba(248, 243, 231, 0.62);
  --chalk-yellow: #F4CF63;
  --chalk-pink: #F2ABD4;
  --chalk-blue: #9CC1F2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 680px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap.wide { max-width: 1120px; }

/* ─── top bar ─────────────────────────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 8px; }
.wordmark { font-family: 'Chango', 'Bricolage', sans-serif; font-size: 28px; line-height: 1; color: var(--clay); text-decoration: none; }
.top nav { display: flex; gap: 28px; }
.top nav a { font-weight: 600; font-size: 15px; text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }

main { flex: 1; }
main.wrap { padding-top: 64px; padding-bottom: 80px; }

/* ─── headings with three stars off the top right ─────────────────────────── */
.head { position: relative; display: inline-block; max-width: 100%; padding-right: 96px; }
.stars { position: absolute; top: -18px; right: 0; width: 90px; height: 90px; pointer-events: none; }
.stars img { position: absolute; }
.stars .a { width: 31px; right: 4px; top: 0; transform: rotate(14deg); }
.stars .b { width: 25px; right: 50px; top: 18px; transform: rotate(-12deg); }
.stars .c { width: 21px; right: 16px; top: 46px; transform: rotate(26deg); }

h1 { font-family: 'Bricolage', sans-serif; font-weight: 700; font-size: 44px; line-height: 1.08; letter-spacing: -0.6px; }
h2 { font-family: 'Bricolage', sans-serif; font-weight: 700; font-size: 23px; line-height: 1.25; letter-spacing: -0.2px; margin: 44px 0 12px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--soft); margin-top: 18px; max-width: 34em; }
p + p { margin-top: 14px; }
.small { font-size: 14px; color: var(--soft); }
.updated { margin-top: 14px; }

.prose { margin-top: 8px; }
.prose p { color: var(--ink); max-width: 36em; }
.faq h2 { font-size: 20px; margin-top: 40px; }
.faq p { color: var(--soft); max-width: 36em; }
.faq a, .prose a, .lead a { font-weight: 600; color: var(--ink); text-underline-offset: 3px; }

/* ─── buttons ─────────────────────────────────────────────────────────────── */
.button { display: inline-block; background: var(--clay); color: #fff; font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; padding: 18px 30px; border-radius: 999px; text-align: center; }
.button:hover { background: #73463A; }
.button.cream { background: var(--cream); color: var(--ink); }
.button.cream:hover { background: #fff; }
.button.wide { display: block; width: 100%; }

/* ─── home: hero ──────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; padding-top: 72px; padding-bottom: 112px; }
.hero h1 { font-size: clamp(56px, 7.4vw, 100px); line-height: 0.98; letter-spacing: -2px; }
.hero .head { padding-right: 108px; }
.hero .stars { top: -26px; transform: scale(1.15); transform-origin: top right; }
.hero .lead { font-size: 20px; margin-top: 28px; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 36px; }
.hero .cta .small { font-size: 15px; }

/* the board: a pub chalkboard of today's listings, propped at a slight angle */
.board {
  position: relative;
  background-color: var(--slate);
  /* faint chalk dust so it reads as a board, not a flat box */
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(255,255,255,0.05), transparent 50%),
    radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.025), transparent 60%);
  border: 12px solid var(--clay);
  border-radius: 26px;
  padding: 34px 32px 30px;
  color: var(--chalk);
  --tilt: -2deg;
  transform: rotate(var(--tilt));
  box-shadow: 0 30px 60px -28px rgba(28, 24, 20, 0.45);
}
.board-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.board-title { font-family: 'Chango', 'Bricolage', sans-serif; font-size: 34px; line-height: 1; color: var(--chalk); }
.board-day { font-weight: 600; font-size: 15px; color: var(--chalk-dim); }
.board ul { list-style: none; }
.board li { display: grid; grid-template-columns: 82px 1fr; gap: 16px; padding: 16px 0; border-top: 1.5px dashed rgba(248, 243, 231, 0.2); }
.board .when { font-family: 'Bricolage', sans-serif; font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--chalk-yellow); }
.board .when.now { color: var(--chalk-pink); }
.board .what { font-family: 'Bricolage', sans-serif; font-weight: 700; font-size: 21px; line-height: 1.25; }
.board .where { font-size: 14px; line-height: 1.4; color: var(--chalk-dim); margin-top: 3px; }

/* ─── home: pubs band ─────────────────────────────────────────────────────── */
.pubs { background: var(--clay); color: var(--cream); }
.pubs .wrap { padding-top: 88px; padding-bottom: 56px; }
.pubs h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -1.2px; margin: 0; color: var(--cream); }
.pubs p { font-size: 19px; line-height: 1.6; color: rgba(248, 243, 231, 0.86); margin-top: 22px; max-width: 30em; }
.pubs .button { margin-top: 34px; }
.cartwheel { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 88px; max-width: 760px; }
.cartwheel img { width: 44px; height: 44px; }

/* ─── the link-landing pages: only one state shows at a time ──────────────── */
.state[hidden] { display: none; }
.state .button { margin-top: 32px; }
.state .small { margin-top: 18px; }

/* ─── footer ──────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; }
.pubs + footer { border-top: 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--soft); }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .spacer { flex: 1; }

/* ─── phones ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 40px; padding-bottom: 80px; }
  .board { --tilt: -1.2deg; margin: 0 4px; }
}
@media (max-width: 480px) {
  main.wrap { padding-top: 44px; }
  h1 { font-size: 36px; }
  .head { padding-right: 76px; }
  .stars { transform: scale(0.85); transform-origin: top right; }
  .hero .head { padding-right: 70px; }
  .hero .stars { transform: scale(0.9); }
  .hero .lead { font-size: 18px; }
  .board { padding: 26px 20px 24px; border-width: 10px; }
  .board li { grid-template-columns: 66px 1fr; gap: 12px; padding: 14px 0; }
  .board .when { font-size: 17px; }
  .board .what { font-size: 19px; }
  .board-title { font-size: 28px; }
  .pubs .wrap { padding-top: 64px; padding-bottom: 44px; }
  .pubs p { font-size: 18px; }
  .cartwheel { margin-top: 64px; }
  .cartwheel img { width: 32px; height: 32px; }
}
/* ─── the one moment of motion: the board gets chalked up ─────────────────────
   it swings into its tilt, then each line is written on left to right, and the
   stars by the headline pop in. nothing else on the site moves. */
@keyframes board-in {
  from { opacity: 0; transform: translateY(18px) rotate(0deg); }
  to   { opacity: 1; transform: translateY(0) rotate(var(--tilt)); }
}
@keyframes chalk-on {
  from { opacity: 0.2; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes star-pop {
  0%   { opacity: 0; scale: 0.3; }
  70%  { opacity: 1; scale: 1.12; }
  100% { opacity: 1; scale: 1; }
}
.board { animation: board-in 750ms cubic-bezier(0.2, 0.8, 0.2, 1) 150ms both; }
.board-top { animation: chalk-on 500ms ease-out 650ms both; }
.board li { animation: chalk-on 520ms ease-out both; animation-delay: calc(900ms + var(--i) * 170ms); }
.hero .stars img { animation: star-pop 450ms ease-out both; }
.hero .stars .b { animation-delay: 350ms; }
.hero .stars .a { animation-delay: 470ms; }
.hero .stars .c { animation-delay: 590ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
