/* R. L. Harris — site stylesheet
   Typography follows brand/email-typography-notes.md (Thomas):
   one serif family (Georgia stack), body 16px / 1.5, #222222 on white,
   bronze #8E6746 for the imprint name, #E5D3B3 only as thin rules. */

:root {
  --ink: #222222;
  --bronze: #8E6746;        /* ~5:1 on white: small text OK */
  --bronze-dark: #6B4A2F;   /* links: ~8:1 on white */
  --gold-rule: #E5D3B3;     /* accent rules only, never text */
  --paper: #FFFFFF;
  --muted: #4A4A4A;
  --ph-bg: #FFF4D6;
  --ph-border: #8A5A00;
  --ph-ink: #4A3000;
  --serif: Georgia, 'Times New Roman', Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bronze-dark); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #FFFFFF; padding: 0.6rem 1rem; font-weight: bold;
}
.skip-link:focus, .skip-link:focus-visible { top: 0.5rem; color: #FFFFFF; outline-color: var(--bronze); }

/* Layout */
.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--gold-rule); background: var(--paper); }
.site-header .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding-top: 1rem; padding-bottom: 0.75rem; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
/* Seal: shown exactly as drawn. Square box, contain, no radius, no filters, no shadow. */
.seal {
  width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto;
  margin-right: 12px; border-radius: 0; border: 0; box-shadow: none; filter: none;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 18px; font-weight: bold; color: var(--ink); line-height: 1.2; }
.brand-imprint { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--bronze); line-height: 1.4; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.site-nav a { display: inline-block; padding: 0.35rem 0; min-height: 24px; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--gold-rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--bronze); font-weight: bold; }

/* Main */
main { padding: 2rem 0 3rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.25; color: var(--ink); }
h1 { font-size: 2rem; margin: 0 0 1rem; letter-spacing: 0.5px; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.25rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.125rem; color: var(--ink); max-width: 40rem; }
.eyebrow { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--bronze); margin: 0 0 0.5rem; }
.rule { border: 0; border-top: 1px solid var(--gold-rule); margin: 2.5rem 0; }
.prose { max-width: 40rem; }
.blurb p { max-width: 40rem; }
.blurb .tagline { font-style: italic; }
.source-note { font-size: 14px; color: var(--muted); }

/* Hero */
.hero { display: grid; gap: 1.5rem; align-items: center; }
.hero-seal { width: 120px; height: 120px; object-fit: contain; border-radius: 0; filter: none; }

/* Book grid */
.book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
.book-card a { text-decoration: none; color: var(--ink); display: block; }
.book-card a:hover h3, .book-card a:focus-visible h3 { text-decoration: underline; }
.book-card img { width: 100%; aspect-ratio: 943 / 1500; object-fit: contain; background: #FFFFFF; border: 1px solid var(--gold-rule); margin-bottom: 0.5rem; }
.book-card h3 { font-size: 1.05rem; margin: 0; }
.book-card .series { font-size: 14px; color: var(--muted); margin: 0; }

.book-grid + p { margin-top: 1.5rem; }

/* Three doors */
.doors { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.door { border-top: 1px solid var(--gold-rule); padding-top: 1rem; }
.door h3 a { color: var(--ink); }

/* Book detail rows */
.book { display: grid; gap: 1.25rem; padding: 2rem 0; border-top: 1px solid var(--gold-rule); }
.book:first-of-type { border-top: 0; }
.book-cover { width: 200px; max-width: 60%; aspect-ratio: 943 / 1500; object-fit: contain; border: 1px solid var(--gold-rule); }
.book-meta { font-size: 14px; color: var(--muted); margin: 0 0 1rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1rem; }
.btn {
  display: inline-block; padding: 0.6rem 1rem; min-height: 44px; border: 2px solid var(--bronze-dark);
  background: var(--bronze-dark); color: #FFFFFF; font-weight: bold; font-size: 15px; text-decoration: none;
}
.btn:hover { background: #FFFFFF; color: var(--bronze-dark); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Forms */
.form { max-width: 32rem; }
.form label { display: block; font-weight: bold; margin-bottom: 0.25rem; }
.form input[type="email"] {
  width: 100%; font: inherit; color: var(--ink); padding: 0.6rem 0.75rem; min-height: 44px;
  border: 2px solid #6F6F6F; border-radius: 2px; background: #FFFFFF;
}
.form input[type="email"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.form .hint { font-size: 14px; color: var(--muted); margin: 0.25rem 0 1rem; }
.form button {
  font: inherit; font-weight: bold; padding: 0.6rem 1.25rem; min-height: 44px;
  background: #FFFFFF; color: #595959; border: 2px solid #767676; cursor: not-allowed;
}

/* Footer */
.site-footer { border-top: 1px solid var(--gold-rule); padding: 2rem 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.site-footer a { color: var(--bronze-dark); }
.footer-brand { display: flex; align-items: center; }
.footer-brand .seal { width: 60px; height: 60px; }

/* Larger screens */
@media (min-width: 40em) {
  .hero-seal { width: 160px; height: 160px; }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .book { grid-template-columns: 200px minmax(0, 1fr); align-items: start; }
  .book-cover { max-width: 100%; }
  h1 { font-size: 2.5rem; }
}
@media (min-width: 60em) {
  .site-header .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
  .seal { width: 80px; height: 80px; }
  .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) 200px; }
  .hero-seal { width: 200px; height: 200px; }
}

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

@media print {
  .skip-link, .site-nav { display: none; }
}

/* Legal pages */
.legal h2 { font-size: 1.35rem; margin-top: 1.5rem; }
.legal h3 { font-size: 1.15rem; margin: 1.25rem 0 0.5rem; }
.legal .rule { margin: 1.5rem 0; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.4rem; }
.legal blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--gold-rule); }
code { font-family: var(--serif); background: #F4F1EA; padding: 0 0.2rem; }

.site-footer p { margin: 0; }
