/* JennyLinsky.com — colors taken from the NYR Children's Collection cover:
   mustard yellow, ink black, spine red, label cream. */
:root {
  --yellow: #F2B12E;
  --ink: #1A1714;
  --ink-2: #2A2520;
  --red: #C4422A;
  --red-btn: #B5361E;
  --red-text: #8E2A17;
  --cream: #FBF6E9;
  --cream-2: #EFE6D2;
  --muted: #3A2F1C;
  --muted-on-dark: #E3DACA;
  --display: "Old Standard TT", Georgia, "Times New Roman", serif;
  --body: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-text); }
a:hover { color: #5E1A0E; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--yellow); padding: 10px 16px; z-index: 10; }
.skip-link:focus { left: 16px; top: 16px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--yellow); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.topband { height: 10px; background: var(--red); }

/* Header */
.site-header { border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 54px; width: auto; mix-blend-mode: multiply; }
.brand-name { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; }
.brand-tag { display: block; font-size: 13px; font-style: italic; color: var(--muted); line-height: 1.2; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav a.nav-shop { background: var(--ink); color: var(--yellow); padding: 8px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); margin: 24px 0 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "/"; margin-right: 4px; }
.crumbs a { color: var(--ink); }

/* The cover-style title label */
.label { display: inline-block; background: var(--cream); padding: 7px; border-radius: var(--radius); box-shadow: 0 3px 0 rgba(26, 23, 20, 0.25); margin-bottom: 24px; max-width: 100%; }
.label-inner { border: 2px solid var(--red); border-radius: 8px; padding: 16px 32px; text-align: center; }
.label h1 { margin: 0; font-size: clamp(34px, 6vw, 52px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.05; }
.label .rule { border-top: 2px dotted var(--ink); margin: 12px 0 8px; }
.label .sub { margin: 0; font-style: italic; font-size: 16px; }
.label-hero h1 .big { display: block; font-size: clamp(44px, 8vw, 64px); }
.label-hero h1 .small { display: block; font-size: 22px; letter-spacing: 0.12em; margin: 6px 0 4px; }
.label-hero .by { margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase; }

.lede { font-size: 19px; max-width: 40em; }
.eyebrow { margin: 0 0 6px; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-text); }
.on-dark .eyebrow { color: var(--yellow); }
.section-title { font-size: clamp(30px, 4.5vw, 40px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

/* Buttons */
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px; border: 2px solid transparent; line-height: 1.3; text-align: center; cursor: pointer; font-family: inherit; }
.btn-red { background: var(--red-btn); color: #fff; }
.btn-red:hover { background: #962B17; color: #fff; }
.btn-black { background: var(--ink); color: var(--yellow); }
.btn-black:hover { background: #000; color: var(--yellow); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #FFC94D; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding-top: 64px; padding-bottom: 64px; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark a { color: var(--yellow); }
.section-cream { background: var(--cream); }
.section-red { background: var(--red-btn); color: #fff; }
.section-red a { color: #fff; }
.muted-dark { color: var(--muted-on-dark); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 56px; }
.hero > * { flex: 1 1 380px; min-width: 0; }
.hero-art { margin: 0; text-align: center; }
.hero-art img { height: 500px; width: auto; margin: 0 auto; mix-blend-mode: multiply; }
.hero-art figcaption, .credit { font-size: 13px; font-style: italic; color: var(--muted); }
.hero-facts { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 32px; display: grid; gap: 20px; }
.hero-facts div { border-top: 2px dotted #6B6155; padding-top: 14px; }
.hero-facts strong { display: block; font-family: var(--display); font-size: 40px; color: var(--yellow); line-height: 1; }
.skyline { display: block; width: 100%; height: 120px; margin-top: 48px; }

/* Grids and cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { display: flex; flex-direction: column; background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: 0 4px 0 var(--ink); color: var(--ink); }
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.card h2, .card h3 { font-size: 26px; }
.card .grow { flex-grow: 1; }
.card-dark { background: var(--ink-2); border: 0; border-top: 6px solid var(--red); box-shadow: none; color: var(--cream); }
.card-dark h3 { color: var(--cream); }
.small { font-size: 14px; }
.meta { font-size: 14px; color: #4A3F33; }

/* Typographic book tile (used when no cover image is available) */
.book-tile { aspect-ratio: 2 / 3; background: var(--ink); color: var(--yellow); border-radius: 4px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 16px; margin-bottom: 16px; border-left: 12px solid var(--red); }
.book-tile .t { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.03em; }
.book-tile .a { font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); }
.book-cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 16px; box-shadow: 0 6px 14px rgba(26, 23, 20, 0.3); }
.thumb { width: 120px; }
.thumb .book-tile { padding: 10px; border-left-width: 8px; }
.thumb .book-tile .t { font-size: 14px; }
.thumb .book-tile .a { font-size: 9px; }

/* Monogram used for characters without licensed art */
.monogram { aspect-ratio: 3 / 2; background: var(--yellow); border-radius: 8px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 64px; font-weight: 700; }
.art-box { aspect-ratio: 3 / 2; background: #fff; border-radius: 8px; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.art-box img { height: 92%; width: auto; }

/* Pills */
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--ink); color: var(--yellow); }
.pill-out { background: var(--cream-2); color: #4A3F33; border: 2px dashed #8A7B62; }
.tag { display: inline-block; background: var(--yellow); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Books in order */
.order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.order-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 22px; }
.order-year { flex: 0 0 88px; text-align: center; font-family: var(--display); }
.order-year .no { display: block; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #4A3F33; }
.order-year .y { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; }
.order-body { flex: 1 1 360px; min-width: 0; }
.order-body h2 { font-size: 26px; margin-bottom: 4px; }
.order-body p { margin: 0; font-size: 15px; color: #4A3F33; }

/* Two-column page body */
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.split > .main-col { flex: 999 1 560px; min-width: 0; }
.split > .side-col { flex: 1 1 300px; min-width: 0; }
.panel { background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: 32px; }
.panel-dark { background: var(--ink); color: var(--muted-on-dark); border-radius: var(--radius); padding: 28px; }
.panel-dark h2 { color: var(--yellow); }
.panel-dark a { color: var(--cream); }
.panel h2 { font-size: 30px; text-transform: uppercase; letter-spacing: 0.03em; }
.panel h2:not(:first-child) { margin-top: 1.2em; }

dl.facts { margin: 0 0 28px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 24px; font-size: 15px; }
dl.facts dt { font-weight: 700; }
dl.facts dd { margin: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.timeline li { display: flex; gap: 16px; border-top: 1px dotted #6B6155; padding-top: 12px; font-size: 15px; }
.timeline .y { flex: 0 0 52px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--yellow); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 22px; }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 22px; font-weight: 700; }
.faq details p { margin: 12px 0 0; }

/* Filters in the shop */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; border: 2px solid var(--ink); background: var(--cream); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }

/* Forms */
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input { height: 48px; padding: 0 14px; border-radius: 8px; border: 0; font: inherit; font-size: 16px; }

.notice { padding: 14px 18px; background: var(--cream); border: 2px solid var(--ink); border-radius: 10px; font-size: 14px; color: var(--muted); }
.guide-q { margin: 0; padding-left: 22px; }
.guide-q li { margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-on-dark); font-size: 14px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--yellow); }
.site-footer p { margin: 0; }

@media (max-width: 640px) {
  .hero-art img { height: 360px; }
  .label-inner { padding: 14px 18px; }
  .panel { padding: 22px; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }
