:root {
  --bg: #ffffff;
  --ink: #1d1a16;
  --muted: #6b6259;
  --accent: #6a3a1c;
  --rule: #e7e0d3;
  --soft: #faf6ef;
  --max: 1160px;
  --gutter: 1.5rem;
}

* { box-sizing: border-box; }
html { color-scheme: light; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.site-header {
  padding: 2.5rem 0 1rem;
  text-align: center;
}
.site-header .brand img {
  margin: 0 auto;
  width: 240px;
  height: auto;
}
.site-header .ig-top {
  font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  transition: color 0.15s;
}
.site-header .ig-top .ig-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.site-header .ig-top:hover { color: var(--accent); }

.site-nav {
  margin-top: 1.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0;
}
.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.25rem;
}
.site-nav a {
  font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- main ---------- */
main { padding: 3rem 0 2rem; }

.page-title {
  font-family: Georgia, ui-serif, serif;
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
  text-align: center;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
}
.lede-loose { margin-top: 2.5rem; }

/* ---------- next-market slim bar (home) ---------- */
.next-market-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 30px;
  padding: 0.4rem 1rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: background 0.15s;
}
.next-market-bar:hover { background: var(--accent); color: #fff; }
.next-market-bar::after {
  content: "→";
  display: inline-block;
  margin-left: 0.75em;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.18s ease-out;
}
.next-market-bar:hover::after { transform: translateX(4px); }
.next-market-bar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.next-market-bar:hover .next-market-bar-text {
  text-decoration-color: rgba(255, 255, 255, 0.85);
}
.next-market-bar-text strong {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  text-decoration: none;
}
.next-market-bar-sep {
  margin: 0 0.55em;
  opacity: 0.45;
  text-decoration: none;
}

.section { margin: 4rem 0; }
.section h2 {
  font-family: Georgia, ui-serif, serif;
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
  text-align: center;
}

/* ---------- about prose ---------- */
.about p {
  margin: 1rem 0;
}

/* ---------- single hero photo (home top) ---------- */
.hero-photo {
  margin: 0 auto 3rem;
  max-width: 980px;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ---------- photo pairs / hero shots ---------- */
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}
.photo-pair figure { margin: 0; }
.photo-pair img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.photo-pair figcaption {
  font-family: Georgia, ui-serif, serif;
  font-style: italic;
  text-align: center;
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  .photo-pair { grid-template-columns: 1fr; }
}

/* ---------- quote ---------- */
.quote {
  text-align: center;
  margin: 5rem auto;
  max-width: 700px;
  font-family: Georgia, ui-serif, serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote cite {
  display: block;
  font-style: normal;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.25rem;
}

/* ---------- Instagram grid ---------- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.ig-grid a { display: block; overflow: hidden; }
.ig-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  transition: opacity 0.2s;
}
.ig-grid a:hover img { opacity: 0.85; }
.ig-fallback {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--soft);
  border: 1px dashed var(--rule);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.ig-fallback:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 800px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- product cards (pickles) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}
.card .card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 1rem;
  background: var(--soft);
}
.card .card-img-missing {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
  background: var(--soft);
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}
.card h3 {
  font-family: Georgia, ui-serif, serif;
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}
.card .tag {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.card p { margin: 0; color: var(--ink); font-size: 0.97rem; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}
.gallery img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; cursor: zoom-in; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } }

/* ---------- jams list ---------- */
.jam-list {
  columns: 2;
  column-gap: 3rem;
  padding: 0;
  list-style: none;
  max-width: 760px;
  margin: 2rem auto;
  font-family: Georgia, ui-serif, serif;
}
.jam-list li {
  break-inside: avoid;
  padding: 0.45rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 1rem;
}
@media (max-width: 560px) { .jam-list { columns: 1; } }

/* ---------- events ---------- */
.event {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.event-date {
  text-align: center;
  font-family: system-ui, sans-serif;
  padding: 0.5rem 0;
  background: var(--soft);
  border-radius: 4px;
  align-self: start;
}
.event-date .month {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}
.event-date .day { display: block; font-size: 2.3rem; line-height: 1; margin: 0.15rem 0; font-weight: 300; }
.event-date .year { display: block; color: var(--muted); font-size: 0.78rem; }
.event h3 { font-family: Georgia, ui-serif, serif; font-weight: 400; margin: 0 0 0.35rem; font-size: 1.25rem; }
.event .when { color: var(--muted); font-size: 0.95rem; font-family: system-ui, sans-serif; }
.event .where { margin-top: 0.4rem; }
.event .notes { margin-top: 0.5rem; font-style: italic; color: var(--muted); font-size: 0.95rem; }
.event-past { opacity: 0.6; }

.event-empty {
  background: var(--soft);
  border: 1px dashed var(--rule);
  padding: 2rem;
  text-align: center;
  border-radius: 6px;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .event { grid-template-columns: 78px 1fr; gap: 1rem; }
  .event-date .day { font-size: 1.85rem; }
}

/* ---------- contact ---------- */
.contact-section { margin: 0 auto; }

.contact-section .lede { margin: 0 auto 2.5rem; max-width: 56ch; }

.contact-form {
  display: grid;
  gap: 1.15rem;
  text-align: left;
  margin: 0 auto;
  max-width: 560px;
}
.contact-form .field { display: block; }
.contact-form label {
  display: block;
  font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-family: Georgia, ui-serif, serif;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cdc3b3;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b8ada0;
  font-style: italic;
}
.contact-form textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.55;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(106, 58, 28, 0.15);
}
.contact-form .honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.contact-form .form-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}
.contact-form button {
  font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 2.25rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.contact-form button:hover { background: var(--accent); }
.contact-form button:disabled { opacity: 0.6; cursor: wait; }

.form-banner {
  max-width: 560px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  text-align: center;
}
.form-banner.ok { background: #eef6ed; color: #1f5a2c; border: 1px solid #c6e2c6; }
.form-banner.err { background: #fbecea; color: #7a2620; border: 1px solid #e7c1bc; }

.contact-meta {
  margin: 4rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.contact-meta dl {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.25rem 3rem;
  margin: 0 0 2rem;
}
.contact-meta dl > div { min-width: 0; }
.contact-meta dt {
  font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.contact-meta dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}
.contact-meta dd a { color: var(--accent); }
.contact-tag-prompt {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.55;
}

.contact-photo {
  margin: 4rem auto 0;
  max-width: 520px;
}
.contact-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .contact-meta { margin-top: 3rem; padding-top: 2rem; }
  .contact-meta dl { gap: 1.5rem 2rem; }
  .contact-photo { margin-top: 3rem; }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
  margin-top: 5rem;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  text-align: center;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .row + .row { margin-top: 0.5rem; }

/* ---------- responsive type ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .page-title { font-size: 1.85rem; }
  .section h2 { font-size: 1.35rem; }
  .quote { font-size: 1.2rem; margin: 3rem auto; }
  .site-header { padding-top: 1.5rem; }
  .site-header .brand img { width: 180px; }
  .site-nav ul { gap: 1.25rem; }
  .site-nav a { font-size: 0.74rem; letter-spacing: 0.14em; }
  main { padding: 1.5rem 0 1rem; }
  .section { margin: 2.5rem 0; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-close:hover,
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover { background: rgba(255,255,255,0.25); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
