/**
 * Base — reset, type, shells (Lambda Hearts / sabella.ca)
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-canvas);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgb(52 127 234 / 0.12), transparent),
    linear-gradient(rgb(26 41 67 / 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgb(26 41 67 / 0.4) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
}

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

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-link-soft);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text);
}

h1 {
  font-size: var(--text-h1);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: var(--z-skip);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-accent-warm);
  color: var(--color-accent-warm-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

.shell--content {
  width: min(100% - (var(--gutter) * 2), var(--content-max));
  margin-inline: auto;
}

.shell--reading {
  width: min(100% - (var(--gutter) * 2), var(--reading-max));
  margin-inline: auto;
}

main {
  display: block;
  min-height: 50vh;
}

.meta,
.eyebrow {
  font-size: var(--text-meta);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.text-muted {
  color: var(--color-text-muted);
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.55;
}

.hook {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lead);
}

.tagline {
  font-size: var(--text-h3);
  color: var(--color-accent-warm-soft);
}

.status {
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.book-detail,
section {
  max-width: none;
}

main:has(.book-detail),
main:has(.page-simple) {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem;
}
