/* Missional Creations: shared styles for every page.
   Layout: multi-page site, light only. Serif headings tie the pages to the verses;
   a thin cyan/magenta/yellow ink strip is the one piece of ornament. */
:root {
  color-scheme: light;
  --paper: #f7f6f4;
  --surface: #ffffff;
  --ink: #23212b;
  --muted: #625f6c;
  --line: #e2dfdb;
  --accent: #b0136b;        /* magenta ink */
  --accent-ink: #ffffff;
  --cyan: #0e9fc4;
  --yellow: #f2c230;
  --field: #ffffff;
  --ok: #1d7a4c;
  --warn: #a35a00;
  --tint: #fbe9f2;

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --s-1: 0.8125rem;
  --s0: 1rem;
  --s1: 1.25rem;
  --s2: 1.875rem;
  --s3: clamp(2.5rem, 5vw, 3.5rem);
  --s4: clamp(2.75rem, 6.5vw, 4.75rem);
  --wrap: 68rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--s0)/1.6 var(--body);
}
img { max-width: 100%; }
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }

/* ink strip: the three sublimation inks */
.inks { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 5px; }
.inks span:nth-child(1) { background: var(--cyan); }
.inks span:nth-child(2) { background: var(--accent); }
.inks span:nth-child(3) { background: var(--yellow); }

/* header + nav
   Wide screens: logo, then category links in one row.
   Narrower screens: menu button, centered logo, "Request" link; the menu opens full screen. */
header.top { padding-block: 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
header.top > .wrap { display: flex; align-items: center; gap: 12px 28px; }
.brand { font: 700 1.5rem/1 var(--display); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: 700; }
.cross { width: 0.7em; height: 0.95em; fill: var(--accent); flex: none; }
#site-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
#site-nav > a { text-decoration: none; font-weight: 500; color: var(--muted); padding-block: 6px; white-space: nowrap; }
#site-nav > a:hover { color: var(--ink); }
#site-nav > a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
#site-nav > a.nav-cta {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
}
#site-nav > a.nav-cta[aria-current="page"] { box-shadow: none; }
.nav-top, .nav-card, .menu-btn, .mobile-cta { display: none; }
.menu-btn, .menu-close {
  background: none; border: 0; color: var(--ink);
  padding: 8px; margin: -8px; line-height: 0; cursor: pointer;
}
.menu-btn svg, .menu-close svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mobile-cta { font-weight: 600; color: var(--accent); text-decoration: none; justify-self: end; }

@media (max-width: 69.99rem) {
  .js header.top > .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
  .js .menu-btn { display: inline-flex; justify-self: start; }
  .js .mobile-cta { display: inline; }
  .js #site-nav { display: none; }
  .js #site-nav.open {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 0; margin: 0;
    position: fixed; inset: 0; z-index: 50; overflow-y: auto;
    background: var(--surface);
    padding: calc(env(safe-area-inset-top, 0px) + 14px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(16px, env(safe-area-inset-left, 0px));
  }
  .js #site-nav.open .nav-top {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 14px; margin-bottom: 4px;
    border-bottom: 2px solid var(--accent);
  }
  .js #site-nav.open > a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid var(--line);
    color: var(--ink); font-weight: 600; font-size: 1.0625rem;
  }
  .js #site-nav.open > a::after { content: "›"; color: var(--muted); font-size: 1.375rem; line-height: 1; }
  .js #site-nav.open > a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .js #site-nav.open > a.nav-cta { display: none; }
  .js #site-nav.open .nav-card {
    display: grid; gap: 10px; justify-items: center; text-align: center;
    margin-top: 24px; padding: 22px 18px; border-radius: 14px;
    background: var(--tint);
  }
  .nav-card strong { font: 700 1.5rem/1.2 var(--display); }
  .nav-card p { color: var(--muted); max-width: 30ch; }
  .nav-card .nav-email { color: var(--muted); font-size: var(--s-1); overflow-wrap: anywhere; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font: 600 var(--s0)/1 var(--body);
  text-decoration: none;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* home hero: words on the left, a real photo on the right */
.hero { padding-block: 48px 56px; }
.hero .wrap { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) {
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 48px; }
}
.hero-text { display: grid; gap: 24px; }
.hero h1 { font-size: var(--s4); max-width: 16ch; }
.hero-photo { margin: 0; width: min(26rem, 100%); justify-self: center; }
.hero-photo img { width: 100%; height: auto; display: block; border-radius: 14px; }
.hero-photo figcaption { font-size: var(--s-1); color: var(--muted); margin-top: 8px; text-align: center; }
.lede { font-size: var(--s1); color: var(--muted); max-width: 46ch; }

/* inner page heading */
.page-head { padding-block: 44px 8px; }
.page-head .wrap { display: grid; gap: 12px; }
.page-head h1 { font-size: var(--s3); }

