/* Cards That Give Back — shared styles */
:root {
  color-scheme: only light;
  --cream: #f6f4ef;
  --white: #ffffff;
  --ink: #141414;
  --muted: #4a4743;
  --terracotta: #a86736;
  --terracotta-dark: #8a5228;
  --sand: #f2e6d8;
  --charcoal: #736658; /* old taupe, kept for reference (2026-10-26: switched to linen + black) */
  --linen: #e9e5dc; /* tried behind photos, replaced by ink to match Alannah's #141414 photo backdrops (2026-10-27) */
  --line: #e2ddd3;
  --font-heading: "Lustria", Georgia, serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.04em;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--muted); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h3 { font-size: 1.5rem; }
em { font-family: var(--font-heading); }

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

/* Type system: one style each for labels, headings, item names, body, small print and links. */
.eyebrow, .quote cite, .pack-tag, .contact-grid.compact h3, .pack-price {
  font-family: var(--font-heading); font-weight: 400; font-style: normal;
  font-size: 0.95rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
}
.eyebrow { margin: 0 0 14px; }
/* Item names: packs in the grid and on the order form */
.pack-name, .of-name { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.25; }
/* Small print: prices, fees, form labels, notes, footer */
.of-price, .of-fee, .of-opt, .of-field, .of-confirm, .of-status, .of-privacy, .site-footer { font-size: 0.9rem; }
/* Text links, like "Read our story" */
.btn.link, .quote-link { font-family: var(--font-heading); font-size: 1.05rem; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.btn.link:hover, .quote-link:hover { color: var(--muted); }
.lead { color: var(--muted); max-width: 400px; white-space: pre-line; }
.lead.wide { max-width: 620px; }
.step p { white-space: pre-line; }
.center { text-align: center; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; max-width: 560px; }

/* Header */
/* Sticky header: stays at the top while scrolling, always with a soft shadow */
.site-header { background: var(--cream); position: sticky; top: var(--sticky-top, 0px); z-index: 40; box-shadow: 0 2px 14px rgba(20, 20, 20, 0.08); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--font-heading); font-size: 1rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.brand img { height: 76px; width: auto; }
@media (max-width: 760px) { .brand img { height: 60px; } }
.nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-family: var(--font-heading); font-size: 1rem;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }

/* Sections alternate cream and white, like the design */
section { padding: 80px 0; position: relative; overflow: hidden; }
section.white { background: var(--white); }
section.quote { background: var(--white); }
section.quote .wrap { position: relative; z-index: 1; }
/* Sits inside the page margin, lined up with the content above, however wide the screen */
.quote-art { position: absolute; left: max(20px, calc((100% - var(--max)) / 2 + 20px)); bottom: 0; width: min(22vw, 300px); z-index: 0; }
/* Keep the quote clear of the drawing beside it */
@media (min-width: 961px) { section.quote:has(.quote-art img) blockquote { max-width: min(620px, calc(100vw - 2 * (min(22vw, 300px) + 40px))); } } /* only when the drawing sits beside the quote */
@media (max-width: 960px) and (min-width: 761px) {
  section.quote .quote-art { position: relative; left: auto; width: 240px; margin: -24px auto 20px; transform: none; }
  section.quote:has(.quote-art img) blockquote { max-width: 620px; }
}
.quote-art img { width: 100%; height: auto; }
@media (max-width: 760px) { .quote-art { position: relative; left: auto; width: 48%; margin: -24px auto 20px; } }

/* Phones: the hero photo moves into the mission section in place of its drawing */
.quote-art-phone { display: none; }
@media (max-width: 760px) {
  .hero-swap .split > .art { display: none; }
  section.quote .quote-art:has(+ .quote-art-phone) { display: none; }
  .quote-art-phone { display: block; }
}

/* Bigger hero photo */
.hero .split { grid-template-columns: 1fr 1.15fr; gap: 48px; }
section.hero .split .art img { width: 100%; box-shadow: none; mix-blend-mode: multiply; } /* drawing paper blends into the cream */
@media (max-width: 760px) { .hero .split { grid-template-columns: 1fr; } .hero .split.flip > :first-child { order: 2; } } /* phones: headline first, drawing below */

