/* Shop54 Collective — global styles.
   Every value comes from "Shop54 Collective - Website Build Guide" (Nov 19, 2026). */

:root {
  /* Colors */
  --cream: #F4EEE4;
  --sand: #EADFCF;
  --photo: #D9CAB3;
  --ink: #1E1813;
  --warm-black: #171411;
  --muted: #5E5348;
  --body-soft: #3D342C;
  --green: #1D5B3C;
  --green-dark: #174A31;
  --crimson: #9B1C24;
  --gold: #C9962B;
  --gold-on-dark: #D9A93F;
  --white: #FFFFFF;
  --card: #FFFDF9;
  --rule: rgba(30, 24, 19, .18);
  --rule-header: rgba(30, 24, 19, .12);

  /* Type */
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;

  /* Layout */
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(72px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

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

a { color: var(--ink); }
a:hover { color: var(--green); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--cream); }

h1, h2, h3, p, ul, ol { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 12px 20px;
  border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--cream); }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 7vw, 104px);
  line-height: .95;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h1--xl { font-size: clamp(56px, 8vw, 124px); line-height: .92; }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
}
.h2--lg { font-size: clamp(44px, 5.4vw, 80px); }
.h2--md { font-size: clamp(36px, 4.4vw, 60px); }
.h2--card { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05; }

.h1 em, .h2 em { font-style: italic; color: var(--green); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow--sm { font-size: 12px; }

.lede { max-width: 28em; color: var(--body-soft); text-wrap: pretty; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn--lg { padding: 18px 32px; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); }
.btn--secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 15px 27px; }
.btn--secondary:hover { background: rgba(30, 24, 19, .08); color: var(--ink); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: #DCD6CD; color: var(--ink); }

/* ---------- Stripe, header, menu ---------- */

.stripe { display: flex; height: 6px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--crimson); }
.stripe span:nth-child(2) { background: var(--warm-black); }
.stripe span:nth-child(3) { background: var(--green); }

.site-header { border-bottom: 1px solid var(--rule-header); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__word {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

/* Logo: star ring from the sprite + live "54" / "COLLECTIVE" set in the brand fonts */
.logo { flex: none; overflow: visible; }
.logo__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  fill: currentColor;
}
.logo__label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3.6px;
  fill: currentColor;
}

.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; }
.nav a[aria-current="page"]:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.nav .btn { padding: 12px 24px; font-size: 15px; }
.nav .btn[aria-current="page"] { outline: 1px solid var(--green); outline-offset: 3px; }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(30, 24, 19, .25);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__top { width: 100%; display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.menu__links {
  list-style: none;
  padding: 24px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu__links a:not(.btn) {
  display: block;
  padding-block: 12px;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.menu__links a[aria-current="page"] { color: var(--green); font-style: italic; }
.menu__links li:last-child { margin-top: 24px; }

@media (max-width: 820px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

body.menu-open { overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule-header); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: 48px;
  font-size: 15px;
}
.site-footer .brand { gap: 10px; }
.site-footer .brand__word { font-size: 12px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer__links a { text-decoration: none; }
.site-footer__copy { color: var(--muted); }

/* ---------- Photos (placeholders until real photos arrive) ---------- */

.photo {
  position: relative;
  background-color: var(--photo);
  background-image: repeating-linear-gradient(135deg, rgba(30, 24, 19, .06) 0 1px, transparent 1px 12px);
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-size: 12px;
  letter-spacing: .08em;
  color: #4A3F35;
}

/* ---------- Home ---------- */

.hero-photo { height: clamp(280px, 36vw, 520px); }
.hero-photo .photo__label { left: var(--gutter); bottom: 20px; }

.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 56px;
  padding-block: clamp(40px, 5vw, 64px);
}
.intro__logo { flex: none; }
.intro__mission {
  flex: 1 1 380px;
  min-width: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  text-wrap: balance;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.next-band { background: var(--crimson); color: var(--white); }
.next-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: clamp(40px, 5vw, 56px);
}
.next-band__text { display: flex; flex-direction: column; gap: 4px; }
.next-band__title {
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
}

.section { padding-block: var(--section); }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }

.tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  border-top: 1px solid var(--ink);
}
.track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid var(--rule);
}
.track .eyebrow { color: var(--muted); }
.track__pitch {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
}
.track a { font-weight: 600; font-size: 16px; text-underline-offset: 5px; margin-top: auto; }

/* ---------- Exhibits ---------- */

.next-popup {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: clamp(40px, 5vw, 80px);
  padding-block: clamp(48px, 6vw, 88px);
}
.next-popup__text {
  flex: 1 1 500px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}
.next-popup__text .eyebrow { color: var(--crimson); }
.next-popup__text .h1 em { display: block; }
.next-popup__details { display: flex; flex-direction: column; gap: 6px; font-size: 19px; }
.next-popup__details .muted { color: var(--muted); }
.next-popup__text .btn { align-self: flex-start; }
.next-popup__photo { flex: 1 1 400px; min-width: 0; min-height: 480px; }
.next-popup__photo .photo__label { left: 20px; bottom: 20px; }

.calendar { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.calendar li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 32px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}
.calendar__date { flex: 0 0 240px; font-size: 16px; font-weight: 600; }
.calendar__city {
  flex: 1 1 280px;
  min-width: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
}
.calendar__type { flex: 0 0 120px; font-size: 14px; color: var(--muted); }
.note { font-size: 15px; color: var(--muted); }

.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
  padding-bottom: var(--section);
}

/* ---------- Page intro (Residents, Join) ---------- */

.page-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 80px;
  padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 64px);
}
.page-intro .h1 { flex: 1 1 480px; }
.page-intro__side {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* ---------- Residents ---------- */

.residents {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 24px;
  border-top: 1px solid var(--ink);
  padding-top: 40px;
  margin-bottom: clamp(72px, 9vw, 128px);
}
@media (max-width: 1100px) { .residents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .residents { grid-template-columns: 1fr; } }

.resident { display: flex; flex-direction: column; gap: 14px; }
.resident .photo__label { top: 16px; bottom: auto; font-size: 11px; }
.resident__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--cream);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.resident__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.resident__handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--muted);
}
.resident__handle svg { flex: none; }
.resident__country {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- Join ---------- */

.join-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  padding-bottom: clamp(72px, 9vw, 128px);
}
@media (max-width: 1030px) { .join-cards { grid-template-columns: 1fr; } }

.join-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: clamp(28px, 3.5vw, 48px);
  scroll-margin-top: 24px;
}
.join-card--light { background: var(--card); border: 1px solid rgba(30, 24, 19, .14); }
.join-card--light > header .eyebrow { color: var(--green); }
.join-card--dark { background: var(--ink); color: var(--cream); }
.join-card--dark .h2 em { color: var(--gold-on-dark); }
.join-card--dark > header .eyebrow,
.join-card--dark .join-card__h3 { color: #CFC3B2; }
.join-card--dark .lede { color: #DDD3C5; }
.join-card--dark a { color: var(--cream); }
.join-card > header { display: flex; flex-direction: column; gap: 14px; }

.join-card__block { display: flex; flex-direction: column; gap: 10px; }
.join-card__h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.join-card__block ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.fees { border-top: 1px solid var(--ink); }
.fees div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
}
.fees dt, .fees dd { margin: 0; }
.fees dd { font-weight: 600; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .field__label { font-size: 14px; font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(30, 24, 19, .3);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);
}
.field textarea { padding: 12px 14px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231E1813' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { font-size: 14px; font-weight: 600; color: var(--crimson); }
.field__error:empty { display: none; }
.field [aria-invalid="true"] { border-color: var(--crimson); border-width: 2px; }

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 16px;
  border: 1px dashed rgba(30, 24, 19, .4);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}
.dropzone.is-over { border-style: solid; border-color: var(--green); background: rgba(29, 91, 60, .06); }
.dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; min-height: 0; padding: 0;
}
.dropzone:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.dropzone__files { font-size: 14px; color: var(--ink); font-weight: 600; }
.dropzone__files:empty { display: none; }

.form .btn { align-self: flex-start; margin-top: 8px; }
.form__note { font-size: 14px; color: var(--muted); }

/* Honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-done { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; }
.form-done__title { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.form-done__preview { font-size: 13px; color: var(--muted); }

/* Dark card form overrides */
.join-card--dark .field input,
.join-card--dark .field select,
.join-card--dark .field textarea {
  border-color: rgba(244, 238, 228, .35);
  background-color: transparent;
  color: var(--cream);
}
.join-card--dark .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23F4EEE4' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}
.join-card--dark .field select option { color: var(--ink); background: var(--white); }
.join-card--dark .field textarea::placeholder { color: #A99D8E; }
.join-card--dark .field__hint { color: #CFC3B2; }
.join-card--dark .field__error { color: #F0A6A0; }
.join-card--dark .field [aria-invalid="true"] { border-color: #F0A6A0; }
.join-card--dark .dropzone { border-color: rgba(244, 238, 228, .45); color: #CFC3B2; }
.join-card--dark .dropzone__files { color: var(--cream); }
.join-card--dark .dropzone:focus-within { outline-color: var(--cream); }
.join-card--dark .form-done__preview { color: #CFC3B2; }

/* ---------- About ---------- */

.meaning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding-block: clamp(56px, 8vw, 112px);
}
.meaning__text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.meaning__text p { max-width: 30em; font-size: clamp(18px, 1.5vw, 20px); color: var(--body-soft); text-wrap: pretty; }
.meaning__photo {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
}
.meaning__photo .photo__label { left: 50%; bottom: 24px; transform: translateX(-50%); white-space: nowrap; }

.values-band { background: var(--sand); }
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
}
.value { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ink); padding-top: 24px; }
.value__word {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(36px, 3.4vw, 48px);
  line-height: 1;
}
.value__line { font-size: 19px; }
.value--create .value__word { color: var(--crimson); }
.value--shop .value__word { color: var(--warm-black); }
.value--gather .value__word { color: var(--green); }

.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-block: clamp(56px, 6vw, 88px);
}

/* ---------- 404 ---------- */
.not-found { padding-block: var(--section); display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Photo fills its frame whatever the frame's sizing method */
.photo img { position: absolute; inset: 0; }
