/* ==========================================================================
   Layered by Light — stylesheet
   --------------------------------------------------------------------------
   EVERYTHING VISUAL IS CONTROLLED FROM THE :root BLOCK BELOW.
   To restyle the entire site, change these values only. Do not hunt through
   the rest of the file — nothing below hardcodes a colour or a font.
   ========================================================================== */

:root {
  /* --- Colour ------------------------------------------------------------ */
  --c-bg:           #faf7f2;   /* page background - warm off-white */
  --c-surface:      #ffffff;   /* cards, panels */
  --c-surface-alt:  #f2ece2;   /* subtle banded sections */
  --c-ink:          #24201c;   /* primary text */
  --c-ink-soft:     #6b6258;   /* secondary text */
  --c-line:         #e2d9cc;   /* borders, rules */
  --c-accent:       #b08442;   /* brass - buttons, links, highlights */
  --c-accent-dark:  #8a6730;   /* accent hover */
  --c-accent-soft:  #f6eddf;   /* accent tint backgrounds */
  --c-glow:         #ffd79a;   /* the "light" in Layered by Light */
  --c-error:        #a8342a;
  --c-success:      #3d6b47;

  /* --- Type -------------------------------------------------------------- */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --fs-xs:   0.78rem;
  --fs-sm:   0.88rem;
  --fs-base: 1rem;
  --fs-md:   1.15rem;
  --fs-lg:   1.5rem;
  --fs-xl:   2.1rem;
  --fs-2xl:  2.9rem;
  --lh-tight: 1.2;
  --lh-body:  1.65;

  /* --- Space, shape, motion ---------------------------------------------- */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4.5rem;
  --radius:    10px;
  --radius-sm: 6px;
  --shadow:    0 2px 10px rgba(36, 32, 28, 0.07);
  --shadow-lg: 0 10px 34px rgba(36, 32, 28, 0.13);
  --maxw:      1140px;
  --maxw-prose: 68ch;
  --transition: 160ms ease;
}

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

/* The hidden attribute must beat any display rule below, or elements the
   JavaScript hides (the order form after submitting, the address field for
   self-collection) stay on screen. */
