/* Fruit of the Spirit Gifts — fruitofthespiritgifts.au
   One stylesheet, system fonts, no frameworks. Colours follow the
   Spring/Summer 2026 catalogue: blush and cream, with the logo's navy. */

:root {
  --bg: #fdf6ef;
  --blush: #f7d9e8;
  --peach: #fdeedd;
  --surface: #ffffff;
  --surface-soft: #fbeee6;
  --text: #2a2530;
  --muted: #62586a;
  --rule: #ead9d9;
  --accent: #2c3566;          /* the logo's navy: 11:1 on --bg */
  --accent-strong: #1f2750;
  --on-accent: #ffffff;
  --berry: #9c3a6b;           /* prices, highlights: 6.3:1 on white */
  --kraft: #c9a987;
  --shadow: 0 18px 40px rgba(80, 40, 60, 0.14);
  --radius: 16px;
  --measure: 38rem;
  --display: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d181c;
    --blush: #3a2533;
    --peach: #2e2420;
    --surface: #282126;
    --surface-soft: #2a2227;
    --text: #f4ecef;
    --muted: #c0b2ba;
    --rule: #43363e;
    --accent: #b9c3f5;
    --accent-strong: #d3daff;
    --on-accent: #1d181c;
    --berry: #f0a3c8;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #1d181c;
  --blush: #3a2533;
  --peach: #2e2420;
  --surface: #282126;
  --surface-soft: #2a2227;
  --text: #f4ecef;
  --muted: #c0b2ba;
  --rule: #43363e;
  --accent: #b9c3f5;
  --accent-strong: #d3daff;
  --on-accent: #1d181c;
  --berry: #f0a3c8;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--serif);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; text-transform: uppercase; }
p { margin: 0 0 1em; }

.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: 0.5rem 1rem; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font: 600 0.8rem/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 0.9rem;
}

.meta { font: 0.8rem/1.2 var(--sans); opacity: 0.8; }
.small { font-size: 0.85rem; color: var(--muted); }
.centre { text-align: center; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 0.95rem/1.2 var(--sans);
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); transform: translateY(-1px); }
.button.small { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
.button.ghost { background: transparent; color: var(--accent); }
.button.ghost:hover { background: var(--accent); color: var(--on-accent); }
.button.ghost .meta { font-weight: 400; }
.text-link { font: 600 0.95rem/1.2 var(--sans); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font: 600 1.2rem/1.1 var(--display); font-stretch: condensed;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.brand img { border-radius: 50%; }
.site-header nav { display: flex; align-items: center; gap: 1.25rem; }
.site-header nav a:not(.button) { font: 500 0.92rem/1 var(--sans); color: var(--text); text-decoration: none; }
.site-header nav a:not(.button):hover { color: var(--berry); }

@media (max-width: 860px) { .hide-sm { display: none; } }
@media (max-width: 560px) {
  .hide-xs { display: none; }
  .brand { font-size: 1.02rem; }
  .brand img { width: 30px; height: 30px; }
}
@media (max-width: 380px) { .site-header .button.small { display: none; } }

.notice {
  margin: 0;
  background: var(--accent);
  color: var(--on-accent);
  font: 0.9rem/1.45 var(--sans);
  text-align: center;
  padding: 0.6rem 0;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--peach) 0%, var(--bg) 45%, var(--blush) 100%);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.5rem; }
.signature { font: italic 1.35rem/1 var(--serif); color: var(--muted); margin: 0; }
.logo { margin: 0; }
.logo img { border-radius: 6px; box-shadow: var(--shadow); transform: rotate(1.5deg); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .logo { max-width: min(15rem, 60vw); margin-inline: auto; order: -1; }
}

/* Sections */
section { scroll-margin-top: 4.5rem; }
.section-head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); }

.collection { padding: clamp(3.5rem, 8vw, 6rem) 0 2rem; }

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}
.product.flip .gallery { order: 2; }
.product-body { max-width: var(--measure); padding-top: 0.5rem; }
.price { font: 600 1.35rem/1.2 var(--sans); color: var(--berry); margin-bottom: 1.1rem; }
.price .deal {
  display: inline-block; margin-left: 0.4rem; padding: 0.2rem 0.6rem;
  font-size: 0.85rem; border-radius: 999px; background: var(--blush); color: var(--text); vertical-align: middle;
}
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }

.prices { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-family: var(--sans); font-size: 0.95rem; }
.prices th, .prices td { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.prices th { text-align: left; font-weight: 500; }
.prices th span { color: var(--muted); font-weight: 400; margin-left: 0.35rem; }
.prices td { text-align: right; font-weight: 600; white-space: nowrap; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; background: var(--surface-soft); aspect-ratio: 1; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .feature { grid-column: 1 / -1; aspect-ratio: 4 / 3.4; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery.single .feature { aspect-ratio: auto; }
.gallery.single .feature img { height: auto; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product.flip .gallery { order: 0; }
}

/* Custom shadow boxes */
.custom { background: linear-gradient(180deg, var(--blush), var(--peach)); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.steps, .order-steps {
  list-style: none; margin: 0 0 2.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  counter-reset: step;
}
.steps > li, .order-steps > li {
  counter-increment: step;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: 0 6px 18px rgba(80, 40, 60, 0.07);
}
.steps > li::before, .order-steps > li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem; margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font: 600 1rem/1 var(--sans);
}
.steps h3, .order-steps h3 { font-size: 1.2rem; }
.steps p, .order-steps p { font-size: 0.98rem; color: var(--muted); margin-bottom: 0.5em; }

.palettes { list-style: none; margin: 0.75rem 0 0; padding: 0; font: 500 0.9rem/1.3 var(--sans); }
.palettes li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.6rem; margin-bottom: 0.65rem; }
.palettes li > span:last-child { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.swatches { display: inline-flex; grid-row: span 2; }
.swatches i { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--c); border: 2px solid var(--surface); margin-right: -0.35rem; }
.swatches i:last-child { margin-right: 0.1rem; }

@media (max-width: 960px) { .steps, .order-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps, .order-steps { grid-template-columns: 1fr; } }

/* Verse band */
.verse { padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; }
.verse blockquote { margin: 0 auto; max-width: 44rem; }
.verse p { font: italic clamp(1.5rem, 3.4vw, 2.2rem)/1.35 var(--serif); margin-bottom: 0.6rem; }
.verse footer, .aside-verse footer { font: 600 0.8rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--berry); }

/* Ordering */
.order { padding: 0 0 clamp(3.5rem, 8vw, 6rem); }
.order-steps > li { background: var(--surface-soft); box-shadow: none; }
.order-steps a { overflow-wrap: anywhere; }
.season {
  max-width: 48rem; margin: 0 auto;
  border: 2px dashed var(--kraft);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem 0.8rem;
}
.season h3 { font-size: 1.25rem; }

/* About */
.about { background: var(--surface-soft); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.about .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about .wrap > div { max-width: var(--measure); }
.aside-verse { margin: 2rem 0 0; padding-left: 1.2rem; border-left: 3px solid var(--kraft); }
.aside-verse p { font-style: italic; font-size: 1.15rem; margin-bottom: 0.4rem; }
.counselling { background: var(--surface); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.counselling p { font-size: 0.98rem; color: var(--muted); }
.counselling p:last-child { margin: 0; }

@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; } }

/* Catalogues */
.catalogues { padding: clamp(3rem, 7vw, 5rem) 0; }
.catalogues h2 { text-align: center; }
.catalogue-list { list-style: none; padding: 0; margin: 1.5rem auto 0; max-width: 44rem; display: grid; gap: 0.75rem; }
.catalogue-list a {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem;
  padding: 1.1rem 1.3rem; border: 1px solid var(--rule); border-radius: 12px;
  text-decoration: none; color: var(--text); background: var(--surface);
  font-family: var(--sans);
}
.catalogue-list a:hover { border-color: var(--accent); }
.catalogue-list a::before { content: "↓"; color: var(--accent); font-weight: 700; margin-right: -0.4rem; }
.catalogue-list strong { flex: 1; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; text-align: center; font-family: var(--sans); font-size: 0.95rem; }
.site-footer p { margin-bottom: 0.5rem; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20, 12, 18, 0.9); }
.lightbox img { max-width: min(92vw, 1200px); max-height: 82vh; width: auto; border-radius: 8px; }
.lightbox .caption { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; text-align: center; font: 0.9rem/1.4 var(--sans); margin: 0; }
.lightbox button {
  position: absolute; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  width: 3rem; height: 3rem; border-radius: 50%;
  font: 1.8rem/1 var(--sans);
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox .close { top: 1rem; right: 1rem; }
.lightbox .prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .nav[hidden] { display: none; }
