/* ============================================================
   Town of Sins — promotional site stylesheet
   Theme: "Sin City" — warm parchment, wine crimson, aged gold
   ============================================================ */

:root {
  --bg: #faf5ee;
  --bg-alt: #f2e8da;
  --surface: #ffffff;
  --ink: #36222c;
  --muted: #715a64;
  --wine: #8f2f4e;
  --wine-dark: #6e1f3a;
  --wine-soft: #f6e7ec;
  --gold: #c08a3e;
  --gold-soft: #f5ead6;
  --line: #e7dbc9;
  --shadow: 0 10px 30px rgba(80, 45, 60, 0.08);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}

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

a { color: var(--wine); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  color: var(--ink);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.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;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand:hover { text-decoration: none; }

.brand-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-name span { color: var(--wine); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

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

.nav-link.active { color: var(--wine); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 6px 18px rgba(143, 47, 78, 0.35);
}

.btn-primary:hover { background: var(--wine-dark); }

.btn-ghost {
  background: transparent;
  color: var(--wine);
  border-color: var(--wine);
}

.btn-ghost:hover { background: var(--wine-soft); }

.btn-sm { padding: 8px 18px; font-size: 0.88rem; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--gold-soft), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, var(--wine-soft), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding: 70px 0 64px;
}

.hero-copy { min-width: 0; }

.hero-eyebrow {
  display: inline-block;
  background: var(--gold-soft);
  color: #8a6426;
  border: 1px solid #e5cf9f;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 16px;
}

.hero-title em {
  font-style: italic;
  color: var(--wine);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-media { min-width: 0; }

.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid var(--surface);
}

.hero-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 48ch;
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; }

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

