/* Dorcas Community Creatives - brand tokens from the style sheet */
:root {
  --stone: #DBD9CD;   /* page */
  --khaki: #B6AD90;
  --teal: #063B39;    /* primary */
  --ochre: #A26321;   /* logo */
  --olive: #4D452E;   /* secondary text */
  --forest: #2C3C2D;
  --sage: #656D4A;
  --rust: #6A2C0F;
  --ink: #14120E;
  --paper: #FBFAF6;   /* polaroid white */

  --f-head: "Brown Sugar", "Italiana", "Cormorant Garamond", Georgia, serif;
  --f-sub: "Calgary", "Cormorant Garamond", Georgia, serif;
  --f-body: "Afrah", "Alegreya", Georgia, serif;
  --f-script: "Moontime", "Mrs Saint Delafield", cursive;

  --wrap: 1240px;
  --pad: clamp(1.1rem, 4vw, 3rem);
  --gap: clamp(1.25rem, 3vw, 2.25rem);
  --shadow: 0 1px 2px rgba(20, 18, 14, .12), 0 6px 18px -8px rgba(20, 18, 14, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font: 400 1.125rem/1.65 var(--f-body);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--f-head); color: var(--teal); letter-spacing: .01em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; }
h3 { font-family: var(--f-sub); font-weight: 500; font-size: 1.3rem; line-height: 1.25; color: var(--ink); }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--olive); }
.small { font-size: .95rem; color: var(--olive); }
.script { font-family: var(--f-script); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--ochre); transform: rotate(-4deg); transform-origin: left; margin: 1.6rem 0 0; white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--teal); color: var(--stone); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.5rem; border: 1px solid var(--teal); border-radius: 2px;
  background: var(--teal); color: var(--stone); font: 500 1.05rem/1.2 var(--f-sub); letter-spacing: .06em;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--forest); color: var(--paper); }
.btn-line { background: transparent; color: var(--teal); }
.btn-line:hover { background: var(--teal); color: var(--stone); }
.btn-light { background: var(--stone); color: var(--teal); border-color: var(--stone); }
.btn-light:hover { background: var(--paper); color: var(--teal); }
.btn-line-light { background: transparent; color: var(--stone); border-color: var(--stone); }
.btn-line-light:hover { background: var(--stone); color: var(--teal); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.actions.center { justify-content: center; }

/* ---------- header ---------- */
.site-notice { background: var(--rust); color: var(--paper); text-align: center; padding: .6rem var(--pad); font-size: 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--stone) 94%, transparent);
  backdrop-filter: blur(6px); border-bottom: 1px solid rgba(77, 69, 46, .18);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--pad); padding-top: max(.7rem, env(safe-area-inset-top));
}
.brand img { height: 44px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.8rem, 1.6vw, 1.6rem); }
.site-nav a { font: 500 1.02rem var(--f-sub); letter-spacing: .04em; color: var(--ink); text-decoration: none; padding: .3rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--teal); border-bottom-color: var(--ochre); }
.menu-btn { display: none; font: 500 1rem var(--f-sub); letter-spacing: .06em; background: none; border: 1px solid var(--teal); color: var(--teal); padding: .5rem .9rem; border-radius: 2px; }
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--stone); border-bottom: 1px solid rgba(77, 69, 46, .25); padding: .5rem var(--pad) 1.2rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: .8rem 0; font-size: 1.15rem; border-bottom: 1px solid rgba(77, 69, 46, .14); }
}
@media (max-width: 420px) { .brand img { height: 36px; } }

