/*
Theme Name: Read Infinite
Theme URI: https://example.com/read-infinite
Author: Jonathan Martinez / ChatGPT
Description: A simple, fast-loading literary WordPress theme designed for book guides, reading challenges, essays, and affiliate-style recommendation pages.
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: read-infinite
Tags: blog, one-column, custom-logo, custom-menu, featured-images, block-styles, wide-blocks
*/

:root {
  --bg: #fbf7ef;
  --paper: #fffdf8;
  --ink: #171615;
  --muted: #625d55;
  --line: #ded6c8;
  --accent: #173f35;
  --accent-soft: #e5ede8;
  --max: 740px;
  --wide: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .12em; }
img { max-width: 100%; height: auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251,247,239,.94);
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.site-title a { color: var(--ink); text-decoration: none; }
.site-description {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.4;
}
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
}
.main-navigation a { color: var(--ink); text-decoration: none; }
.main-navigation a:hover { color: var(--accent); text-decoration: underline; }

.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 70px 24px 52px;
}
.hero-card {
  max-width: 860px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(30px, 6vw, 58px);
  box-shadow: 0 18px 50px rgba(23,22,21,.06);
}
.hero-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 700;
}
.hero h1, .entry-title {
  margin: 0 0 18px;
  font-size: clamp(38px, 8vw, 72px);
  line-height: .95;
  letter-spacing: -.055em;
}
.hero p {
  max-width: 660px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.55;
}
.button, .wp-block-button__link {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 19px;
  border-radius: 999px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.button.secondary { background: transparent; color: var(--accent) !important; border: 1px solid var(--accent); }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }

.site-main, .content-area {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 24px 70px;
}
.home .site-main { padding-top: 12px; }
.post-card {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.post-card:first-child { border-top: 1px solid var(--line); }
.post-card h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.entry-meta, .post-card .meta {
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  margin-bottom: 12px;
}
.entry-content h2, .entry-content h3, .entry-content h4 {
  line-height: 1.16;
  letter-spacing: -.025em;
  margin-top: 2em;
  margin-bottom: .55em;
}
.entry-content h2 { font-size: 34px; }
.entry-content h3 { font-size: 27px; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content blockquote {
  margin: 2em 0;
  padding: 0 0 0 1.2em;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  font-size: 1.08em;
}
.entry-content code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}
.wp-block-pullquote, .callout {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 24px;
}
.affiliate-box {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  margin: 32px 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
.affiliate-box strong { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px 24px;
}

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

@media (max-width: 720px) {
  body { font-size: 18px; }
  .header-inner { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: 34px; }
  .hero-card { padding: 26px; }
}
