:root {
  color-scheme: dark;
  --bg: #09121a;
  --surface: #121f2d;
  --surface-alt: #172a3f;
  --text: #eef1f5;
  --muted: #9bb0c2;
  --accent: #c8a26c;
  --accent-soft: rgba(200, 162, 108, 0.16);
  --border: rgba(238, 241, 245, 0.08);
  --radius: 24px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, rgba(200, 162, 108, 0.14), transparent 30%),
              radial-gradient(circle at 10% 20%, rgba(135, 125, 95, 0.08), transparent 14%),
              linear-gradient(180deg, #071019 0%, #090f18 32%, #0c1622 100%);
  color: var(--text);
  background-attachment: fixed;
}

body {
  line-height: 1.65;
  font-feature-settings: "liga" 1, "clig" 1;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1150px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 12, 18, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  height: 2.6rem;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--text);
}

.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 209, 130, 0.06), transparent 24%),
              radial-gradient(circle at 20% 20%, rgba(200, 162, 108, 0.1), transparent 16%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
  color: var(--text);
  max-width: 56ch;
}

.hero-book-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 1.5rem;
  box-shadow: 0 34px 80px rgba(10, 22, 36, 0.25);
}

.book-cover-hero {
  min-height: 420px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.book-cover-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, rgba(200, 162, 108, 0.16), transparent 32%);
  opacity: 0.7;
}

.book-cover-text {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 220px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  color: var(--text);
  font-weight: 600;
}

.book-card-copy {
  margin-top: 1.5rem;
}

.book-card-copy h2 {
  margin: 0.75rem 0 1rem;
  font-size: 1.75rem;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
}

p {
  max-width: 65ch;
}

table, th, td {
  border: 1px solid;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  background: linear-gradient(135deg, #d4ad58 0%, #b47d33 100%);
  color: #08110d;
  box-shadow: 0 18px 40px rgba(212, 173, 88, 0.22);
}

.secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
}

.section {
  padding: 4rem 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.newsletter-card {
  display: grid;
  gap: 1.5rem;
  background: linear-gradient(180deg, rgba(25, 33, 50, 0.98), rgba(10, 14, 24, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
}

.newsletter-form {
  display: grid;
  gap: 0.85rem;
  width: min(100%, 420px);
}

.newsletter-form label {
  font-size: 0.9rem;
  color: var(--muted);
}

.newsletter-form input {
  width: 100%;
  padding: 1rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(238, 241, 245, 0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.page-hero {
  padding-top: 4rem;
}

.content-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.content-block.alternate {
  background: var(--surface-alt);
}

.book-preview {
  padding-top: 0;
}

.book-card {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 2fr;
  align-items: center;
}

.book-cover {
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.12);
  text-align: center;
  color: var(--muted);
}

.book-cover img,
.book-cover-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-cover span {
  padding: 1rem;
}

.article-category {
  margin-bottom: 1rem;
}

.article-search {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.article-search label {
  font-size: 0.9rem;
  color: var(--muted);
}

.article-search input {
  width: 100%;
  padding: 1rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(238, 241, 245, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.article-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-empty-message {
  color: var(--muted);
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-list {
  display: grid;
  gap: 1.25rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(38, 93, 167, 0.08);
}

.pagination button:disabled {
  opacity: 0.55;
  cursor: default;
}

.pagination button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.article-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(10, 22, 36, 0.16);
}

.article-card h3,
.article-full h2 {
  margin-bottom: 0.5rem;
}

.article-date {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.read-more:hover {
  opacity: 0.8;
}

.article-body {
  margin-top: 1rem;
  line-height: 1.95;
}

.article-full {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.article-full h2 {
  font-size: 2rem;
}


.site-footer {
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 1rem;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-book-card {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .footer-inner,
  .book-card {
    flex-direction: column;
    align-items: stretch;
  }

  .book-card {
    grid-template-columns: 1fr;
  }
}
