/* --------------------------------------------------------------
   ✦ Global Reset & Base Elements
-------------------------------------------------------------- */

.main-title {
  font-family: "Cormorant Garamond", "Noto Serif Thai", "Noto Serif JP",
    "Hiragino Mincho ProN", "Yu Mincho", serif;

  width: 100%;
  display: block;
}

body,
p,
li {
  font-family: "Inter", "Noto Sans Thai", "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

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

code {
  font-family: monospace;
  background: #f0f0f0;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  letter-spacing: 0.4px;
  color: var(--heading-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.75;
  font-size: 1.05rem;
  color: #1e293b;
}

p + p {
  margin-top: 1rem;
}

em {
  font-style: italic;
}

strong {
  font-weight: bold;
}

ul,
ol {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
}

hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 3rem auto;
  width: 60%;
}

.smallcaps {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.text-muted {
  color: #6b7280;
  font-style: italic;
}

.text-uppercase {
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.dropcap::first-letter {
  float: left;
  font-size: 3rem;
  line-height: 1;
  padding-right: 0.25rem;
  font-weight: bold;
  font-family: var(--font-serif);
}

.typography-block {
  padding: 2rem 1.5rem;
  border-left: 4px solid var(--accent-primary);
  background: #fdfdfd;
  margin: 3rem 0;
  font-size: 1.075rem;
  line-height: 1.8;
  font-family: var(--font-serif);
}

/* --------------------------------------------------------------
   ✦ Layout & Structure
-------------------------------------------------------------- */

.section {
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.subsection {
  margin-bottom: 4rem;
}

.prophet-section {
  border-top: 1px solid #e2e5ea;
}

.center {
  text-align: center;
}

.highlight {
  background: #f9fafb;
  color: #1f2937;
}

.dark .highlight {
  background: var(--bg-dark-secondary);
  color: var(--text-dark-primary);
}

/* --------------------------------------------------------------
   ✦ Hero & Typography
-------------------------------------------------------------- */

.hero-section {
  position: relative;
  background: var(--background-hero);
  color: var(--text-dark-primary);
  padding-top: 5rem;
  text-align: center;
}

.hero-overlay {
  z-index: 2;
  position: relative;
  max-width: 950px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 6rem 1rem 1rem;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  z-index: 1;
}

.main-title {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 1px;
}

.subtitle {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  font-style: italic;
}

.section-heading {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  text-align: center;
}

.subheading {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  text-align: center;
}

.prophecy-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem auto;
  font-weight: bold;
  flex-wrap: wrap;
}

.prophecy-nav a {
  color: var(--accent-primary);
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2.8rem;
  }
  .subtitle {
    font-size: 1.2rem;
  }
  .section {
    padding: 2rem 1rem;
  }
  p {
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------
   ✦ Quotes, Notes, Callouts
-------------------------------------------------------------- */

blockquote.quote-block {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: #f1f5f9;
  border-left: 5px solid var(--accent-primary);
  font-style: italic;
  opacity: 0.9;
}

.quote-wrap {
  background: #f1f5f9;
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 6px;
}

.note-warning {
  background: #fff5f5;
  color: #a10000;
  padding: 1rem;
  border-left: 5px solid #ff4d4d;
  margin: 2rem 0;
  font-weight: bold;
  border-radius: 4px;
}

.dark .note-warning {
  background: #2e1f1f;
  color: #ffaaaa;
  border-left-color: #ff4d4d;
}

/* --------------------------------------------------------------
   ✦ Media & Images
-------------------------------------------------------------- */

.image-card {
  margin: 2rem 0;
  text-align: center;
  padding: 1rem;
  background: var(--bg-light-surface);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.image-card-img {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-caption {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.dark .image-card {
  background: var(--bg-dark-surface);
}

/* --------------------------------------------------------------
   ✦ Tables & Data
-------------------------------------------------------------- */

.table-responsive {
  overflow-x: auto;
  margin-top: 1rem;
}

.prophecy-table,
.timeline {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.prophecy-table th,
.prophecy-table td,
.timeline th,
.timeline td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.prophecy-table th,
.timeline th {
  background: #f3f4f6;
  font-weight: 600;
}

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

section.light .btn {
  background: var(--btn-light-bg);
  color: var(--btn-light-text);
  border: 1px solid var(--btn-light-border);
  box-shadow: var(--btn-glow);
}

section.light .btn:hover {
  background: linear-gradient(to right, #7a5fff, #c78cff);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(122, 96, 255, 0.3);
}

/* --------------------------------------------------------------
   ✦ ID-specific Styling
-------------------------------------------------------------- */

#prophet-ryo,
#prophet-morplai,
#prophecy-comparison {
  scroll-margin-top: 100px;
}

/* --------------------------------------------------------------
   ✦ Prophecy Cards (modular component)
-------------------------------------------------------------- */

.subsection {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 12px;
  background: var(--bg-light-surface);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.267);
}

.dark .subsection {
  background: var(--bg-dark-surface);
}

/* --------------------------------------------------------------
   ✦ Prophet Header
-------------------------------------------------------------- */

.prophet-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.nav-links {
  margin: auto;
}

/* =====================
   Footer Styles
===================== */
footer {
  padding: 2rem 1rem 0.5rem 1rem;
  margin: 0 auto;
}

footer .section-inner {
  text-align: center;
  padding: 0;
  margin-top: 0;
}

footer p {
  color: var(--text-dark-muted);
}

.section-footer {
  font-style: italic;
  opacity: 0.85;
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}
