/* Structural baseline — skin later in Figma / design pass */

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

:root {
  /* Display / body / UI (UI uses Open Sans — there is no Google font “Open Serif”) */
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Bitter", Georgia, "Times New Roman", serif;
  --font-ui: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --text: #111;
  --bg: #fbe986;
  --muted: #444;
  --border: #ccc;
  --focus: #06c;
  --max: 40rem;
  --space: 1rem;
  --space-lg: 2rem;
}

html {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  font-family: var(--font-ui);
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--bg);
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  font-family: var(--font-ui);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  padding: var(--space) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.site-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.site-logo-mark {
  display: block;
  height: 1.85rem;
  width: auto;
  max-width: min(12rem, 42vw);
  object-fit: contain;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 400;
  text-decoration: none;
  color: inherit;
}

.site-logo:focus-visible,
.site-nav a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
}

.site-nav a {
  color: inherit;
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: var(--space-lg);
}

.site-footer {
  font-family: var(--font-ui);
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-tagline {
  margin: 0 0 0.5rem;
}

.footer-copy {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

/* Section labels and title-like links read as subheads */
.hero-tagline,
.book-subtitle,
.book-card__subtitle,
.latest-blog a,
.post-list > li > a {
  font-family: var(--font-display);
}

a {
  color: var(--focus);
}

a:hover {
  text-decoration: underline;
}

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

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

.hero {
  margin-bottom: var(--space-lg);
}

.hero-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.hero-tagline {
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.featured-book,
.newsletter,
.latest-blog,
.pull-quote {
  margin-bottom: var(--space-lg);
}

.book-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 40rem) {
  .book-card {
    display: grid;
    grid-template-columns: minmax(10rem, 12rem) 1fr;
    gap: var(--space-lg);
    align-items: start;
  }
}

.book-card__cover img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}

.book-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.book-card__subtitle,
.book-card__authors,
.book-card__logline {
  margin: 0 0 0.5rem;
}

.book-card__meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.book-header {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 45rem) {
  .book-header {
    grid-template-columns: minmax(12rem, 14rem) 1fr;
    align-items: start;
  }
}

.book-cover img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}

.book-header__text h1 {
  margin: 0 0 0.35rem;
}

.book-subtitle,
.book-authors,
.book-release,
.book-status,
.book-logline {
  margin: 0 0 0.5rem;
}

.book-stories ul {
  margin: 0;
  padding-left: 1.25rem;
}

.book-body :first-child {
  margin-top: 0;
}

.pull-quote {
  margin-left: 0;
  margin-right: 0;
  padding: var(--space) var(--space-lg);
  border-left: 4px solid var(--border);
  font-size: 1.1rem;
}

.pull-quote p {
  margin: 0;
}

.newsletter-form {
  font-family: var(--font-ui);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 24rem;
}

.newsletter-form label {
  font-weight: 600;
}

.newsletter-form input,
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  width: 100%;
  max-width: 100%;
}

.newsletter-form button,
.contact-form button,
.button {
  font-family: var(--font-ui);
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  padding: 0.55rem 1rem;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
}

.button:hover {
  text-decoration: none;
  opacity: 0.92;
}

.newsletter-form button:focus-visible,
.contact-form button:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.contact-form {
  font-family: var(--font-ui);
  display: flex;
  flex-direction: column;
  gap: var(--space);
  max-width: var(--max);
}

.contact-form label {
  font-weight: 600;
}

.page-figure {
  margin: 0 0 var(--space-lg);
}

.page-figure img {
  display: block;
  width: 100%;
  max-width: 28rem;
  height: auto;
  border: 1px solid var(--border);
}

.page-header h1 {
  margin: 0 0 0.35rem;
}

.page-date {
  margin: 0 0 var(--space);
  color: var(--muted);
  font-size: 0.95rem;
}

.prose > * + * {
  margin-top: 0.75em;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  margin-bottom: var(--space-lg);
}

.post-excerpt {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.book-cta--muted {
  color: var(--muted);
}
