/* ============================================================
   BIKE CAFE - Board Presentation Site
   Design direction: Corretto-style classical coffee house.
   Speckled parchment, deep espresso, bronze/gold, centered
   letter-spaced serif headings with bean ornament.
   Playfair Display (display) + Public Sans (body).
   ============================================================ */

/* === TOKENS === */
:root {
  --color-primary: #1A1A1A;        /* deep espresso black */
  --color-primary-hover: #000000;
  --color-accent: #A47E3B;         /* bronze and gold */
  --color-accent-ink: #7E5B21;     /* darker bronze for text on light */
  --color-btn: #8E6B2F;            /* tan button, legible white type */
  --color-btn-hover: #75581F;
  --color-text: #241C15;           /* espresso */
  --color-muted: #6B5D4F;
  --color-bg: #F4F0EA;             /* warm parchment */
  --color-surface: #FFFFFF;
  --color-surface-tint: #EAE3D6;   /* deeper parchment tint */

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", Arial, sans-serif;

  --fs-h1: clamp(1.5rem, 4.5vw, 3rem);
  --fs-h2: clamp(1.45rem, 3vw, 2.1rem);
  --fs-h3: clamp(1.15rem, 2.5vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --space-xs: .5rem; --space-sm: 1rem; --space-md: 2rem;
  --space-lg: 4rem; --space-xl: 6rem;

  --container-max: 1200px;
  --radius: .25rem;
  --shadow: 0 12px 34px rgba(36, 28, 21, .12);

  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 14' width='140' height='14'%3E%3Cline x1='0' y1='7' x2='54' y2='7' stroke='%23A47E3B' stroke-width='1'/%3E%3Cline x1='86' y1='7' x2='140' y2='7' stroke='%23A47E3B' stroke-width='1'/%3E%3Cg transform='rotate(-28 70 7)'%3E%3Cellipse cx='70' cy='7' rx='4' ry='6.2' fill='none' stroke='%23A47E3B' stroke-width='1.2'/%3E%3Cpath d='M70 1 C 66.5 4.5, 73.5 9.5, 70 13' fill='none' stroke='%23A47E3B' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.045'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0 0 var(--space-sm); font-weight: 500; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--space-sm); }
a { color: var(--color-primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* Corretto heading treatment: centered, letter-spaced caps, bean ornament */
h1, h2:not(.roll__group) { text-align: center; text-transform: uppercase; letter-spacing: .1em; overflow-wrap: break-word; }
@media (max-width: 480px) { h1, h2:not(.roll__group) { letter-spacing: .04em; } }
h2:not(.roll__group) { margin-bottom: var(--space-sm); }
h2:not(.roll__group)::after,
.page-hero h1::after,
.hero__title::after {
  content: ""; display: block; width: 140px; height: 14px;
  margin: .9rem auto 0;
  background: var(--ornament) no-repeat center / contain;
}

/* === LAYOUT === */
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space-md); }
.section { padding-block: var(--space-xl); }
.section--alt { background: var(--color-surface); }
.section--dark { background: var(--color-primary); color: #EFEAE1; }
.section--dark h2 { color: #fff; }
.section__eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  margin-bottom: var(--space-xs);
}
.section--dark .section__eyebrow { color: var(--color-accent); }
.section__lead { max-width: 44rem; margin-inline: auto; text-align: center; font-size: 1.1rem; color: var(--color-muted); }
.section--dark .section__lead { color: #CFC7B9; }

/* === GRIDS === */
.grid--2 { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
.grid--3 { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { display: grid; gap: var(--space-sm); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
@media (min-width: 768px) { .grid--2 { grid-template-columns: 1fr 1fr; align-items: center; } }

/* === BUTTONS (Corretto tan, uppercase, letter-spaced) === */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .9rem 1.9rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.btn--primary { background: var(--color-btn); color: #fff; }
.btn--primary:hover { background: var(--color-btn-hover); }
.btn--ghost { background: transparent; color: var(--color-accent-ink); border-color: var(--color-accent); }
.btn--ghost:hover { background: var(--color-btn); border-color: var(--color-btn); color: #fff; }
.section--dark .btn--ghost { color: #fff; border-color: #fff; }
.section--dark .btn--ghost:hover { background: #fff; color: var(--color-primary); }

/* === HEADER / NAV (deep espresso, crisp white type) === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-primary);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem var(--space-sm); padding-block: .85rem; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: .06em; color: #fff; text-decoration: none; }
.brand span { color: var(--color-accent); font-size: .72em; font-weight: 500; letter-spacing: .04em; }
@media (max-width: 600px) { .brand span { display: none; } }

/* Mobile: nav is a drop-down panel under the bar, opened by the hamburger */
.site-nav {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-primary);
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 34px rgba(0,0,0,.3);
  max-height: calc(100vh - 4.5rem); overflow-y: auto;
  padding-block: .25rem;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  text-decoration: none; font-weight: 600; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; color: #EFEAE1;
  padding: .95rem var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.site-nav a:last-child { border-bottom: 0; }
.site-nav a:hover { background: rgba(255,255,255,.09); color: var(--color-accent); }
.site-nav a[aria-current="page"] { color: var(--color-accent); }
.site-nav .nav-soon { font-size: .58rem; font-weight: 800; letter-spacing: .08em; color: var(--color-accent); vertical-align: super; margin-left: .15rem; }
.site-nav .nav-contact { display: none; color: var(--color-accent); font-weight: 800; }

/* Hamburger button */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 40px; padding: 0; flex: none;
  background: transparent; color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,.3); border-radius: 2px;
}
.nav-toggle:hover { border-color: var(--color-accent); color: var(--color-accent); }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 21px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

/* Narrow phones: the Contact button moves into the menu panel */
@media (max-width: 700px) {
  .site-header .btn--primary { display: none; }
  .site-nav .nav-contact { display: block; }
}

/* Desktop: normal inline nav, no hamburger (nine items need ~1200px to sit on one line) */
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; flex-direction: row; flex-wrap: wrap; gap: .25rem;
    white-space: nowrap;
    position: static; max-height: none; overflow: visible;
    background: none; border-top: 0; box-shadow: none; padding-block: 0;
  }
  .site-nav a { padding: .4rem .6rem; border-bottom: 0; border-radius: 2px; }
}
.site-header .btn--primary { background: var(--color-accent); color: #1A1A1A; }
.site-header .btn--primary:hover { background: #BC9350; }

/* === HERO (centered, ceremonial) === */
.hero { padding-block: var(--space-lg) var(--space-xl); }
.hero__inner { text-align: center; }
.hero__title { margin: var(--space-sm) 0; }
.hero__title em { font-style: normal; color: var(--color-accent-ink); }
.hero__sub { font-size: 1.15rem; color: var(--color-muted); max-width: 44rem; margin: 0 auto var(--space-md); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; margin-bottom: var(--space-lg); }
.hero__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--color-surface); margin: 0 auto var(--space-lg); max-width: 720px; }
.hero__media img { padding: var(--space-sm); margin-inline: auto; }
.hero__media figcaption { font-size: var(--fs-small); color: var(--color-muted); padding: .6rem .9rem; background: var(--color-surface); border-top: 1px solid var(--color-surface-tint); }

/* === STAT ROW === */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); border-top: 1px solid var(--color-accent); padding-top: var(--space-md); text-align: center; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__number { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; color: var(--color-accent-ink); line-height: 1; }
.stat__label { font-size: var(--fs-small); color: var(--color-muted); margin-top: .35rem; }

/* === STAMP === */
.stamp {
  display: inline-block;
  transform: rotate(-2.5deg);
  border: 2px solid var(--color-primary);
  border-radius: 2px;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .5rem .9rem;
  background: var(--color-surface);
}
.stamp--amber { border-color: var(--color-accent); color: var(--color-accent-ink); }

/* === MANDATE SECTION === */
.mandate__letter { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--color-surface); margin: 0; }
.mandate__letter figcaption { font-size: var(--fs-small); color: var(--color-muted); padding: .6rem .9rem; }
.letter-open { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; }
.letter-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); padding: .8rem .9rem; }
.letter-actions a, .letter-actions button {
  font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--color-btn);
  border: 0; border-radius: 2px; padding: .5rem 1.1rem; cursor: pointer; text-decoration: none;
}
.letter-actions a:hover, .letter-actions button:hover { background: var(--color-btn-hover); }
.letter-dialog { border: 0; padding: 0; background: transparent; max-width: min(94vw, 900px); width: 100%; }
.letter-dialog::backdrop { background: rgba(20, 15, 10, .85); }
.letter-dialog img { width: 100%; height: auto; max-height: 88vh; object-fit: contain; border-radius: var(--radius); background: #fff; }
.letter-dialog__close {
  position: absolute; top: .5rem; right: .5rem;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  background: #1A1A1A; color: #fff; border: 2px solid #fff; border-radius: 99px;
  padding: .35rem .9rem; cursor: pointer;
}
.mandate__quote {
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-md);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text);
  margin-block: var(--space-md);
}
.mandate__quote cite { display: block; font-family: var(--font-body); font-style: normal; font-size: var(--fs-small); color: var(--color-muted); margin-top: var(--space-xs); }
.mandate__steps { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.mandate__steps li { display: flex; gap: var(--space-sm); align-items: baseline; }
.mandate__steps .tick { color: var(--color-accent-ink); font-weight: 800; font-size: 1.1rem; }

/* === TIMELINE === */
.timeline { list-style: none; margin: var(--space-md) 0 0; padding: 0; border-left: 1px solid var(--color-accent); }
.timeline li { position: relative; padding: 0 0 var(--space-md) var(--space-md); }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: .45rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--color-accent); border: 3px solid var(--color-bg);
}
.timeline h3 { margin-bottom: .25rem; }
.timeline p { color: var(--color-muted); margin: 0; max-width: 40rem; }

