/* Saxon House — palette and type follow the original Wix site */
:root {
  --bg: #FAF2F4;          /* soft pink: every page, header and footer */
  --bg-deep: #F3E7EB;     /* image placeholders, table heads */
  --ink: #0E1236;
  --indigo: #29335C;
  --muted: #5E6380;
  --line: #E8D9DF;
  --tangerine: #F29559;
  --tangerine-deep: #D9773A;
  --cornflower: #648DE5;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--indigo); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
em.tang { color: var(--tangerine-deep); font-family: var(--serif); font-style: italic; }
em.corn { color: var(--cornflower); font-family: var(--serif); font-style: italic; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cornflower); outline-offset: 3px; }

/* Underline links: navy at rest, cornflower on hover, tangerine when selected.
   Used by the main menu and the shop filters. */
.uline {
  position: relative; text-decoration: none; color: var(--ink);
  text-transform: uppercase; letter-spacing: .14em; font-size: 14px; font-weight: 400;
  padding: 8px 0; transition: color .15s;
}
.uline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.uline:hover { color: var(--cornflower); }
.uline:hover::after, .uline[aria-current="page"]::after { transform: scaleX(1); }
.uline[aria-current="page"] { color: var(--tangerine-deep); }

/* Header: logo left, menu centred */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; padding: 0 var(--gutter); }
.logo { justify-self: start; display: block; }
.logo img { width: 52px; height: 52px; mix-blend-mode: multiply; margin: -4px; }
.nav { display: flex; gap: clamp(22px, 5vw, 64px); }
@media (max-width: 520px) { .nav .uline { font-size: 12px; letter-spacing: .12em; } }

/* Buttons: orange italic serif link with an underline and arrow; light blue on hover.
   Every button on the site uses this. The shop filters use .uline instead. */
.btn {
  display: inline-flex; align-items: baseline; gap: 12px;
  padding: 4px 0 6px; background: none; border: 0; border-bottom: 1px solid currentColor;
  color: var(--tangerine-deep); text-decoration: none;
  font: italic 400 20px/1.2 var(--serif); letter-spacing: .01em;
  transition: color .2s ease;
}
.btn::after { content: "\2192"; font: normal 400 .9em/1 var(--sans); transition: transform .2s ease; }
.btn:hover { color: var(--cornflower); }
.btn:hover::after { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.btn-row.center { justify-content: center; }

/* Home: staggered photo collage, full width */
.collage { display: flex; gap: 6px; align-items: flex-start; }
.collage .col { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.collage figure { margin: 0; overflow: hidden; background: var(--bg-deep); }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.collage figure:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .collage .col:nth-child(n+4) { display: none; } .collage, .collage .col { gap: 4px; } }

/* Sections */
section { padding: clamp(36px, 5vw, 64px) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--muted); margin-bottom: 14px; font-weight: 400; }
.brief { display: grid; grid-template-columns: auto minmax(0, 560px); gap: clamp(28px, 5vw, 72px); justify-content: center; align-items: start; }
.brief h2 { font-size: clamp(34px, 4.4vw, 54px); white-space: nowrap; }
.prose { font-size: 17px; max-width: 58ch; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .2em 0; }
@media (max-width: 760px) { .brief { grid-template-columns: 1fr; } }

.chapter-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: clamp(22px, 3vw, 36px); }
.chapter-head h1, .chapter-head h2 { font-size: clamp(32px, 4.4vw, 52px); }
.chapter-head .bar { color: var(--tangerine); font-weight: 300; margin: 0 .18em; }
.chapter-head .intro { max-width: 60ch; color: var(--muted); }
.chapter-head .intro p:last-child { margin: 0; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 44%), 1fr)); gap: clamp(14px, 2.4vw, 32px) clamp(12px, 2vw, 28px); }
.grid.few { grid-template-columns: repeat(auto-fit, minmax(min(260px, 44%), 300px)); justify-content: center; }
.card { text-decoration: none; display: block; }
.card .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-deep); }
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform 1.2s ease; }
.card .ph img.alt { opacity: 0; }
.card:hover .ph img.alt { opacity: 1; }
.card:hover .ph img { transform: scale(1.03); }
.card .meta { padding: 14px 2px 0; text-align: center; }
.card .name { font-family: var(--serif); font-size: 19px; color: var(--indigo); }
.card .price { font-size: 14px; color: var(--muted); letter-spacing: .04em; margin-top: 2px; }
.card .sold { color: var(--tangerine-deep); }
.card.is-sold .ph img { filter: saturate(.75); }
/* Learn teaser */
.teaser { text-align: center; max-width: 640px; margin: 0 auto; }
.teaser h2 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 18px; }
.teaser p { color: var(--muted); }
.teaser .btn-row { justify-content: center; margin-top: 26px; }

/* Shop page */
.page-head { padding: clamp(28px, 4vw, 48px) 0 clamp(16px, 2vw, 24px); text-align: center; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 68px); }
.tabs .uline { font-size: 13px; white-space: nowrap; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px clamp(20px, 4vw, 44px); margin-top: 26px; }
.shop-section { padding: clamp(20px, 3vw, 36px) 0 clamp(40px, 6vw, 72px); }

