/* Syrup Village Archives — hand-built stylesheet
   Palette: parchment & ink over deep sea green, with bounty gold. */

:root {
  --parchment: #f6eeda;
  --parchment-deep: #efe1c2;
  --paper-card: #fffaf0;
  --ink: #2e2118;
  --ink-soft: #5a4632;
  --sea: #123c46;
  --sea-deep: #0c2b33;
  --gold: #b3862c;
  --gold-bright: #d9a441;
  --rust: #9c3a2b;
  --line: #d8c49a;
  --shadow: 0 10px 30px rgba(46, 33, 24, .14);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-size: 1.075rem;
  line-height: 1.65;
}

img { max-width: 100%; }

a { color: var(--sea); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--rust); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, .brand-name {
  font-family: "Cormorant Garamond", "Spectral", Georgia, serif;
  line-height: 1.12;
  margin: 0 0 .5em;
}

.kicker {
  font-family: "Spectral", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 .6rem;
}

/* ---------- header ---------- */
.site-head {
  background: var(--sea-deep);
  color: var(--parchment);
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--parchment); }
.brand:hover { color: var(--parchment); }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-name { font-size: 1.55rem; font-weight: 700; letter-spacing: .01em; }
.brand-sub { display: block; font-family: "Spectral", Georgia, serif; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-bright); }

.main-nav { margin-left: auto; display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.main-nav a {
  color: var(--parchment);
  text-decoration: none;
  font-size: .98rem;
  letter-spacing: .04em;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--gold-bright); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--gold-bright); color: var(--gold-bright); }
