/* ===================================
   Letters of Desire — Global Styles
   Refined for consistency & tone
   =================================== */

/* --- Root Palette & Base --- */
:root {
  --bg: #070507;
  /* near black */
  --surface: #0f0d10;
  /* dark surface */
  --text: #efeae6;
  /* warm cream */
  --muted: #bfaea7;
  /* soft beige */
  --accent: #9b1d2c;
  /* sensual crimson */
  --accent-2: #c9a04a;
  /* warm gold */
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, var(--bg), #0b0a0b);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

/* --- Typography --- */
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  margin-top: 0;
  color: var(--text);
}

p {
  line-height: 1.6;
}

.small {
  font-size: 0.95rem;
}

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

/* ===================================
   Header & Navigation
   =================================== */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  position: sticky;
  top: 0;
  background: rgba(7, 5, 7, 0.6);
  backdrop-filter: blur(4px);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-family: "Playfair Display", serif;
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand img {
  height: 80px;
  width: auto;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
}

/* ===================================
   Hero / Landing Sections
   =================================== */
.hero,
.home-hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
  background-image: radial-gradient(circle at 10% 20%, rgba(155, 29, 44, 0.06), transparent 15%),
    radial-gradient(circle at 90% 80%, rgba(201, 160, 74, 0.03), transparent 20%);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #f3e6e6;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #cbb7b7;
  margin-bottom: 2rem;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

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

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(155, 29, 44, 0.2);
}

/* ===================================
   Series Grid & Cards
   =================================== */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.series-tile {
  background: #1b1b1b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 350px;
}

.series-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.series-tile img {
  width: 100%;
  display: block;
}

.tile-meta {
  padding: 1.2rem 1.4rem;
}

.tile-meta h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: #f6f0f0;
}

.tile-meta p.small {
  color: #cbb7b7;
  margin-bottom: 0.6rem;
}

.tile-meta .meta {
  font-size: 0.85rem;
  color: #d0c4c4;
  margin-bottom: 1rem;
}

.tile-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.tile-actions .btn {
  flex: 1;
}

/* ===================================
   Detail Page
   =================================== */
.detail-hero {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.detail-thumb {
  width: 40%;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .detail-thumb {
    width: 100%;
  }
}

.detail-meta .meta {
  margin-top: 0.6rem;
  color: var(--muted);
}

.detail-excerpt,
.detail-info {
  margin-top: 2rem;
}

/* ===================================
   Version Selector (T / M / E)
   =================================== */
.version-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.version-selector label {
  position: relative;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  transition: color 0.3s ease;
}

.version-selector label:hover {
  color: var(--accent-2);
}

.version-selector input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.version-selector input[type="radio"]:checked {
  border-color: var(--accent);
  background: radial-gradient(circle at center, var(--accent) 45%, transparent 50%);
  box-shadow: 0 0 6px rgba(155, 29, 44, 0.6);
}

.version-selector input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.3);
}

/* Optional tag style for version labels */
.version-selector label span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.version-selector input[type="radio"]:checked+span {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(155, 29, 44, 0.4);
}

.version-toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  opacity: 1;
  transition: opacity 1.5s ease;
  z-index: 2000;
}

.version-toast.fade {
  opacity: 0;
}


/* ===================================
   Forms
   =================================== */
form input,
form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #2a2a2a;
  color: var(--text);
  outline: none;
  margin-bottom: 1rem;
}

form input:focus,
form textarea:focus {
  border-color: var(--accent);
}

form input[type="checkbox"] {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--muted);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: all 0.25s ease;
  vertical-align: middle;
}

form input[type="checkbox"]:checked {
  background-color: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 4px rgba(155, 29, 44, 0.5);
}

form input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 6px;
  border: solid var(--text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Mailing List */
.mailing-list {
  text-align: center;
  margin-top: 5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.mailing-list form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.mailing-list input[type="email"] {
  width: 70%;
  max-width: 300px;
}

.mailing-list .form-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #cbb7b7;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.socials a {
  margin-left: 0.6rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.socials a:hover {
  color: var(--text);
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 800px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .container {
    padding: 1rem;
  }

  .form-inline {
    flex-direction: column;
  }
}

/* ===================================
   Utility
   =================================== */
.link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--accent);
}

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