/* =========================================================
   Ceramic Friends — styles.css
   Palette pulled from the hand-drawn logo: warm cream ground,
   deep brick-maroon line work, a whisper of stoneware blue.
   ========================================================= */

:root {
  --cream:        #E7E4DC;   /* page ground, hero, markets */
  --parchment:    #EFECE3;   /* artists section ground      */
  --card:         #F7F4EE;   /* card surfaces               */
  --ink:          #2B211D;   /* body text / footer ground   */
  --maroon:       #661414;   /* brand line / headings       */
  --maroon-deep:  #430D0D;   /* about section ground        */
  --clay:         #8E5452;   /* secondary accent / borders  */
  --glaze:        #7C93A0;   /* sparing glaze-blue accent   */
  --ember:        #B5541F;   /* dark orange accent          */
  --cream-soft:   rgba(231,228,220,0.85);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand:    'Caveat', cursive;

  --card-radius: 42px 16px 38px 14px / 16px 40px 12px 34px;
  --pill-radius: 60px 18px 60px 18px / 22px 60px 22px 60px;

  --wrap: 1120px;
}

/* ---------- reset & base ---------- */
* { box-sizing: border-box; }

.construction-banner {
  background: var(--maroon);
  color: var(--cream);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  padding: 0.65rem 1rem;
}
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--maroon);
  margin: 0 0 0.4em;
  line-height: 1.12;
  font-weight: 600;
}

p { margin: 0 0 1em; }

a {
  color: inherit;
  text-decoration: none;
}

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

ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

:focus-visible {
  outline: 3px solid var(--glaze);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ember);
  margin: 0 0 0.15em;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.eyebrow-light { color: var(--glaze); }

.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.title-light { color: var(--cream); }

.section-lede {
  max-width: 56ch;
  color: #4a3d36;
  font-size: 1.05rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75em 1.5em;
  border-radius: var(--pill-radius);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px) rotate(-0.5deg); }

.btn-primary { background: var(--maroon); color: var(--cream); }
.btn-primary:hover { background: var(--maroon-deep); }

.btn-ghost { border-color: var(--maroon); color: var(--maroon); }
.btn-ghost:hover { background: var(--maroon); color: var(--cream); }

.btn-outline {
  border-color: var(--clay);
  color: var(--maroon);
  font-size: 0.88rem;
  padding: 0.55em 1.25em;
  flex-shrink: 0;
}
.btn-outline:hover { background: var(--clay); color: var(--card); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream-soft);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(102,20,20,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-mark { height: 46px; width: auto; }

.site-nav { display: flex; gap: 2rem; }
.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--maroon);
  position: relative;
  padding-bottom: 4px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--glaze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  border-radius: 4px;
}
.site-nav a:hover::after { transform: scaleX(1); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 7rem 0 5.5rem;
  overflow: hidden;
  text-align: center;
}

.hero-wheel {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  animation: spin 90s linear infinite;
  z-index: 0;
}
.hero-wheel svg { width: 100%; height: 100%; fill: none; stroke: var(--maroon); stroke-width: 1.2; opacity: 0.35; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-inner { position: relative; z-index: 1; }

.hero-logo {
  width: 230px;
  max-width: 46%;
  margin: 0 auto 1.6rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.01em;
}

.hero-sub {
  max-width: 46ch;
  margin: 1.2rem auto 1.8rem;
  font-size: 1.05rem;
  color: #4a3d36;
}

.hero-tagline {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--clay);
  max-width: 34ch;
  margin: 0.4em auto 1.6em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 30px;
  z-index: 1;
}
.scroll-cue svg { width: 100%; height: 100%; fill: none; stroke: var(--maroon); stroke-width: 3; stroke-linecap: round; }

/* ============ RIM DIVIDERS ============ */
.rim-divider { width: 100%; line-height: 0; }
.rim-divider svg { display: block; width: 100%; height: 56px; }

.rim-hero-about     { background: var(--cream); }
.rim-hero-about path      { fill: var(--maroon-deep); }

.rim-about-artists  { background: var(--maroon-deep); }
.rim-about-artists path   { fill: var(--parchment); }

.rim-artists-markets { background: var(--parchment); }
.rim-artists-markets path { fill: var(--cream); }

.rim-quotes-footer  { background: var(--cream); }
.rim-quotes-footer path   { fill: var(--ink); }

/* ============ ARTISTS ============ */
.artists { background: var(--parchment); padding: 4rem 0; }

.artist-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.artist-card {
  background: var(--card);
  border-radius: var(--card-radius);
  padding: 2.2rem 2.4rem;
  border: 1.5px solid rgba(102,20,20,0.14);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.artist-card:hover {
  transform: translateY(-4px) rotate(-0.2deg);
  box-shadow: 0 14px 28px rgba(67,13,13,0.14);
}

.artist-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.avatar {
  width: 58px; height: 58px;
  border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
  border: 2.5px solid var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--maroon);
  transform: rotate(var(--avatar-rotate, 0deg));
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-card h3 { font-size: 1.3rem; margin-bottom: 0.3em; }
.artist-bio { font-size: 0.96rem; color: #4a3d36; margin: 0 0 1.4rem; }
.bio-pending { font-style: italic; color: var(--clay); }

.artist-facts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(102,20,20,0.22);
}

.artist-facts dt {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--clay);
  margin: 0 0 0.1em;
  line-height: 1.1;
}
.artist-facts dd {
  margin: 0;
  font-size: 0.92rem;
  color: #4a3d36;
  line-height: 1.4;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--ember);
  opacity: 0.92;
  padding: 0.3em 0.85em;
  border-radius: var(--pill-radius);
  margin-top: 0.3em;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.55em;
}
.ig-link {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clay);
  transition: color 0.15s ease;
  width: fit-content;
}
.ig-link:hover { color: var(--maroon); }
.ig-link svg { width: 15px; height: 15px; flex-shrink: 0; }

.gallery-subheader {
  margin: 1.6rem 0 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(102,20,20,0.22);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--clay);
}

.artist-gallery {
  margin-top: 0;
}

.gallery-frame {
  width: 100%;
  aspect-ratio: 2.4 / 1;
  border-radius: 26px 10px 22px 10px / 10px 22px 10px 26px;
  overflow: hidden;
  background: rgba(102,20,20,0.06);
  border: 1.5px solid rgba(102,20,20,0.14);
  cursor: zoom-in;
}
.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.8rem;
}
.gallery-prev, .gallery-next {
  background: none;
  border: 1.5px solid var(--clay);
  color: var(--maroon);
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.gallery-prev:hover, .gallery-next:hover { background: var(--clay); color: #fff; }

.gallery-dots { display: flex; gap: 0.4rem; }
.gallery-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(102,20,20,0.25);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.gallery-dots .dot.active { background: var(--maroon); transform: scale(1.2); }

.gallery-empty {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 26px 10px 22px 10px / 10px 22px 10px 26px;
  border: 1.5px dashed rgba(102,20,20,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--clay);
  font-family: var(--font-hand);
  font-size: 1.3rem;
  text-align: center;
  padding: 1rem;
}
.gallery-empty span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(102,20,20,0.5);
  font-style: normal;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(43,33,29,0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem 1.5rem;
}
.lightbox.active { display: flex; }

.lightbox-main {
  max-width: 90vw;
  max-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-main img {
  max-width: 90vw;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 18px;
}

.lightbox-close {
  position: absolute;
  top: 1.4rem;
  right: 1.8rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(231,228,220,0.14);
  border: 1.5px solid rgba(231,228,220,0.4);
  color: var(--cream);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(231,228,220,0.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-strip {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  max-width: 92vw;
  margin-top: 1.4rem;
  padding: 0.3rem 0.2rem 0.6rem;
}
.lightbox-strip img {
  height: 62px;
  width: 84px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.lightbox-strip img.active { opacity: 1; border-color: var(--cream); }

/* ============ MARKETS ============ */
.markets { background: var(--cream); padding: 4rem 0; }

.market-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.market-item {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: var(--card);
  border: 1.5px solid rgba(102,20,20,0.14);
  border-radius: var(--card-radius);
  padding: 1.4rem 1.8rem;
}

.date-stub {
  flex-shrink: 0;
  width: 84px;
  text-align: center;
  border-right: 2px dashed rgba(102,20,20,0.3);
  padding-right: 1.2rem;
}
.date-stub .month {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--clay);
}
.date-stub .day {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--maroon);
  line-height: 1.1;
}
.date-stub .day-range {
  font-size: 1.3rem;
  white-space: nowrap;
}

.market-body { flex: 1; }
.market-body h3 { font-size: 1.25rem; margin-bottom: 0.15em; display: flex; align-items: center; gap: 0.6em; flex-wrap: wrap; }
.market-meta { font-size: 0.88rem; color: var(--clay); font-weight: 600; margin-bottom: 0.4em; }
.market-blurb { font-size: 0.95rem; color: #4a3d36; margin: 0; }

.status-pending {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clay);
  border: 1.5px dashed var(--clay);
  border-radius: var(--pill-radius);
  padding: 0.2em 0.7em;
}
.status-planned {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ember);
  border: 1.5px dashed var(--ember);
  border-radius: var(--pill-radius);
  padding: 0.2em 0.7em;
}

.market-note {
  margin-top: 2rem;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--clay);
}

.quotes { background: var(--cream); padding: 1.5rem 0 4rem; text-align: center; }
.quotes .eyebrow, .quotes .section-title, .quotes .section-lede { text-align: center; }
.quotes .section-lede { margin-left: auto; margin-right: auto; }

.quote-slider {
  max-width: 560px;
  margin: 2.4rem auto 0;
}
.quote-frame {
  background: var(--card);
  border: 1.5px solid rgba(102,20,20,0.16);
  border-radius: var(--card-radius);
  padding: 2.2rem 2rem 1.8rem;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.quote-mark-sm {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ember);
  margin: 0 0 0.1em;
  line-height: 0.6;
}
.quote-slide-text {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--maroon);
  margin: 0;
  max-width: 42ch;
}
.quote-slider .gallery-controls { margin-top: 1.1rem; }

/* ============ ABOUT ============ */
.about { background: var(--maroon-deep); color: var(--cream); padding: 4.5rem 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-copy p { color: rgba(231,228,220,0.9); }

.about-contact {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}
.ig-link-light { color: var(--cream); }
.ig-link-light:hover { color: var(--glaze); }
.contact-line {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(231,228,220,0.75);
}
.contact-line a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-line a:hover { color: var(--glaze); }

.about-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 5px solid rgba(231,228,220,0.9);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: rgba(231,228,220,0.75); padding: 2.6rem 0; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand { display: flex; flex-direction: column; }
.footer-mark { font-family: var(--font-display); font-weight: 600; color: var(--cream); font-size: 1.1rem; }
.footer-tagline { font-family: var(--font-hand); font-size: 1.1rem; color: var(--glaze); }

.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a:hover { color: var(--cream); }

.footer-copy { width: 100%; font-size: 0.82rem; margin: 1.4rem 0 0; opacity: 0.6; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .artist-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 1.2rem; }
  .brand-mark { height: 36px; }
  .hero-logo { width: 300px; }
}

@media (max-width: 560px) {
  .hero { padding: 5rem 0 4rem; }
  .hero-title-break { display: none; }
  .market-item { flex-wrap: wrap; }
  .date-stub { border-right: none; border-bottom: 2px dashed rgba(102,20,20,0.3); padding-right: 0; padding-bottom: 0.6rem; width: auto; }
  .btn-outline { width: 100%; text-align: center; }
}
