/* ==========================================================
   Studio Maypop — site styles
   Colors and fonts are set once here; change them in one place.
   ========================================================== */

:root {
  --ink: #111111;
  --muted: #4a4a4a;
  --line: #dddddd;
  --paper: #ffffff;
  --clay: #a4502f;        /* terracotta from the logo */
  --sage: #e6eee8;        /* light leaf green */
  --sage-line: #6b8576;
  --forest: #2f4a3e;      /* dark leaf green */
  --sand: #f1ece6;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 16px; z-index: 10;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  background: #fff;
}
.site-header__inner {
  max-width: 1400px; margin: 0 auto;
  padding: 14px 32px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.site-logo img { height: 104px; width: auto; }
.site-nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0 26px;
}
.site-nav a {
  text-decoration: none; font-size: 16px;
  padding: 12px 0; border-bottom: 1.5px solid transparent;
}
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.site-nav__ext { color: var(--muted); }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
}
.site-nav .icon-link { padding: 0; border: 0; }
.menu-toggle, .menu-button { display: none; }

@media (max-width: 820px) {
  .site-header__inner {
    flex-direction: row; flex-wrap: wrap; justify-content: space-between;
    padding: 10px 20px;
  }
  .site-logo img { height: 76px; }
  .menu-button {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 14px; border: 1.5px solid var(--ink);
    font-weight: 600; cursor: pointer;
  }
  .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    border-top: 1px solid var(--line); margin-top: 10px;
  }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-nav a[aria-current="page"] { font-weight: 600; border-bottom-color: var(--line); }
  .menu-toggle:checked ~ .site-nav { display: flex; }
  .menu-toggle:focus-visible + .menu-button { outline: 3px solid var(--clay); outline-offset: 3px; }
  .menu-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
}

.draft-banner {
  background: #fff3c4; color: #5a4300; text-align: center;
  padding: 10px 16px; font-weight: 600; font-size: 15px;
  border-bottom: 1px solid #e0c96a;
}

