/* The Journal Library (/journals): the grown-up journals, in the Breathe 'n Bloom look:
   white and pale-sage bands, Zen Loop headings in plum, Nunito Sans text, soft cards.
   Tokens are the main site's (src/styles/*.css), repeated here because these pages
   don't load the main stylesheet. */
:root {
  --plum: #703E7F;
  --plum-dark: #471C54;
  --plum-deep: #240E2A;
  --olive: #A6B452;
  --sage: #8D9368;
  --sage-light: #D8DBC6;
  --sage-05: #F6F7F1;
  --sage-tint: #F1F3E9;
  --plum-20: #D9C9DF;
  --white: #FFFFFF;
  --text: #240E2A;
  --muted: #5B4763;
  --eyebrow: #57603A;
  --line: #E7E2EA;
  --line-sage: #C7CBB2;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 12px 32px -18px rgba(71, 28, 84, .28);
  --shadow-lift: 0 22px 48px -24px rgba(71, 28, 84, .34);
  --ease: cubic-bezier(.32, .72, .32, 1);
  --display: "Zen Loop", "Brush Script MT", cursive;
  --sans: "Nunito Sans", "Avenir Light", Avenir, system-ui, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body { margin: 0; background: var(--white); color: var(--text); font: 300 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--plum); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #B493BD; outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 14px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------- type */
.eyebrow { margin: 0; font: 400 0.8rem/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--eyebrow); }
h1, h2, h3 { margin: 0; font-weight: 400; }
.display { font: 400 clamp(56px, 7vw, 96px)/0.95 var(--display); color: var(--plum); }
.lede { font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.7; color: var(--muted); max-width: 34em; margin: 22px 0 0; }

/* ---------- category bar (under the site header) */
.top { background: var(--sage-05); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 54px; overflow-x: auto; scrollbar-width: none; }
.top .wrap::-webkit-scrollbar { display: none; }
.brand { flex: none; text-decoration: none; font: 400 1.7rem/1 var(--display); color: var(--plum); }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 0.93rem; letter-spacing: .04em; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--plum); border-bottom-color: var(--olive); }
.menu-btn { display: none; }
@media (max-width: 760px) { .top .wrap { gap: 16px; min-height: 48px; } .brand { font-size: 1.45rem; } .nav { gap: 16px; font-size: 0.88rem; } }

/* ---------- masthead */
.mast { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.mast .eyebrow { margin-bottom: 18px; }
.mast-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.mast-art { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--sage-tint); aspect-ratio: 5 / 4; }
.mast-art img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { border: 1px solid var(--line-sage); background: var(--sage-05); border-radius: 999px; padding: 8px 16px; font-size: 0.9rem; color: var(--muted); }
.facts b { font-weight: 600; color: var(--plum-dark); }
@media (max-width: 860px) { .mast-grid { grid-template-columns: 1fr; } }

/* ---------- jump links to each category */
.jump { padding: 0 0 clamp(32px, 4vw, 48px); }
.jump ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.jump a { display: grid; gap: 4px; height: 100%; text-decoration: none; padding: 16px 18px; border-radius: var(--radius-md); background: var(--sage-05); border: 1px solid var(--line); transition: border-color var(--ease) .3s, transform var(--ease) .3s, background .3s; }
.jump a:hover { border-color: var(--line-sage); background: var(--sage-tint); transform: translateY(-2px); }
.jump b { font: 400 1.75rem/1 var(--display); color: var(--plum); }
.jump span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 960px) { .jump ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jump li:last-child { grid-column: 1 / -1; } }

