:root {
  --ink:        #1a1208;
  --parchment:  #f0e8d0;
  --aged:       #e0d4b0;
  --blueprint:  #1a3a5c;
  --blueprint-light: #2a5a8c;
  --blueprint-pale:  #d0dce8;
  --rust:       #8b3a1a;
  --gold:       #b8860b;
  --faded:      #6b5e40;
  --grid-line:  rgba(26,58,92,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--parchment);
  color: var(--ink);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── Blueprint grid overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ─── Language toggle ─── */
.lang-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  padding: 10px 28px;
  background: rgba(240,232,208,0.92);
  border-bottom: 1px solid var(--gold);
  backdrop-filter: blur(4px);
}
.lang-btn {
  background: none;
  border: 1.5px solid var(--blueprint);
  color: var(--blueprint);
  font-family: 'Crimson Text', serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 6px;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--blueprint);
  color: var(--parchment);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(184,134,11,0.07) 0%, transparent 70%);
}

/* Compass rose SVG decoration */
.compass {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  opacity: 0.08;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'Crimson Text', serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blueprint);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 1.0;
  color: var(--blueprint);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
h1 em {
  font-style: italic;
  color: var(--rust);
}

.hero-sub {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--faded);
  margin-top: 16px;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-dates {
  font-family: 'Crimson Text', serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 52px;
}

.scroll-hint {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faded);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-hint svg { width: 20px; height: 20px; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ─── Intro block ─── */
.intro {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 32px;
  text-align: center;
}
.intro p {
  font-size: 1.22rem;
  color: var(--faded);
  font-style: italic;
}
.intro strong { color: var(--blueprint); font-style: normal; }

/* Decorative rule */
.rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px auto;
  max-width: 400px;
  justify-content: center;
}
.rule::before, .rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.rule-diamond {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
}
.rule-spaced {
  margin-top: 40px;
}

/* ─── Section header ─── */
.section {
  position: relative;
  z-index: 1;
  padding: 64px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--blueprint);
  line-height: 1.15;
}
.section-desc {
  font-style: italic;
  color: var(--faded);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ─── Cards grid ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(224,212,176,0.55);
  border: 1px solid rgba(184,134,11,0.28);
  border-radius: 2px;
  padding: 32px 28px 28px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blueprint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26,58,92,0.12);
  background: rgba(240,232,208,0.9);
}
.card:focus-visible {
  outline: 2px solid var(--blueprint);
  outline-offset: 3px;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}
.card-year {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 6px;
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blueprint);
  margin-bottom: 12px;
  line-height: 1.25;
}
.card-summary {
  font-size: 0.96rem;
  color: var(--faded);
  line-height: 1.6;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blueprint);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.card:hover .card-cta { opacity: 1; }

/* ─── Stats strip ─── */
.stats-strip {
  position: relative;
  z-index: 1;
  background: var(--blueprint);
  padding: 52px 24px;
  margin: 20px 0;
}
.stats-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,232,208,0.65);
  line-height: 1.4;
}

/* ─── Quote ─── */
.quote-block {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 32px;
  text-align: center;
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 0.5;
  display: block;
  margin-bottom: 20px;
}
blockquote {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--blueprint);
  line-height: 1.4;
  margin-bottom: 20px;
}
cite {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
}

/* ─── Footer ─── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(184,134,11,0.3);
  padding: 40px 24px;
  text-align: center;
  color: var(--faded);
  font-size: 0.85rem;
}
.footer-copyright {
  margin-top: 8px;
  opacity: 0.5;
}

/* ─── MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(26,18,8,0.72);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--parchment);
  border: 1px solid var(--gold);
  border-radius: 2px;
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  padding: 48px 44px 40px;
  animation: modal-in 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blueprint), var(--gold));
}

.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--faded);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--rust); }

.modal-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 8px;
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--blueprint);
  line-height: 1.15;
  margin-bottom: 6px;
}
.modal-title-en {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--faded);
  margin-bottom: 24px;
  display: block;
}
.modal-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
}
.modal-body { color: var(--ink); }
.modal-body p { margin-bottom: 16px; font-size: 1.05rem; }
.modal-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--blueprint);
  margin: 24px 0 8px;
  font-weight: 700;
}
.modal-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}
.modal-body ul li {
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: 1rem;
  color: var(--faded);
  border-bottom: 1px dotted rgba(184,134,11,0.2);
}
.modal-body ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.5rem;
  top: 10px;
}
.modal-stat-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0;
  padding: 20px;
  background: rgba(26,58,92,0.05);
  border-left: 3px solid var(--blueprint);
}
.modal-stat { text-align: center; flex: 1; min-width: 80px; }
.modal-stat-num {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--blueprint);
  line-height: 1;
  display: block;
}
.modal-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faded);
}
.modal-source {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(184,134,11,0.25);
  font-size: 0.8rem;
  color: var(--faded);
  font-style: italic;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .modal { padding: 36px 22px 28px; }
  .cards-grid { grid-template-columns: 1fr; }
  .compass { display: none; }
}

/* ─── Language switching ─── */
[data-lang-en] { display: none; }
body.en [data-lang-tr] { display: none; }
body.en [data-lang-en] { display: revert; }