/* ---------- arch: the signature frame (from the brand's arch motif) ---------- */
.arch {
  display: block; overflow: hidden; aspect-ratio: 3 / 4;
  border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0;
  box-shadow: 0 0 0 7px var(--stone), 0 0 0 8px var(--ochre);
  background: var(--khaki);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- layout sections ---------- */
main > section, .band-inner, .crumbs { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
main > section { padding-block: clamp(3rem, 7vw, 5.5rem); }
main > section.band { max-width: none; padding-inline: 0; }
.section-title { margin-bottom: 1.4rem; }
.section-intro { color: var(--olive); margin-top: -.6rem; margin-bottom: 1.8rem; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-top: clamp(2rem, 5vw, 4rem) !important; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.hero-art { margin: 0; justify-self: center; width: min(100%, 460px); }
.hero-art figcaption { margin-top: 1.1rem; text-align: center; font: italic 1rem var(--f-body); color: var(--olive); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { width: min(82%, 380px); order: -1; }
}

.page-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-top: clamp(1.5rem, 4vw, 3rem) !important; }
.page-hero.compact { grid-template-columns: 1fr; padding-bottom: 1rem !important; }
.page-hero-art { width: min(100%, 380px); justify-self: center; }
@media (max-width: 860px) { .page-hero { grid-template-columns: 1fr; } .page-hero-art { width: min(70%, 300px); order: -1; } }

.occasions { padding-top: 1rem !important; }
.occasion-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.occasion { text-decoration: none; color: inherit; display: block; }
.occasion .arch { margin: 8px 8px 1.4rem; transition: box-shadow .25s; }
.occasion:hover .arch { box-shadow: 0 0 0 7px var(--stone), 0 0 0 8px var(--teal); }
.occasion h3 { font-family: var(--f-head); font-size: 1.9rem; color: var(--teal); margin-bottom: .3rem; }
.occasion p { color: var(--olive); font-size: 1.05rem; }
.also { margin-top: 1.5rem; color: var(--olive); }
@media (max-width: 760px) { .occasion-row { grid-template-columns: 1fr; } .occasion .arch { max-width: 300px; } }

/* ---------- bands ---------- */
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band-teal { background: var(--teal); color: var(--stone); }
.band-forest { background: var(--forest); color: var(--stone); }
.band-khaki { background: var(--khaki); }
.band-teal h2, .band-forest h2 { color: var(--stone); }
.band-teal a:not(.btn), .band-forest a:not(.btn) { color: var(--stone); }
.band-khaki .arch { box-shadow: 0 0 0 7px var(--khaki), 0 0 0 8px var(--ochre); }
.live-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.live-text p { color: color-mix(in srgb, var(--stone) 88%, transparent); }
.live .from { font: 500 1.15rem var(--f-sub); letter-spacing: .04em; color: var(--khaki); }
.live-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.live-photos img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.live-photos img:first-child { border-radius: 999px 999px 0 0; }
.live-photos img:last-child { margin-top: 3rem; }
@media (max-width: 860px) { .live-inner { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 700px) { .photo-strip { grid-template-columns: 1fr 1fr; } .photo-strip img:last-child { display: none; } }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.steps li { counter-increment: step; border-top: 1px solid var(--olive); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font: 2.6rem/1 var(--f-head); color: var(--rust); margin-bottom: .6rem; }
.steps p { font-size: 1.02rem; color: var(--ink); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- product cards: polaroid frames from the brand palette sheet ---------- */
.collection-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.collection-head a { font: 500 1.05rem var(--f-sub); letter-spacing: .04em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) var(--gap); }
.card-link { display: block; text-decoration: none; color: inherit; }
.mat { display: block; position: relative; background: var(--paper); padding: 10px 10px 12px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.mat img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card-link:hover .mat { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 18, 14, .12), 0 14px 26px -10px rgba(20, 18, 14, .35); }
.card-title { font-family: var(--f-sub); font-size: 1.32rem; margin: 1rem 0 .15rem; color: var(--ink); }
.price { margin: 0 0 .35rem; }
.price-main { font: 500 1.1rem var(--f-sub); letter-spacing: .03em; color: var(--teal); }
.price-sub { font-size: .95rem; color: var(--olive); }
.card-short { font-size: 1rem; color: var(--olive); margin: 0; }
.card[data-state] .mat::after {
  position: absolute; top: 18px; left: 18px; padding: .25rem .7rem; background: var(--rust); color: var(--paper);
  font: 500 .95rem var(--f-sub); letter-spacing: .04em;
}
.card[data-state="paused"] .mat::after { content: "Fully booked"; }
.card[data-state="sold"] .mat::after { content: "Sold"; background: var(--ink); }
.card[data-state] .mat img { filter: saturate(.7); }

/* ---------- product page ---------- */
.crumbs { padding-top: 1.2rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .95rem; color: var(--olive); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--khaki); }
.crumbs a { color: var(--olive); }
.product { max-width: var(--wrap); margin-inline: auto; padding: clamp(1.5rem, 4vw, 3rem) var(--pad) clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.product-gallery { position: sticky; top: 6rem; }
.mat-lg { padding: 14px 14px 16px; }
.mat-lg img { aspect-ratio: auto; max-height: 78vh; object-fit: contain; background: var(--paper); }
.thumbs { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.thumb { padding: 4px; background: var(--paper); border: 1px solid transparent; cursor: pointer; width: 84px; }
.thumb[aria-current="true"] { border-color: var(--ochre); }
.thumb img { aspect-ratio: 1; object-fit: cover; }
.product-info h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.price-lg .price-main { font-size: 1.5rem; }
.buy-box { margin: 1.6rem 0 2rem; padding: 1.3rem; background: color-mix(in srgb, var(--paper) 55%, transparent); border: 1px solid rgba(77, 69, 46, .22); }
.ready { margin: .8rem 0 0; font-size: 1.02rem; color: var(--forest); min-height: 1.4em; }
.ready:empty { display: none; }
.avail-note { margin: 0 0 .9rem; font: 500 1.1rem var(--f-sub); color: var(--rust); }
.specs { display: grid; gap: 0; margin: 1.5rem 0; border-top: 1px solid rgba(77, 69, 46, .3); }
.specs div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(77, 69, 46, .3); }
.specs dt { font: 500 1rem var(--f-sub); letter-spacing: .03em; color: var(--olive); }
.specs dd { margin: 0; font-size: 1.02rem; }
.occasions-list { color: var(--olive); font-style: italic; }
.sessions h2 { font-size: 1.6rem; }
.sessions ul { list-style: none; padding: 0; margin: 0 0 .6rem; }
.sessions li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed rgba(77, 69, 46, .35); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product-gallery { position: static; } }
@media (max-width: 480px) { .specs div { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid rgba(77, 69, 46, .35); }
.faq details { border-bottom: 1px solid rgba(77, 69, 46, .35); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font: 500 1.25rem/1.35 var(--f-sub); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .4rem; top: .9rem; font: 1.6rem var(--f-head); color: var(--ochre); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 1.2rem; color: var(--olive); }

/* ---------- forms ---------- */
.narrow { max-width: 680px !important; }
.narrow-wide { max-width: 1000px !important; }
.center { text-align: center; }
.center p { margin-inline: auto; }
.form { display: grid; gap: 1.1rem; margin: 1.6rem 0; }
.form label { display: grid; gap: .35rem; font: 500 1.05rem var(--f-sub); letter-spacing: .02em; color: var(--ink); }
.form input, .form textarea, .form select {
  font: 1.05rem var(--f-body); color: var(--ink); background: var(--paper);
  border: 1px solid rgba(77, 69, 46, .45); border-radius: 2px; padding: .7rem .8rem; min-height: 3rem; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--ochre); outline-offset: 1px; border-color: var(--ochre); }
.form .hint { font: 400 .95rem var(--f-body); color: var(--olive); letter-spacing: 0; }
.form .check { display: flex; gap: .7rem; align-items: flex-start; font: 400 1rem var(--f-body); }
.form .check input { width: 1.2rem; min-height: 1.2rem; margin-top: .25rem; flex: none; }
.form [aria-invalid="true"] { border-color: var(--rust); outline: 1px solid var(--rust); }
.form-msg { min-height: 1.4em; color: var(--rust); margin: 0; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--forest); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; min-width: 0; }
legend { font: 500 1.05rem var(--f-sub); padding: 0; margin-bottom: .35rem; }
.form .choice { display: flex; gap: .7rem; align-items: center; padding: .75rem .9rem; background: var(--paper); border: 1px solid rgba(77, 69, 46, .35); cursor: pointer; font: 400 1.02rem var(--f-body); }
.form .choice input { width: auto; min-height: 0; flex: none; }
.choice .hint { margin-left: auto; }
.choice:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }

