/* Sheets & Style catalog. Mobile-first, no framework. */
:root {
  --cream: #f5f0e8;
  --paper: #fbf8f3;
  --ink: #3a3a36;
  --ink-soft: #5d5c55;
  --sage: #9caf88;
  --sage-deep: #4f6243; /* 5.2:1 on --sage-wash, 4.8:1 on --peach (WCAG AA) */
  --sage-wash: #dfe6d6;
  --peach: #f1d6c4;
  --rose: #d4a5a5;
  --rose-deep: #a8625e;
  --line: #e2dacd;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1rem/1.6 var(--body); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7.4vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
em, .it { font-style: italic; }
h1 em, h2 em { color: var(--rose-deep); }
p { margin: 0 0 1em; text-wrap: pretty; }
.eyebrow { font: 600 .74rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 14px; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); }

/* header */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.mark { font: italic 600 1.35rem/1 var(--display); text-decoration: none; white-space: nowrap; }
.mark span { color: var(--rose); }
.nav { display: flex; gap: clamp(12px, 3vw, 28px); font-size: .92rem; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink);
  font: 600 .98rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-buy { background: var(--ink); color: var(--cream); }
.btn-buy:hover { background: #24241f; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.btn-demo { background: var(--sage-wash); border-color: var(--sage-deep); color: #2f3a27; }
.btn-demo:hover { background: #d2dcc6; }
.btn.is-off { background: transparent; color: var(--ink-soft); border: 1px dashed #b9b2a5; cursor: not-allowed; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
@media (max-width: 560px) { .btns-stack .btn { width: 100%; } }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(165deg, var(--sage-wash) 0%, var(--cream) 52%, var(--peach) 100%); border-bottom: 1px solid var(--line); }
.hero::before { /* ruled ledger grid, fading out */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(95, 115, 80, .10) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(95, 115, 80, .07) 0 1px, transparent 1px 112px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero .wrap { position: relative; display: grid; gap: clamp(28px, 5vw, 56px); padding-top: clamp(36px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.hero h1 { max-width: 12.5em; }
.hero .lede { margin-top: 20px; }
.hero .btns { margin-top: 28px; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(58, 58, 54, .45); }
.hero-figure figcaption { margin-top: 12px; font-size: .86rem; color: var(--ink-soft); }
.hero-figure figcaption a { color: var(--ink); }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero-figure { transform: rotate(1.2deg); }
}
.reveal { animation: rise .9s var(--ease) both; }
.reveal-2 { animation-delay: .12s; } .reveal-3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head p { margin: 10px 0 0; max-width: 34em; color: var(--ink-soft); }
.more { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }

/* category index */
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
.cats li { border-bottom: 1px solid var(--line); }
.cats a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; padding: 18px 2px; text-decoration: none; transition: padding .3s var(--ease), background-color .3s var(--ease); }
.cats a:hover { background: var(--paper); padding-left: 12px; }
.cats .cname { font: 500 clamp(1.35rem, 3.4vw, 1.9rem)/1.1 var(--display); }
.cats .ccount { font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cats .cblurb { grid-column: 1 / -1; font-size: .92rem; color: var(--ink-soft); }
@media (min-width: 760px) { .cats { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* product cards */
.grid { display: grid; gap: clamp(20px, 3vw, 32px) clamp(14px, 2.4vw, 28px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.card-img { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.035); }
.card h3 { font-size: clamp(1.05rem, 2.4vw, 1.3rem); }
.card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8rem; color: var(--ink-soft); }
.tag { display: inline-block; font: 600 .68rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); }
.tag-app { background: var(--sage-wash); border-color: #c8d3bb; color: #3d4b33; }
.dots { display: inline-flex; gap: 4px; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(58, 58, 54, .25); }
.dot-sage { background: var(--sage); } .dot-color { background: linear-gradient(135deg, #e8a87c, #d4a5a5 50%, #8fb3c9); } .dot-black { background: #141b27; box-shadow: inset 0 0 0 2px #e8b64c; }

/* spotlight (featured product) */
.spot { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.spot + .spot { margin-top: clamp(48px, 8vw, 96px); }
.spot-img { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spot ul { margin: 18px 0 26px; padding: 0; list-style: none; }
.spot li { padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: .95rem; }
.spot li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
@media (min-width: 900px) {
  .spot { grid-template-columns: 1fr 1fr; }
  .spot.flip .spot-img { order: 2; }
}

/* ADHD band */
.band { background: var(--ink); color: var(--cream); }
.band .eyebrow { color: var(--sage); }
.band h2 em { color: var(--rose); }
.band .section-head p { color: #cfc9bd; }
.band .card .meta, .band .tag { color: #cfc9bd; }
.band .tag-app { background: #4a5643; border-color: #5f6e55; color: #e6eddc; }
.band .card-img { border-color: #4d4c46; }
.band .more { color: var(--cream); }

/* works-on */
.works { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.works > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.works h3 { margin-bottom: 8px; }
.works p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
@media (min-width: 900px) { .works { grid-template-columns: repeat(3, 1fr); column-gap: 40px; } }

/* faq */
.faq { border-top: 1px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font: 500 clamp(1.1rem, 2.6vw, 1.3rem)/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 300 1.6rem/1 var(--body); color: var(--sage-deep); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); max-width: 40em; }

/* page head (category) */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); background: linear-gradient(180deg, var(--sage-wash), var(--cream)); border-bottom: 1px solid var(--line); }
.page-head p { margin: 14px 0 0; }
.crumbs { font-size: .84rem; color: var(--ink-soft); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line); }
.cat-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cat-switch a { text-decoration: none; font-size: .85rem; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.cat-switch a[aria-current="page"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* product page */
.product { display: grid; gap: clamp(24px, 4vw, 56px); padding-top: clamp(16px, 3vw, 32px); padding-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 960px) { .product { grid-template-columns: 1.15fr .85fr; align-items: start; } .p-info { position: sticky; top: 84px; } }
.gallery-main { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); aspect-ratio: 5 / 4; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s var(--ease); }
.gallery-main img.is-loading { opacity: .35; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; padding: 0; list-style: none; }
.thumbs button { all: unset; cursor: pointer; display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); opacity: .72; transition: opacity .2s var(--ease); }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--ink); outline-offset: 1px; }
.thumbs button:hover { opacity: 1; }
.thumbs button:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.p-info h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); margin: 10px 0 16px; }
.p-info .lede { font-size: 1.04rem; }
.palettes { margin: 22px 0 6px; border: 0; padding: 0; }
.palettes legend { font-size: .84rem; color: var(--ink-soft); margin-bottom: 10px; padding: 0; }
.palettes legend b { color: var(--ink); font-weight: 600; }
.pal-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pal-opts button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .9rem; }
.pal-opts button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pal-opts button:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.pal-opts .dot { width: 18px; height: 18px; }
.p-info .btns { margin-top: 22px; }
.buy-note { font-size: .85rem; color: var(--ink-soft); margin-top: 12px; }
.price { font: 500 1.4rem/1 var(--display); margin-top: 18px; }
.details { display: grid; gap: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 88px); }
@media (min-width: 900px) { .details { grid-template-columns: 1fr 1fr; } }
.details h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 14px; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.list b { font-weight: 600; }
.list-check li { padding-left: 26px; position: relative; }
.list-check li::before { content: ""; position: absolute; left: 3px; top: 1.05em; width: 10px; height: 5px; border-left: 2px solid var(--sage-deep); border-bottom: 2px solid var(--sage-deep); transform: rotate(-45deg); }

/* footer */
.site-foot { background: var(--paper); border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: .9rem; }
.site-foot .wrap { display: grid; gap: 28px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { text-decoration: none; color: var(--ink-soft); }
.site-foot a:hover { color: var(--ink); }
.site-foot small { color: var(--ink-soft); }
@media (min-width: 900px) { .site-foot .wrap { grid-template-columns: 1fr 2fr; align-items: start; } }

/* 404 */
.nf { padding: clamp(64px, 12vw, 140px) 0; }
.nf h1 { margin-bottom: 16px; }
.plus { font-family: var(--body); font-weight: 300; }
