/* ============================================================
   CHRIS KOKKELER — Design System
   Brand: Warm editorial · Cream + Ink + Terracotta
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500&display=swap');

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

:root {
  /* Palette */
  --cream: #F5F0E8;
  --cream-light: #FAF6EE;
  --cream-dark: #ECE5D6;
  --ink: #1A1F2E;
  --ink-soft: #2D3346;
  --muted: #6B665E;
  --muted-soft: #9A938A;
  --border: #E2DBC9;
  --border-soft: #EDE6D5;
  --terracotta: #C04920;
  --terracotta-soft: #E07F5C;
  --terracotta-bg: #F8E8DF;
  --olive: #6B7A4F;
  --warning: #D4951C;

  /* Typography */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Inter', system-ui, sans-serif;

  /* Spacing scale (8px) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26,31,46,.04), 0 2px 8px rgba(26,31,46,.04);
  --shadow-md: 0 4px 16px rgba(26,31,46,.06), 0 8px 32px rgba(26,31,46,.06);
  --shadow-lg: 0 8px 32px rgba(26,31,46,.10), 0 16px 64px rgba(26,31,46,.10);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 76px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  position: relative;
  overflow-x: hidden;
}

/* Subtle grain texture overlay — gives the site a paper-like quality */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: .04;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ============================================================
   TYPOGRAPHY — Inter-only, weight contrast does the work
   ============================================================ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--terracotta);
}

/* Display heading: extreme weight contrast + italic for editorial character */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -.05em;
  font-weight: 700;
  color: var(--ink);
}
.display-1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--terracotta);
  letter-spacing: -.03em;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.0;
  letter-spacing: -.04em;
  font-weight: 700;
}
.display-2 em {
  font-style: normal;
  font-weight: 300;
  color: var(--terracotta);
  letter-spacing: -.03em;
}

.display-3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 700;
}
.display-3 em { font-style: normal; font-weight: 300; color: var(--terracotta); letter-spacing: -.022em; }

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
  font-weight: 400;
}

.body-md { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); position: relative; z-index: 2; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }

.section { padding: var(--s-9) 0; }
.section-lg { padding: var(--s-10) 0; }
.section-sm { padding: var(--s-7) 0; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(245,240,232,.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--border); background: rgba(245,240,232,.92); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--terracotta);
  display: inline-block;
}
.logo em { font-style: normal; font-weight: 300; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: var(--s-6); }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s;
}
.nav-link:hover { color: var(--terracotta); }
.nav-link.active { color: var(--terracotta); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--terracotta);
}

.nav-toggle { display: none; background: transparent; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .3s; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--cream);
  padding: calc(var(--header-h) + var(--s-6)) var(--s-5) var(--s-5);
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all .25s cubic-bezier(.22,1,.36,1);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}
.btn-text {
  background: transparent;
  color: var(--ink);
  padding: 10px 0;
  border-radius: 0;
  border-bottom: 1.5px solid var(--ink);
  border-top: 0;
  border-left: 0;
  border-right: 0;
}
.btn-text:hover { color: var(--terracotta); border-color: var(--terracotta); }
.btn .arrow { transition: transform .25s; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================================
   ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.9); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: var(--s-9) 0 var(--s-6);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--terracotta) 50%, transparent);
  opacity: .5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
.footer-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.footer-block ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-block a {
  font-size: 14px;
  color: rgba(245,240,232,.7);
  transition: color .2s;
}
.footer-block a:hover { color: var(--terracotta-soft); }
.footer-tag {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 700;
  margin-bottom: var(--s-4);
}
.footer-tag em { font-style: normal; font-weight: 300; color: var(--terracotta-soft); }
.footer-bottom {
  border-top: 1px solid rgba(245,240,232,.1);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(245,240,232,.4);
  font-family: var(--font-mono);
  letter-spacing: .02em;
}
.footer-bottom-links { display: flex; gap: var(--s-5); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: var(--s-8) 0; }
  .section-lg { padding: var(--s-9) 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--s-3); }
}
