/* Roma's Heritage – Main Styles */

:root {
  --ink: #3d3f52;
  --paper: #f5f0e8;
  --cream: #ede8dc;
  --rust: #b5451b;
  --gold: #c9a84c;
  --warm-grey: #8a8278;
  --light-rule: #d8d0c0;
  --dark-rule: #2e2820;

  --serif: Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'Menlo', 'Courier New', monospace;
  --body: Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── MASTHEAD ── */
.masthead {
  border-bottom: 3px double var(--dark-rule);
  padding: 0 2rem;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
}
.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 0.3rem;
  border-bottom: 1px solid var(--light-rule);
}
.masthead-vol {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-grey);
}
.masthead-date {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--warm-grey);
}
.masthead-title {
  text-align: center;
  padding: 0.6rem 0 0.5rem;
}
.masthead-title h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--rust);
}
.masthead-title .tagline {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-top: 0.2rem;
}
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--light-rule);
  padding: 0.3rem 0;
}
nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0.9rem;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--rust); }
nav a + a { border-left: 1px solid var(--light-rule); }

/* ── HERO ── */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px);
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
}
.hero h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  position: relative;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}
.hero h2 em {
  font-style: normal;
  font-weight: 900;
  color: var(--gold);
}
.hero-sub {
  font-size: 1rem;
  color: rgba(245,240,232,0.7);
  max-width: 540px;
  margin: 0 auto 2rem;
  position: relative;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  position: relative;
}
.hero-stat {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 0.8rem;
  min-width: 90px;
}
.hero-stat-n {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.hero-stat-l {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  margin-top: 0.3rem;
}

/* ── SECTION RULES ── */
.section-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-rule::before, .section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dark-rule);
}
.section-rule span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.section-rule .diamond { color: var(--rust); }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(245,240,232,0.5);
  padding: 2.5rem 2rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  margin-top: 3rem;
}
footer strong { color: var(--gold); }
footer p + p { margin-top: 0.5rem; }

.ornament {
  text-align: center;
  font-size: 1.2rem;
  color: var(--light-rule);
  letter-spacing: 0.5em;
  margin: 0.5rem 0;
}

/* Hidden */
.section-panel { display: none; }
.section-panel.active { display: block; }