/* ---------- Layout ---------- */
main { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 48px; padding-right: 48px; }
@media (max-width: 720px) { .wrap { padding-left: 20px; padding-right: 20px; } }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 56px;
  align-items: start;
}
.split--center { align-items: center; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section--tight { padding-top: 48px; padding-bottom: 48px; }
.section--rule { border-top: 1px solid var(--ink); }
@media (max-width: 720px) { .section { padding-top: 64px; padding-bottom: 64px; } .split { gap: 36px; } }

.band { padding: 96px 0; }
.band--forest { background: var(--forest); color: #fff; }
.band--forest a { color: #fff; }
.band--sand { background: var(--sand); }
.band--sage { background: var(--sage); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--display); font-weight: 700;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clay);
}
.band--forest .eyebrow { color: #cfe0d5; }
.display {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase;
}
.h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1; text-transform: uppercase;
}
.h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 19px; line-height: 1.25; text-transform: uppercase;
}
.lede { font-size: 22px; line-height: 1.45; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.stack > * + * { margin-top: 20px; }
.stack-sm > * + * { margin-top: 8px; }

/* ---------- Buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink);
  font-family: inherit; font-size: 16px; cursor: pointer;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.band--forest .btn { border-color: #fff; color: #fff; }
.band--forest .btn:hover { background: #fff; color: var(--forest); }

/* ---------- Photos ---------- */
.photo { width: 100%; object-fit: cover; }
.photo--hero { height: 600px; }
@media (max-width: 720px) { .photo--hero { height: 440px; } }
.photo-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.photo-grid .photo { height: 360px; }
.photo-grid--feature > :first-child { grid-column: span 2; }
@media (max-width: 720px) { .photo-grid--feature > :first-child { grid-column: auto; } }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Placeholder for photos you haven't added yet */
.photo-slot {
  min-height: 360px; background: var(--sage);
  border: 1.5px dashed var(--sage-line);
  display: flex; align-items: flex-end; padding: 20px;
  font-weight: 600; font-size: 15px; color: var(--forest);
}
.photo-slot--warm { background: var(--sand); border-color: #a88a73; color: #5c4434; }

/* ---------- Facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.facts > div { padding: 28px 24px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts__label {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px;
}
@media (max-width: 720px) {
  .facts > div { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .facts > div:first-child { border-top: 0; }
}

/* ---------- Lists with rules ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li, .rows > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.rows > :first-child { border-top-color: var(--ink); }
.rows--stacked > li, .rows--stacked > div { display: block; }
.rows__num { font-family: var(--display); font-weight: 800; color: var(--clay); flex: 0 0 auto; }
.rows--numbered > li { justify-content: flex-start; gap: 20px; }

.callout {
  margin-top: 16px; padding: 20px 24px; background: var(--sage);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid; gap: 40px 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.card { border-top: 1px solid currentColor; padding-top: 20px; }
.band--forest .card { border-top-color: #8faf9f; }
.band--forest .card p { color: #e8f0ea; }

/* ---------- Map ---------- */
.map {
  width: 100%; min-height: 460px; height: 100%;
  border: 0; background: var(--sage);
}

/* ---------- Events ---------- */
.event {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  padding: 48px 0; border-top: 1px solid var(--line);
  align-items: start;
}
.event:first-child { border-top-color: var(--ink); }
.event img { width: 100%; height: auto; }
.event__date {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay);
}
@media (max-width: 720px) { .event { grid-template-columns: 1fr; gap: 20px; } }
.event--past img { filter: saturate(0.85); }

/* ---------- Artists ---------- */
.artist {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  padding: 48px 0; border-top: 1px solid var(--line);
  align-items: start;
}
.artist img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: auto; }
.artist--noimg { grid-template-columns: 1fr; }
@media (max-width: 720px) { .artist { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink); }
.site-footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 56px 32px 32px;
  display: grid; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  font-size: 15px;
}
.footer-signup { grid-column: span 2; }
@media (max-width: 720px) { .footer-signup { grid-column: auto; } .site-footer__inner { padding: 48px 20px 24px; } }
.site-footer h2 {
  font-family: var(--display); font-weight: 800; font-size: 18px;
  text-transform: uppercase; margin-bottom: 4px;
}
.site-footer__fine {
  max-width: var(--max); margin: 0 auto; padding: 16px 32px 40px;
  font-size: 13px; color: var(--muted);
}
.signup { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.signup__row { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.signup input[type="email"], .signup input[type="text"] {
  flex: 1 1 200px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--ink); font: inherit; border-radius: 0; background: #fff;
}
.signup .signup__zip { flex: 0 1 140px; }
.signup__interests { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.signup__interests legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.signup__interests label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.signup__interests input { width: 18px; height: 18px; accent-color: var(--forest); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Gifts ---------- */
.tiles {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.tile .photo, .tile .photo-slot { height: 280px; min-height: 280px; }
.tile h3 { margin-top: 14px; }
.tile p { margin-top: 4px; }
.tag {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  padding: 2px 10px; border: 1px solid currentColor; border-radius: 99px; margin-left: 6px;
  vertical-align: middle; text-transform: none; font-family: var(--body);
}

/* ---------- Posts ---------- */
.post-list { display: grid; gap: 0; }
.post-card {
  display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 32px;
  padding: 32px 0; border-top: 1px solid var(--line); align-items: start; text-decoration: none;
}
.post-card:first-child { border-top-color: var(--ink); }
.post-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.post-card:hover h3 { text-decoration: underline; }
@media (max-width: 720px) { .post-card { grid-template-columns: 1fr; gap: 16px; } }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; margin-top: 40px; }
.prose ul { padding-left: 20px; }

/* ---------- Newsletter pop-up ---------- */
.nl-popup {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  width: min(360px, calc(100vw - 40px));
  background: #fff; border: 1px solid var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  padding: 22px 22px 20px;
  animation: nl-up 0.35s ease-out;
}
.nl-popup[hidden] { display: none; }
.nl-popup__title { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; margin-bottom: 4px; padding-right: 32px; }
.nl-popup__close {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.nl-popup__form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nl-popup__form input[type="email"] {
  flex: 1 1 160px; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--ink); font: inherit; border-radius: 0;
}
@keyframes nl-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nl-popup { animation: none; } }

/* Artist names that link out: same look as plain headings */
a.name-link { color: inherit; text-decoration: none; }
a.name-link:hover { color: var(--clay); }

/* Home event cards */
.card-date { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; color: #cfe0d5; }

/* Past events: compact */
.event--past { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 20px 0; }
.event--past .stack > * + * { margin-top: 6px; }
.event--past h3 { font-size: 20px !important; }
.event--past p { font-size: 15px; line-height: 1.5; }
@media (max-width: 720px) { .event--past { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; } }

/* Slideshow */
.slideshow { position: relative; height: 600px; overflow: hidden; background: var(--sand); }
@media (max-width: 720px) { .slideshow { height: 460px; } }
.slideshow__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.slideshow__slide.is-active { opacity: 1; }
.slideshow__toggle {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(255,255,255,0.85); color: var(--ink); cursor: pointer;
}
.slideshow__toggle .icon-play { display: none; }
.slideshow.is-paused .icon-play { display: block; }
.slideshow.is-paused .icon-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .slideshow__slide { transition: none; } }
