/* Glaze of Glory - a demonstration site for bernard.
   Ground: pale clay, lighter than the linen the pots are photographed on. Accent: celadon. Band: tenmoku. Sale and stock labels: shino. */
@font-face { font-family: "Young Serif"; src: url("assets/fonts/young-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("assets/fonts/public-sans-400.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("assets/fonts/public-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #f9f2ee; --surface: #fdf9f7; --ink: #1f2723; --muted: #585f5a; --rule: #ecdfd8;
  --celadon: #1c5e53; --celadon-soft: #dde8e2; --tenmoku: #33261d; --shino: #a4501f;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem; --gutter: clamp(1rem, 4vw, 2.5rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--celadon); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--celadon); outline-offset: 3px; border-radius: 2px; }

/* Header: shared with every shop and course page */
.site-header { max-width: var(--wrap); margin: 0 auto; padding: 1.25rem var(--gutter); display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; justify-content: space-between; }
.site-header .site-name { font-family: var(--display); font-size: 1.5rem; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; margin: 0; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-bottom-color: var(--celadon); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1.5px solid var(--celadon); transition: background-color 0.15s, color 0.15s; }
.button-primary { background: var(--celadon); color: var(--paper); }
.button-primary:hover { background: #164c43; }
.button-quiet { color: var(--celadon); background: transparent; }
.button-quiet:hover { background: var(--celadon-soft); }
.button-light { border-color: var(--paper); color: var(--paper); }
.button-light:hover { background: rgba(249, 242, 238, 0.12); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5rem); }
.hero-text { display: grid; gap: 1.1rem; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.hero-photo { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Section heads */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; justify-content: space-between; margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head .more { font-weight: 600; text-decoration: none; }
.section-head .more:hover { text-decoration: underline; }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.75rem); }
.card { display: grid; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.card-photo { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--surface); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-photo img { transform: scale(1.03); }
.tag { position: absolute; left: 0.7rem; top: 0.7rem; background: var(--surface); color: var(--shino); font-size: 0.78rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; }
.card-name { font-family: var(--display); font-size: 1.2rem; }
.card-price { color: var(--muted); font-variant-numeric: tabular-nums; }
.card-price s { margin-left: 0.4rem; }
.card-price .now { color: var(--shino); font-weight: 600; }

/* Courses band */
.band { background: var(--tenmoku); color: var(--paper); }
.band .eyebrow { color: #d8cdbf; }
.band .section-head .more { color: var(--paper); }
.courses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(243, 239, 232, 0.18); border-radius: 6px; overflow: hidden; }
.course { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem 1.4rem 1.6rem; background: var(--tenmoku); color: var(--paper); text-decoration: none; min-height: 13rem; }
.course:hover { background: #3d2e23; }
.course h3 { font-size: 1.45rem; }
.course p { color: #d8cdbf; font-size: 0.97rem; }
.course .price { margin-top: auto; color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Club */
.club { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; background: var(--celadon-soft); border-radius: 6px; padding: clamp(1.5rem, 4vw, 2.75rem); }
.club h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.6rem; }
.club p { color: var(--ink); max-width: 52ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: clamp(2.5rem, 6vw, 4rem); }
.site-footer .wrap { padding-block: 2rem 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; color: var(--muted); font-size: 0.92rem; }
.site-footer a { color: var(--muted); }

@media (max-width: 900px) {
  .products, .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { order: -1; }
  .club { grid-template-columns: minmax(0, 1fr); }
  .courses { grid-template-columns: minmax(0, 1fr); }
  .course { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .card-photo img, .button { transition: none; } }

/* bernard's generated pages (shop, products, courses, club). Their own stylesheets load after
   this one, so these rules carry one extra element in the selector to win. */
body .shop-main, body .course-main { max-width: var(--wrap); padding-inline: var(--gutter); }
body .bnd-club { max-width: 44rem; padding-inline: var(--gutter); }
body .shop-main h1, body .course-main h1, body .course-main h2, body .bnd-club h1, body .bnd-club h2 { font-family: var(--display); font-weight: 400; }
body .shop-collections { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 1.75rem; }
body .shop-collections a { color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 0.4rem 0.95rem; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--surface); }
body .shop-collections a:hover, body .shop-collections a[aria-current] { border-color: var(--celadon); color: var(--celadon); }
body .shop-card a, body a.shop-card { color: var(--ink); text-decoration: none; }
body .shop-card .shop-price, body .shop-product-info .shop-price { font-variant-numeric: tabular-nums; }
body .shop-was { color: var(--muted); }
body .shop-option select { font: inherit; font-size: 1rem; min-height: 2.75rem; min-width: 12rem; padding: 0.4rem 2rem 0.4rem 0.75rem; border: 1.5px solid var(--rule); border-radius: 6px; background-color: var(--surface); color: var(--ink); }
body .shop-soon, body .course-soon { color: var(--muted); font-style: italic; }
body .shop-footer, body .course-footer { max-width: var(--wrap); margin: clamp(2.5rem, 6vw, 4rem) auto 0; padding: 1.75rem var(--gutter); border-top: 1px solid var(--rule); justify-content: flex-start; }
body .shop-footer a, body .course-footer a { color: var(--muted); font-family: var(--display); font-size: 1.1rem; text-decoration: none; }

/* Demo sandbox banner: inside header.site-header, so every generated page carries it too. */
.site-header { position: relative; padding-top: calc(1.25rem + var(--demo-banner-h, 2.4rem)); }
.site-header .demo-banner { position: absolute; left: calc(50% - 50vw); width: 100vw; box-sizing: border-box; top: 0; margin: 0; padding: 0.55rem var(--gutter); background: #9a4517; color: #fff8f2; font: 400 0.86rem/1.4 var(--body); text-align: center; }
.site-header .demo-banner strong { display: inline-block; margin-right: 0.6rem; padding: 0.1rem 0.55rem; border: 1px solid #ffe9a8; border-radius: 999px; color: #ffe9a8; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 1px; }
html, body { overflow-x: clip; }
.site-header { --demo-banner-h: 2.3rem; }
@media (max-width: 640px) { .site-header { --demo-banner-h: 3.9rem; } .site-header .demo-banner { font-size: 0.8rem; text-align: left; } }

/* Hide the banner for a demo or film: CSS only (scripts are stripped), so it returns on the next page. */
.demo-hide-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header .demo-banner { padding-right: 3rem; }
.site-header .demo-close { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 999px; color: #fff8f2; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.site-header .demo-close:hover { background: rgba(255, 248, 242, 0.15); }
.demo-hide-toggle:focus-visible + .demo-banner .demo-close { outline: 2px solid #ffe9a8; outline-offset: 2px; }
.demo-hide-toggle:checked + .demo-banner { display: none; }
.site-header:has(.demo-hide-toggle:checked) { --demo-banner-h: 0rem; }