/* ---------- one band per category */
.cat { padding: clamp(48px, 6vw, 80px) 0; }
.cat:nth-of-type(odd) { background: var(--sage-05); }
.cat-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; margin-bottom: 30px; }
.cat-head .eyebrow { grid-column: 1 / -1; }
.cat-head h2 { font: 400 clamp(44px, 5vw, 64px)/1 var(--display); color: var(--plum); }
.cat-head p { grid-column: 1; margin: 0; color: var(--muted); max-width: 38em; font-size: 1.05rem; }
.cat-head .count { grid-column: 2; grid-row: 2 / span 2; align-self: end; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .cat-head { grid-template-columns: 1fr; } .cat-head .count { grid-column: 1; grid-row: auto; } }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.book { min-width: 0; }
.book a { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform var(--ease) .35s, box-shadow var(--ease) .35s; }
.book a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cover { aspect-ratio: 5 / 4; background: var(--sage-tint); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.book .body { display: grid; gap: 6px; align-content: start; padding: 18px 20px 20px; }
.book h3 { font: 400 1.25rem/1.25 var(--sans); color: var(--plum-dark); }
.book .sub { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.price { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.price b { font-weight: 600; color: var(--plum-dark); }
.book[hidden] { display: none; }

/* ---------- how it works */
.how { background: var(--plum-dark); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.how .eyebrow { color: #E3E8D3; }
.how h2 { font: 400 clamp(44px, 5vw, 64px)/1 var(--display); margin-top: 12px; max-width: 14em; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--olive); color: var(--plum-deep); font-weight: 600; margin-bottom: 14px; }
.steps h3 { font: 400 1.2rem/1.3 var(--sans); margin-bottom: 6px; }
.steps p { margin: 0; color: #E2D6E8; font-size: 0.97rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.cross { padding: clamp(48px, 6vw, 72px) 0; }
.cross a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 0; text-decoration: none; color: inherit; border-radius: var(--radius-lg); overflow: hidden; background: #FBF3D9; box-shadow: var(--shadow-soft); }
.cross img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 3; }
.cross a > div { padding: clamp(24px, 4vw, 44px); display: grid; gap: 10px; }
.cross h2 { font: 400 clamp(40px, 4.5vw, 56px)/1 var(--display); color: var(--plum); }
.cross p { margin: 0; color: var(--muted); }
.cross span { color: var(--plum); font-weight: 600; }
@media (max-width: 760px) { .cross a { grid-template-columns: 1fr; } }

/* ---------- product page */
.crumbs { padding: 26px 0 0; font-size: 0.88rem; color: var(--muted); }
.crumbs a { color: var(--plum); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.item { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding: 24px 0 72px; align-items: start; }
@media (max-width: 900px) { .item { grid-template-columns: 1fr; } }
.gallery { position: sticky; top: 112px; }
@media (max-width: 900px) { .gallery { position: static; } }
.gallery .main { margin: 0; aspect-ratio: 5 / 4; background: var(--sage-tint); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 14px 0 0; padding: 0; }
.thumbs button { padding: 0; border: 2px solid transparent; background: var(--sage-tint); border-radius: 12px; cursor: pointer; aspect-ratio: 5 / 4; overflow: hidden; opacity: .7; transition: opacity .2s, border-color .2s; width: 100%; }
.thumbs button[aria-pressed="true"], .thumbs button:hover { opacity: 1; border-color: var(--plum); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail .eyebrow { margin-bottom: 12px; }
.detail h1 { font: 400 clamp(52px, 6vw, 80px)/0.95 var(--display); color: var(--plum); }
.detail .subtitle { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--plum-dark); margin: 12px 0 0; line-height: 1.45; }
.hook { margin: 24px 0; padding: 18px 22px; border-radius: var(--radius-md); background: var(--sage-05); border: 1px solid var(--line-sage); font-size: 1.1rem; line-height: 1.55; color: var(--plum-dark); }
.detail p { margin: 0 0 16px; }
.inside { margin: 26px 0; }
.inside h2, .formats legend { font: 400 0.8rem/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--eyebrow); margin: 0 0 12px; padding: 0; }
.inside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inside li { position: relative; padding-left: 28px; }
.inside li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 10px 2px 10px 2px; background: var(--olive); }
.for { color: var(--muted); font-size: 1rem; }

.formats { border: 0; padding: 0; margin: 28px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.format { position: relative; display: block; cursor: pointer; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-md); padding: 16px 18px 14px; transition: border-color .2s, background .2s; }
.format input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.format:hover { border-color: var(--plum-20); }
.format:has(input:checked) { border-color: var(--plum); background: var(--sage-05); box-shadow: inset 0 0 0 1px var(--plum); }
.format:has(input:focus-visible) { outline: 2px solid #B493BD; outline-offset: 3px; }
.format .name { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; color: var(--plum-dark); }
.format small { display: block; color: var(--muted); margin-top: 6px; font-size: 0.86rem; line-height: 1.45; }
@media (max-width: 420px) { .formats { grid-template-columns: 1fr; } }
.buy { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--plum); color: #fff; font-size: 1rem; letter-spacing: 0.06em; cursor: pointer; transition: background .25s; }
.buy:hover { background: var(--plum-dark); }
.buy:disabled { opacity: .7; cursor: progress; }
.msg { margin: 14px 0 0; padding: 12px 16px; background: var(--sage-tint); border-radius: 12px; font-size: 0.95rem; }
.msg[hidden] { display: none; }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.88rem; color: var(--muted); }
.perks li::before { content: "✓ "; color: var(--sage); font-weight: 600; }
.note { font-size: 0.84rem; color: var(--muted); margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.more { background: var(--sage-05); padding: clamp(48px, 6vw, 72px) 0; }
.more .cat-head { margin-bottom: 26px; }

/* ---------- footer */
.foot { background: var(--plum-dark); color: #fff; padding: 52px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h2 { font: 400 2.6rem/1 var(--display); }
.foot p { color: #E2D6E8; margin: 12px 0 0; max-width: 28em; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0 0 8px; }
.foot a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.foot a:hover { border-color: #fff; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 18px; font-size: 0.84rem; color: #E2D6E8; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Phones: two journals per row so a category stays easy to scan. */
@media (max-width: 560px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .book a { border-radius: var(--radius-md); }
  .book .body { padding: 12px 12px 14px; gap: 4px; }
  .book h3 { font-size: 1.02rem; }
  .book .sub { font-size: 0.82rem; }
  .price { flex-direction: column; gap: 0; font-size: 0.82rem; }
}

/* Picture zoom (journal pages) */
.gallery .main .zoom{display:block;position:relative;width:100%;height:100%;padding:0;border:0;background:none;cursor:zoom-in}
.gallery .main .zoom img{display:block;width:100%;height:100%;object-fit:cover}
.zoom-hint{position:absolute;right:12px;bottom:12px;padding:6px 12px;border-radius:999px;background:rgba(43,34,53,.78);color:#fff;font-size:.85rem;font-weight:600;pointer-events:none}
.zoombox{position:fixed;inset:0;z-index:2147483647;background:rgba(43,34,53,.97);display:flex;flex-direction:column}
.zb-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;color:#fff;font-weight:600}
.zb-top button,.zb-nav button{min-height:44px;min-width:52px;padding:4px 16px;border:2px solid #fff;border-radius:12px;background:transparent;color:#fff;font-size:1.1rem;cursor:pointer}
.zb-stage{flex:1;overflow:auto;display:flex;align-items:center;justify-content:center;touch-action:pan-x pan-y pinch-zoom}
.zb-stage img{max-width:96vw;max-height:82vh;background:#fff;cursor:zoom-in}
.zoombox.zoomed .zb-stage{align-items:flex-start;justify-content:flex-start}
.zoombox.zoomed .zb-stage img{max-width:none;max-height:none;width:auto;cursor:zoom-out}
.zb-nav{display:flex;justify-content:center;gap:12px;padding:12px 12px 84px}

/* ---------- goes with this journal (flowers, spray, practice, kids, Room) */
.pairs { padding: clamp(48px, 6vw, 72px) 0 8px; }
.pairs .cat-head { margin-bottom: 22px; }
.pairs-lead { margin: 10px 0 0; color: var(--muted); max-width: 62ch; }
.pair-flowers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.pair-flowers li { display: grid; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; }
.pf { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; color: var(--muted); font-size: 0.93rem; line-height: 1.45; }
.pf img { width: 72px; height: 72px; object-fit: contain; }
.pf b { display: block; font: 400 2rem/1.05 var(--display); color: var(--plum); -webkit-text-stroke: 0.5px currentColor; }
.pf:hover b { text-decoration: underline; text-decoration-thickness: 1px; }
.pf-buy { justify-self: start; font-size: 0.86rem; font-weight: 600; color: var(--plum); text-decoration: none; border: 1px solid var(--plum-20); border-radius: 999px; padding: 6px 12px; }
.pf-buy:hover { background: var(--plum); color: #fff; border-color: var(--plum); }
.pair-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-top: 16px; }
.pair-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; background: #F6F7F1; border: 1px solid var(--line); border-radius: 20px; padding: 14px; text-decoration: none; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.pair-card:hover { border-color: var(--plum); }
.pair-card img { width: 120px; height: 120px; border-radius: 14px; background: #fff; }
.pair-card small { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 4px; }
.pair-card b { display: block; font-size: 1.12rem; font-weight: 600; color: var(--plum-dark); margin-bottom: 4px; }
.pair-card em { font-style: normal; font-weight: 600; color: var(--plum); white-space: nowrap; }
.pc-icon { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 14px; background: var(--plum-dark); color: #fff; font-size: 44px; }
.pair-kids { margin-top: 26px; }
.pair-kids ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.pair-kids a { display: grid; grid-template-columns: 72px auto; gap: 12px; align-items: center; text-decoration: none; color: var(--muted); font-size: 0.9rem; background: #FBF3D9; border-radius: 16px; padding: 10px 16px 10px 10px; }
.pair-kids img { width: 72px; height: 93px; object-fit: cover; border-radius: 8px; }
.pair-kids b { display: block; color: var(--plum-dark); font-weight: 600; font-size: 1rem; }
.pair-room { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; background: var(--plum-dark); color: #F1EEF3; border-radius: 20px; padding: 20px 24px; }
.pair-room p { margin: 0; max-width: 62ch; }
.pair-room b { color: #fff; }
.pair-room a { background: #fff; color: var(--plum-dark); font-weight: 700; text-decoration: none; border-radius: 999px; padding: 11px 22px; white-space: nowrap; }
@media (max-width: 520px) { .pair-card { grid-template-columns: 84px minmax(0, 1fr); } .pair-card img, .pc-icon { width: 84px; height: 84px; } }

/* ---------- heavier display titles, to match the rest of the site (kit-layout.css --display-stroke) */
:root { --display-stroke: 0.6px; }
.display, .brand, .jump b, .cat-head h2, .how h2, .cross h2, .detail h1, .foot h2, .pf b {
  -webkit-text-stroke: var(--display-stroke) currentColor; paint-order: stroke fill;
}
.detail h1, .display { -webkit-text-stroke-width: 0.9px; }
