/* ============================================================
   RAVIPAI.COM — MAIN STYLESHEET
   Dark-first. Typographic. Anti-noise.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Teko:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:           #0C0B09;
  --bg-2:         #141210;
  --bg-3:         #1E1C19;
  --text:         #E3DDD2;
  --text-muted:   #7A7470;
  --text-dim:     #3E3C39;
  --accent:       #C4A55A;
  --accent-hover: #DEC076;
  --border:       #252320;
  --border-light: #2E2B27;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;
  --font-poster:  'Teko', sans-serif;

  --nav-height:  64px;
  --max-width:   860px;
  --wide-width:  1120px;
  --transition:  200ms ease;
  --slow:        450ms ease;
}

[data-theme="light"] {
  --bg:           #F7F3EB;
  --bg-2:         #EDE8DC;
  --bg-3:         #E4DFD3;
  --text:         #1A1814;
  --text-muted:   #6B6560;
  --text-dim:     #BCBAB7;
  --accent:       #8B6420;
  --accent-hover: #6A4D18;
  --border:       #D4CFC4;
  --border-light: #C8C3B8;
}

/* ─── Base ─── */
html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  transition: background-color var(--slow), color var(--slow);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 999;
  transition: background-color var(--slow), border-color var(--slow);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color var(--transition);
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.2rem 0.3rem;
  transition: color var(--transition);
}
.theme-btn:hover { color: var(--accent); }

/* ─── Page Shell ─── */
.page {
  padding-top: calc(var(--nav-height) + 4.5rem);
  padding-bottom: 7rem;
  min-height: 100vh;
}

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

/* ─── Typography ─── */
.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
  display: block;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin-bottom: 0.9rem;
  color: var(--text);
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 3.5rem;
  line-height: 1.65;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ─── Inline link style ─── */
.link-arrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  transition: letter-spacing var(--transition), color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.link-arrow:hover {
  color: var(--accent-hover);
  letter-spacing: 0.14em;
}

/* ─── Status Badge ─── */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  border: 1px solid;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
footer a { color: var(--text-muted); transition: color var(--transition); }
footer a:hover { color: var(--accent); }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fu   { animation: fadeUp 0.65s ease forwards; }
.fu-1 { animation-delay: 0.05s; opacity: 0; }
.fu-2 { animation-delay: 0.15s; opacity: 0; }
.fu-3 { animation-delay: 0.25s; opacity: 0; }
.fu-4 { animation-delay: 0.38s; opacity: 0; }
.fu-5 { animation-delay: 0.50s; opacity: 0; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.63rem; }
  .container, .container--wide { padding: 0 1.25rem; }
  footer { padding: 1.5rem 1.25rem; flex-direction: column; gap: 0.6rem; text-align: center; }
}
@media (max-width: 540px) {
  .nav-links .hide-sm { display: none; }
}
