/* Curious Conundrums — site styles (2026-11)
   Brand guide colors: navy #24324B (text), cobalt #4467C4 (accent), butter #F2D96B
   (small highlights), mint #A8CFC0 (supporting), warm white #FAF8F2.
   Nunito Sans for text; Fraunces sparingly for display. Self-hosted (SIL OFL). */

@font-face{font-family:"Nunito Sans";src:url(fonts/nunito-sans-latin-wght-normal.woff2) format("woff2");font-weight:200 1000;font-style:normal;font-display:swap}
@font-face{font-family:"Fraunces";src:url(fonts/fraunces-latin-wght-normal.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

:root{
  --navy:#24324b;--navy-2:#33435f;--muted:#55607a;--soft-ink:#7d869a;
  --cobalt:#4467c4;--cobalt-dark:#3352a6;--cobalt-soft:#e6ecfa;
  --butter:#f2d96b;--butter-soft:#fbf3cf;--mint:#a8cfc0;--mint-soft:#e3f2ec;--mint-logo:#cdf2e4;
  --warm:#faf8f2;--card:#ffffff;--line:#e7e2d4;
  --serif:"Fraunces",Georgia,serif;
  --sans:"Nunito Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --radius:20px;--radius-sm:12px;
  --shadow:0 1px 2px rgba(36,50,75,.06),0 10px 28px rgba(36,50,75,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;color:var(--navy);background:var(--warm);font:400 1.0625rem/1.65 var(--sans);-webkit-font-smoothing:antialiased}
a{color:inherit;text-underline-offset:.22em}
a:hover{color:var(--cobalt)}
img{display:block;max-width:100%;height:auto}
button,input,select{font:inherit;color:inherit}
h1,h2,h3,p{margin-top:0}
h1{font:800 clamp(2.3rem,5vw,4rem)/1.06 var(--sans);letter-spacing:-.025em;margin-bottom:18px}
h2{font:800 clamp(1.7rem,3vw,2.4rem)/1.15 var(--sans);letter-spacing:-.015em;margin-bottom:14px}
h3{font:800 1.08rem/1.35 var(--sans);margin-bottom:.4rem}
.hl{background:linear-gradient(transparent 62%,var(--butter) 62%,var(--butter) 90%,transparent 90%);padding:0 .08em}
.wrap{width:min(1200px,calc(100% - 64px));margin-inline:auto}
.skip{position:absolute;top:-100px;left:1rem;background:#fff;padding:.8rem 1rem;z-index:99;border-radius:8px}
.skip:focus{top:1rem}
:focus-visible{outline:3px solid var(--cobalt);outline-offset:3px;border-radius:6px}
.eyebrow{font:800 .8rem/1.4 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--cobalt);margin:0 0 12px}
.sparkle{width:22px;height:22px;fill:var(--butter);flex:none}

/* ---------- header ---------- */
.topline{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--navy);color:#fff;padding:.5rem 1rem;font-size:.86rem;font-weight:600;text-align:center}
.topline .sparkle{width:14px;height:14px}
.header{position:sticky;top:0;z-index:50;background:rgba(250,248,242,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:84px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex:none}
.brand img{width:56px;height:56px}
.brand span{font:800 1.3rem/1.1 var(--sans);letter-spacing:-.01em;color:var(--navy)}
.brand b{font-weight:800;color:var(--navy);position:relative}
.brand b::after{content:"";position:absolute;left:0;bottom:-5px;width:60%;height:4px;border-radius:4px;background:var(--butter)}
.nav{display:flex;align-items:center;gap:4px}
.nav a{text-decoration:none;font-weight:700;font-size:.97rem;padding:.55rem .8rem;border-radius:999px}
.nav a:hover{background:var(--cobalt-soft);color:var(--navy)}
.nav a[aria-current]{background:var(--mint-soft)}
.shop-link{background:var(--cobalt)!important;color:#fff!important;margin-left:8px;padding:.6rem 1.15rem!important}
.shop-link:hover{background:var(--cobalt-dark)!important}
.mobile-nav{display:none;position:relative}
.mobile-nav summary{list-style:none;cursor:pointer;font-weight:800;display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:.45rem 1rem;border:2px solid var(--navy);border-radius:999px}
.mobile-nav summary::-webkit-details-marker{display:none}
.mobile-nav summary::before{content:"";width:16px;height:10px;background:linear-gradient(currentColor 0 0) top/100% 2px no-repeat,linear-gradient(currentColor 0 0) center/100% 2px no-repeat,linear-gradient(currentColor 0 0) bottom/100% 2px no-repeat}
.mobile-nav .menu{position:absolute;right:0;top:calc(100% + 12px);background:#fff;z-index:9;padding:12px;border-radius:var(--radius-sm);box-shadow:0 18px 40px rgba(36,50,75,.18);display:flex;flex-direction:column;gap:2px;min-width:240px}
.mobile-nav .menu a{text-decoration:none;padding:.7rem .9rem;border-radius:10px;font-weight:700}
.mobile-nav .menu a:hover{background:var(--cobalt-soft)}
.mobile-nav .shop-link{margin:8px 0 0;text-align:center}

/* ---------- buttons ---------- */
.button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:52px;background:var(--cobalt);color:#fff;text-decoration:none;padding:.8rem 1.6rem;font-weight:800;border:2px solid var(--cobalt);border-radius:999px;transition:background .2s,transform .2s;box-shadow:0 4px 0 var(--cobalt-dark)}
.button:hover{background:var(--cobalt-dark);border-color:var(--cobalt-dark);color:#fff;transform:translateY(-1px)}
.button.ghost{background:transparent;color:var(--navy);border-color:var(--navy);box-shadow:none}
.button.ghost:hover{background:var(--navy);color:#fff}
.text-link{font-weight:800;color:var(--cobalt);text-decoration:none}
.text-link::after{content:" →"}

/* ---------- home ---------- */
.home-hero{overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center;padding:64px 0 72px}
.home-hero h1{max-width:14ch}
.home-hero .lede{font-size:1.18rem;color:var(--muted);max-width:46ch;margin-bottom:30px}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px}
.hero-art{position:relative;justify-self:center;width:min(440px,100%)}
.hero-art img{position:relative;z-index:1;width:100%;height:auto;filter:drop-shadow(0 18px 30px rgba(36,50,75,.12))}
.hero-art .dot{position:absolute;border-radius:50%}
.dot-butter{width:46%;aspect-ratio:1;background:#f4e49c;top:-12%;right:-16%}
.dot-mint{width:58%;aspect-ratio:1;background:#d7e6df;bottom:-18%;left:-18%}
.hero-art .sparkle{position:absolute;z-index:2;width:64px;height:64px;fill:var(--cobalt);right:-6%;bottom:6%}

.section{padding:76px 0}
.section.tight{padding-top:20px}
.section.soft{background:var(--mint-soft)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px}
.section-head h2{margin:0}
.section-head p{margin:10px 0 0;color:var(--muted);max-width:62ch}
.section-head a{font-weight:800;color:var(--cobalt);text-decoration:none;white-space:nowrap}
.section-head a::after{content:" →"}

.steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.steps li{background:var(--card);border-radius:var(--radius);padding:28px 26px;box-shadow:var(--shadow)}
.steps .n{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--butter);font:900 1.2rem/1 var(--sans);margin-bottom:14px}
.steps p{color:var(--muted);margin:0}

.age-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.age-card{display:flex;flex-direction:column;gap:10px;text-decoration:none;background:var(--card);border-radius:var(--radius);padding:26px 22px 22px;border-top:8px solid var(--mint);box-shadow:var(--shadow);transition:transform .2s}
.age-card:hover{transform:translateY(-3px);color:inherit}
.age-7-9{border-top-color:var(--butter)}
.age-10-13{border-top-color:var(--cobalt)}
.age-14plus{border-top-color:var(--navy)}
.age-label{font:900 1.5rem/1.1 var(--sans)}
.age-note{color:var(--muted);font-size:.96rem;flex:1}
.family-band{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:22px;padding:24px 28px;background:var(--navy);color:#fff;border-radius:var(--radius);text-decoration:none}
.family-band:hover{color:#fff;background:var(--navy-2)}
.family-band h3{font-size:1.3rem;margin:0 0 4px}
.family-band p{margin:0;color:#d5dbe8}
.family-band .text-link{color:var(--butter)}

.line-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.line-card{display:flex;flex-direction:column;text-decoration:none;background:var(--card);border:2px solid var(--line);border-radius:var(--radius);padding:22px 20px;transition:border-color .2s}
.line-card:hover{border-color:var(--cobalt);color:inherit}
.line-card p{color:var(--muted);font-size:.93rem;flex:1}
.line-card .count{font-weight:800;font-size:.85rem;color:var(--cobalt)}

.theme-chips{display:flex;flex-wrap:wrap;gap:10px}
.theme-chips a{background:var(--card);border:2px solid var(--line);padding:.5rem 1.05rem;border-radius:999px;text-decoration:none;font-weight:700}
.theme-chips a:hover{border-color:var(--cobalt);color:var(--cobalt)}
.theme-chips a span{color:var(--soft-ink);margin-left:.4em;font-weight:600}

.about-strip{display:grid;grid-template-columns:auto 1fr auto;gap:36px;align-items:center;padding:36px 40px;background:var(--butter-soft);border-radius:var(--radius)}
.about-strip img{width:110px;height:110px}
.about-strip h2{font-size:1.6rem;margin-bottom:6px}
.about-strip p{margin:0;color:var(--muted)}

.empty{text-align:center;background:var(--card);border:2px dashed var(--mint);border-radius:var(--radius);padding:48px 24px}
.empty .sparkle{width:44px;height:44px;margin:0 auto 12px;fill:var(--butter)}
.empty h2{font-size:1.5rem}
.empty p{color:var(--muted);max-width:52ch;margin:0 auto 20px}

/* ---------- cards ---------- */
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 22px}
.card{position:relative;display:flex;flex-direction:column;background:var(--card);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .2s}
.card:hover{transform:translateY(-3px)}
.card[hidden]{display:none}
.card .card-link{display:flex;flex-direction:column;flex:1;text-decoration:none;color:inherit}
.card-image{aspect-ratio:1/1;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.card-image img{width:100%;height:100%;object-fit:contain}
.card-info{padding:14px 16px 18px;display:flex;flex-direction:column;flex:1}
.card-info .type{font:800 .72rem/1.3 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--cobalt);margin-bottom:6px}
.card-info h3{font-size:1rem;margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card-info .meta{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin:auto 0 0;font-size:.86rem;color:var(--muted)}
.price{font-weight:800;color:var(--navy)}

/* ---------- listing pages ---------- */
.page-head{position:relative;padding:44px 0 26px}
.page-head > .sparkle{position:absolute;right:0;top:40px;width:56px;height:56px}
.page-head h1{font-size:clamp(2.1rem,4.2vw,3.2rem);margin-bottom:10px}
.intro{max-width:700px;color:var(--muted);font-size:1.1rem}
.breadcrumb{margin:26px 0 0;font-size:.9rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px}
.breadcrumb a{font-weight:700;text-decoration:none;color:var(--cobalt)}
.count{font-size:.92rem;color:var(--muted);margin-bottom:20px;font-weight:600}
.category-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.category-links a{background:var(--card);border:2px solid var(--line);padding:.42rem .95rem;text-decoration:none;font-size:.92rem;font-weight:700;border-radius:999px}
.category-links a:hover{border-color:var(--cobalt)}
.category-links a[aria-current]{background:var(--navy);border-color:var(--navy);color:#fff}

.filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;background:var(--card);border-radius:var(--radius);padding:16px;margin:0 0 18px;box-shadow:var(--shadow)}
.filters label{flex:1 1 150px;min-width:0;display:flex;flex-direction:column;gap:5px;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.filters label:first-child{flex:2 1 240px}
.filters input,.filters select{width:100%;min-width:0;min-height:46px;border:2px solid var(--line);border-radius:var(--radius-sm);padding:.5rem .8rem;background:var(--warm);font-size:1rem;text-transform:none;letter-spacing:0;font-weight:600;color:var(--navy)}
.filters input:focus,.filters select:focus{border-color:var(--cobalt);outline:none}
.filters button{flex:none;min-height:46px;border:2px solid var(--line);background:transparent;border-radius:999px;padding:.5rem 1.1rem;font-weight:800;cursor:pointer}
.filters button:hover{border-color:var(--cobalt);color:var(--cobalt)}
.no-results{padding:40px;text-align:center;background:var(--card);border-radius:var(--radius);border:2px dashed var(--line);color:var(--muted)}

/* ---------- product page ---------- */
.product{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:52px;align-items:start;padding:24px 0 60px}
.product-gallery{position:sticky;top:110px}
.product-media{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden}
.product-media img{width:100%;height:100%;object-fit:contain}
.thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:12px}
.thumbs button{padding:0;border:2px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;cursor:pointer;aspect-ratio:1/1}
.thumbs button[aria-current]{border-color:var(--cobalt)}
.thumbs img{width:100%;height:100%;object-fit:cover}
.product-info h1{font-size:clamp(1.9rem,3.2vw,2.6rem);line-height:1.15}
.price-line{font:900 1.5rem/1 var(--sans);margin:-4px 0 16px}
.product-info .lead{color:var(--muted);font-size:1.08rem}
.product-info .buy{width:100%;min-height:58px;font-size:1.08rem;margin-top:6px}
.product-info .buy::after{content:"↗"}
.purchase-note{font-size:.9rem;color:var(--muted);margin:14px 0 24px;text-align:center}
.retired{background:var(--butter-soft);padding:14px 16px;border-radius:var(--radius-sm)}
.specs{background:var(--card);border-radius:var(--radius);padding:18px 20px;display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;margin:0;box-shadow:var(--shadow)}
.specs div{margin:0}
.specs dt{color:var(--muted);font-size:.74rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.specs dd{margin:2px 0;font-weight:700}
.details{padding:26px 0 0}
.details h2{font-size:1.3rem;margin-bottom:10px}
.details ul{padding:0;margin:0;list-style:none}
.details li{padding:8px 0 8px 30px;position:relative;border-bottom:1px solid var(--line)}
.details li:last-child{border-bottom:0}
.details li::before{content:"";position:absolute;left:4px;top:.85em;width:14px;height:14px;background:var(--mint);border-radius:50%}
.family-note{display:flex;gap:14px;align-items:flex-start;margin-top:24px;background:var(--mint-soft);border-radius:var(--radius-sm);padding:16px 18px}
.family-note p{margin:0;font-size:.95rem}
.related{padding:48px 0 0;border-top:1px solid var(--line)}

/* ---------- reading ---------- */
.reading{max-width:740px;padding-bottom:30px}
.reading > p:first-child{font:500 1.45rem/1.45 var(--serif);color:var(--navy)}
.reading h2{font-size:1.5rem;margin-top:40px}
.reading p{color:var(--muted)}
.reading .signoff{font:500 1.25rem/1.5 var(--serif);color:var(--navy);margin-top:30px}
.notfound{padding:90px 0;max-width:720px}
.notfound .sparkle{width:56px;height:56px;margin-bottom:12px}

/* ---------- footer ---------- */
.footer{margin-top:80px;background:var(--navy);color:#d5dbe8;padding:52px 0 26px}
.footer-inner{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px;align-items:start}
.footer-brand{display:flex;gap:18px;align-items:center}
.footer-brand img{width:84px;height:84px;flex:none}
.footer strong{display:block;font:900 1.45rem/1.2 var(--sans);color:#fff;margin-bottom:6px}
.footer p{font-size:.95rem;margin:0;max-width:380px}
.footer h2{font:800 .78rem/1.3 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--butter);margin:6px 0 14px}
.footer-links{display:flex;flex-direction:column;gap:8px}
.footer-links a{text-decoration:none;color:#fff}
.footer-links a:hover{color:var(--butter);text-decoration:underline}
.footer small{display:block;margin-top:40px;padding-top:20px;border-top:1px solid rgba(255,255,255,.14);font-size:.84rem;color:#aeb7cb}

/* ---------- responsive ---------- */
@media(max-width:1080px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .line-grid{grid-template-columns:repeat(3,1fr)}
  .age-grid{grid-template-columns:repeat(2,1fr)}
  .nav a{padding:.5rem .55rem}
}
@media(max-width:960px){
  .nav{display:none}
  .mobile-nav{display:block}
  .hero-grid{grid-template-columns:1fr;gap:28px;padding:40px 0 56px}
  .hero-art{width:min(240px,60%);order:-1}
  .hero-art .dot{display:none}
  .hero-art .sparkle{width:44px;height:44px;right:-10%}
  .steps{grid-template-columns:1fr}
  .about-strip{grid-template-columns:auto 1fr}
  .about-strip .button{grid-column:2;justify-self:start}
}
@media(max-width:720px){
  body{font-size:1rem}
  .wrap{width:calc(100% - 32px)}
  .topline{font-size:.78rem}
  .header-inner{min-height:68px;gap:10px}
  .brand img{width:44px;height:44px}
  .brand span{font-size:1.08rem}
  .hero-actions .button{flex:1 1 100%}
  .section{padding:50px 0}
  .section-head{flex-direction:column;align-items:start;gap:6px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
  .card-info{padding:10px 12px 14px}
  .card-info h3{font-size:.94rem}
  .card-info .meta{flex-direction:column;gap:2px}
  .age-grid{grid-template-columns:1fr 1fr;gap:12px}
  .age-card{padding:18px 16px}
  .age-label{font-size:1.2rem}
  .age-note{font-size:.88rem}
  .line-grid{grid-template-columns:1fr}
  .family-band{flex-direction:column;align-items:start}
  .product{grid-template-columns:1fr;gap:24px}
  .product-gallery{position:static}
  .about-strip{grid-template-columns:1fr;padding:26px 22px;gap:14px}
  .about-strip img{width:80px;height:80px}
  .about-strip .button{grid-column:auto}
  .category-links{flex-wrap:nowrap;overflow-x:auto;margin-inline:-16px;padding:0 16px 6px;scrollbar-width:none}
  .category-links::-webkit-scrollbar{display:none}
  .category-links a{flex:none}
  .filters{gap:10px;padding:12px}
  .filters label{flex-basis:130px;font-size:.7rem}
  .filters button{flex:1 1 100%;min-height:40px}
  .footer-inner{grid-template-columns:1fr 1fr;gap:28px}
  .footer-brand{grid-column:1/-1}
  .page-head > .sparkle{display:none}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important}
}


/* author's books */
.books-band{display:grid;grid-template-columns:1fr 1.1fr;gap:40px;align-items:center;background:var(--mint-soft);border-radius:var(--radius);padding:40px}
.books-band h2{margin-bottom:10px}
.books-band p{color:var(--muted)}
.books-band-covers{display:flex;justify-content:center;align-items:flex-end}
.books-band-covers img{width:22%;height:auto;border-radius:6px;box-shadow:0 10px 24px rgba(36,50,75,.22);margin-left:-4%;transform:rotate(var(--r,0deg))}
.books-band-covers img:nth-child(1){--r:-6deg;margin-left:0}
.books-band-covers img:nth-child(2){--r:-2deg;width:25%;z-index:1}
.books-band-covers img:nth-child(3){--r:0deg;width:28%;z-index:2}
.books-band-covers img:nth-child(4){--r:3deg;width:25%;z-index:1}
.books-band-covers img:nth-child(5){--r:7deg}
.books-head{display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center}
.books-head .author-photo{width:220px;height:auto;border-radius:var(--radius)}
.books-head .hero-actions{margin-top:18px}
.book-series{padding:44px 0 10px;border-top:1px solid var(--line)}
.book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:24px 18px}
.book{display:flex;flex-direction:column;gap:10px;text-decoration:none;font-weight:700;font-size:.92rem;line-height:1.3}
.book img{width:100%;height:auto;border-radius:6px;box-shadow:0 6px 18px rgba(36,50,75,.16);transition:transform .2s}
.book:hover img{transform:translateY(-3px)}
.books-note{color:var(--muted);font-size:.92rem;margin-top:30px}
@media(max-width:860px){.books-band{grid-template-columns:1fr;padding:28px 22px}.books-head{grid-template-columns:1fr}.books-head .author-photo{width:160px;order:-1}}
@media(max-width:520px){.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* privacy policy page */
.reading.legal > p:first-of-type{font:600 .9rem/1.5 var(--sans);color:var(--muted);letter-spacing:.02em}
.reading.legal h2{font-size:1.35rem;margin-top:34px}
.reading.legal li{margin:4px 0;color:var(--muted)}
@media print{.header,.topline,.footer,.filters{display:none}}
