/* patrickfogartybooks.com — shared styles */
:root {
  --cream: #fbf6ec;
  --paper: #ffffff;
  --ink: #2b2a33;
  --muted: #5f5a66;
  --gold: #e0962b;
  --gold-dark: #b8711a;
  --navy: #1f3557;
  --line: #eadfca;
  --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* header + nav */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.25rem; color: var(--navy); text-decoration: none; }
.nav { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* sections */
section { padding: 48px 0; }
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.lead { font-size: 1.15rem; color: var(--muted); }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--gold-dark); margin-bottom: .5em; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* buttons */
.btn { display: inline-block; background: var(--gold); color: #fff; font-weight: 700; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; margin: 4px 8px 4px 0; }
.btn:hover { background: var(--gold-dark); }
.btn.ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }

/* cards + grids */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.book { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.book img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.book .body { padding: 10px 12px 14px; font-size: .9rem; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.book .body strong { color: var(--navy); }
.book .body a { margin-top: auto; font-weight: 700; }
.cover-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cover-stack img { border-radius: 10px; box-shadow: 0 6px 18px rgba(31,53,87,.18); }
.world { display: flex; flex-direction: column; gap: 12px; }
.world img { border-radius: var(--radius); }
.note { font-size: .9rem; color: var(--muted); }
.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { background: #f3ead8; color: var(--navy); }
ul.ticks { padding-left: 1.2em; }
ul.ticks li { margin-bottom: .4em; }

/* thriller section: its own dark look */
.dark { background: #15181d; color: #e8e6e1; }
.dark h1, .dark h2, .dark h3 { color: #f1efe9; font-family: "Oswald", "Nunito", sans-serif; letter-spacing: .02em; }
.dark a { color: #e0b15a; }
.dark .lead, .dark .note { color: #b9b5ad; }
.dark .card, .dark .book { background: #1f242b; border-color: #2e343c; }
.dark .band { background: #1f242b; border-color: #2e343c; }
.dark .band p { color: #d6d2ca; }
.dark .book .body strong { color: #f1efe9; }
.dark .btn { background: #b8892f; color: #15181d; }
.dark .btn:hover { background: #9c7224; }

/* footer */
.site-footer { background: var(--navy); color: #dfe6f1; font-size: .9rem; padding: 32px 0; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

/* phones: header scrolls away instead of covering the page */
@media (max-width: 640px) {
  .site-header { position: static; }
  .nav { gap: 2px 14px; font-size: .9rem; }
  section { padding: 36px 0; }
}

/* thriller page: keep the white header readable */
.dark .site-header .brand { color: var(--navy); }
.dark .site-header .nav a { color: var(--ink); }

/* phones: author photo sits above the bio, centred */
@media (max-width: 640px) {
  img[src="img/patrick-fogarty.jpg"] { float: none !important; margin: 0 auto 20px !important; width: 180px !important; height: 180px !important; }
}
