/* Bikeshed — public site styles */
:root {
  --accent: #2f6b4f;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #1d221f;
  --muted: #5d655f;
  --line: #e2ddd2;
  --radius: 10px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161917; --surface: #1f2421; --ink: #ece9e2; --muted: #a3aba5; --line: #323a35; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.125rem/1.65 var(--sans);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.25rem; margin: 1.6rem 0 .4rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: .5rem 1rem; z-index: 10; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--header-bg, var(--surface)); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; padding: .6rem 0; }
.brand-name { font-family: var(--serif); font-weight: 650; font-size: 1.4rem; line-height: 1.1; }
.brand-tag { font-size: .85rem; color: var(--muted); }
.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; padding: .45rem .8rem; border-radius: 999px; font-weight: 600; font-size: 1rem; }
.site-nav a:hover { background: var(--bg); }
.site-nav a[aria-current] { background: var(--accent); color: #fff; }
.nav-toggle { display: none; }
.brand.has-logo { padding: .5rem 0; }
.brand .logo { height: 128px; width: auto; border-radius: 4px; }
.site-header.dark { border-bottom-color: transparent; }
.site-header.dark .brand, .site-header.dark .site-nav a { color: #fff; }
.site-header.dark .brand-tag { color: rgba(255,255,255,.7); }
.site-header.dark .site-nav a:hover { background: rgba(255,255,255,.12); }
.site-header.dark .site-nav a[aria-current] { background: #fff; color: var(--header-bg); }
@media (max-width: 720px) {
  .nav-toggle { display: block; background: none; border: 1px solid var(--line); color: inherit; border-radius: 8px; padding: .4rem .9rem; font: 600 1rem var(--sans); }
  .site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: .8rem; }
  .site-nav.open { display: flex; }
  .site-nav a { border-radius: 8px; }
}

/* Hero */
.hero { position: relative; background: var(--accent); color: #fff; overflow: hidden; }
.hero .hero-text { position: relative; padding: clamp(3rem, 9vw, 6rem) 20px; }
.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); }
@media (min-width: 760px) { .hero h1 { white-space: nowrap; } }
.hero p { font-size: 1.25rem; margin: .8rem 0 0; max-width: 40ch; opacity: .92; }
.hero.has-image .hero-text { padding-top: clamp(8rem, 22vw, 14rem); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.05) 70%); }
.hero.has-image .hero-text { z-index: 1; }

/* Body text */
.page-body { padding-top: 2.5rem; padding-bottom: 3rem; }
.page-body p, .page-body li { max-width: 68ch; }
.page-body blockquote { margin: 1.5rem 0; padding: .2rem 1.2rem; border-left: 4px solid var(--accent); color: var(--muted); font-style: italic; }
.page-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.page-body img { border-radius: var(--radius); margin: 1rem 0; }
figure.wide { margin: 1.8rem 0; }
figure.wide img { width: 100%; border-radius: var(--radius); margin: 0; }
figcaption { color: var(--muted); font-size: .95rem; margin-top: .5rem; }
.meta, .crumb { color: var(--muted); margin: -.4rem 0 1.4rem; }
.crumb { margin: 0 0 .8rem; }
.crumb a { text-decoration: none; }

/* Bands on home */
.band { padding-top: 1rem; padding-bottom: 2.5rem; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.6rem; margin-bottom: 1.2rem; }
.band-head h2 { margin: 0; }
.band-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* News cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; align-items: start; }
.card:not(:has(.card-img)) { border-top: 4px solid var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .3s; }
.card-img { overflow: hidden; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 1rem 1.2rem 1.3rem; }
.card time { color: var(--muted); font-size: .9rem; }
.card h3 { margin: .2rem 0 .4rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

.pager { display: flex; gap: .4rem; margin-top: 2rem; }
.pager a, .pager span { padding: .3rem .8rem; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; }
.pager span { background: var(--accent); color: #fff; border-color: var(--accent); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 3rem; }
.post-nav a { display: block; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: .8rem 1rem; text-decoration: none; font-weight: 600; }
.post-nav small { display: block; color: var(--muted); font-weight: 400; }
.post-nav .right { text-align: right; grid-column: 2; }

/* Gallery */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chips a { border: 1px solid var(--line); background: var(--surface); padding: .3rem .9rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.chips a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips small { opacity: .7; font-weight: 400; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.photo-grid.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.photo-grid.embedded { margin: 1.8rem 0; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.photo { position: relative; display: block; border-radius: 8px; overflow: hidden; background: var(--line); }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0 !important; border-radius: 0 !important; transition: transform .3s; }
.photo:hover img { transform: scale(1.04); }
.photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .7rem .5rem; color: #fff; font-size: .9rem; line-height: 1.3; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .2s; }
.photo:hover span, .photo:focus span { opacity: 1; }
@media (hover: none) { .photo span { opacity: 1; } }
@media (max-width: 600px) { .photo-grid, .photo-grid.compact, .photo-grid.embedded { grid-template-columns: repeat(2, 1fr); gap: .5rem; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,12,11,.94); z-index: 50; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; width: auto; border-radius: 4px; }
.lightbox figcaption { color: #ddd; text-align: center; padding-top: .7rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Footer */
.site-footer { background: var(--header-bg, var(--surface)); border-top: 1px solid var(--line); padding: 2rem 0; margin-top: 2rem; font-size: 1rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-text { color: var(--muted); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; color: var(--muted); }
@media (max-width: 600px) { .footer-right { align-items: flex-start; } }

.site-header.dark ~ .site-footer, body:has(.site-header.dark) .site-footer { color: rgba(255,255,255,.85); border-top-color: transparent; }
body:has(.site-header.dark) .site-footer .footer-text, body:has(.site-header.dark) .footer-right { color: rgba(255,255,255,.65); }
body:has(.site-header.dark) .site-footer a { color: #fff; }
@media (max-width: 720px) { .site-header.dark .nav-toggle { color: #fff; border-color: rgba(255,255,255,.3); } .brand .logo { height: 96px; } }

.map { margin: 1.8rem 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.page-body ul.hours { list-style: none; padding: 0; max-width: 360px; }

/* Contact form */
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem 1.6rem; margin: 2rem 0; scroll-margin-top: 100px; }
.contact-form h3 { margin: 0 0 1rem; }
.contact-form label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.contact-form label small { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: .35rem; padding: .65rem .75rem; font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.contact-form .button { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: .75rem 1.6rem; font: 600 1rem var(--sans); cursor: pointer; }
.contact-form .button:hover { filter: brightness(1.1); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: #fbe7e5; color: #7a1610; border-radius: 8px; padding: .6rem 1rem; margin-bottom: 1rem; font-size: 1rem; }
.form-errors ul { margin: 0; padding-left: 1.1rem; }
.contact-form.sent { border-left: 4px solid var(--accent); }
.contact-form.sent p { margin: 0; }
@media (prefers-color-scheme: dark) { .form-errors { background: #4a1f1c; color: #ffd9d5; } }

.site-nav a.nav-insta span { font-size: .85em; opacity: .8; }
