/* thebaislabs.com — v1 stylesheet
   Mobile-first. 16px side gutters. No horizontal scroll. System font stack.
   Copied verbatim into site/dist/style.css by tools/build_site.py. */

:root {
  /* Colour tokens sampled directly from brand/final/profile-1080.png with
     Pillow, 2026-09-28 (one-off sampling script, run by hand — the build
     tool itself is stdlib-only and does not read pixels at build time):
       cream: average of a 50x50 corner patch of the seal artwork -> rgb(253,245,229) #fdf5e5
       red:   average of ring pixels at 0.62x the half-width (the solid
              outer badge band) -> rgb(200,77,62) #c84d3e
     --color-red-text is the sampled red nudged toward black (same
     adjust_for_contrast() approach as brand/make_brand_images.py) so it
     reaches 4.5:1 contrast on cream for use as body/link text; the raw
     sampled red (--color-red) is 4.22:1 and is used for large text, buttons
     and decorative accents only. */
  --color-cream: #fdf5e5;
  --color-red: #c84d3e;
  --color-red-text: #be493b;
  --color-text: #2b241e;
  --color-text-muted: #5c5349;
  --color-border: #e8ddc8;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-system);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: var(--color-red-text);
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--color-border);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: bold;
}

.brand-link .seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.brand-name {
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--color-red-text);
}

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px var(--gutter) 48px;
}

.site-main h1 {
  font-size: 1.6rem;
  line-height: 1.25;
}

.site-main h2 {
  font-size: 1.2rem;
  margin-top: 2em;
}

.site-main ul {
  padding-left: 1.2em;
}

.button,
.see-it {
  display: inline-block;
  background: var(--color-red);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 8px;
}

.button:hover,
.see-it:hover,
.button:focus,
.see-it:focus {
  background: var(--color-red-text);
  text-decoration: none;
}

.blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

.block {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
}

.product-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.placeholder-tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  margin-bottom: 12px;
  background: var(--color-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.product-name {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.product-blurb {
  color: var(--color-text-muted);
  margin: 0 0 8px;
}

.product-price {
  font-weight: 700;
  margin: 0 0 8px;
}

.go-redirect {
  text-align: center;
}

.go-redirect .brand-link {
  justify-content: center;
  margin-bottom: 24px;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 24px var(--gutter) 40px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: var(--color-text-muted);
}

@media (min-width: 640px) {
  .blocks {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
