/* ===== Elesa — Design System ===== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --cream: #F5F1E8;
  --cream-light: #FBF8F1;
  --cream-warm: #EFE8D6;
  --green-deep: #2F4A3A;
  --green: #3D6B4F;
  --green-medium: #5A8B6E;
  --green-soft: #8FAE9C;
  --green-pale: #D4E0D7;
  --ink: #1F2A23;
  --ink-soft: #4A574F;
  --ink-muted: #7A8580;
  --line: rgba(47, 74, 58, 0.12);
  --line-soft: rgba(47, 74, 58, 0.06);
  --shadow-soft: 0 1px 3px rgba(47, 74, 58, 0.04), 0 8px 24px rgba(47, 74, 58, 0.06);
  --shadow-lift: 0 2px 8px rgba(47, 74, 58, 0.06), 0 20px 60px rgba(47, 74, 58, 0.10);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --max-w: 1240px;
  --reading-w: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  font-feature-settings: "ss01", "ss02";
}

h1 { font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.02; font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.875rem); line-height: 1.2; font-weight: 500; }
h4 { font-size: 1.15rem; line-height: 1.35; font-weight: 500; }

p { color: var(--ink-soft); }

a { color: var(--green); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--green-deep); }

.italic { font-style: italic; }
.serif { font-family: var(--font-display); }

/* ===== Layout ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.container-reading {
  max-width: var(--reading-w);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(245, 241, 232, 0.78);
  border-bottom: 1px solid var(--line-soft);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}

.logo-mark {
  height: 28px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
}

.nav-links a:hover { color: var(--green-deep); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--green);
}

.nav-cta {
  background: var(--green-deep);
  color: var(--cream-light) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: var(--green) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 74, 58, 0.15);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--green-deep);
  color: var(--cream-light);
}

.btn-primary:hover {
  background: var(--green);
  color: var(--cream-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 74, 58, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border: 1px solid var(--green-soft);
}

.btn-ghost:hover {
  background: var(--green-pale);
  color: var(--green-deep);
}

/* ===== Sections ===== */
section { padding: 120px 0; position: relative; z-index: 2; }
section.tight { padding: 80px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-medium);
  margin-bottom: 24px;
}

/* ===== Footer ===== */
.footer {
  background: var(--green-deep);
  color: var(--cream-warm);
  padding: 80px 0 40px;
  position: relative;
  z-index: 2;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  color: var(--cream-light);
  margin-bottom: 16px;
  font-size: 2rem;
  font-weight: 300;
}

.footer-brand p {
  color: rgba(251, 248, 241, 0.65);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 20px;
  font-weight: 600;
  font-family: var(--font-body);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: rgba(251, 248, 241, 0.75);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--cream-light); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 32px 0;
  border-top: 1px solid rgba(251, 248, 241, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(251, 248, 241, 0.5);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

.fade-up { animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fade-up-delay-1 { animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both; }
.fade-up-delay-2 { animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }
.fade-up-delay-3 { animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s both; }
.fade-up-delay-4 { animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav-links { gap: 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  section { padding: 80px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 560px) {
  .container, .container-narrow, .container-reading { padding: 0 20px; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