/* checkout */
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.summary { position: sticky; top: 6rem; background: var(--paper); padding: 1.2rem; box-shadow: var(--shadow); }
.summary img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 1rem; }
.summary h2 { font-size: 1.5rem; }
.summary dl { margin: 1rem 0 0; }
.summary dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid rgba(77, 69, 46, .15); font-size: 1rem; }
.summary dd { margin: 0; text-align: right; }
.summary dl div.total { font: 500 1.2rem var(--f-sub); border-bottom: 0; color: var(--teal); }
.plan { margin: 0; padding: .9rem 1rem; background: color-mix(in srgb, var(--sage) 14%, var(--paper)); border-left: 3px solid var(--sage); font-size: 1.02rem; }
.plan.bad { background: color-mix(in srgb, var(--rust) 10%, var(--paper)); border-left-color: var(--rust); color: var(--rust); }
.loading { color: var(--olive); font-style: italic; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } .summary { position: static; order: -1; } .summary img { display: none; } }

.thanks h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal-page h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.legal-page h2 { font-size: 1.6rem; margin-top: 1.8rem; }
.scripture-line { font-style: italic; color: var(--olive); border-left: 2px solid var(--ochre); padding-left: 1rem; }
.scripture-line span { display: block; font: 500 .95rem var(--f-sub); font-style: normal; letter-spacing: .06em; margin-top: .3rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal); color: var(--stone); padding: clamp(3rem, 7vw, 5rem) var(--pad) 2rem; display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 6vw, 5rem); }
.footer-brand img { width: 130px; }
.footer-tag { font: 500 1rem var(--f-sub); letter-spacing: .14em; color: var(--khaki); margin: .8rem 0 0; }
.scripture { font: 1.6rem var(--f-script); color: var(--ochre); margin-top: .6rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-cols h2 { font: 500 1.05rem var(--f-sub); letter-spacing: .08em; color: var(--khaki); margin-bottom: .8rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-cols a { color: var(--stone); text-decoration: none; font-size: 1.02rem; overflow-wrap: anywhere; }
.footer-cols a:hover { color: var(--paper); text-decoration: underline; }
.legal { grid-column: 1 / -1; font-size: .9rem; color: var(--khaki); border-top: 1px solid rgba(219, 217, 205, .2); padding-top: 1.5rem; margin: 0; max-width: none; }
@media (max-width: 860px) { .site-footer { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: 1fr 1fr; } }

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

/* phones: two cards per row keeps collections scannable */
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 1.6rem .9rem; }
  .mat { padding: 6px 6px 8px; }
  .card-title { font-size: 1.08rem; margin-top: .7rem; }
  .price-main { font-size: 1rem; }
  .price-sub { font-size: .85rem; }
  .card-short { display: none; }
  .card[data-state] .mat::after { top: 10px; left: 10px; font-size: .8rem; }
  .occasion .arch { max-width: 260px; }
}

[hidden] { display: none !important; }