/* Photos and drawings nudged or scaled in the editor (desktop layout only) */
@media (min-width: 761px) {
  .movable { transform: translate(var(--dx, 0%), var(--dy, 0%)) scale(var(--sc, 1)); transform-origin: center; }
}

/* Thin black line circles, used sparingly */
.ring {
  position: absolute; width: 230px; height: 230px; border-radius: 50%;
  border: 1px solid var(--ink); pointer-events: none;
}
.ring-top-right { top: -70px; right: 5%; }
.ring-bottom-right { bottom: -90px; right: 6%; }
.ring-bottom-left { bottom: -110px; left: 4%; }
.ring-free { width: var(--ring); height: var(--ring); transform: translate(-50%, -50%); }
@media (max-width: 760px) { .ring { width: 150px; height: 150px; } .ring-top-right { top: -60px; right: -40px; } .ring-bottom-right { right: -40px; } .ring-bottom-left { left: -50px; } .ring-free { width: calc(var(--ring) * 0.65); height: calc(var(--ring) * 0.65); } }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split.flip > :first-child { order: 2; }
.split .art { display: flex; justify-content: center; }
.split .art img { box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.split .art.wide img { width: 100%; }

/* Terracotta half circle that sits on a section's bottom edge */
.half-circle {
  position: absolute; bottom: 0; left: 42%;
  width: 170px; height: 85px; border-radius: 85px 85px 0 0;
  background: var(--terracotta); pointer-events: none;
}

.btn {
  display: inline-block; font-family: var(--font-heading); font-size: 1.05rem; font-weight: 400;
  letter-spacing: 0.04em; line-height: 1.75; padding: 10px 44px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--white); }
/* All buttons share the clean black line style (terracotta removed 2026-10-25) */
.btn.fill { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.fill:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn.link { border-color: transparent; padding-left: 8px; padding-right: 8px; }
.btn.link:hover { background: transparent; }
.center .btn-row { justify-content: center; }

/* Quote band */
.quote { text-align: center; }
.quote blockquote {
  margin: 0 auto; max-width: 620px;
  font-family: var(--font-heading); font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.35;
}
.quote-sub { margin: 22px auto 0; max-width: 680px; color: var(--muted); }
.of-updates { margin-top: 12px; }
.contact-form .of-updates { margin: 0 0 4px; }
.of-privacy { margin: 10px 0 0; color: var(--muted); }
.of-note { color: var(--muted); font-size: 0.9rem; }
.of-privacy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.quote-sub span:empty { display: none; }
.quote-link { white-space: nowrap; margin-left: 6px; }
/* Small label above the quote, like the other section labels */
.quote cite {
  display: block; margin: 0 0 18px;
}
.blob {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 260px; height: 300px; pointer-events: none;
}
.blob::before, .blob::after { content: ""; position: absolute; left: 0; right: 0; }
.blob::before { top: 0; height: 150px; background: var(--sand); border-radius: 130px 130px 10px 10px; }
.blob::after { bottom: 0; height: 145px; background: var(--terracotta); border-radius: 10px 10px 130px 130px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; margin-top: 40px; }
.step { border-top: 1px solid var(--ink); padding-top: 18px; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-heading); font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 10px;
  color: var(--ink);
}

.step p { color: var(--muted); margin: 0; }

.callout { background: var(--white); padding: 44px; max-width: 760px; margin: 0 auto; text-align: center; }

.form-placeholder {
  margin-top: 32px; padding: 64px 24px; background: var(--white); border: 1px dashed var(--line);
  text-align: center; color: var(--muted);
}
.form-embed { width: 100%; min-height: 620px; border: 0; background: var(--white); margin-top: 32px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.contact-grid > div { background: var(--white); padding: 28px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); padding: 40px 0; }
.site-footer a { color: var(--white); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .split, .steps, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > :first-child { order: 0; }
  section { padding: 56px 0; }
  .blob { display: none; }
  .half-circle { width: 120px; height: 60px; left: 60%; }
}

