/* Two Hungry Bowlers Publishing — site styles */
:root {
  --paper: #f8f5ee;
  --paper-deep: #efe9dc;
  --ink: #15130f;
  --ink-soft: #3d3831;
  --muted: #6f6759;
  --line: #dcd4c4;
  --brass: #9a6b1f;
  --brass-deep: #7d5616;
  --sage: #5b6a5c;
  --serif-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --serif-body: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --type-display: clamp(2.4rem, 6vw, 4.6rem);
  --type-h2: clamp(1.7rem, 3.4vw, 2.5rem);
  --type-h3: clamp(1.2rem, 2vw, 1.45rem);
  --type-body: clamp(1rem, 1.6vw, 1.12rem);
  --type-ui: 0.74rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: var(--type-body);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif-display); font-weight: 400; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: var(--type-display); }
h2 { font-size: var(--type-h2); }
h3 { font-size: var(--type-h3); }
p { margin: 0 0 1em; max-width: var(--measure); }
.eyebrow {
  font-family: var(--serif-body);
  font-size: var(--type-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.9rem;
}
.container { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 84px; height: auto; }
.brand-text { font-family: var(--serif-display); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.05; }
.brand-text small { display: block; font-family: var(--serif-body); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.3rem; }
.site-nav { display: flex; gap: clamp(0.8rem, 2.5vw, 1.8rem); flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { font-size: 0.92rem; letter-spacing: 0.04em; text-decoration: none; color: var(--ink-soft); padding-block: 0.25rem; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }

/* Sections */
.section { padding-block: clamp(2.8rem, 7vw, 5.5rem); }
.section-deep { background: var(--paper-deep); }
.section-rule { border-top: 1px solid var(--line); }
.section-title { margin-bottom: 1.2rem; }
.lede { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink-soft); }

/* Hero */
.hero { padding-block: clamp(3rem, 9vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; align-items: end; }
.hero-covers a { display: block; }
.hero-covers img { border-radius: 4px; box-shadow: 0 18px 40px -18px rgba(21,19,15,0.55); aspect-ratio: 2/3; object-fit: cover; }
.hero-covers a:nth-child(2) { transform: translateY(-1.2rem); }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* Buttons */
.btn { display: inline-block; padding: 0.8rem 1.35rem; border-radius: 999px; font-family: var(--serif-body); font-size: 0.92rem; letter-spacing: 0.03em; text-decoration: none; border: 1px solid var(--ink); transition: background 0.18s, color 0.18s; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brass-deep); border-color: var(--brass-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* Feature cards (home) */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); }
.feature { display: grid; grid-template-columns: 150px 1fr; gap: 1.3rem; align-items: start; padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.feature img { border-radius: 3px; box-shadow: 0 12px 28px -14px rgba(21,19,15,0.5); }
.feature h3 { margin-bottom: 0.3rem; }
.badge { display: inline-block; font-size: var(--type-ui); letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px; margin-bottom: 0.7rem; }
.badge-live { background: var(--sage); color: #fff; }
.badge-soon { background: var(--brass); color: #fff; }
.meta { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.6rem; }

/* Author strip */
.author-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); }
.author-card h3 { margin-bottom: 0.2rem; }
.author-card .meta { margin-bottom: 0.8rem; }

/* Books page */
.book-list { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); }
.book { display: grid; grid-template-columns: 180px 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); align-items: start; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.book:first-child { border-top: 0; padding-top: 0; }
.book img { border-radius: 3px; box-shadow: 0 14px 30px -14px rgba(21,19,15,0.5); }
.book h3 { margin-bottom: 0.25rem; }
.book .tagline { font-style: italic; color: var(--ink-soft); }
.book-nocover { width: 180px; aspect-ratio: 2/3; border: 1px dashed var(--line); border-radius: 3px; display: grid; place-items: center; color: var(--muted); font-size: var(--type-ui); letter-spacing: 0.12em; text-transform: uppercase; text-align: center; padding: 1rem; }
.author-block { margin-top: clamp(2.4rem, 5vw, 4rem); }
.author-block:first-of-type { margin-top: 0; }
.author-block > h2 { margin-bottom: 0.3rem; }
.author-block > .meta { margin-bottom: 1.6rem; }

/* Prose pages */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }

/* Contact form */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; letter-spacing: 0.03em; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 6px; padding: 0.75rem 0.9rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.field textarea { min-height: 160px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.86rem; color: var(--muted); }
.form-status { margin-top: 0.4rem; padding: 0.8rem 1rem; border-radius: 6px; font-size: 0.95rem; }
.form-status[data-state="ok"] { background: #e7efe6; color: #2f4a33; }
.form-status[data-state="err"] { background: #f5e6e0; color: #7a2f1f; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-deep); padding-block: 2.2rem; font-size: 0.9rem; color: var(--muted); }
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brass-deep); }

/* Responsive */
@media (max-width: 820px) {
  .hero-grid, .feature-grid, .author-grid, .two-col { grid-template-columns: 1fr; }
  .hero-covers { max-width: 520px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .book { grid-template-columns: 1fr; }
  .book img, .book-nocover { width: 150px; }
  .feature { grid-template-columns: 110px 1fr; }
  .brand img { width: 64px; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .site-nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
