/* Coogee Publishing site styles. Mobile first; wider layouts in the media queries at the end. */
@font-face {
  font-family: "Fraunces CP";
  src: url("../fonts/fraunces-650.woff2") format("woff2");
  font-weight: 650; font-style: normal; font-display: swap;
}
:root {
  --navy: #0A2540;      /* text and dark backgrounds */
  --deep: #0F4C81;      /* links and headings accents */
  --ocean: #1A73B5;     /* buttons */
  --sky: #7CC6EE;       /* accents on navy */
  --foam: #E3F2FB;      /* light panels */
  --sand: #F2D3A0;      /* warm accent */
  --sand-light: #FBF4E8;
  --white: #FFFFFF;
  --muted: #3D5671;     /* secondary text on white (contrast 7.4:1) */
  --radius: 16px;
  --heading: "Fraunces CP", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--navy); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 650; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid #D7E4EE; position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: .55rem .7rem; text-decoration: none; font-weight: 600; color: var(--navy); border-radius: 8px; }
.nav a:hover { background: var(--foam); }
.nav a[aria-current="page"] { color: var(--deep); box-shadow: inset 0 -3px 0 var(--sky); border-radius: 0; }

/* Hero */
.hero { position: relative; background: linear-gradient(170deg, var(--navy) 0%, #0F3A66 55%, var(--deep) 100%); color: var(--white); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding: 3rem 0 6.5rem; display: grid; gap: 2rem; }
.hero .eyebrow { color: var(--sand); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin-bottom: .75rem; }
.hero p.lead { font-size: 1.15rem; max-width: 34em; color: #E6F1F9; }
.hero-covers { display: flex; gap: 1rem; align-items: flex-end; justify-content: center; }
.hero-covers img { border-radius: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.35); background: var(--foam); }
.hero-covers img:first-child { width: 42%; transform: rotate(-3deg); }
.hero-covers img:last-child { width: 48%; transform: rotate(2.5deg); }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 80px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.3rem; border-radius: 999px; font: 700 1rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--sand); color: var(--navy); }
.btn-primary:hover { background: #F7E2BE; color: var(--navy); }
.btn-ghost { border-color: var(--sky); color: var(--white); }
.btn-ghost:hover { background: rgba(124,198,238,.15); color: var(--white); }
.btn-buy { background: var(--ocean); color: var(--white); width: 100%; }
.btn-buy:hover { background: var(--deep); color: var(--white); }
.btn-soon, .btn-soon:disabled { background: var(--foam); color: var(--muted); border: 2px dashed #9DBBD3; cursor: not-allowed; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Sections */
section.block { padding: 3.5rem 0; }
section.alt { background: var(--sand-light); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.5rem; }
.section-head p { margin: 0; color: var(--muted); }
.about-grid { display: grid; gap: 2rem; }
.people { display: grid; gap: 1rem; }
.person { background: var(--white); border: 1px solid #E5D7BF; border-radius: var(--radius); padding: 1.25rem; }
.person h3 { margin-bottom: .25rem; }
.person .placeholder { color: var(--muted); font-style: italic; margin: 0; }
.person .bio { margin: 0; }

/* Book cards */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid #D7E4EE; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(10,37,64,.06); }
.card .cover { display: block; aspect-ratio: 1 / 1; background: var(--foam); padding: 1rem; }
.card .cover img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(10,37,64,.2)); }
.card .body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.card h3 { margin: 0; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .series { margin: 0; color: var(--deep); font-weight: 600; font-size: .95rem; }
.card .blurb { margin: 0; color: var(--muted); }
.card .buy { margin-top: auto; padding-top: .5rem; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; font-size: .85rem; }
.pill { display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: var(--foam); color: var(--navy); font-weight: 600; }
.pill.available { background: #D8F0E2; color: #0C4A2A; }
.pill.soon { background: #FCEBCB; color: #5C3B00; }

/* Book page */
.book { display: grid; gap: 2rem; padding: 2.5rem 0 3.5rem; }
.book .cover-lg { background: var(--foam); border-radius: var(--radius); padding: 1.5rem; }
.book .cover-lg img { margin-inline: auto; max-height: 560px; width: auto; filter: drop-shadow(0 10px 18px rgba(10,37,64,.25)); }
.book dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 1.5rem 0; }
.book dt { font-weight: 700; }
.book dd { margin: 0; }
.book .buy { max-width: 360px; }
.crumbs { font-size: .95rem; margin: 1.5rem 0 0; }

/* Footer */
.site-footer { background: var(--navy); color: #D9E8F4; padding: 2.5rem 0 2rem; }
.site-footer a { color: var(--white); }
.site-footer .wrap { display: grid; gap: 1.5rem; }
.site-footer img { height: 44px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer small { color: #B9D2E6; }

.notice { background: var(--foam); border-left: 4px solid var(--ocean); padding: 1rem 1.25rem; border-radius: 8px; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); }
  .brand img { height: 46px; }
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 4.5rem 0 7.5rem; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .book { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 380px) {
  .site-header .wrap { flex-wrap: wrap; justify-content: center; padding: .4rem 0; }
  .nav a { padding: .5rem .55rem; }
}
