:root {
  --bg: #faf8f4;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #c44536;
  --rule: #e8e4dc;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
a:hover { border-bottom-color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

header.site {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; }
header.site .brand {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .02em;
  border: none;
}
header.site nav a {
  margin-left: 28px;
  font-size: .95rem;
  color: var(--muted);
}
header.site nav a:hover, header.site nav a.active { color: var(--ink); }

footer.site {
  border-top: 1px solid var(--rule);
  padding: 40px 0;
  margin-top: 80px;
  font-size: .9rem;
  color: var(--muted);
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--ink);
}
.btn:hover { background: var(--bg); color: var(--ink); border-bottom-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

/* Sections */
section { padding: 60px 0; }
section h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
section .section-intro {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* Featured grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Wider featured section — breaks out of the 1200px wrap on large screens */
.featured-wrap {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 24px;
}
/* Featured: explicit column counts so the grid only ever wraps to 6 / 3 / 2 / 1.
   Never 4 + 2 or 5 + 1 — that asymmetric break is what looks unfinished. */
.grid--featured {
  grid-template-columns: 1fr;       /* phone: 1 col */
  gap: 20px;
}
@media (min-width: 720px) {
  .grid--featured { grid-template-columns: repeat(2, 1fr); }   /* small tablet: 2 cols → 2x3 */
}
@media (min-width: 1024px) {
  .grid--featured { grid-template-columns: repeat(3, 1fr); }   /* laptop: 3 cols → 3x2 */
}
@media (min-width: 1400px) {
  .grid--featured { grid-template-columns: repeat(6, 1fr); }   /* desktop: 6 cols → 6x1 */
}
.card {
  background: white;
  overflow: hidden;
  transition: transform .2s;
}
.card:hover { transform: translateY(-2px); }
.card img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}
.card .meta {
  padding: 16px;
  border-top: 1px solid var(--rule);
}
.card .meta h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.card .meta p {
  font-size: .85rem;
  color: var(--muted);
}

/* Three paths */
.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.path {
  border: 1px solid var(--rule);
  padding: 32px;
  background: white;
}
.path h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.path p { color: var(--muted); margin-bottom: 20px; }
.path .price { color: var(--ink); font-weight: 600; }
.path .soon {
  display: inline-block;
  background: var(--rule);
  color: var(--muted);
  padding: 4px 10px;
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* About / prose */
.prose { max-width: 720px; margin: 0 auto; font-size: 1.1rem; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { margin-top: 2em; margin-bottom: .5em; }

/* Gallery filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--rule);
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: .85rem;
  color: var(--muted);
  transition: all .15s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox__stage {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  overflow: hidden;
}
.lightbox__stage.is-zoomed { cursor: zoom-out; overflow: auto; }
.lightbox__stage img {
  max-height: 88vh;
  max-width: 92vw;
  transition: transform .25s ease;
}
.lightbox__stage.is-zoomed img {
  transform: scale(1.6);
  transform-origin: center;
}
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 0;
  font-family: inherit;
}
.lightbox__btn:hover { background: rgba(0,0,0,.85); border-color: #fff; }
.lightbox__btn--prev { left: 16px; }
.lightbox__btn--next { right: 16px; }
.lightbox__toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}
.lightbox__icon {
  background: rgba(0,0,0,.5);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__icon:hover { background: rgba(0,0,0,.85); border-color: #fff; }
.lightbox__caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  letter-spacing: .03em;
  text-align: center;
  max-width: 90vw;
  pointer-events: none;
}
.lightbox__toast {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translate(-50%, 8px);
  background: rgba(255,255,255,.95);
  color: var(--ink);
  padding: 8px 14px;
  font-size: .85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.lightbox__toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .lightbox { padding: 8px; }
  .lightbox__btn { width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox__btn--prev { left: 6px; }
  .lightbox__btn--next { right: 6px; }
  .lightbox__toolbar { top: 8px; right: 8px; }
}

/* Contact form */
form.contact {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
form.contact label {
  display: block;
  font-size: .9rem;
  margin-bottom: 4px;
  color: var(--muted);
}
form.contact input, form.contact textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: white;
  font-family: inherit;
  font-size: 1rem;
}
form.contact textarea { min-height: 140px; resize: vertical; }

/* Mobile */
@media (max-width: 640px) {
  header.site nav a { margin-left: 16px; font-size: .85rem; }
  .hero { padding: 60px 0 40px; }
  section { padding: 40px 0; }
}

/* Consent banner — rendered by js/analytics.js until the visitor accepts/declines. */
.jm-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  font-size: .9rem;
  line-height: 1.4;
}
.jm-consent__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.jm-consent__msg { flex: 1 1 320px; margin: 0; }
.jm-consent__msg a { color: var(--bg); border-bottom: 1px solid rgba(250,248,244,.5); }
.jm-consent__msg a:hover { border-bottom-color: var(--bg); }
.jm-consent__buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.jm-consent__btn {
  padding: 8px 18px;
  font-family: inherit;
  font-size: .9rem;
  cursor: pointer;
  border: 1px solid var(--bg);
  background: var(--bg);
  color: var(--ink);
}
.jm-consent__btn--ghost { background: transparent; color: var(--bg); }
.jm-consent__btn--ghost:hover { background: var(--bg); color: var(--ink); }
.jm-consent__btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.jm-consent__btn--primary:hover { filter: brightness(1.08); }

@media (max-width: 640px) {
  .jm-consent { left: 8px; right: 8px; bottom: 8px; }
  .jm-consent__inner { padding: 12px 14px; }
  .jm-consent__buttons { width: 100%; }
  .jm-consent__btn { flex: 1 1 auto; }
}

/* Contest mode — vote banner. Inactive unless js/contest-banner.js sets BANNER_ENABLED=true. */
.vote-banner {
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.3;
  position: sticky;
  top: 0;
  z-index: 20;
}
.vote-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.vote-banner__msg { flex: 1 1 auto; }
.vote-banner__cta {
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.55);
  white-space: nowrap;
}
.vote-banner__cta:hover { border-bottom-color: #fff; }
.vote-banner__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  opacity: .8;
}
.vote-banner__close:hover { opacity: 1; }

/* When contest-mode is active, slide the existing sticky header below the banner. */
body.contest-mode header.site { top: 48px; }

@media (max-width: 640px) {
  .vote-banner { font-size: .85rem; }
  .vote-banner .wrap { padding-top: 10px; padding-bottom: 10px; }
  body.contest-mode header.site { top: 64px; }
}
