/* Brambleway Press website
   Shared parts, locked in design-v2 (29 Nov 2026). Change only with Wayne's yes. */

@font-face { font-family: "Playfair Display"; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  --page: #F8E3D2;
  --paper: #FAF5E8;
  --white: #FFFFFF;
  --ink: #172F21;
  --panel: #DDBFA7;
  --shelf: #906845;
  --label: #486257;
  --ribbon: #AA543D;
  --display: "Playfair Display", Georgia, serif;
  --text: "Atkinson Hyperlegible", Verdana, sans-serif;
  --wrap: 1200px;
  --gutter: 32px;
  --pinned-shadow: 0 1px 2px rgba(23,47,33,.10), 0 5px 12px rgba(23,47,33,.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--text); font-size: 20px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0 0 16px; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--label); }
:focus-visible { outline: 3px solid var(--ribbon); outline-offset: 3px; box-shadow: 0 0 0 3px var(--page); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 12px 18px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: soft pills, at least 48px tall */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 30px; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.25; }
.btn--main { background: var(--ink); color: var(--page); }
.btn--main:hover { background: #24412F; color: var(--page); }
.btn--quiet { border: 2px solid var(--ink); color: var(--ink); padding: 10px 28px; }
.btn--quiet:hover { background: var(--ink); color: var(--page); }
.btn--light { background: var(--page); color: var(--ink); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.btn--outline-light { border: 2px solid var(--white); color: var(--white); padding: 10px 28px; }
.btn--outline-light:hover { background: var(--white); color: var(--ink); }
.btn--block { display: flex; width: 100%; }

/* Top bar */
.topbar { background: var(--ink); }
.topbar__inner { display: flex; align-items: center; min-height: 60px; }
.topbar__name { display: none; font-family: var(--display); font-weight: 700; color: var(--page); text-decoration: none; font-size: 19px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--page); text-decoration: none; padding: 6px 0; display: inline-block; }
.nav a:hover { text-decoration: underline; color: var(--page); }
.nav a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--page); }
.menu { display: none; }

/* Logo strip */
.logostrip { background: #FAF5E8; border-bottom: 1px solid var(--panel); padding: 28px var(--gutter) 24px; display: flex; justify-content: center; }
.logostrip img { width: 250px; }

/* Big footer */
.footer { background: var(--ink); color: var(--page); font-size: 17px; }
.footer a { color: var(--page); }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 28px; }
.footer__name { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 12px 0 6px; }
.footer h2 { font-family: var(--text); font-size: 19px; margin: 0 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer a { overflow-wrap: anywhere; }
.footer__robin { width: 72px; height: 72px; border-radius: 50%; }
.footer__base { border-top: 1px solid var(--label); padding-top: 18px; padding-bottom: 24px; font-size: 16px; margin: 0 auto; }

/* Shelf of book cards */
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px 28px; border-bottom: 6px solid var(--shelf); padding-bottom: 40px; list-style: none; margin: 0; padding-left: 0; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card__cover { width: 100%; aspect-ratio: 17 / 22; object-fit: cover; box-shadow: 0 6px 14px rgba(23,47,33,.25); }
.card__placeholder { width: 100%; aspect-ratio: 17 / 22; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 16px; box-shadow: 0 6px 14px rgba(23,47,33,.25); }
.card__placeholder span:first-child { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; }
.card__placeholder span:last-child { font-size: 15px; }
.card__title { font-size: 22px; line-height: 1.2; margin-top: 6px; }
.card__series { margin: 0; font-size: 16px; color: var(--label); font-weight: 700; }
.card__text { margin: 0; font-size: 17px; line-height: 1.5; flex: 1; }
.card .btn { font-size: 18px; padding: 11px 16px; }
.card__amazon { margin: 2px 0 0; font-size: 16px; text-align: center; line-height: 1.8; }
.card__amazon--soon { color: var(--label); line-height: 1.5; }

@media (max-width: 900px) {
  .footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer ul { line-height: 1.4; }
  .footer p a { display: inline-flex; align-items: center; min-height: 44px; }
  .topbar__inner { justify-content: space-between; min-height: 56px; }
  .topbar__name { display: inline-flex; align-items: center; min-height: 44px; }
  .nav--wide { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; color: var(--page); border: 2px solid var(--page); border-radius: 999px; padding: 6px 18px; min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: 17px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--page); color: var(--ink); }
  .menu .nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--ink); flex-direction: column; gap: 0; padding: 8px 20px; min-width: 220px; z-index: 5; box-shadow: 0 8px 18px rgba(23,47,33,.35); }
  .menu .nav a { padding: 10px 0; min-height: 44px; }
}

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 18px; }
  :root { --gutter: 16px; }
  .logostrip { padding: 18px 16px; }
  .logostrip img { width: 170px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; border-bottom-width: 5px; padding-bottom: 28px; }
  .card { gap: 8px; }
  .card__title { font-size: 19px; }
  .card__series { font-size: 15px; }
  .card__text { font-size: 16px; line-height: 1.45; }
  .card .btn { font-size: 16px; padding: 11px 8px; }
  .card__amazon { font-size: 15px; }
  .card__placeholder span:first-child { font-size: 19px; }
  .card__placeholder span:last-child { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
