/* =========================================================
   obsessed.chat — dark book-aesthetic landing page styles
   ========================================================= */

/* ---------------------------------------------------------
   1. CSS Custom Properties
   --------------------------------------------------------- */
:root {
  --bg: #09090b;
  --bg-card: #111113;
  --bg-section: #0d0d10;
  --text: #e8e0d5;
  --text-muted: #9a918a;
  --accent: #c9a96e;
  --accent-muted: #8a6f48;
  --border: rgba(201, 169, 110, 0.15);
  --shadow: rgba(0, 0, 0, 0.8);
  --radius: 2px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, sans-serif;
}

/* ---------------------------------------------------------
   2. Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   3. Site Header
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-cta {
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--accent-muted);
  padding: 0.4rem 1rem;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

/* ---------------------------------------------------------
   4. Hero / Reader Section
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 95vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--sans);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 40ch;
  line-height: 1.7;
}

.hero-privacy {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid var(--accent-muted);
  padding-left: 1rem;
}

.hero-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-image .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1208 0%, #0d0d10 40%, #1a0d0d 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.hero-section {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* ---------------------------------------------------------
   5. CTAs / Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #d4b57a;
  text-decoration: none;
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

/* ---------------------------------------------------------
   6. Promises / Columns
   --------------------------------------------------------- */
.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.promise {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.promise-icon {
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.promise h3 {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text);
}

.promise p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------------------------------------------------------
   7. Authors Section
   --------------------------------------------------------- */
.authors-section {
  background: var(--bg-section);
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.authors-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 52ch;
}

.value-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.value-list li {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.value-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.value-list strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--serif);
}

.value-list p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------------------------------------------------------
   8. Character Cards
   --------------------------------------------------------- */
.characters-section {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.character-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.character-portrait {
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
}

.character-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}

.character-card:hover .character-portrait img {
  transform: scale(1.03);
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.portrait-placeholder.adrian {
  background: linear-gradient(170deg, #0e0c08 0%, #1a1208 30%, #251508 60%, #0d0d10 100%);
}

.portrait-placeholder.callum {
  background: linear-gradient(170deg, #080c0e 0%, #081218 30%, #0d1520 60%, #090d10 100%);
}

.portrait-placeholder.dylan {
  background: linear-gradient(170deg, #0a080e 0%, #120810 30%, #1a0d18 60%, #0d090d 100%);
}

.character-info {
  padding: 1.5rem;
}

.character-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.character-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.character-rating {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-top: 0.75rem;
}

/* ---------------------------------------------------------
   9. How It Connects
   --------------------------------------------------------- */
.connect-section {
  background: var(--bg-section);
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
}

.connect-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.flow-diagram {
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 500px;
  position: relative;
}

.flow-step-num {
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.flow-step-text {
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.flow-step-text strong {
  color: var(--text);
  display: block;
  font-family: var(--serif);
  font-weight: 400;
}

.flow-arrow {
  color: var(--accent);
  font-size: 1rem;
  padding: 0.5rem 0;
  opacity: 0.6;
}

.connect-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 60ch;
  margin: 3rem auto 0;
}

/* ---------------------------------------------------------
   10. Footer
   --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer-links a:hover {
  color: var(--accent);
}

.footer-notice {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------
   11. Responsive Breakpoints
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 1.5rem;
    gap: 2.5rem;
  }

  .hero-image {
    display: none;
  }

  .authors-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .promises {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .characters-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .flow-step {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 375px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-h2 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* ---------------------------------------------------------
   12. Feature Sections (reader landing — reading/privacy/quality)
   --------------------------------------------------------- */
.feature-section {
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}

.feature-section--alt {
  background: var(--bg-section);
}

.feature-inner {
  max-width: 700px;
  margin: 0 auto;
}

.feature-inner .section-h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.5rem;
}

.kill-line {
  margin-top: 2rem;
  font-size: 0.825rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-muted);
  border-left: 2px solid var(--accent-muted);
  padding-left: 1rem;
  font-style: italic;
}

.characters-heading {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.5rem;
}

.characters-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   13. Author Landing — Hero
   --------------------------------------------------------- */
.author-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8rem 2rem 7rem;
}

.author-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.author-h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.author-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 52ch;
}

/* ---------------------------------------------------------
   14. Author Landing — Craft Sections
   --------------------------------------------------------- */
.author-section {
  padding: 6rem 2rem;
  border-bottom: 1px solid var(--border);
}

.author-section--alt {
  background: var(--bg-section);
}

.author-section-inner {
  max-width: 700px;
  margin: 0 auto;
}

.author-section-inner .section-h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------
   15. Author Landing — CTA Block
   --------------------------------------------------------- */
.author-cta-block {
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.author-back-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.author-back-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---------------------------------------------------------
   16. Responsive additions for new sections
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .feature-section,
  .author-hero,
  .author-section,
  .author-cta-block {
    padding: 4rem 1.5rem;
  }

  .author-h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 375px) {
  .author-h1 {
    font-size: 1.875rem;
  }

  .kill-line {
    font-size: 0.75rem;
  }
}


/* ---------------------------------------------------------
   Character card links (each card opens its Telegram DM bot)
   --------------------------------------------------------- */
.character-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.character-link:hover {
  text-decoration: none;
}

.character-link:hover .character-name {
  color: var(--accent);
}

.authors-actions {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

/* ---------------------------------------------------------
   Legal / terms page
   --------------------------------------------------------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.legal-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin: 0.5rem 0 0.75rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal section {
  margin-bottom: 2.25rem;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.legal p,
.legal li {
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}


/* Secondary header link (next to the CTA) */
.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-right: 1rem;
}

.nav-link:hover {
  color: var(--accent);
  text-decoration: none;
}
