﻿/*
Theme Name: The True-Life Trilogy Theme
Theme URI: https://example.com/
Author: The True-Life Trilogy
Author URI: https://example.com/
Description: A lightweight, production-ready starter theme with accessible markup and Customizer options.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: true-life-trilogy-theme
*/

:root {
  --rs-bg: #f4efe5;
  --rs-surface: #fffaf4;
  --rs-surface-strong: #f7efe0;
  --rs-text: #20262a;
  --rs-muted: #626d73;
  --rs-accent: #c04e2f;
  --rs-accent-strong: #9c3820;
  --rs-forest: #23362f;
  --rs-sage: #657d6b;
  --rs-gold: #d7b36f;
  --rs-line: #c97b48;
  --rs-border: #dcceb7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--rs-text);
  background:
    radial-gradient(circle at 15% 20%, #fff9ec 0%, transparent 35%),
    radial-gradient(circle at 85% 10%, #eee2cf 0%, transparent 30%),
    var(--rs-bg);
  line-height: 1.65;
}

a {
  color: var(--rs-accent);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

a:hover,
a:focus {
  color: var(--rs-accent-strong);
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  background: linear-gradient(90deg, #fffdf8 0%, #f7e8d1 100%);
  border-bottom: 2px solid var(--rs-line);
}

.site-footer {
  border-top: 2px solid var(--rs-line);
  border-bottom: 0;
  margin-top: auto;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.site-title {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.site-tagline {
  margin: 0.25rem 0 0;
  color: var(--rs-muted);
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  text-decoration: none;
  font-weight: 600;
  color: var(--rs-forest);
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--rs-accent);
  border-color: var(--rs-line);
}

.content {
  padding: 2rem 0 3.5rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
  margin: 0 0 1.5rem;
}

.hero-copy,
.hero-panel,
.feature-card,
.entry-feature,
.prototype-hero-copy,
.prototype-video-shell,
.path-card,
.book-card,
.concept-panel {
  border: 2px solid var(--rs-line);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(24, 31, 28, 0.08);
}

.hero-copy {
  padding: clamp(1.5rem, 3vw, 3rem);
  background: linear-gradient(145deg, #fffdf8 0%, #f7e6d3 100%);
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rs-accent-strong);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 0.98;
  max-width: 11ch;
}

.hero-text {
  max-width: 60ch;
  margin: 1rem 0 0;
  font-size: 1.08rem;
  color: var(--rs-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.button-cta.button-primary {
  background: linear-gradient(135deg, var(--rs-accent) 0%, #e07a4b 100%);
  border: 1px solid var(--rs-accent);
  box-shadow: 0 8px 20px rgba(192, 78, 47, 0.18);
}

.button-cta.button-primary:hover,
.button-cta.button-primary:focus {
  background: linear-gradient(135deg, var(--rs-accent-strong) 0%, var(--rs-accent) 100%);
}

.button-cta.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--rs-forest);
  border: 1px solid rgba(33, 53, 47, 0.25);
}

.button-cta.button-secondary:hover,
.button-cta.button-secondary:focus {
  border-color: var(--rs-line);
  color: var(--rs-accent);
}

.hero-panel {
  padding: 1.2rem;
  background: linear-gradient(140deg, #23362f 0%, #345544 100%);
  color: #fff7ea;
}

.hero-image-wrap {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  min-height: 220px;
}

.hero-image-placeholder {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 500"%3E%3Crect width="800" height="500" fill="%23f0e3d0"/%3E%3Cpath d="M130 390c90-145 165-208 270-208 105 0 180 63 270 208" fill="none" stroke="%23c04e2f" stroke-width="14" stroke-linecap="round"/%3E%3Ccircle cx="400" cy="170" r="44" fill="none" stroke="%2323362f" stroke-width="12"/%3E%3C/svg%3E') center/cover no-repeat;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-panel-card {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.hero-panel-label {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: #e2cfbb;
}

.hero-points {
  margin: 0;
  padding-left: 1.15rem;
  color: #f5efe5;
}

.prototype-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.prototype-hero-copy,
.prototype-video-shell,
.path-card,
.book-card,
.concept-panel {
  border: 2px solid var(--rs-line);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(24, 31, 28, 0.08);
}

.prototype-hero-copy {
  padding: clamp(1.6rem, 3vw, 3rem);
  background: linear-gradient(135deg, #fffdf8 0%, #f4e8d8 100%);
}

.prototype-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.96;
  max-width: 10ch;
}

.prototype-intro {
  margin: 1rem 0 0;
  max-width: 58ch;
  font-size: 1.08rem;
  color: var(--rs-muted);
}

.prototype-video-shell {
  overflow: hidden;
  padding: 0.9rem;
  background: linear-gradient(180deg, #20332d 0%, #16211d 100%);
}

.prototype-video {
  display: block;
  width: 100%;
  border-radius: 18px;
  background: #111;
}

.path-split,
.trilogy-grid,
.concept-grid {
  display: grid;
  gap: 1rem;
}

.path-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.path-card,
.book-card,
.concept-panel {
  background: var(--rs-surface);
}

.path-card {
  padding: 1.4rem;
}

.path-card-books {
  background: linear-gradient(160deg, #fff7eb 0%, #f4dfc1 100%);
  border-color: var(--rs-accent);
}

.path-card-concepts {
  background: linear-gradient(160deg, #eff5f2 0%, #dce8e0 100%);
  border-color: var(--rs-sage);
}

.path-kicker,
.section-kicker,
.book-status {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rs-accent-strong);
}

.text-link {
  display: inline-block;
  margin-top: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--rs-accent);
  border-bottom: 2px solid transparent;
}

.text-link:hover,
.text-link:focus {
  color: var(--rs-accent-strong);
  border-color: var(--rs-line);
}

.section-shell {
  margin-bottom: 1.5rem;
}

.section-heading {
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(192, 78, 47, 0.2);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.section-heading p:last-child {
  max-width: 62ch;
  color: var(--rs-muted);
}

.trilogy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-card {
  padding: 1.4rem;
  background: linear-gradient(180deg, #fffdf9 0%, #f6e5ce 100%);
  border-color: var(--rs-gold);
}

.book-cover-wrap {
  margin: -0.4rem -0.4rem 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(35, 54, 47, 0.18);
  background: #ece0cc;
}

.book-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.book-card h3 {
  margin: 0;
  font-size: 1.8rem;
}

.book-subtitle {
  margin-top: 0.45rem;
  color: var(--rs-muted);
  font-weight: 700;
}

.book-button {
  margin-top: 1rem;
}

.concept-grid {
  grid-template-columns: 1.1fr 0.9fr 1.1fr;
}

.concept-panel {
  padding: 1.4rem;
  min-height: 280px;
}

.concept-panel-image {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  padding: 0;
}

.concept-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(18, 22, 26, 0.08) 0%, rgba(18, 22, 26, 0.72) 100%);
  color: #fffaf3;
}

.concept-overlay h3,
.concept-overlay p,
.concept-overlay .section-kicker {
  color: inherit;
}

.concept-list {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
}

.prototype-content {
  margin-top: 1rem;
}

.entry-card {
  background: var(--rs-surface);
  border: 1px solid var(--rs-border);
  border-radius: 22px;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  margin-bottom: 1rem;
}

.entry-feature {
  background: linear-gradient(180deg, var(--rs-surface) 0%, var(--rs-surface-strong) 100%);
}

.entry-title {
  margin-top: 0;
}

.entry-content {
  max-width: 70ch;
}

.button-cta {
  display: inline-block;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: var(--rs-accent);
  font-weight: 700;
}

.widget-area {
  margin-top: 2rem;
}

.site-footer .container {
  padding: 1rem 0;
  color: var(--rs-muted);
}

@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-navigation ul {
    flex-wrap: wrap;
  }

  .hero-shell,
  .prototype-hero,
  .path-split,
  .trilogy-grid,
  .concept-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: none;
  }

  .prototype-title {
    max-width: none;
  }
}