[hidden] { display: none !important; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-tight); font-weight: 600; }
h1 { font-size: var(--fs-2xl); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p + p { margin-top: var(--sp-4); }
a { color: var(--c-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-ink); }
.prose { max-width: var(--maxw-prose); }
.muted { color: var(--c-ink-soft); }
.small { font-size: var(--fs-sm); }
.eyebrow {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--c-accent-dark); font-weight: 600;
}

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding-block: var(--sp-8); }
.section--alt { background: var(--c-surface-alt); }
main { flex: 1 0 auto; }
.stack > * + * { margin-top: var(--sp-4); }
.grid { display: grid; gap: var(--sp-5); }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.split { display: grid; gap: var(--sp-7); grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-4); }
.logo { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; text-decoration: none; color: var(--c-ink); letter-spacing: 0.01em; }
.logo span { color: var(--c-accent); }
.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav a { text-decoration: none; color: var(--c-ink-soft); font-size: var(--fs-sm); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-ink); }
.basket-link { position: relative; }
.basket-count {
  background: var(--c-accent); color: #fff; font-size: var(--fs-xs); font-weight: 700;
  border-radius: 999px; padding: 0 var(--sp-2); margin-left: var(--sp-1);
  display: inline-block; min-width: 1.35em; text-align: center;
}
.basket-count[hidden] { display: none; }
@media (max-width: 600px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; }
  .nav { gap: var(--sp-4); flex-wrap: wrap; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { background: linear-gradient(170deg, var(--c-accent-soft), var(--c-bg) 70%); padding-block: var(--sp-8); }
.hero__inner { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 860px) { .hero__inner { grid-template-columns: 1.05fr 0.95fr; } }
.hero p.lede { font-size: var(--fs-md); color: var(--c-ink-soft); max-width: 46ch; }
.hero__art {
  aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  background: radial-gradient(ellipse at 50% 62%, var(--c-glow), var(--c-accent) 46%, var(--c-ink) 100%);
  display: grid; place-items: center; color: #fff8ec; font-family: var(--font-display);
  text-align: center; padding: var(--sp-5);
}

/* A real photograph in the hero: square, so a framed piece is never cropped
   top and bottom the way the 4:3 placeholder box would. */
img.hero__art {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  background: none;
  padding: 0;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-5); font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn--block { display: block; width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* --- Cards ---------------------------------------------------------------- */
.card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card__media { aspect-ratio: 1 / 1; background: var(--c-surface-alt); display: grid; place-items: center; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card__title { font-size: var(--fs-md); }
.card__title a { text-decoration: none; color: var(--c-ink); }
.card__price { font-weight: 700; color: var(--c-accent-dark); }
.card__foot { margin-top: auto; padding-top: var(--sp-3); }

/* --- Panels / notes ------------------------------------------------------- */
.panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--sp-5); }
.note {
  border-left: 3px solid var(--c-accent); background: var(--c-accent-soft);
  padding: var(--sp-4); border-radius: var(--radius-sm); font-size: var(--fs-sm);
}
.note--warn { border-left-color: var(--c-error); background: #fbeceb; }
.badge {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600; border-radius: 999px;
  padding: var(--sp-1) var(--sp-3); background: var(--c-accent-soft); color: var(--c-accent-dark);
}

/* --- Forms / configurator ------------------------------------------------- */
.field { margin-bottom: var(--sp-5); }
.field__label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.field__req { color: var(--c-error); }
.field__help { font-size: var(--fs-xs); color: var(--c-ink-soft); margin-top: var(--sp-2); }
.field__count { font-size: var(--fs-xs); color: var(--c-ink-soft); float: right; font-weight: 400; }
.field__count.is-full { color: var(--c-error); }
.field__error { font-size: var(--fs-xs); color: var(--c-error); margin-top: var(--sp-2); font-weight: 600; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="file"], select, textarea {
  width: 100%; padding: var(--sp-3); background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-soft);
}
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--c-error); }
textarea { min-height: 6rem; resize: vertical; }

/* --- Price summary -------------------------------------------------------- */
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); }
.price-row + .price-row { margin-top: var(--sp-2); }
.price-total { font-size: var(--fs-lg); font-weight: 700; font-family: var(--font-display); color: var(--c-accent-dark); }

/* --- Basket / order ------------------------------------------------------- */
.basket-item { display: grid; gap: var(--sp-3); padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-line); }
.basket-item__head { display: flex; justify-content: space-between; gap: var(--sp-4); align-items: baseline; }
.spec-list { font-size: var(--fs-sm); color: var(--c-ink-soft); display: grid; gap: var(--sp-1); }
.spec-list div { display: flex; gap: var(--sp-2); }
.spec-list dt { font-weight: 600; min-width: 9rem; color: var(--c-ink); }
.spec-list dd { margin: 0; }
.link-danger { background: none; border: none; color: var(--c-error); cursor: pointer; font-size: var(--fs-xs); text-decoration: underline; padding: 0; }

/* --- Steps ---------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.steps li::before {
  content: counter(step); background: var(--c-accent); color: #fff; font-weight: 700;
  width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center;
  font-size: var(--fs-sm);
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--c-ink); color: #cbc2b6; margin-top: var(--sp-8);
  padding-block: var(--sp-7); font-size: var(--fs-sm);
}
.site-footer a { color: var(--c-glow); }
.site-footer__grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h4 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--sp-3); }
.site-footer ul { display: grid; gap: var(--sp-2); list-style: none; padding: 0; margin: 0; }

/* --- Utilities ------------------------------------------------------------ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-6 { margin-top: var(--sp-6); }
.empty-state { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--c-ink-soft); }