.main-nav a.social { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid rgba(246, 238, 218, .45); border-radius: 999px; padding: .28rem .8rem; }
.main-nav a.social:hover { border-color: var(--gold-bright); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(246, 238, 218, .5);
  border-radius: 8px;
  padding: .45rem .6rem;
  cursor: pointer;
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--parchment); margin: 4px 0; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: .6rem; padding: .6rem 0 .4rem; }
  .main-nav.open { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(217, 164, 65, .20), transparent 60%),
    linear-gradient(160deg, var(--sea) 0%, var(--sea-deep) 78%);
  color: var(--parchment);
  padding: 4.2rem 0 3.6rem;
  border-bottom: 4px solid var(--gold);
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 700; max-width: 16ch; }
.hero .lede { font-size: 1.22rem; max-width: 58ch; color: #efe6cf; }
.hero .kicker { color: var(--gold-bright); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 2.5rem; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 3px solid rgba(217, 164, 65, .65);
  box-shadow: var(--shadow);
  display: block;
}
.hero-figure figcaption { font-size: .9rem; color: #d9cba6; margin-top: .55rem; font-style: italic; }

.record-card {
  background: var(--paper-card);
  color: var(--ink);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem;
  text-align: center;
  position: relative;
}
.record-card::before {
  content: "★";
  position: absolute;
  top: -.85rem; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff8e7;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1rem;
}
.record-card .holder { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.9rem; font-weight: 700; margin: .1rem 0; }
.record-card .count { font-family: "Cormorant Garamond", Georgia, serif; font-size: 3.1rem; font-weight: 700; color: var(--rust); line-height: 1; margin: .3rem 0 .1rem; }
.record-card .title { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; color: var(--ink-soft); }
.record-card p { margin: .8rem 0 0; font-size: .98rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
section.block { padding: 3.4rem 0; }
section.block.alt { background: var(--parchment-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.block h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; }
.section-head { max-width: 68ch; margin-bottom: 1.8rem; }

.btn {
  display: inline-block;
  background: var(--rust);
  color: #fff7e8;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .72rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--rust);
}
.btn:hover { background: #7f2d20; color: #fff7e8; border-color: #7f2d20; }
.btn.ghost { background: transparent; color: var(--sea); border-color: var(--sea); }
.btn.ghost:hover { background: var(--sea); color: var(--parchment); }

.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 980px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
.showcase-grid figure { margin: 0; }
.showcase-grid img {
  width: 100%; height: 230px; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}
.showcase-grid figcaption { font-size: .92rem; color: var(--ink-soft); margin-top: .5rem; }
.showcase-more { margin-top: 1.6rem; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin: 2.2rem 0; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  text-align: center;
  padding: 1.3rem .8rem 1.1rem;
}
.stat .num { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.6rem; font-weight: 700; color: var(--sea); line-height: 1; }
.stat .lbl { font-size: .9rem; color: var(--ink-soft); letter-spacing: .05em; text-transform: uppercase; margin-top: .45rem; }

/* ---------- prose ---------- */
.prose { max-width: 72ch; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: .4rem 0 .4rem 1.4rem;
  border-left: 4px solid var(--gold);
  font-size: 1.12rem;
}
.prose blockquote p { margin: 0 0 .9rem; }
.prose h3 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose li { margin-bottom: .55rem; }
.rule-list li { margin-bottom: .9rem; }

/* ---------- collection ---------- */
.coll-tools {
  position: sticky; top: 76px; z-index: 30;
  background: rgba(246, 238, 218, .96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  display: flex; gap: .8rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}
.coll-tools .chip {
  text-decoration: none;
  border: 1px solid var(--sea);
  color: var(--sea);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-size: .92rem;
  font-weight: 600;
}
.coll-tools .chip:hover { background: var(--sea); color: var(--parchment); }
.coll-tools .count { color: var(--ink-soft); font-size: .9rem; margin-left: auto; }
.coll-search { display: flex; align-items: center; gap: .5rem; }
.coll-search input {
  font: inherit; font-size: .95rem;
  padding: .42rem .8rem;
  border: 1px solid var(--ink-soft);
  border-radius: 999px;
  background: var(--paper-card);
  min-width: 210px;
}
.coll-section { padding: 2.2rem 0 1rem; scroll-margin-top: 170px; }
.coll-section h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.coll-section .intro { max-width: 70ch; color: var(--ink-soft); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.gallery figure {
  margin: 0;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(46, 33, 24, .08);
  display: flex; flex-direction: column;
}
.gallery button.thumb {
  all: unset;
  cursor: zoom-in;
  display: block;
}
.gallery button.thumb:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: -3px; }
.gallery img { width: 100%; height: 190px; object-fit: cover; display: block; background: #e9dcbc; }
.gallery figcaption { padding: .65rem .8rem .8rem; font-size: .9rem; line-height: 1.45; }
.gallery figcaption .cap-title { font-weight: 600; display: block; }
.gallery figcaption .cap-detail { color: var(--ink-soft); }
.serial-tag {
  display: inline-block;
  margin-top: .45rem;
  background: var(--sea);
  color: var(--parchment);
  border-radius: 6px;
  padding: .08rem .55rem;
  font-size: .8rem;
  letter-spacing: .08em;
  font-weight: 600;
}
.gallery .no-results { grid-column: 1 / -1; color: var(--ink-soft); font-style: italic; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 24, 28, .94);
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column;
  padding: 1.2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 76vh;
  border-radius: 10px;
  border: 2px solid rgba(217, 164, 65, .7);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
  background: #10191d;
}
.lightbox .lb-caption { color: var(--parchment); text-align: center; max-width: 70ch; margin-top: 1rem; font-size: 1rem; }
.lightbox .lb-caption .cap-title { font-weight: 700; display: block; font-size: 1.1rem; }
.lightbox .lb-caption .cap-detail { color: #d9cba6; }
.lightbox .lb-count { color: #b8a97f; font-size: .85rem; margin-top: .3rem; letter-spacing: .1em; }
.lb-btn {
  position: absolute;
  background: rgba(246, 238, 218, .12);
  color: var(--parchment);
  border: 1px solid rgba(246, 238, 218, .5);
  border-radius: 50%;
  width: 3rem; height: 3rem;
  font-size: 1.35rem;
  cursor: pointer;
  display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(217, 164, 65, .35); }
.lb-close { top: 1.1rem; right: 1.1rem; }
.lb-prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev { left: .4rem; } .lb-next { right: .4rem; } }

/* ---------- cards / contact ---------- */
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 820px) { .card-row { grid-template-columns: 1fr; } }
.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem;
}
.card h3 { font-size: 1.5rem; }
.mail-btn { font-size: 1.05rem; word-break: break-all; }
details.faq {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin-bottom: .9rem;
}
details.faq summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
details.faq p { margin: .6rem 0 .2rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-foot {
  background: var(--sea-deep);
  color: #d9cba6;
  border-top: 4px solid var(--gold);
  padding: 2.2rem 0;
  margin-top: 0;
  font-size: .95rem;
}
.site-foot .cols { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: space-between; }
.site-foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-foot a { color: var(--parchment); text-decoration: none; }
.site-foot a:hover { color: var(--gold-bright); }
.site-foot .fineprint { margin-top: 1.2rem; color: #a68f5f; font-size: .85rem; }

.page-head { padding: 3rem 0 1rem; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); font-weight: 700; }
.page-head .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #fff8e7; padding: .5rem 1rem; z-index: 200;
}
.skip-link:focus { left: .5rem; top: .5rem; }

:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