/* === CARDS === */
.card { background: var(--color-surface); color: var(--color-text); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card h3 { color: var(--color-text); }
.card__media { background: #fff; }
.card__media img { width: 100%; object-fit: cover; }
.card__body { padding: var(--space-md); flex: 1; }
.card__title { margin-bottom: .4rem; }
.card__tag {
  display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--color-accent-ink); margin-bottom: var(--space-xs);
}
.card p { color: var(--color-muted); margin-bottom: 0; }
.card--price { border-top: 3px solid var(--color-accent); text-align: center; padding: var(--space-md); }
.card--price .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--color-accent-ink); }

/* === MORE LINK (explore cards) === */
.more-link {
  display: inline-block;
  font-family: var(--font-body); font-size: .76rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-accent-ink); text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: .2rem;
}
.more-link::after { content: " →"; }
.more-link:hover { color: var(--color-btn-hover); border-bottom-color: var(--color-btn-hover); }

/* === DIFFERENCE (dark) === */
.diff-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: var(--space-md); }
.diff-card h3 { color: #fff; margin-bottom: .4rem; }
.diff-card p { color: #CFC7B9; margin: 0; }
.diff-card .diff-mark { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: .04em; color: var(--color-accent); display: block; margin-bottom: .4rem; }

/* === PLANNED PLATFORM MODULES === */
.plan-card {
  background: var(--color-surface); border: 1px solid #E2DACB; border-top: 2px solid var(--color-accent);
  border-radius: var(--radius); padding: var(--space-sm) var(--space-sm) var(--space-sm);
  box-shadow: var(--shadow);
}
.plan-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; margin-bottom: .25rem; }
.plan-card p { color: var(--color-muted); font-size: var(--fs-small); margin: 0; }
.badge-planned {
  display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-accent-ink); border: 1px solid var(--color-accent); border-radius: 2px;
  padding: .14rem .55rem; margin-bottom: .5rem;
}

/* === PETITION ROLL (locations) === */
.roll { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: var(--space-md); }
@media (min-width: 768px) { .roll { columns: 2; } }
@media (min-width: 1280px) { .roll--3 { columns: 3; } }
.roll li {
  break-inside: avoid;
  background: var(--color-surface);
  border: 1px solid #E2DACB;
  border-left: 3px solid var(--color-accent);
  border-radius: 2px;
  padding: .7rem .9rem;
  margin-bottom: .6rem;
  font-size: .95rem;
}
.roll li strong { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; }
.roll li span { color: var(--color-muted); font-size: var(--fs-small); }
.roll li.roll--flagship { border-left-color: var(--color-accent-ink); background: #FBF4E7; }
.roll__group { font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--color-accent-ink); margin: var(--space-md) 0 var(--space-sm); }

/* === COMMUNITY PREVIEW === */
.profile { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-md); text-align: center; }
.profile__avatar {
  width: 88px; height: 88px; margin: 0 auto var(--space-sm);
  border-radius: 2px;
  border: 3px solid var(--color-accent);
  background: var(--color-primary);
  color: #fff; font-family: var(--font-display); font-size: 2rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.profile__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: .2rem; }
.profile__role { color: var(--color-muted); font-size: var(--fs-small); margin-bottom: var(--space-sm); }
.profile__thumbs { display: flex; gap: .35rem; justify-content: center; margin-bottom: var(--space-sm); }
.profile__thumbs span { width: 34px; height: 34px; border-radius: 2px; background: var(--color-surface-tint); border: 1px solid #DCD2BF; }
.profile__video {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-accent-ink);
  background: var(--color-surface-tint); border-radius: 2px; padding: .35rem .9rem;
}
.profile__video::before { content: "▶"; font-size: .65rem; }
.badge-podcast {
  display: inline-block; margin-top: .5rem; font-size: .66rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; background: var(--color-accent-ink); border-radius: 2px; padding: .3rem .7rem;
}

/* === FOOTER === */
.site-footer { background: var(--color-primary); color: #CFC7B9; padding-block: var(--space-lg); font-size: var(--fs-small); text-align: center; }
.site-footer a { color: #fff; }
.site-footer__meta { border-top: 1px solid rgba(255,255,255,.2); padding-top: var(--space-sm); margin-top: var(--space-md); display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: space-between; text-align: left; }

/* === PAGE HERO (subpages) === */
.page-hero { padding-block: var(--space-lg); background: var(--color-surface); text-align: center; }
.page-hero h1 { margin-bottom: var(--space-sm); }
.page-hero p { color: var(--color-muted); max-width: 44rem; margin: 0 auto; }

/* === MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }
