/* Jain Community Marketplace.

   Mobile first: every rule outside a media query is the phone layout, and
   the min-width queries only add room for bigger screens.

   The shape is squarespace.com's, rebuilt by eye: tight, heavy headlines;
   solid pill buttons; flat, square cards with no shadow; full bleed dark
   and tinted bands to pace the page; a dark footer. The colour is royal
   purple, not Squarespace's black, which this site does not use: deep plum
   for text, purple for buttons and accents, dark purple for the bands.
   Nothing is downloaded: no webfonts, no icon set, every glyph here is
   inline SVG in the templates. */
:root {
  --ink: #24162f;        /* primary text: a plum so deep it reads as ink */
  --ink-70: #4a3f55;     /* secondary text */
  --ink-45: #6b6177;     /* meta text, placeholders */
  --ink-20: #e6e1ec;     /* hairlines */
  --ink-08: #f4f0f8;     /* tinted bands, panels, empty states */
  --field: #cbc3d4;      /* form field borders */
  --paper: #fff;
  --raised: #fff;

  /* royal purple: buttons, links, accents */
  --brand: #5b2a86;
  --brand-deep: #4a2170; /* hover */
  --brand-tint: #ece6f3; /* hover on white buttons */

  /* the dark bands and the footer */
  --night: #3b1f5c;
  --night-70: rgba(255,255,255,0.82); /* body text on the dark bands */
  --night-45: rgba(255,255,255,0.66); /* meta text on the dark bands */
  --night-20: rgba(255,255,255,0.18); /* hairlines on the dark bands */

  /* WhatsApp's green, darkened until white text on it passes AA */
  --whatsapp: #0d7a6c;
  --whatsapp-deep: #09594f;

  --error: #c4001a;
  --error-tint: #fdf2f3;

  --radius: 0;
  --pill: 980px;
  --pad: clamp(1rem, 5vw, 2.5rem);
  --header-h: 60px;
  --rule: 1px solid var(--ink-20);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2324162f' stroke-width='1.6'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; }
a {
  color: var(--brand);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
main { padding-bottom: 4rem; }
/* a page that ends on a dark band runs straight into the dark footer */
main:has(> .bleed:last-child) { padding-bottom: 0; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* full bleed bands. The background reaches the edges of the window while the
   content keeps to the column, and nothing widens the page. */
.bleed {
  background: var(--bleed);
  box-shadow: 0 0 0 100vmax var(--bleed);
  clip-path: inset(0 -100vmax);
}

/* type */
.serif { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
main h1.serif {
  font-size: clamp(2rem, 9vw, 3.5rem); line-height: 1.02; letter-spacing: -0.04em;
  margin: 0.35rem 0 1rem; max-width: 20ch; text-wrap: balance;
}
main h2.serif {
  font-size: clamp(1.5rem, 6vw, 2.25rem); line-height: 1.1;
  margin: 2.75rem 0 0.85rem; text-wrap: balance;
}
.saying {
  font-size: 1.125rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 0 1rem;
}
.lede { color: var(--ink-70); max-width: 60ch; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--ink-45); }
.section-eyebrow, .hero .eyebrow, .foot-cols .eyebrow, .coffee-body > .eyebrow:first-child {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---- header: white, sticky, a hairline under it ---- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: var(--rule);
}
header.site .bar { display: flex; align-items: center; gap: 0.75rem; height: var(--header-h); }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0;
  color: var(--ink); text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
/* the JCS badge, round */
.mark { height: 40px; width: 40px; display: block; flex: 0 0 auto; }
/* on a phone the last word sits under the rest, small and spaced out */
.wordmark-text {
  display: flex; flex-direction: column;
  font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
  white-space: nowrap;
}
.wordmark-text span {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-45); margin-top: 3px;
}

/* the inline nav is for wide screens; a phone gets the menu below */
nav.site { display: none; }

.menu { margin-left: auto; }

/* who is signed in: an initial in the header on a phone, a chip in the nav on a wide screen */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; line-height: 1;
}
.header-me {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none;
  box-shadow: 0 0 0 3px var(--ink-08);
}
.header-me:hover { text-decoration: none; background: var(--brand-deep); }
.header-me + .menu { margin-left: 0.35rem; }
.me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.me-greet { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-status { font-size: 11px; font-weight: 500; color: var(--ink-45); white-space: nowrap; }
.menu > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -11px;
}
.menu > summary::-webkit-details-marker { display: none; }
.burger { position: relative; display: block; width: 22px; height: 8px; }
.burger::before, .burger::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}
.burger::before { top: 0; }
.burger::after { top: 6px; }
.menu[open] .burger::before { top: 3px; transform: rotate(45deg); }
.menu[open] .burger::after { top: 3px; transform: rotate(-45deg); }
.menu-panel {
  display: flex; flex-direction: column;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: var(--rule);
  padding: 0.25rem var(--pad) 1.5rem;
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 24px 40px rgba(0,0,0,0.08);
}
.menu-panel a {
  display: block; padding: 0.8rem 0;
  font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; border-bottom: var(--rule);
}
.menu-panel a.active::after {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); margin-left: 0.6rem; vertical-align: middle;
}
.menu-panel a.cta {
  margin-top: 1.25rem; padding: 0.95rem 1rem; border: 0; border-radius: var(--pill);
  background: var(--brand); color: #fff; text-align: center;
  font-size: 1rem; font-weight: 500; letter-spacing: 0;
}
.menu-panel a.cta::after { content: none; }
/* in the menu the greeting leads, as a card */
.menu-panel a.me {
  order: -1; display: flex; align-items: center; gap: 0.85rem;
  margin: 0.75rem 0 0.5rem; padding: 0.9rem 1rem; border: 0;
  background: var(--ink-08); border-left: 3px solid var(--brand);
}
.menu-panel a.me::after { content: none; }
.menu-panel a.me .avatar { width: 44px; height: 44px; font-size: 18px; }
.menu-panel a.me .me-greet { font-size: 1.125rem; letter-spacing: -0.015em; }
.menu-panel a.me .me-status { font-size: 13px; margin-top: 0.2rem; }

/* a slim strip under the header, for members still in their open period */
.strip { margin: 0; background: var(--ink-08); border-bottom: var(--rule); font-size: 13px; color: var(--ink-70); }
.strip .wrap { display: block; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.strip strong { color: var(--brand); }

/* ---- the home page band: dark purple, full bleed, the lotus beside the copy ---- */
.band { --bleed: var(--night); color: #fff; padding: 3rem 0 2.5rem; }
.band :focus-visible { outline-color: #fff; }
.band-inner { display: grid; gap: 2.5rem; align-items: center; }

.hero h1 {
  font-size: clamp(2.375rem, 11vw, 4.5rem); font-weight: 600; line-height: 1;
  letter-spacing: -0.045em; color: #fff;
  margin: 0.75rem 0 1rem; max-width: 12ch; text-wrap: balance;
}
.hero .eyebrow { color: var(--night-45); margin: 0; }
.hero .saying {
  display: inline-block; color: #fff;
  padding-bottom: 0.3rem; border-bottom: 1px solid rgba(255,255,255,0.4);
}
.hero p.lede { color: var(--night-70); max-width: 40ch; margin: 0 0 1.75rem; }
/* stacked, full width buttons on a phone */
.hero-cta { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }

.band-art { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.band-art .apari { width: 100%; max-width: 280px; height: auto; display: block; }
.band-art figcaption { font-size: 12px; color: var(--night-45); text-align: center; }
/* the drawing was made for a light page: lift the ring and arrows off the
   dark band, and drop the white glow, which only greys out against it */
.band .apari .ring { stroke: #fff; }
.band .apari .glow { display: none; }
.band .apari .arrows { fill: #fff; }

/* the drawing moves: the things orbit (each kept upright), the lotus turns
   slowly the other way, and its petals fade between lotus pink and saffron */
.apari .orbit { transform-box: view-box; transform-origin: 200px 200px; animation: apari-turn 48s linear infinite; }
.apari .upright { transform-box: fill-box; transform-origin: center; animation: apari-turn 48s linear infinite reverse; }
.apari .bloom { transform-box: fill-box; transform-origin: center; animation: apari-turn 120s linear infinite reverse; }
@keyframes apari-turn { to { transform: rotate(360deg); } }
/* longhands, so the per stop animation-name below is not reset by a shorthand */
.apari stop[class] {
  animation-duration: 14s; animation-timing-function: ease-in-out;
  animation-iteration-count: infinite; animation-direction: alternate;
}
.apari .po1 { animation-name: po1; } .apari .po2 { animation-name: po2; } .apari .po3 { animation-name: po3; }
.apari .pi1 { animation-name: pi1; } .apari .pi2 { animation-name: pi2; } .apari .pi3 { animation-name: pi3; }
@keyframes po1 { to { stop-color: #e59a3c; } }
@keyframes po2 { to { stop-color: #f3c184; } }
@keyframes po3 { to { stop-color: #f9dcb2; } }
@keyframes pi1 { to { stop-color: #b94f16; } }
@keyframes pi2 { to { stop-color: #dd7c2c; } }
@keyframes pi3 { to { stop-color: #f4ad6c; } }
@media (prefers-reduced-motion: reduce) {
  .apari .orbit, .apari .upright, .apari .bloom, .apari stop[class] { animation: none; }
}

.chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 2.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--night-20);
}
.chips li {
  font-size: 12px; font-weight: 500; color: #fff;
  padding: 0.4rem 0.85rem; border-radius: var(--pill); border: 1px solid rgba(255,255,255,0.3);
}

/* ---- shared section furniture ---- */
.section { padding: 3rem 0; }
.section-eyebrow { color: var(--brand); margin: 0 0 0.5rem; }
.section-title {
  font-size: clamp(1.75rem, 7vw, 2.75rem); font-weight: 600; line-height: 1.05;
  letter-spacing: -0.035em; margin: 0 0 1.75rem; text-wrap: balance;
}
.steps-section { --bleed: var(--ink-08); }
.page-head { padding: 2rem 0 0.25rem; }
.page-head h1 {
  font-size: clamp(2rem, 9vw, 3.25rem); font-weight: 600; line-height: 1.02;
  letter-spacing: -0.04em; margin: 0.35rem 0 0.6rem; text-wrap: balance;
}
.page-head .lede { color: var(--ink-45); font-size: 14px; margin: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0 1rem; flex-wrap: wrap; }
.section-head .section-title { margin-bottom: 1rem; }
.section-head .btn.ghost { margin-bottom: 1rem; }
.section-note { font-size: 14px; color: var(--ink-45); margin: 0; text-align: center; }

/* a ruled divider with a caption set into it */
.thread {
  display: flex; align-items: center; gap: 0.9rem;
  margin: 2.25rem 0 0.9rem; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-45);
}
.thread::before, .thread::after { content: ""; flex: 1; height: 1px; background: var(--ink-20); }
.thread span { flex: 0 0 auto; }

/* ---- the JCS introduction on the home page ---- */
.org-about { display: grid; gap: 1.5rem; align-items: center; }
.org-about-logo { width: 100%; max-width: 200px; height: auto; display: block; }
.org-about p { color: var(--ink-70); max-width: 62ch; }
.org-about .section-title { margin-bottom: 1rem; }

/* ---- the three aparigraha cards: flat tint, a purple rule on top ---- */
.principles { display: grid; gap: 1rem; }
.principle { background: var(--ink-08); border-top: 2px solid var(--brand); padding: 1.5rem 1.4rem 1.6rem; }
.principle-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--brand);
  color: var(--brand); margin-bottom: 1.25rem;
}
.principle-icon svg { width: 22px; height: 22px; display: block; }
.principle h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.35rem; }
.principle p { font-size: 15px; color: var(--ink-70); margin: 0; }

/* ---- how it works: big light purple numerals over a rule ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.steps li { border-top: 1px solid var(--brand); padding-top: 1.25rem; }
.step-n {
  display: block; font-size: 2.5rem; font-weight: 300; line-height: 1;
  letter-spacing: -0.04em; margin-bottom: 1rem; color: var(--brand);
}
.step-n::before { content: "0"; }
.steps h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.35rem; }
.steps p { font-size: 15px; color: var(--ink-70); margin: 0; }

/* ---- buttons: solid purple pill, outline pill, and arrow text link ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; padding: 0.75rem 1.6rem;
  border: 1px solid var(--brand); border-radius: var(--pill);
  background: var(--brand); color: #fff;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); text-decoration: none; }
.btn.ghost {
  background: none; border-color: transparent; color: var(--brand);
  padding-left: 0; padding-right: 0;
}
.btn.ghost::after { content: "\2192"; }
.btn.ghost:hover { background: none; text-decoration: underline; text-underline-offset: 0.2em; }
.btn.small { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 14px; }
.btn.ghost.small { border-color: var(--field); padding: 0.45rem 1rem; }
.btn.ghost.small::after { content: none; }
.btn.ghost.small:hover { border-color: var(--brand); text-decoration: none; }
.detail .btn, table.plain .btn { margin: 0.25rem 0.4rem 0.25rem 0; }

/* on the dark bands the buttons turn over */
.band .btn, .coffee .btn { background: #fff; border-color: #fff; color: var(--brand); }
.band .btn:hover, .coffee .btn:hover { background: var(--brand-tint); border-color: var(--brand-tint); }
.band .btn.ghost, .band .btn.ghost:hover { background: none; border-color: transparent; color: #fff; }

/* ---- grid of listings: two up on a phone, like a shop ---- */
.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 0.75rem; margin: 0.5rem 0 1rem;
}
.card {
  position: relative; display: flex; flex-direction: column; gap: 0.35rem;
  color: var(--ink); text-decoration: none;
}
.card:hover { text-decoration: none; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 0.2em; }
.card .frames {
  position: relative; display: grid;
  aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 0.4rem;
}
.photo-count {
  position: absolute; right: 0.5rem; bottom: 0.5rem;
  padding: 0.15rem 0.55rem; border-radius: var(--pill);
  background: rgba(36,22,47,0.72); color: #fff; font-size: 11px; font-weight: 600;
}
.frame { overflow: hidden; background: var(--ink-08); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.card:hover .frame img { transform: scale(1.03); }
.frame.blank {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; color: var(--ink-45);
}
.frame.blank svg { width: 26px; height: 26px; }
.frame.blank span { font-size: 11px; font-weight: 500; }
.card h3 { font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
.card .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 0.5rem; }
.card .eyebrow { font-size: 12px; }
.card-cat { color: var(--ink); }
.price { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.tag {
  font-size: 11px; font-weight: 500; color: var(--ink-70); background: var(--ink-08);
  padding: 0.2rem 0.55rem; border-radius: var(--pill);
}
.sold { position: relative; }
.sold .frames { opacity: 0.55; }
.sold::after {
  content: "Sold"; position: absolute; top: 0.6rem; left: 0.6rem; z-index: 1;
  background: var(--brand); color: #fff; border-radius: var(--pill);
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem;
}

/* ---- filters: search on its own row on a phone ---- */
.filters { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; padding: 1.25rem 0 0.75rem; }
.filters input[type=search] { grid-column: 1 / -1; }
.filters input[type=search], .filters select {
  width: 100%; min-height: 48px; padding: 0.6rem 1.1rem;
  border: 1px solid var(--field); border-radius: var(--pill); background-color: var(--raised);
  font: inherit; font-size: 16px; color: var(--ink);
}
.filters input[type=search]:focus, .filters select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.filters .btn { min-height: 48px; }
.filters select, form.stack select {
  -webkit-appearance: none; appearance: none;
  background-image: var(--select-arrow); background-repeat: no-repeat;
  background-position: right 1rem center; background-size: 12px 8px;
  padding-right: 2.5rem;
}

/* category chips scroll sideways on a phone rather than wrapping into a wall */
.cats {
  display: flex; flex-wrap: nowrap; gap: 0.5rem;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 calc(var(--pad) * -1); padding: 0.25rem var(--pad) 1.5rem;
}
.cats::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; white-space: nowrap;
  min-height: 40px; padding: 0.45rem 1rem;
  font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  background: var(--raised); border: 1px solid var(--ink-20); border-radius: var(--pill);
  transition: border-color 0.15s ease;
}
a.chip:hover { border-color: var(--brand); text-decoration: none; }
.chip.on, a.chip.on:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---- detail, product page shape: photos edge to edge on a phone ---- */
.detail { display: grid; gap: 1.5rem; padding: 0 0 2.5rem; }
.gallery {
  display: grid; gap: 2px; grid-template-columns: 1fr 1fr;
  margin: 0 calc(var(--pad) * -1);
}
.gallery .frame { aspect-ratio: 1 / 1; }
.gallery .frame:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
/* two photos: the second one gets the full width too rather than half a row */
.gallery .frame:nth-child(2):last-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.detail h1 {
  font-size: clamp(1.75rem, 7vw, 2.75rem); font-weight: 600; line-height: 1.05;
  letter-spacing: -0.035em; margin: 0.4rem 0 0.6rem;
}
.detail .price { font-size: 1.375rem; }
.detail dl { margin: 1.5rem 0; }
.spec { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: var(--rule); font-size: 15px; }
.spec:first-child { border-top: var(--rule); }
.spec dt { color: var(--ink-45); }
.spec dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

/* contact the seller: one big WhatsApp button, the chat happens there */
.contact { margin-top: 1.5rem; }
.btn.whatsapp { width: 100%; min-height: 52px; background: var(--whatsapp); border-color: var(--whatsapp); font-size: 16px; }
.btn.whatsapp:hover { background: var(--whatsapp-deep); border-color: var(--whatsapp-deep); }
.btn.whatsapp svg { width: 22px; height: 22px; flex: 0 0 auto; }
.contact .sign-meta { margin-top: 0.75rem; }

/* ---- forms: square fields, 16px text so a phone never zooms in ---- */
form.stack { max-width: 560px; }
form.stack label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
/* :where keeps this selector light, so a field with its own class can restyle itself */
form.stack input:where(:not([type=checkbox]):not([type=radio]):not([type=hidden])),
form.stack select, form.stack textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  border: 1px solid var(--field); border-radius: var(--radius); background-color: var(--raised);
  font: inherit; font-size: 16px; color: var(--ink); margin-bottom: 1.25rem;
}
form.stack textarea { min-height: 8rem; }
form.stack input:focus, form.stack select:focus, form.stack textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand);
}
input[type=checkbox] { accent-color: var(--brand); width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
form.stack .check { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 1.25rem; }
form.stack .check label { font-weight: 400; font-size: 14px; color: var(--ink-70); margin: 0; }
form.stack .btn { width: 100%; }
.helptext, .errorlist { font-size: 13px; }
.helptext { color: var(--ink-45); margin: 1rem 0 1.25rem; }
/* tucked up under the field it explains, and only there */
form.stack :is(input, select, textarea) + .helptext { margin-top: -0.9rem; }
.errorlist {
  color: var(--ink); list-style: none; padding: 0.65rem 0.9rem; margin: 0 0 0.8rem;
  background: var(--error-tint); border-left: 2px solid var(--error);
}
/* photo slots: a tile that previews the photo, and a pill to pick one */
.slots { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.slot {
  display: grid; gap: 0.6rem; padding: 0.75rem;
  background: var(--raised); border: 1px solid var(--ink-20);
}
.slot:focus-within { border-color: var(--brand); }
.slot-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.slot-label em {
  font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand); background: var(--ink-08); border-radius: var(--pill); padding: 0.15rem 0.5rem; margin-left: 0.3rem;
}
.slot-preview {
  display: flex; align-items: center; justify-content: center; height: 140px; overflow: hidden;
  background: var(--ink-08); border: 1px dashed var(--field); color: var(--ink-45);
}
.slot-preview svg { width: 34px; height: 34px; }
.slot-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
form.stack .slot input[type=file] {
  width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; background: none;
  font-size: 12px; color: var(--ink-45); cursor: pointer;
}
form.stack .slot input[type=file]:focus { box-shadow: none; }
.slot input[type=file]::file-selector-button {
  margin-right: 0.6rem; padding: 0.55rem 1rem; min-height: 40px;
  border: 1px solid var(--brand); border-radius: var(--pill); background: var(--raised);
  color: var(--brand); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color 0.15s ease;
}
.slot input[type=file]:hover::file-selector-button { background: var(--brand-tint); }
.slot input[type=file]:focus-visible::file-selector-button { outline: 2px solid var(--brand); outline-offset: 2px; }
.slot .check { margin: 0; }

/* ---- the member agreement: numbered points, then a signature box ---- */
.points { list-style: none; margin: 1.5rem 0 2rem; padding: 0; counter-reset: point; }
.points li {
  counter-increment: point;
  display: grid; grid-template-columns: 2.25rem 1fr; gap: 0 0.75rem;
  padding: 1.1rem 0; border-top: var(--rule);
}
.points li:last-child { border-bottom: var(--rule); }
.points li::before {
  content: counter(point, decimal-leading-zero); grid-row: span 2;
  font-size: 1.25rem; font-weight: 300; line-height: 1.3; color: var(--brand);
}
.points h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 0.3rem; }
.points p { font-size: 15px; color: var(--ink-70); margin: 0; }

.sign, .signed {
  background: var(--ink-08); border-top: 2px solid var(--brand);
  padding: 1.5rem 1.25rem; margin: 0 0 2rem;
}
.sign h2.serif { margin-top: 0; }
/* the typed name looks like a signature, in whatever script face the device has */
form.stack input.signature, .signature-text {
  font-family: "Segoe Script", "Bradley Hand", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: 1.5rem; letter-spacing: 0;
}
form.stack input.signature { min-height: 56px; }
.signature-text { margin: 0.25rem 0 0.5rem; color: var(--ink); }
.sign-meta { font-size: 13px; color: var(--ink-45); margin: 1rem 0 0; }
.signed .sign-meta { margin: 0; }

/* ---- staff approvals: one card per person waiting ---- */
.requests { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: 1rem; }
.request {
  display: grid; gap: 0.9rem; padding: 1.1rem 1.1rem 1.2rem;
  background: var(--raised); border: 1px solid var(--ink-20); border-top: 3px solid var(--brand);
}
.request p { margin: 0; }
.request-name { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.request-meta { font-size: 13px; color: var(--ink-45); overflow-wrap: anywhere; }
.request-ref { background: var(--ink-08); padding: 0.75rem 0.9rem; border-left: 2px solid var(--brand); }
.request-ref .eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.2rem; }
.request-ref p { font-size: 15px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.request-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.request-facts li { font-size: 12px; padding: 0.2rem 0.6rem; border-radius: var(--pill); background: var(--ink-08); color: var(--ink-70); margin: 0; }
.request-facts li.ok { background: #e7f4f0; color: #0d6b5f; }
.request-facts li.no { background: var(--error-tint); color: var(--error); }
.request-facts li.soon { background: #fdf3dc; color: #8a5a0b; font-weight: 600; }
.request-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.request-actions .btn:first-of-type { flex: 1 1 100%; }
.requests.compact .request { border-top-width: 1px; }
.count {
  display: inline-block; min-width: 1.4em; padding: 0 0.4em; margin-left: 0.2rem;
  border-radius: var(--pill); background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.6; text-align: center; vertical-align: 1px;
}

/* ---- notices, empty states, panels ---- */
.notice {
  background: var(--ink-08); border-left: 2px solid var(--brand);
  padding: 0.9rem 1.1rem; margin: 1.25rem 0; font-size: 14px; color: var(--ink-70);
}
/* the hello after signing in */
.notice.greeting {
  font-size: 1rem; font-weight: 500; color: var(--ink);
  background: linear-gradient(90deg, var(--ink-08), var(--paper));
  border-left-width: 3px; padding: 1rem 1.25rem;
  animation: greet-in 0.45s ease both;
}
@keyframes greet-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .notice.greeting { animation: none; } }

.empty {
  background: var(--ink-08); padding: 2.5rem 1.25rem; margin: 0.5rem 0 1rem;
  text-align: center; color: var(--ink-70);
}
.empty-art { width: 48px; height: 48px; color: var(--brand); margin-bottom: 1rem; }
.empty-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.4rem; }
.empty p { margin: 0 auto 1rem; max-width: 40ch; font-size: 15px; }
.empty p:last-child { margin-bottom: 0; }

.panel { background: var(--ink-08); padding: 1.75rem 1.25rem; margin: 2rem 0; }
.panel h2 { font-size: clamp(1.5rem, 6vw, 2.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 0.3rem 0 0.8rem; }
.panel p:last-child { margin-bottom: 0; }
.panel-row { display: grid; gap: 1.75rem; }
.panel-row > div { border-top: 1px solid var(--brand); padding-top: 1rem; }
.panel-row .price { display: block; font-size: 1.75rem; margin: 0.25rem 0 0.5rem; }
.panel-row p:last-child { font-size: 14px; color: var(--ink-70); margin: 0; }

/* the support block, a dark band like the hero */
.coffee {
  --bleed: var(--night); color: #fff;
  display: grid; gap: 0.75rem; padding: 3rem 0; margin: 3rem 0;
}
.coffee :focus-visible { outline-color: #fff; }
.coffee-mark { font-size: 2.5rem; line-height: 1; }
.coffee h2.serif {
  color: #fff; font-size: clamp(1.75rem, 7vw, 2.75rem); line-height: 1.05;
  letter-spacing: -0.035em; margin: 0.5rem 0 1rem; max-width: 18ch;
}
.coffee p { color: var(--night-70); margin: 0 0 0.75rem; max-width: 56ch; }
.coffee .eyebrow { color: var(--night-45); }
.coffee-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-top: 1.5rem; }
main > .coffee:last-child { margin-bottom: 0; }

main ul { padding-left: 1.1rem; color: var(--ink-70); }
main ul li { margin-bottom: 0.5rem; }
main ul li::marker { color: var(--brand); }

/* ---- tables: stacked rows on a phone, real columns from 640px ---- */
table.plain { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1rem 0 1.5rem; }
table.plain, table.plain tbody, table.plain tr, table.plain td { display: block; }
table.plain tr { padding: 1rem 0; border-bottom: var(--rule); }
table.plain tr:has(th) { display: none; }
table.plain td + td { margin-top: 0.3rem; color: var(--ink-70); }
table.plain td:first-child, table.plain td:first-child a { font-weight: 600; color: var(--ink); }
table.plain th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-45);
}

/* ---- footer: dark purple, the saying set large ---- */
footer.site {
  background: var(--night); color: var(--night-45);
  /* room at the bottom so the coffee button never covers the last line */
  padding: 3rem 0 5.5rem; font-size: 14px;
  border-top: 1px solid var(--night-20);
}
footer.site p { margin: 0 0 0.6rem; max-width: 70ch; }
footer.site a.foot-org {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  margin: 0 0 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--night-20);
  color: var(--night-70); font-size: 14px;
}
/* a thin white ring keeps the badge's black edge off the dark band */
footer.site a.foot-org img { height: 64px; width: 64px; display: block; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
footer.site a.foot-org:hover { text-decoration: none; }
footer.site a.foot-org:hover u { color: #fff; }
footer.site .tag-line {
  color: #fff; font-size: clamp(1.5rem, 6vw, 2.25rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 1.25rem; max-width: 20ch;
}
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site :focus-visible { outline-color: #fff; }
.foot-cols { display: grid; gap: 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--night-20); }
.foot-cols .eyebrow { color: #fff; }
.foot-cols p:first-child.eyebrow { margin-bottom: 0.6rem; }
.foot-cols a { display: inline-block; padding: 0.3rem 0; }
footer.site .disclaimer {
  margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--night-20);
  font-size: 13px; color: var(--night-70); max-width: 80ch;
}
footer.site .disclaimer strong { color: #fff; }
footer.site .disclaimer a { text-decoration: underline; }
/* who built it and how to reach them: quiet type, one pill that catches the eye */
.credit {
  display: grid; gap: 0.9rem; margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--night-20); font-size: 13px; color: var(--night-70);
}
.credit p { margin: 0; max-width: none; }
.credit-by strong { color: #fff; font-weight: 600; }
.credit-tag {
  display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.6rem; vertical-align: 1px;
  border: 1px solid rgba(255,255,255,0.3); border-radius: var(--pill);
  font-size: 11px; font-weight: 500; color: #fff; white-space: nowrap;
}
.credit-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
footer.site a.credit-mail {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0.4rem 1rem;
  border-radius: var(--pill); background: rgba(255,255,255,0.12); color: #fff; font-weight: 500;
}
footer.site a.credit-mail:hover { background: rgba(255,255,255,0.2); text-decoration: none; }
.credit-mail svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ---- the invite window: a card over the blurred home page ---- */
body:has(.gate) { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto;
  display: grid; place-items: center; padding: 1rem;
  background: rgba(36,22,47,0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.gate-card {
  width: min(100%, 420px); text-align: center;
  background: var(--paper); border-top: 4px solid var(--brand);
  padding: 1.75rem 1.25rem 1.5rem; box-shadow: 0 30px 80px rgba(36,22,47,0.35);
  animation: gate-in 0.3s ease both;
}
@keyframes gate-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.gate-logo { display: block; height: 76px; width: auto; margin: 0 auto 0.9rem; }
.gate-card .section-eyebrow { margin: 0 0 0.35rem; }
.gate-card h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 0.6rem; }
.gate-lede { font-size: 15px; color: var(--ink-70); margin: 0 0 1.25rem; }
.gate-form { display: grid; gap: 0.75rem; }
.token-input {
  width: 100%; min-height: 64px; padding: 0.6rem 0.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.75rem; font-weight: 600;
  letter-spacing: 0.3em; text-indent: 0.3em; text-align: center; text-transform: uppercase;
  color: var(--ink); background: var(--ink-08); border: 1px solid var(--field); border-radius: 0;
}
.token-input::placeholder { color: var(--field); letter-spacing: 0.45em; }
.token-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--paper); }
.gate-form .btn { width: 100%; }
.gate-error { margin: 0; font-size: 13px; color: var(--error); }
.gate-foot { margin: 1.25rem 0 0.4rem; font-size: 14px; color: var(--ink-70); }
.gate-help { margin: 0; font-size: 12px; color: var(--ink-45); }
.token { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.1em; }
@media (prefers-reduced-motion: reduce) { .gate-card { animation: none; } }

/* ======== bigger screens: add room, never take anything away ======== */
@media (min-width: 640px) {
  .wordmark-text { display: block; font-size: 18px; }
  .wordmark-text span {
    font-size: inherit; font-weight: 400; letter-spacing: inherit; text-transform: none;
    color: inherit; margin: 0;
  }
  .hero-cta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
  .filters { display: flex; flex-wrap: wrap; }
  .filters input[type=search] { flex: 1 1 280px; width: auto; }
  .filters select { width: auto; }
  .cats { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0.25rem 0 1.75rem; }
  form.stack .btn { width: auto; }
  .btn.whatsapp { width: auto; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .sign, .signed { padding: 2rem; }
  .request { grid-template-columns: 1fr 1fr; align-items: start; }
  .request-facts, .request-actions { grid-column: 1 / -1; }
  .request-actions .btn:first-of-type { flex: 0 0 auto; }
  .coffee { grid-template-columns: auto 1fr; gap: 2rem; padding: 4.5rem 0; }
  .coffee-cta { flex-direction: row; align-items: center; gap: 1.25rem; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }

  table.plain { display: table; }
  table.plain tbody { display: table-row-group; }
  table.plain tr, table.plain tr:has(th) { display: table-row; padding: 0; }
  table.plain td, table.plain th { display: table-cell; padding: 0.9rem 1.5rem 0.9rem 0; border-bottom: var(--rule); vertical-align: top; }
  table.plain td + td { margin-top: 0; }
  table.plain td:first-child { width: 32%; }
}

@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.25rem; }
  .principles { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .org-about { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; }
  .org-about-logo { max-width: 240px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .detail { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; padding: 2.5rem 0 4rem; }
  .gallery { margin: 0; }
  .panel { padding: 2.5rem; }
  .panel-row { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  :root { --header-h: 68px; }
  body { font-size: 17px; }
  .band { padding: 5rem 0 3rem; }
  .credit { grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; }
  .band-inner { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .band-art .apari { max-width: 420px; }
  .section { padding: 5rem 0; }
}

/* the full nav only once it fits beside the name, greeting and staff link included; the
   menu until then. The header gets a wider column than the page so it has the room. */
@media (min-width: 1300px) {
  header.site .wrap { max-width: 1320px; }
  .wordmark { flex: 0 0 auto; }
  .menu { display: none; }
  nav.site { display: flex; align-items: center; gap: 1.35rem; margin-left: auto; font-size: 14px; }
  nav.site a {
    color: var(--ink); text-decoration: none; white-space: nowrap;
    padding: 0.35rem 0; border-bottom: 1px solid transparent;
  }
  nav.site a:hover, nav.site a.active { border-bottom-color: var(--brand); }
  nav.site a.cta {
    padding: 0.6rem 1.25rem; border: 0; border-radius: var(--pill);
    background: var(--brand); color: #fff; font-weight: 500;
  }
  nav.site a.cta:hover { background: var(--brand-deep); }
  /* the greeting sits at the far right, after Post a listing, set off by a hairline */
  nav.site a.me {
    order: 99; display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.2rem 0 0.2rem 1.35rem; border-left: 1px solid var(--ink-20);
  }
  nav.site a.me:hover, nav.site a.me.active { border-bottom-color: transparent; border-left-color: var(--ink-20); }
  nav.site a.me:hover .me-greet, nav.site a.me.active .me-greet { color: var(--brand); }
  nav.site a.me .me-greet { font-size: 13px; max-width: 170px; }
  .header-me { display: none; }
}

@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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