/* ============================================================
   styles.css — Levi Noah (Soft Neutral / Editorial)
   Updated for better readability and contrast
   Inspired by paolovendramini.com
   ============================================================ */

:root {
  --bg: #FAF8F5;
  --paper: #FFFFFF;
  --text: #2B2B2B;
  --muted: #555555;
  --accent: #C5A45D;
  --radius: 12px;
  --container: 1100px;
  --max-width-narrow: 720px;
  --easing: cubic-bezier(.25,.9,.3,1);
}

/* Global reset & base -------------------------------------- */

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

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Containers ----------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography ----------------------------------------------- */

h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  color: var(--text);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--text);
  margin-bottom: 1.1rem;
  max-width: 65ch;
}

.h-eyebrow, .kicker {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.lede {
  font-size: 1.05rem;
  color: #3B3B3B;
  margin-bottom: 1.4rem;
}

.meta {
  color: #4B4B4B;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Header & Nav --------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--paper), #F3ECE2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.05);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.brand-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 600;
}

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

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s var(--easing);
}

.nav a:hover {
  color: var(--accent);
  background: rgba(0,0,0,0.04);
}

.cta {
  background: var(--accent);
  color: var(--paper);
  padding: 9px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s var(--easing);
}

.cta:hover {
  filter: brightness(1.05);
}

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

.hero {
  padding: 90px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Cards ----------------------------------------------------- */

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
}

/* Figures --------------------------------------------------- */

.figure {
  border-radius: 12px;
  overflow: hidden;
  background: #EEE;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Values Section -------------------------------------------- */

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.value h3 {
  margin-bottom: 0.4rem;
}

.value p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Timeline -------------------------------------------------- */

.timeline {
  display: grid;
  gap: 20px;
  margin-top: 1.2rem;
}

.event {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.event .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.event .meta {
  min-width: 90px;
  color: var(--muted);
  font-weight: 600;
}

.event .body {
  background: var(--paper);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.05);
  flex: 1;
}

/* Journal Cards --------------------------------------------- */

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

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

.site-footer {
  padding: 50px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: transparent;
}

/* Layout Utilities ------------------------------------------ */

.section {
  padding: 60px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.center {
  text-align: center;
}

.mt-xxl {
  margin-top: 60px;
}

/* Reveal Animations ----------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s var(--easing);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .nav {
    display: none;
  }

  .brand-title {
    display: none;
  }

  .values {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 14px 16px;
  }

  body {
    font-size: 16px;
  }
}
