/* v0.8 design pass: the art stands out, everything else is background. Palette per Ron (2026-10). */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-latin-500-normal.woff2) format("woff2"); }

:root {
  /* palette */
  --navy: #1B3A4B; --teal: #2A6F7F; --glass: #7BA7A0; --glass-tint: #DCE8E4; --foam: #F4F1EA; --sand: #C4B39A; --drift: #8C7355;
  /* roles (names kept from v0.1 so page-level styles still work) */
  --ink: var(--navy); --muted: #4F6874; --paper: var(--foam); --card: #FBFAF6; --line: #C9D9D4;
  --accent: var(--teal); --save: var(--teal); --radius: 8px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 3px rgba(27,58,75,.2), 0 6px 14px rgba(27,58,75,.10);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; }
h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 12px; }
a { color: var(--teal); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.wrap.prose, main.prose { max-width: 820px; }

/* header + footer: navy with a sea-glass edge */
header.site { background: var(--navy); border-bottom: 4px solid var(--glass); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { height: 48px; width: auto; }
nav.site { margin-left: auto; flex: 0 0 auto; }
nav.site a { margin-left: 20px; text-decoration: none; color: var(--foam); font-size: .8rem; letter-spacing: .04em; }
/* v0.10.1 tagline in the header, right of the signature */
.tagline { margin: 0; font: 400 1.4rem/1.2 var(--serif); color: var(--foam); letter-spacing: .01em; min-width: 0; }
.tagline strong { font-weight: 600; }
.tagline em { font-style: italic; font-weight: 500; color: var(--glass); }
@media (max-width: 1100px) { .tagline { font-size: 1.15rem; } .tagline em { display: block; } }
nav.site a:hover { color: var(--glass-tint); text-decoration: underline; text-underline-offset: 4px; }
nav.site a.nav-cart { background: var(--glass); color: var(--navy); padding: 6px 16px; border-radius: 999px; font-weight: 500; }
nav.site a.nav-cart:hover { background: var(--glass-tint); text-decoration: none; }
nav.site .muted { color: var(--glass-tint); font-size: .85rem; }

footer.site { background: var(--navy); color: var(--glass-tint); border-top: 4px solid var(--glass); font-size: .8rem; margin-top: 40px; }
footer.site .wrap { display: flex; justify-content: space-between; padding-top: 16px; padding-bottom: 18px; flex-wrap: wrap; gap: 8px; }
footer.site .legal a { color: var(--glass-tint); margin-right: 16px; }
footer.site .legal a:last-child { margin-right: 0; }

main { padding: 24px 0 40px; }

/* deal bar under the header */
.offer { background: var(--glass-tint); border-bottom: 1px solid var(--line); font-size: .9rem; }
.offer .wrap { padding-top: 10px; padding-bottom: 10px; }
.offer b { font-weight: 500; color: var(--teal); }
.home main { padding-top: 18px; }

/* home: paintings at their own shape, tight gutters */
.theme h2 { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 16px; padding-bottom: 6px; border-bottom: 2px solid var(--glass); font-size: 1.55rem; }
.theme h2 small { font: 400 .72rem var(--sans); color: var(--teal); letter-spacing: .06em; text-transform: uppercase; }
.gallery { display: flex; flex-wrap: wrap; gap: 30px 22px; }
.gallery::after { content: ""; flex-grow: 999; }
.tile { flex-grow: calc(var(--a) * 100); flex-basis: calc(var(--a) * 220px); text-decoration: none; color: var(--ink); }
.tile img { width: 100%; aspect-ratio: var(--a); object-fit: cover; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.tile:hover img, .tile:focus-visible img { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--glass), 0 10px 22px rgba(27,58,75,.22); }
.tile .cap { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; padding-top: 7px; }
.tile .cap b { font-weight: 500; }
.tile .cap i { font-style: normal; color: var(--teal); white-space: nowrap; }

/* card page: strip | painting | buying column */
.crumb { font-size: .82rem; margin: 0 0 12px; }
.crumb a { text-decoration: none; }
.design { display: grid; grid-template-columns: 132px minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.rail { position: relative; height: calc(100vh - 160px); min-height: 420px; overflow-y: auto; background: var(--glass-tint); border-radius: var(--radius); padding: 10px; scrollbar-width: thin; scrollbar-color: var(--glass) transparent; }
.rail .lab { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 2px 2px 8px; }
.rail a { display: block; margin-bottom: 10px; }
.rail img { width: 100%; box-shadow: 0 1px 3px rgba(27,58,75,.25); }
.rail a:hover img { outline: 2px solid var(--glass); outline-offset: 2px; }
.rail a[aria-current] img { outline: 3px solid var(--navy); outline-offset: 2px; }
.art { display: flex; justify-content: center; align-items: flex-start; height: calc(100vh - 160px); min-height: 420px; }
.art img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 2px 6px rgba(27,58,75,.2), 0 16px 36px rgba(27,58,75,.2); }
.buy h1 { font-size: 1.95rem; margin: 2px 0 2px; }
.buy .by { font: italic 500 1.05rem var(--serif); color: var(--teal); margin-bottom: 14px; }
.buy img.mockup { margin-top: 14px; border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 10px; }
legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.option { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; margin-bottom: 6px; cursor: pointer; font-size: .9rem; }
.option:has(input:checked) { border-color: var(--navy); background: var(--glass-tint); box-shadow: inset 0 0 0 1px var(--navy); }
.option input { accent-color: var(--navy); }
.option .price { margin-left: auto; font-weight: 500; }
.qty { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; font-size: .9rem; }
.qty input { width: 64px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; color: var(--ink); }
.buy button[type=submit] { width: 100%; }
.hint { font-size: .8rem; background: var(--glass-tint); border-left: 3px solid var(--glass); padding: 8px 10px; margin-top: 12px; border-radius: 0 6px 6px 0; }
.facts { font-size: .8rem; color: var(--muted); margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; line-height: 1.7; }

/* controls */
button, .btn { font: 500 .95rem var(--sans); letter-spacing: .03em; padding: 11px 20px; border-radius: 6px; border: 1px solid var(--navy); background: var(--navy); color: var(--foam); cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: var(--teal); border-color: var(--teal); }
button.ghost { background: transparent; color: var(--ink); border-color: var(--line); padding: 4px 10px; font-weight: 400; letter-spacing: 0; }
button.ghost:hover { border-color: var(--glass); background: var(--glass-tint); }
button:disabled { opacity: .45; cursor: not-allowed; }
.note { color: var(--muted); font-size: .9rem; }
.added { display: block; color: var(--teal); margin-top: 8px; font-size: .9rem; }

/* cart */
.cart { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.line img { max-height: 72px; margin: 0 auto; box-shadow: 0 1px 3px rgba(27,58,75,.2); }
.line .controls { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.summary { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--glass); border-radius: var(--radius); padding: 18px; }
.row { display: flex; justify-content: space-between; padding: 5px 0; }
.row.save { color: var(--teal); }
.row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 500; font-size: 1.05rem; }
.nudge { background: var(--glass-tint); color: var(--navy); border-left: 3px solid var(--glass); border-radius: 0 6px 6px 0; padding: 10px 12px; margin: 12px 0; font-size: .9rem; }

.prose h2 { margin-top: 30px; font-size: 1.5rem; }

@media (max-width: 900px) {
  .design { grid-template-columns: 1fr; gap: 16px; }
  .art { height: auto; min-height: 0; }
  .rail { order: 3; height: auto; min-height: 0; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; }
  .rail .lab { display: none; }
  .rail a { flex: 0 0 auto; margin: 0; }
  .rail img { height: 110px; width: auto; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  header.site .wrap { height: 56px; }
  .brand img { height: 36px; }
  nav.site a { margin-left: 12px; }
  header.site .wrap { gap: 12px; }
  .tagline { font-size: .95rem; line-height: 1.15; }
  .tagline em { display: block; }
  nav.site a.hide-sm { display: none; }
  .gallery { gap: 22px 14px; }
  .tile { flex-basis: calc(var(--a) * 150px); }
  .cart { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* v0.9 home intro + category bubbles */
.intro { text-align: center; padding: 14px 0 6px; }
.intro h1 { font-family: var(--serif); font-size: 2.3rem; line-height: 1.2; margin: 0; color: var(--navy); }
.intro h1 strong { font-weight: 600; }
.intro h1 em { font-weight: 500; font-style: italic; display: inline-block; color: var(--teal); }
.intro .rule { width: 70px; height: 2px; background: var(--glass); margin: 14px auto; }
.chips { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.chips li { border: 1px solid var(--glass); background: #fff; border-radius: 999px; padding: 8px 18px; font-size: .92rem; }
.chips li b { font-weight: 500; color: var(--navy); }
.chips li.hi { background: var(--navy); color: var(--foam); border-color: var(--navy); }
.chips li.hi b { color: var(--foam); }
/* v0.10 ribbon: full-width strip of painting slivers under the header, scrolls right→left, 120 s per loop */
body.home { overflow-x: clip; }
.ribbon { height: 57px; box-sizing: content-box; overflow: hidden; border-bottom: 1px solid var(--glass); }
.ribbon .track { display: flex; width: max-content; height: 100%; animation: ribbon 120s linear infinite; }
.ribbon img { height: 57px; width: auto; display: block; }
.ribbon:hover .track { animation-play-state: paused; }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon .track { animation: none; } }
.lede { font-size: .92rem; color: var(--muted); max-width: 640px; margin: 12px auto 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.filters button { background: transparent; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px; font: 400 .85rem var(--sans); letter-spacing: .02em; }
.filters button:hover { border-color: var(--glass); background: var(--glass-tint); }
.filters button[aria-pressed="true"] { background: var(--glass); border-color: var(--glass); color: var(--navy); font-weight: 500; }
@media (max-width: 760px) { .intro h1 { font-size: 1.85rem; } .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .filters button { flex: 0 0 auto; } }

/* v0.9 card page: pack subtitles + mixed-pack panel */
.option small { display: block; color: var(--muted); font-size: .75rem; }
.mixbox { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 12px 14px; }
.mixbox h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 6px; }
.mixrow { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; padding: 3px 0; }
.mixrow b { font-weight: 500; white-space: nowrap; }
.mixrow em { font-style: normal; color: var(--teal); margin-left: 4px; }
.meter { height: 8px; background: var(--glass-tint); border-radius: 99px; margin: 10px 0 5px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--glass); transition: width .3s; }
.mnote { font-size: .8rem; color: var(--muted); }
.unavailable { background: var(--glass-tint); border-left: 3px solid var(--glass); padding: 10px 12px; border-radius: 0 6px 6px 0; }