/* Photo galleries (two or more photos in a section) */
.art { flex-direction: column; align-items: center; gap: 12px; }
.art-frame { position: relative; }
.art.wide .art-frame { width: 100%; }
.gallery { position: relative; width: 100%; max-width: 420px; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; position: relative; }
.gallery-slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.art.wide .gallery { max-width: none; }
.art.wide .gallery-slide img { aspect-ratio: 5.5 / 4.25; } /* landscape card size, 5.5 x 4.25 in */
/* Outlined square arrows with a thin black line arrow, in the row below the photo either side of the photo markers. */
.gallery-bar { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; min-height: 36px; }
.gallery-nav {
  width: 36px; height: 36px; padding: 0; display: grid; place-items: center; cursor: pointer; flex: none;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 0;
  transition: background .15s, color .15s, scale .18s ease;
}
.gallery-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; }
.gallery-nav:active { background: var(--ink); color: var(--white); scale: 1.1; }
@media (hover: hover) { .gallery-nav:hover { background: var(--ink); color: var(--white); scale: 1.08; } }
.gallery-nav:focus-visible, .gallery-dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.gallery-dots { display: flex; align-items: center; gap: 12px; }
/* Thin outlined circles; the current photo's is filled (circles here at Alannah's request, 2026-10-26) */
.gallery-dot {
  width: 9px; height: 9px; padding: 0; cursor: pointer; border-radius: 50%;
  border: 1px solid var(--ink); background: transparent; transition: background .2s;
}
.gallery-dot.active { background: var(--ink); }

/* Pack grid (home page overview of every pack) */
.pack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 36px; margin-top: 40px; text-align: left; } /* two per row, full content width like the draft */
.pack-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.pack-photo { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--ink); overflow: hidden; }
.pack-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pack-card:hover .pack-photo img { transform: scale(1.04); }
.pack-grid.wide .pack-photo { aspect-ratio: 5.5 / 4.25; } /* landscape card size */
.pack-nophoto { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 0.85rem; border: 1px dashed var(--line); }
.pack-tag {
  position: absolute; top: 10px; left: 10px; background: var(--cream); color: var(--ink);
  padding: 4px 10px; white-space: nowrap;
}
.pack-name { margin-top: 8px; }
.pack-card:hover .pack-name { text-decoration: underline; text-underline-offset: 4px; }
.pack-price { margin-top: 4px; }
@media (max-width: 760px) { .pack-price { font-size: 0.8rem; letter-spacing: 0.12em; } }
.pack-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 900px) { .pack-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } .pack-tag { font-size: 0.7rem; letter-spacing: 0.14em; padding: 3px 7px; top: 8px; left: 8px; } }
@media (prefers-reduced-motion: reduce) { .pack-photo img { transition: none; } }