.section-divider { border-top: 1px solid var(--line); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-title { font-size: 2.1rem; margin-bottom: 12px; }

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

/* ---------- Facts table ---------- */

.facts-wrap {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.facts-table { width: 100%; border-collapse: collapse; }

.facts-table th,
.facts-table td {
  padding: 14px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.facts-table tr:last-child th,
.facts-table tr:last-child td { border-bottom: none; }

.facts-table th {
  width: 34%;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a6426;
  background: var(--gold-soft);
  font-weight: 800;
}

.facts-table td { color: var(--ink); }

/* ---------- Feature cards ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  position: relative;
}

.feature-card:nth-child(odd) { transform: rotate(-0.7deg); }
.feature-card:nth-child(even) { transform: rotate(0.7deg); }
.feature-card:nth-child(3n) { transform: rotate(-0.4deg); }

.feature-icon {
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 14px;
}

.feature-title { font-size: 1.25rem; margin-bottom: 8px; }

.feature-text { color: var(--muted); font-size: 0.98rem; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
  cursor: zoom-in;
}

.gallery-item:hover { text-decoration: none; }

.gallery-item img { transition: transform 0.3s ease; }

.gallery-item:hover img { transform: scale(1.04); }

.gallery-cap {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Quotes ---------- */

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.quote-text {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.quote-author {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--wine);
  font-style: normal;
}

/* ---------- Play banner ---------- */

.play-banner {
  background: linear-gradient(120deg, var(--wine-dark), var(--wine) 55%, #b04a6b);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(110, 31, 58, 0.35);
}

.play-banner-title {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px;
}

.play-banner-text {
  color: #f4dbe3;
  max-width: 60ch;
  margin: 0 auto 24px;
}

.play-banner .btn-primary {
  background: var(--gold);
  color: #4b3208;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.play-banner .btn-primary:hover { background: #d29a4c; }

/* ---------- Article / sub-pages ---------- */

.article { max-width: 780px; }

.article-center {
  max-width: 780px;
  margin: 0 auto 40px;
}

.article h2 {
  font-size: 1.8rem;
  margin: 40px 0 14px;
}

.article h3 {
  font-size: 1.3rem;
  margin: 28px 0 10px;
}

.article p { margin-bottom: 18px; color: #4c3a44; }

.article ul, .article ol { margin: 0 0 18px 22px; color: #4c3a44; }

.article li { margin-bottom: 8px; }

.content-img {
  margin: 30px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-img img { width: 100%; }

.content-caption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-intro {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 760px;
}

.page-title {
  font-size: 2.2rem;
  margin: 0 0 14px;
}

/* ---------- Character cards ---------- */

.chars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0;
}

.char-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px 22px;
  text-align: center;
}

.char-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  border: 3px solid var(--surface);
  box-shadow: 0 4px 12px rgba(80, 45, 60, 0.25);
}

.char-1 { background: linear-gradient(135deg, #a8a8a8, #6f6f6f); }
.char-2 { background: linear-gradient(135deg, #7fbf6a, #4c8c3a); }
.char-3 { background: linear-gradient(135deg, #6aa8e0, #3a6fb5); }
.char-4 { background: linear-gradient(135deg, #e06a6a, #b53a3a); }
.char-5 { background: linear-gradient(135deg, #e0b45a, #b5842e); }
.char-6 { background: linear-gradient(135deg, #b07ad4, #7a3fb0); }

.char-name { font-size: 1.2rem; margin-bottom: 2px; }

.char-role { font-size: 0.85rem; color: var(--wine); font-weight: 800; margin-bottom: 8px; }

.char-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--gold-soft);
  color: #8a6426;
  border: 1px solid #e5cf9f;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.char-text { color: var(--muted); font-size: 0.95rem; text-align: left; }

/* ---------- Guide ---------- */

.tips-list {
  list-style: none;
  margin: 0 0 26px;
  counter-reset: tip;
}

.tip-item {
  counter-increment: tip;
  position: relative;
  padding: 18px 20px 18px 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.tip-item::before {
  content: counter(tip, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--wine);
}

.tip-item strong { display: block; margin-bottom: 4px; }

.tip-item p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 800px; margin: 0 auto 40px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 800;
  color: var(--ink);
  position: relative;
  padding-right: 48px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--wine);
}

.faq-item[open] summary::after { content: "–"; }

.faq-a { padding: 0 22px 18px; color: #4c3a44; }

.faq-sysreq { margin-top: 0; }

/* ---------- Ghost wrap (sub-page ending link) ---------- */

.ghost-wrap {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #cbb9c1;
  padding: 36px 0;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-copy { font-size: 0.88rem; }

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 6px;
}

.lang-switch .lang-link,
.lang-switch a.lang-link,
.lang-switch a.active,
.lang-switch .lang-link.active {
  font-size: 0.82rem;
  font-weight: 700;
  color: #d9c6cf;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 12px;
}

.lang-switch a.lang-link:hover { color: #fff; border-color: var(--gold); text-decoration: none; }

.lang-switch a.active,
.lang-switch .lang-link.active {
  color: #4b3208;
  background: var(--gold);
  border-color: var(--gold);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 14, 22, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}

.lightbox.open { display: flex; }

#lightboxImage {
  max-width: min(1080px, 92vw);
  max-height: 84vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: var(--wine); }

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 4%;
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: flex; }

  .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--line); }

  .nav-cta { padding: 14px 4px; }

  .hero-inner { grid-template-columns: 1fr; padding: 48px 0; }

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

  .features-grid,
  .gallery-grid,
  .quotes-grid,
  .chars-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.15rem; }

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

  .features-grid,
  .gallery-grid,
  .quotes-grid,
  .chars-grid { grid-template-columns: 1fr; }

  .feature-card:nth-child(odd),
  .feature-card:nth-child(even),
  .feature-card:nth-child(3n) { transform: none; }

  .facts-table th,
  .facts-table td { padding: 10px 14px; }

  .play-banner { padding: 34px 22px; }

  .play-banner-title { font-size: 1.5rem; }

  .section-title { font-size: 1.7rem; }
}