/* Product page */
.crumbs { font-size: 13px; color: var(--muted); padding: 20px 0 0; letter-spacing: .04em; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--cornflower); }
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: 20px 0 clamp(36px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 12px; position: sticky; top: 92px; }
.thumbs { display: flex; flex-direction: column; gap: 8px; height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: none; }
.thumbs button { padding: 0; border: 1px solid transparent; background: var(--bg-deep); cursor: pointer; aspect-ratio: 4/5; flex: none; opacity: .6; transition: opacity .15s, border-color .15s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; border-color: var(--indigo); }
.stage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4/5; background: var(--bg-deep); }
.stage::-webkit-scrollbar, .thumbs::-webkit-scrollbar, .strip::-webkit-scrollbar { display: none; }
.stage a { flex: 0 0 100%; scroll-snap-align: center; cursor: zoom-in; }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.dots { display: none; justify-content: center; gap: 6px; margin-top: 12px; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s; }
.dots span.on { background: var(--indigo); }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr; position: static; margin: 0 calc(var(--gutter) * -1); }
  .thumbs { display: none; }
  .dots { display: flex; }
}
.info .chap { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--muted); text-decoration: none; }
.info .chap:hover { color: var(--cornflower); }
.info h1 { font-size: clamp(40px, 5vw, 64px); margin: 10px 0 8px; }
.info .price { font-size: 20px; letter-spacing: .04em; color: var(--indigo); }
.info .price.sold { color: var(--tangerine-deep); }
.info .lede { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--indigo); margin: 26px 0 0; }
.info h2 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); font-weight: 400; margin: 30px 0 10px; }
.details { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.details li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.details li::before { content: "✦"; color: var(--tangerine); font-size: 11px; line-height: 2.2; }
.purchase { margin-top: 34px; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); border-radius: 4px; background: color-mix(in srgb, #fff 45%, transparent); }
.purchase h2 { font-family: var(--serif); font-size: 28px; text-transform: none; letter-spacing: -0.01em; color: var(--tangerine-deep); margin: 0 0 8px; }
.purchase p { color: var(--muted); font-size: 15px; }
.purchase .btn-row { margin-top: 18px; }
.purchase .small { font-size: 13px; margin: 16px 0 0; }
.purchase .small a { color: var(--indigo); }
.size-link { font-size: 14px; margin-top: 12px; display: inline-block; color: var(--indigo); }
.size-link:hover { color: var(--cornflower); }

/* Learn page */
.learn-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; padding: clamp(24px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); }
.learn-hero img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.learn-hero h1 { font-size: clamp(40px, 5.6vw, 72px); margin-bottom: 24px; }
.principles { list-style: none; padding: 0; margin: 6px 0 22px; display: flex; flex-direction: column; gap: 4px; }
.principles li { font-family: var(--serif); font-style: italic; color: var(--tangerine-deep); font-size: 22px; line-height: 1.35; }
@media (max-width: 760px) { .learn-hero { grid-template-columns: 1fr; } }
.guide h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 12px; }
.guide .sub { color: var(--muted); max-width: 62ch; margin-bottom: 28px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); background: var(--bg-deep); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--cornflower) 7%, transparent); }
td.wrap-cell { white-space: normal; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 0 0 24px; }
.steps li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps strong { font-weight: 500; color: var(--indigo); }

/* Learn: one horizontal photo banner, full width, drifting slowly */
.strip-band { overflow: hidden; }
.strip { overflow: hidden; }
.strip-track { display: flex; gap: 6px; width: max-content; animation: drift 90s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip img { height: clamp(180px, 22vw, 300px); width: auto; flex: none; object-fit: cover; }
@keyframes drift { to { transform: translateX(-50%); } }

/* Footer: same soft pink */
.site-footer { background: var(--bg); color: var(--ink); padding: clamp(32px, 5vw, 56px) 0 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cornflower); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid .logo img { width: 54px; height: 54px; margin: -6px -6px 10px; }
.foot-grid h3 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-bottom: 14px; font-weight: 400; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 0 0 8px; }
.foot-grid p { color: var(--muted); max-width: 34ch; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: span 2; } }

/* Reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .collage img, .card .ph img { transition: none; }
  .strip { overflow-x: auto; scrollbar-width: none; }
  .strip-track { animation: none; }
  .strip-track [aria-hidden="true"] { display: none; }
}
.page-head .intro { max-width: 60ch; margin: 16px auto 0; color: var(--muted); }
.page-head .intro p:last-child { margin: 0; }
.page-head h1 .bar { color: var(--tangerine); font-weight: 300; margin: 0 .18em; }
@media (max-width: 520px) {
  .tabs { flex-wrap: nowrap; gap: 16px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
  .tabs .uline { font-size: 11px; letter-spacing: .08em; }
}
.prose .principles { padding-left: 0; }