/* scripture */
.verse-band { background: var(--surface); border-block: 1px solid var(--line); padding-block: 52px; }
.verse-band .wrap { display: grid; gap: 12px; }
.verse {
  margin: 0;
  font: italic 500 clamp(1.75rem, 4.2vw, 2.75rem)/1.2 var(--display);
  max-width: 30ch;
  text-wrap: balance;
}
.verse-ref { font: 600 var(--s-1)/1.3 var(--body); color: var(--accent); }
.verse-note { color: var(--muted); max-width: 52ch; }
.signoff { font: italic 500 var(--s1)/1.3 var(--display); color: var(--ink); }

/* sections */
section.block { padding-block: 56px; }
section.block + section.block { border-top: 1px solid var(--line); }
.page-head + section.block { padding-top: 28px; }
.section-head { display: grid; gap: 8px; margin-bottom: 28px; max-width: 40rem; }
.section-head h2 { font-size: var(--s3); }
.section-head p { color: var(--muted); }
.section-foot { margin-top: 28px; }

/* plain lists of what she makes (home) */
.make-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  column-gap: 32px;
}
.make-list li { border-bottom: 1px solid var(--line); }
.make-list a { display: block; padding-block: 12px; text-decoration: none; font-weight: 500; }
.make-list a:hover { color: var(--accent); }

/* shop: categories with product entries */
.group-title { font-size: var(--s2); margin: 36px 0 4px; scroll-margin-top: 16px; }
.group-title:first-child { margin-top: 0; }
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; }
@media (min-width: 46rem) { .products { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.products li { padding-block: 18px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; align-content: start; scroll-margin-top: 16px; }
.products h3 { font-size: 1.5rem; }
.products p { color: var(--muted); }
.products .soon { font-style: italic; color: var(--warn); font-size: var(--s-1); }

/* ready-made cards */
.ready-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 20px;
}
.ready {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.ready .photo {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--line);
}
.ready .photo.empty { display: grid; place-items: center; color: var(--muted); background: var(--line); font-size: var(--s-1); }
.ready .body { padding: 18px 18px 20px; display: grid; gap: 8px; grid-template-rows: auto 1fr auto; }
.ready .top-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ready h3 { font-size: 1.5rem; }
.ready .price { font: 700 1.5rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ready p { color: var(--muted); font-size: 0.9375rem; }
.ready .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ready .btn { padding: 10px 16px; font-size: 0.9375rem; }
.ready.sold .photo { filter: grayscale(1); opacity: 0.6; }
.ready .stock { font-size: var(--s-1); color: var(--muted); }
.ready-empty { color: var(--muted); }

/* how ordering works: a short numbered list */
.steps { margin: 0; padding-left: 1.5em; max-width: 44rem; display: grid; gap: 14px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.steps strong { color: var(--ink); }
.steps li { color: var(--muted); }

/* about */
.about { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.family { margin: 0; display: grid; gap: 10px; width: min(26rem, 100%); }
.family img { width: 100%; height: auto; border-radius: 14px; display: block; }
.family figcaption { font-size: var(--s-1); color: var(--muted); }
.story { display: grid; gap: 18px; max-width: 62ch; }
.story h2 { font-size: var(--s2); padding-top: 8px; }
.quote {
  font: italic 500 var(--s2)/1.25 var(--display);
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  text-wrap: balance;
}

/* request */
.request { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .request { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } }
.request aside { display: grid; gap: 16px; align-content: start; color: var(--muted); }
.request aside strong { color: var(--ink); }
.request aside a { color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.mini-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.mini-steps li::marker { color: var(--accent); font-weight: 700; }
form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(20px, 4vw, 32px);
  display: grid;
  gap: 18px;
}
.row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .hint, form > .hint { font-size: var(--s-1); color: var(--muted); font-weight: 400; }
form > .hint { margin-top: -8px; }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
textarea.short { min-height: 5rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type="file"] { padding: 10px; cursor: pointer; }
input[type="file"]::file-selector-button {
  font: 600 0.9375rem/1 var(--body);
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  margin-right: 12px;
  cursor: pointer;
}
#artwork-note { color: var(--ok); font-weight: 600; }
.hidden-field { position: absolute; left: -9999px; }
.form-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.form-foot small { color: var(--muted); }
.status {
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 500;
  border: 1.5px solid var(--c);
  color: var(--ink);
}
.status.good { --c: var(--ok); }
.status.bad { --c: var(--warn); }

/* footer */
footer { padding-block: 40px 56px; border-top: 1px solid var(--line); color: var(--muted); background: var(--surface); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
footer .footer-verse { font: italic 500 var(--s1)/1.3 var(--display); color: var(--ink); }
footer .footer-email { color: var(--ink); font-weight: 500; text-decoration: none; }
footer .footer-email:hover { color: var(--accent); text-decoration: underline; }
