/* Client Powers LLC: publisher site. Ink navy, warm paper, brass accent. */
:root {
  --ink: #14213D;          /* text + header, 15.6:1 on paper */
  --ink-soft: #4A5468;     /* secondary text, 7.4:1 on paper */
  --paper: #FAF8F3;
  --card: #FFFFFF;
  --sand: #F1ECE1;
  --line: #E3DCCD;
  --brass: #A87C3D;        /* decorative */
  --brass-deep: #7A5523;   /* links on paper, 6.6:1 */
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 12px 30px rgba(20, 33, 61, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.7 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-deep); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--sand { background: var(--sand); }
.eyebrow { font: 700 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: .9rem; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 40rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.hp { position: absolute; left: -9999px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px;
  border: 2px solid var(--ink); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brass-deep); border-color: var(--brass-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Header */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; min-height: 76px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font: 400 1.35rem/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.brand-name small { display: block; font: 600 .62rem/1.6 var(--sans); letter-spacing: .3em; color: #D8C29C; margin-top: 4px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.site-nav a { color: #E8E3D8; text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #D8C29C; }

/* Hero */
.hero { padding-block: clamp(56px, 9vw, 112px); background: linear-gradient(180deg, var(--paper), var(--sand)); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.shelf { display: flex; justify-content: center; align-items: flex-end; gap: 0; perspective: 900px; }
.shelf img { width: 31%; border-radius: 4px; box-shadow: var(--shadow); }
.shelf img:nth-child(1) { transform: translateX(14%) rotate(-5deg); }
.shelf img:nth-child(2) { position: relative; z-index: 2; width: 36%; }
.shelf img:nth-child(3) { transform: translateX(-14%) rotate(5deg); }

/* Cards & catalog */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.catalog { display: grid; gap: 28px; }
.title { display: grid; gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .title { grid-template-columns: 150px 1fr; } }
.title img, .title .nocover { width: 150px; aspect-ratio: 5 / 8; border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.nocover { display: grid; place-items: center; text-align: center; padding: 12px; background: var(--ink); color: #E8E3D8; font: 400 1rem/1.3 var(--serif); }
.title h3 { margin-bottom: .2em; }
.title .sub { color: var(--ink-soft); font-style: italic; margin-bottom: .8em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 1em; font-size: .95rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }

/* Prose & legal */
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
address { font-style: normal; }

/* Newsletter band and form */
.band { background: var(--ink); color: #E8E3D8; border-radius: calc(var(--radius) * 1.4); padding: clamp(28px, 5vw, 52px); display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .band { grid-template-columns: 1fr 1fr; } }
.band h2 { color: #fff; margin-bottom: .3em; }
.band p { margin: 0; color: #CFC8BA; }
.band a { color: #fff; }
.signup { display: grid; gap: 14px; }
.signup .row { display: grid; gap: 12px; }
@media (min-width: 560px) { .signup .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.field input { min-height: 48px; padding: .6rem .9rem; border-radius: 10px; border: 1px solid var(--line); font: inherit; font-weight: 400; color: var(--ink); background: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brass); }
.band .btn-primary { background: #D8C29C; border-color: #D8C29C; color: var(--ink); justify-self: start; }
.band .btn-primary:hover { background: #fff; border-color: #fff; }
.band .muted, .band .field span { color: #CFC8BA; }
.form-note { margin: 0; color: #CFC8BA; }

/* Footer */
.site-footer { background: #0E1830; color: #C9C3B6; padding-block: 56px 32px; margin-top: clamp(48px, 8vw, 96px); font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h2 { font: 700 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #D8C29C; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legal { border-top: 1px solid #22304F; margin-top: 36px; padding-top: 20px; font-size: .85rem; }
