/* Thoughtful Puzzles Press. White page, charcoal ink, one accent: the deep teal from the press mark.
   The book covers carry the colour. Kept clear of Brightwit's cream, navy, gold and terracotta
   (docs/research/2026-10-21-press-site-palette.md in the studio). */
@font-face { font-family: 'Thoughtful Display'; src: url(fonts/ThoughtfulDisplay-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Mrs Saint Delafield'; src: url(fonts/MrsSaintDelafield-Regular.woff2) format('woff2'); font-display: swap; } /* Sara's signature only (OFL) */
@font-face { font-family: 'Work Sans'; src: url(fonts/WorkSans-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url(fonts/WorkSans-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url(fonts/WorkSans-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --bg: #FFFFFF; --panel: #F2F6F4; --ink: #1F2A2E; --ink-2: #4B5A5E; --accent: #2A5653; --accent-dark: #1F4441;
  --line: #DCE5E1; --display: 'Thoughtful Display', Georgia, serif; --text: 'Work Sans', system-ui, sans-serif;
  --wrap: 1120px; --r: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 9; }

/* header and footer */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.15rem/1.1 var(--display); }
.brand img { width: 46px; }
.top ul { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; font-weight: 500; }
.top ul a { text-decoration: none; padding: 6px 0; }
.top ul a[aria-current] { box-shadow: inset 0 -2px var(--accent); }
.foot { margin-top: 80px; padding: 40px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.foot .wrap { display: grid; gap: 18px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.fine { font-size: .82rem; color: var(--ink-2); }

/* buttons: one style, plus a quiet outline */
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  padding: 13px 22px; border-radius: var(--r); border: 2px solid var(--accent); line-height: 1.2; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--panel); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* home hero */
.hero { padding: 56px 0 40px; display: grid; gap: 40px; align-items: center; }
.hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero-img { border-radius: var(--r); box-shadow: 0 18px 40px -18px rgba(31,42,46,.45); }
.fan { display: flex; justify-content: center; align-items: flex-end; }
.fan .cover { width: 34%; margin: 0 -3%; }
.fan .cover:nth-child(2) { width: 40%; z-index: 1; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.05fr 1fr; padding: 72px 0 56px; } }

section { margin: 56px 0; }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

/* covers and cards */
.cover img { border-radius: 2px; box-shadow: 0 1px 2px rgba(31,42,46,.18), 0 10px 24px -8px rgba(31,42,46,.35); background: var(--panel); }
.books { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.books a { text-decoration: none; display: block; }
.books .cover { margin-bottom: 14px; }
.books h3 { font-size: 1.05rem; margin-bottom: .3em; }
.books a:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); }
.tag { font-size: .85rem; color: var(--ink-2); }
.soon { display: block; font-size: .85rem; font-weight: 600; color: var(--accent); margin-top: 2px; }
.soon.big { font-size: 1.1rem; margin: 0 0 4px; }
.buy .fine { margin: 0; }
.series-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.series-tiles a { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; height: 100%; }
.series-tiles a:hover { border-color: var(--accent); }
.series-tiles p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* look inside at true size: 1 CSS inch is 96px, close to a real inch on most screens */
.true-size { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 16px; display: grid; gap: 24px; justify-items: center; }
.true-size img { width: 6in; max-width: 100%; box-shadow: 0 8px 30px -10px rgba(31,42,46,.4); }
.true-size.big img { width: 8.5in; }

/* catalog and series pages */
.page-head { padding: 40px 0 8px; }
.page-head .lede { font-size: 1.1rem; color: var(--ink-2); max-width: 40em; }
.crumbs { font-size: .9rem; color: var(--ink-2); margin: 24px 0 0; }
.crumbs a { color: var(--ink-2); }
.featured { display: grid; gap: 28px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.featured .cover { max-width: 240px; }
@media (min-width: 720px) { .featured { grid-template-columns: 240px 1fr; } }

/* book page */
.book { display: grid; gap: 40px; padding-top: 24px; }
@media (min-width: 900px) { .book { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.gallery .main { max-width: 440px; margin: 0 auto; }
@media (max-width: 899px) { .gallery .main { max-width: 230px; } .thumbs { max-width: 440px; margin-inline: auto; } }
.thumbs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbs a { display: block; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--panel); }
.thumbs a:hover { border-color: var(--accent); }
.thumbs img { aspect-ratio: 2 / 3; object-fit: cover; object-position: top; width: 100%; }
.series-name { font-weight: 600; color: var(--accent); text-decoration: none; }
.subtitle { font-size: 1.15rem; color: var(--ink-2); }
.by { font-size: .95rem; }
.buy { margin: 22px 0; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.buy .btn { width: 100%; text-align: center; font-size: 1.05rem; }
.stores { margin: 16px 0 0; font-size: .9rem; }
.stores ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.specs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px 24px; }
.specs li { border-top: 1px solid var(--line); padding-top: 8px; }
.specs b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.strip figure { margin: 0; }
.strip img { border: 1px solid var(--line); background: #fff; }
.strip figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
.desc { max-width: 40em; }
.desc ul { padding-left: 1.2em; }
.desc li { margin-bottom: .4em; }
.prose { max-width: 40em; }
.prose h2 { margin-top: 1.4em; }

/* home: Sara's note and the three doors */
.note { max-width: 40em; margin: 24px auto 64px; padding: 36px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); font-size: 1.08rem; }
.note h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.note .sign { font: 400 2.7rem/1 'Mrs Saint Delafield', 'Brush Script MT', cursive; margin: .6em 0 0; color: var(--accent); }
.note .maker { font-size: .85rem; color: var(--ink-2); margin: .3em 0 0; letter-spacing: .02em; }
.doors { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.doors a { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; text-decoration: none; height: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.doors a:hover { border-color: var(--accent); }
.doors h3 { font-size: 1.35rem; }
.doors p { font-size: .95rem; color: var(--ink-2); margin-bottom: .6em; }
.doors .more { font-weight: 600; font-size: .9rem; }
.lede-sm { color: var(--ink-2); margin-top: -.2em; }
