:root {
  --ink: #1b1d22;
  --muted: #5b606a;
  --line: #d9dbe0;
  --paper: #ffffff;
  --panel: #f0f1f3;
  --navy: #13213a;
  --gold: #b8954f;
  --focus: #2457d6;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
.vh, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 2rem; min-height: 5rem; }
.wordmark {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--navy); white-space: nowrap;
}
.site-header nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: .95rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; }
.cta {
  background: var(--navy); color: #fff; text-decoration: none;
  padding: .7rem 1.1rem; font-size: .95rem; white-space: nowrap;
}
.cta:hover { color: #fff; background: #1d3157; }

/* Content */
.content { max-width: 46rem; padding-top: 3rem; padding-bottom: 4rem; }
h1, h2, h3 { line-height: 1.15; font-weight: 500; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 2.5rem 0 .8rem; }
h3 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; }
p, ul, ol { margin: 0 0 1.1rem; }
li { margin-bottom: .35rem; }
.small, .fine, .meta { font-size: .875rem; color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--muted); }
.hero { padding: 1rem 0 1rem; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.4rem); }

/* Cards and buttons */
.card { border: 1px solid var(--line); padding: 1.5rem 1.6rem; margin: 1.5rem 0; }
.card h3 { margin-top: 0; }
.buttons { margin-top: .5rem; }
.button, button {
  display: inline-block; font: inherit; font-weight: 500; font-size: .95rem;
  background: var(--navy); color: #fff; border: 0; border-radius: 0;
  padding: .75rem 1.2rem; text-decoration: none; cursor: pointer;
}
.button:hover, button:hover { background: #1d3157; color: #fff; }
.subscribe { background: var(--panel); border: 0; padding: 2rem; margin-top: 3rem; }
.subscribe h2 { margin-top: 0; }

/* Forms */
form.signup { display: flex; flex-wrap: wrap; gap: .6rem; }
form.signup input[type=email] { flex: 1 1 16rem; }
input, textarea, select {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #b9bcc4; border-radius: 0; padding: .7rem .85rem; width: 100%;
}
form.signup input { width: auto; }
form.contact { display: grid; gap: .35rem; max-width: 34rem; }
form.contact label { font-weight: 500; font-size: .95rem; margin-top: .6rem; }
form.contact button { justify-self: start; margin-top: 1rem; }
.freq { flex-basis: 100%; border: 0; margin: .2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .95rem; }
.freq label { display: flex; align-items: center; gap: .45rem; cursor: pointer; }
.freq input { width: auto; margin: 0; accent-color: var(--navy); }
.status { flex-basis: 100%; margin: .4rem 0 0; font-size: .95rem; min-height: 1.4em; }
.status.ok { color: #1e6b3a; }
.status.err { color: #a12a2a; }

/* Books */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; margin: 1.5rem 0 1rem; }
.book img { display: block; width: 100%; max-width: 13rem; aspect-ratio: 5 / 8; object-fit: cover; box-shadow: 0 10px 24px -14px rgba(19,33,58,.6); }
.book h3 { margin: 1rem 0 .3rem; }
.book .sub { font-size: .9rem; color: var(--muted); }
.book p { font-size: .95rem; }
.book .links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }

/* Posts */
.post-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.post-item { display: grid; grid-template-columns: 9rem 1fr; gap: 1.2rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.post-item h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.post-item h3 a { text-decoration: none; }
.post-item h3 a:hover { text-decoration: underline; }
.post-item p { margin: 0 0 .35rem; font-size: .95rem; }
.thumb img { display: block; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); }
.cats { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .95rem; }
.post-head { margin-bottom: 1.5rem; }
.feature { margin: 0 0 2rem; }
.feature img { display: block; width: 100%; }
.prose h2 { font-size: 1.75rem; }
.prose a { word-break: break-word; }
.pager { display: flex; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2.5rem; font-size: .95rem; }
.pager a:last-child { text-align: right; }

/* Footer */
.site-footer { background: var(--panel); padding: 2.5rem 0 3rem; margin-top: 2rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid #c9ccd3; }
.footer-name { font-weight: 500; font-size: 1.15rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .95rem; }
.site-footer .fine { margin: 1.2rem 0 0; }

@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; gap: .4rem 1.2rem; padding: .9rem 0; }
  .site-header nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: .2rem; }
  .cta { margin-left: auto; padding: .55rem .9rem; font-size: .9rem; }
  .books { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 1rem; }
  .wordmark { font-size: 1.15rem; }
  .cta { display: none; }
  .books { grid-template-columns: 1fr; }
  .book img { max-width: 11rem; }
  .post-item { grid-template-columns: 1fr; }
  .thumb { display: none; }
  .content { padding-top: 2rem; }
  .pager { flex-direction: column; }
  .pager a:last-child { text-align: left; }
}