/* Built-in order form */
.order-form { max-width: 720px; margin: 40px auto 0; text-align: left; }
.order-form fieldset { border: 0; border-top: 1px solid var(--ink); margin: 0 0 36px; padding: 18px 0 0; }
.order-form legend { font-family: var(--font-heading); font-size: 1.5rem; padding: 0 12px 0 0; }
.of-pack { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.of-name { display: flex; flex-direction: column; }
.of-price { font-family: var(--font-body); color: var(--muted); }
.of-qty { display: flex; align-items: center; border: 1px solid var(--ink); }
.of-qty button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.of-qty button:hover { background: var(--ink); color: var(--white); }
.of-qty input { width: 44px; height: 40px; border: 0; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); text-align: center; font: inherit; background: transparent; color: var(--ink); -webkit-text-fill-color: var(--ink); opacity: 1; -moz-appearance: textfield; appearance: textfield; }
.of-qty input::-webkit-outer-spin-button, .of-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.of-choice { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.of-choice input, .of-confirm input { accent-color: var(--ink); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.of-fee { margin-left: auto; color: var(--muted); }
.of-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.of-field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.of-grid .of-field { margin-top: 0; }
.of-opt { color: var(--muted); }
.of-field input, .of-field textarea, .of-field select {
  font: inherit; font-size: 1rem; letter-spacing: 0.02em; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 0; padding: 10px 12px;
}
.of-field input:focus, .of-field textarea:focus, .of-field select:focus, .of-qty input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.of-bot { position: absolute; left: -9999px; }
.of-summary { background: var(--white); padding: 18px 22px; margin-bottom: 20px; }
.of-summary > div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.of-summary .of-total { color: var(--ink); font-family: var(--font-heading); font-size: 1.3rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.of-confirm { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.of-status { min-height: 1.5em; margin: 12px 0 0; }
.of-status.error { color: #9b2c1f; }
.order-form .btn-row { margin-top: 8px; }
.order-form button.btn:disabled { opacity: 0.5; cursor: wait; }
.of-thanks { max-width: 620px; margin: 40px auto 0; background: var(--white); padding: 36px; text-align: center; }

.of-thanks > :last-child { margin-bottom: 0; }
@media (max-width: 760px) { .of-grid { grid-template-columns: 1fr; } .of-thanks { padding: 24px; } }
.of-address .of-grid { margin-top: 14px; }
.order-form button[type="submit"]:disabled { opacity: 0.4; cursor: not-allowed; }
.of-field input, .of-field select { box-sizing: border-box; height: 48px; }
.of-field input[name="postal"] { text-transform: uppercase; }
.art-frame .pack-tag, .gallery > .pack-tag { z-index: 3; top: 14px; left: 14px; }
.of-closed { max-width: 560px; margin: 32px auto 0; padding: 32px; background: var(--white); text-align: center; }
.of-closed h3 { margin: 0 0 10px; }
.of-closed p { margin: 0; line-height: 1.7; }
.of-closed a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* Contact form: same look as the order form, left aligned under the intro, with email and Instagram listed below */
.contact-form { margin: 40px 0 0; }
.of-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.of-field select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; box-sizing: border-box; height: 48px; }
.contact-form + .of-thanks { margin: 40px 0 0; max-width: 720px; }
.contact-layout .contact-grid.compact { grid-template-columns: 1fr; gap: 16px; }
.contact-grid.compact a { overflow-wrap: anywhere; }
.contact-grid.compact { max-width: 720px; margin-top: 44px; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.contact-grid.compact > div { background: none; padding: 0; }
.contact-grid.compact h3 { margin: 0 0 6px; }
.contact-grid.compact p { margin: 0; }
@media (max-width: 760px) { .of-grid.two { grid-template-columns: 1fr; } }
/* Photos are shot on a #141414 backdrop: fill each box with the same black and show the whole photo, never cropping the card */
.art.wide .gallery-slide img, .pack-grid.wide .pack-photo img { object-fit: contain; background: var(--ink); }
/* Lightbox (full screen photo) */
img[data-zoom] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: flex; align-items: center; justify-content: center; padding: 64px 24px 88px; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-btn {
  width: 40px; height: 40px; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 0; transition: background .15s, color .15s;
}
.lightbox-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; }
.lightbox-btn:hover { background: var(--white); color: var(--ink); }
.lightbox-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; }
.lightbox-bar { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; align-items: center; justify-content: center; gap: 20px; }
.lightbox-bar[hidden] { display: none; }
.lightbox-count { color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; letter-spacing: 0.12em; min-width: 48px; text-align: center; }
html.lightbox-open { overflow: hidden; }
/* Shop packs on laptops: give the text side a little more room than the photo so pack names stay on one line */
@media (min-width: 761px) {
  section[id] .split { grid-template-columns: 1fr 1.1fr; }
  section[id] .split.flip { grid-template-columns: 1.1fr 1fr; }
}
/* Quiet link under the mission quote (e.g. "Read our story") */
section.quote .btn-row { justify-content: center; margin-top: 18px; }


/* Policies: one tidy reading column, smaller topic headings, tighter spacing */
.page-policies section { padding: 24px 0; }
.page-policies section:first-child { padding-top: 72px; }
.page-policies section:last-child { padding-bottom: 80px; }
.page-policies section + section h2 { font-size: 1.5rem; }
.page-policies .lead.wide { max-width: 680px; }

/* Contact: form and drawing share the width half and half (tablet and up), like the home hero.
   The email/Instagram/orders details sit under the drawing; phones skip the drawing. */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
/* multiply lets a drawing scanned on white sit on the cream page with no white box */
.contact-art { position: relative; mix-blend-mode: multiply; }
.contact-art img { width: 100%; height: auto; }
.contact-side .contact-grid.compact { margin-top: 8px; border-top: none; padding-top: 0; }
.order-form fieldset { min-width: 0; }
.of-field input, .of-field textarea, .of-field select { min-width: 0; max-width: 100%; }
@media (max-width: 960px) { .contact-layout { gap: 36px; } .contact-layout .of-grid.two { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; gap: 0; }
  .contact-art { display: none; }
  .contact-side .contact-grid.compact { margin-top: 44px; }
}
.of-note-line { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.of-note-line a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
