/* UNFOLD collection (product) pages. Shares the homepage palette and type. */
:root {
  color-scheme: light;
  --cream: #F5F1E9; --beige: #D9D0C1; --ink: #263F31; --paper: #FCFAF6; --muted: #5F665F; --line: #D9D0C1;
  --c: #263F31; --c-ink: #263F31; /* set per page */
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --f-logo: "Playfair Display", Georgia, serif;
  --radius: 28px;
  --shadow: 0 1px 2px rgba(38, 63, 49, .06), 0 18px 40px -22px rgba(38, 63, 49, .35);
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1.04; text-wrap: balance; font-variation-settings: "SOFT" 60; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 54px; padding: 0 1.7em; border-radius: 999px; border: 0; font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; }
.btn-buy { background: var(--c-ink); color: var(--paper); width: 100%; }
.btn-buy:hover { filter: brightness(1.12); }

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo img { width: 42px; transform: translateY(-2px); }
.logo span { font-family: var(--f-logo); font-weight: 600; font-size: 1.45rem; letter-spacing: .14em; }
.top-links { display: flex; align-items: center; gap: 1.5rem; }
.top-links a { text-decoration: none; font-weight: 500; }
.top-links .pill { padding: .7em 1.2em; border-radius: 999px; background: var(--ink); color: var(--cream); }
@media (max-width: 560px) { .top-links .hide-sm { display: none; } }

.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.visual {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1 / 1; border-radius: 36px;
  background: color-mix(in srgb, var(--c) var(--tint, 17%), var(--paper)); box-shadow: var(--shadow);
}
.visual img { position: absolute; width: 84%; left: 8%; top: 12%; }
.visual .chip { position: absolute; left: 1.4rem; top: 1.4rem; padding: .5em .9em; border-radius: 999px; background: var(--paper); color: var(--c-ink); font-size: .8125rem; font-weight: 700; }
.info { display: grid; gap: 1.25rem; align-content: center; }
.info h1 { font-size: clamp(3rem, 2rem + 4vw, 5.2rem); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 30ch; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; }
.facts span { padding: .5em .9em; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: .875rem; font-weight: 600; }
.buybox { display: grid; gap: .9rem; padding: 1.4rem; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); max-width: 440px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .7rem; }
.price s { font-family: var(--f-display); font-size: 1.3rem; color: var(--muted); }
.price b { font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1; }
.price small { font-size: .875rem; color: var(--muted); }
.code { justify-self: start; display: inline-flex; align-items: center; gap: .6rem; font-size: .875rem; color: var(--muted); }
.code button { border: 1.5px dashed var(--c-ink); background: transparent; color: var(--c-ink); border-radius: 999px; padding: .5em .9em; font: 700 .875rem/1 var(--f-body); letter-spacing: .14em; cursor: pointer; min-width: 7em; }
.buy-note { font-size: .875rem; color: var(--muted); text-align: center; }
.owned { font-size: .9375rem; text-align: center; }
.owned a { font-weight: 700; color: var(--c-ink); }

.sections { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.sections li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-radius: 16px; background: var(--paper); }
.sections b { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; }
.sections span { font-size: .8125rem; color: var(--muted); white-space: nowrap; align-self: center; }

.samples { padding-block: clamp(3rem, 7vw, 6rem); }
.samples h2 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); margin-bottom: 1.5rem; }
.sample-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.qcard { position: relative; isolation: isolate; overflow: hidden; min-height: 260px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); padding: 1.5rem 1.5rem 4.5rem; display: grid; align-content: center; text-align: center; gap: .8rem; }
.qcard .eyebrow { font-size: .75rem; }
.qcard p { font-family: var(--f-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); line-height: 1.22; }
.qcard img { position: absolute; bottom: 1rem; left: 50%; width: 80px; transform: translateX(-50%); z-index: -1; }
.more-note { margin-top: 1rem; color: var(--muted); font-size: .9375rem; }
.back { display: inline-block; margin-top: 2rem; font-weight: 600; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: .875rem; color: var(--muted); }
.site-footer a { text-decoration: none; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .visual { aspect-ratio: 4 / 3; border-radius: 28px; }
  .visual img { width: 70%; left: 15%; top: 8%; }
  .buybox { max-width: none; }
  .sample-grid { grid-template-columns: 1fr; }
}
