/* benningtonsoaps.com — small static site, 2026.
   Brand colour #31494a comes from the logo. Light theme only (the logo is drawn for light backgrounds). */

:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #24302f;
  --muted: #5b6766;
  --rule: #dfdcd3;
  --brand: #31494a;
  --brand-hover: #4a6a6b;
  --honey: #c98a1b;
  --check-bg: #fff3b0;      /* draft-only "CHECK" markers */
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1rem; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }

/* ---- Header ---- */
#header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--rule);
}
#logo img { display: block; width: clamp(12rem, 40vw, 16rem); height: auto; }

#nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.98rem; }
#nav a { color: var(--muted); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
#nav a:hover { color: var(--brand); }
#nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--honey); }

/* ---- Main ---- */
#main { padding: 2rem 0 1rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--brand); line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 0 0 0.75rem; }
h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.25rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; max-width: 40rem; }

/* Soap cards on the home page */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.card a { display: block; color: inherit; text-decoration: none; height: 100%; }
.card a:hover h3 { color: var(--brand-hover); text-decoration: underline; }
.card .body { padding: 0.75rem 0.9rem 1rem; }
.card .tag { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Photo, or a placeholder while a photo is pending */
.photo, .nophoto {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #efece4;
}
.nophoto {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}
.nophoto img { width: 28%; opacity: 0.35; }

/* Soaps page: one section per soap */
.soap {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}
.soap:first-of-type { border-top: none; padding-top: 0.5rem; }
.soap .photo, .soap .nophoto { border-radius: 6px; border: 1px solid var(--rule); }
.soap .tag { font-family: var(--serif); font-style: italic; color: var(--muted); margin-bottom: 0.75rem; }
.soap ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.ingredients { font-size: 0.92rem; color: var(--muted); }
.ingredients b { color: var(--text); }

@media (max-width: 40rem) {
  .soap { grid-template-columns: 1fr; }
  .soap .photo, .soap .nophoto { max-width: 18rem; }
}

ul.plain { padding-left: 1.2rem; }
ul.plain li { margin-bottom: 0.4rem; }

.note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--honey);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
}

/* ---- Footer ---- */
#footer {
  margin-top: 3rem;
  padding: 1.25rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
}
#footer p { margin: 0 0 0.35rem; }

/* Draft-only marker for facts to confirm; remove before publishing. */
.check { background: var(--check-bg); padding: 0 0.25em; border-radius: 3px; font-weight: 600; font-style: normal; color: var(--text); }

/* Individual soap pages */
.crumbs { font-size: 0.92rem; margin: 0 0 1rem; }
.soap h1 { margin-bottom: 0.25rem; }
.meta { font-size: 0.95rem; color: var(--muted); margin: 0 0 0.75rem; }
.soap { border-top: none; padding-top: 0; }

/* Visually hidden, still read by screen readers */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Prices */
.price { margin: 0.35rem 0 0; font-weight: 600; color: var(--brand); }
.price.small { font-weight: 400; font-size: 0.9rem; font-style: italic; color: var(--muted); }
.soap .price { font-size: 1.15rem; margin: 0 0 0.35rem; }
.soap .price.small { font-size: 0.95rem; }

/* Previous / next arrows on soap pages */
.pager {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager .all { color: var(--muted); }
section.soap + .pager { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); }

/* Gift set box on the catalogue page */
.giftset h2 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.giftset p { margin: 0; }

/* Home-page photo gallery */
.gallery {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}
.gallery a { position: relative; display: block; border-radius: 6px; overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.2s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.25rem 0.6rem 0.45rem;
  background: linear-gradient(transparent, rgba(20, 30, 30, 0.75));
  color: #fff; font-family: var(--serif); font-size: 1rem;
}
.more { margin: 0; }
.button {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}
.button:hover { background: var(--brand-hover); color: #fff; }

/* Soaps that will be retired when an ingredient runs out */
.limited {
  background: #fbf3e2;
  border-left: 3px solid var(--honey);
  padding: 0.45rem 0.75rem;
  border-radius: 3px;
  font-size: 0.95rem;
}
.limited-badge {
  display: inline-block;
  margin: 0.4rem 0 0;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: #fbf3e2;
  color: #8a5a00;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
