/* ============================================================
   FlipFinder — Editorial Operator
   Shared tokens, reset, nav, footer (used by all pages)
   ============================================================ */

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

:root {
  --ink: #0A0E0F;
  --ink-1: #0E1416;
  --ink-2: #141B1E;
  --ink-3: #1C2528;
  --paper: #F3EEE4;
  --paper-2: #E9E2D2;
  --paper-3: #D4CCB8;

  --teal: #7FBFB8;
  --teal-deep: #5DA39B;
  --teal-glow: #9ECFCF;
  --teal-ink: #1F3A37;

  --amber: #E8B66C;
  --gold: #C9A25A;
  --blaze: #D96657;
  --hot: #E28554;
  --warm: #C9A25A;
  --cold: #6A7A80;

  --ink-text: #F0EBE0;
  --ink-text-2: #A8B0B4;
  --ink-text-3: #5C6A70;
  --ink-text-4: #2E383C;

  --paper-text: #1A2022;
  --paper-text-2: #4A5256;
  --paper-text-3: #7A7267;

  --hair: rgba(240, 235, 224, 0.08);
  --hair-strong: rgba(240, 235, 224, 0.14);
  --hair-paper: rgba(26, 32, 34, 0.12);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  --gutter: clamp(24px, 5vw, 64px);
  --max: 1360px;

  --fs-micro: 11px;
  --fs-note: 13px;
  --fs-body: 16px;
  --fs-lead: 19px;
  --fs-h4: 22px;
  --fs-h3: 28px;
  --fs-h2: clamp(36px, 5vw, 64px);
  --fs-h1: clamp(48px, 8vw, 104px);
  --fs-mega: clamp(64px, 12vw, 180px);
}

html { scroll-behavior: smooth; background: var(--ink); }

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink-text-2);
  background: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "ss02", "cv11";
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--teal); color: var(--ink); }

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

.serif {
  font-family: 'Fraunces', 'Instrument Serif', Georgia, serif;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.serif-italic {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 400;
}
.mono {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-feature-settings: "ss01", "ss02", "ss04", "zero";
  letter-spacing: -0.02em;
}

.micro {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-text-3);
}
.micro--teal { color: var(--teal); }
.micro--paper { color: var(--paper-text-3); }

.eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), background 300ms var(--ease-out);
  position: relative;
}
.btn--primary { background: var(--paper); color: var(--ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(243, 238, 228, 0.35); }
.btn--ghost { background: transparent; color: var(--ink-text); border: 1px solid var(--hair-strong); }
.btn--ghost:hover { background: var(--ink-1); border-color: var(--hair); }
.btn--teal { background: var(--teal); color: var(--ink); }
.btn--teal:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(127, 191, 184, 0.45); }
.btn svg { width: 16px; height: 16px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 20px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
  border: 1px solid rgba(0,0,0,0.06);
}
.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -16px rgba(243, 238, 228, 0.4);
}
.store-badge__icon { width: 28px; height: 28px; color: var(--ink); flex-shrink: 0; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.store-badge__top { font-size: 10px; letter-spacing: 0.03em; color: var(--paper-text-2); }
.store-badge__bot { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 18px 0;
  transition: padding 400ms var(--ease-out), background 400ms var(--ease-out), border-color 400ms var(--ease-out), backdrop-filter 400ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(10, 14, 15, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--hair);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-text);
}
.nav__logo { width: 32px; height: 32px; flex-shrink: 0; }
.nav__logo svg, .nav__logo img { width: 100%; height: 100%; display: block; }
.nav__wordmark {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink-text);
}
.nav__wordmark em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links > a:not(.btn):not(.store-badge) {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-text-2);
  transition: color 200ms var(--ease);
  letter-spacing: -0.005em;
}
.nav__links > a:not(.btn):not(.store-badge):hover { color: var(--ink-text); }
.nav .btn { padding: 10px 18px; font-size: 13px; }

@media (max-width: 720px) {
  .nav__links a:not(.btn):not(.store-badge) { display: none; }
  .nav__inner { gap: 16px; }
}

.footer {
  background: var(--ink);
  padding: 120px 0 0;
  border-top: 1px solid var(--hair);
  position: relative;
}
.footer__masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--hair);
  flex-wrap: wrap;
}
.footer__wordmark {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  font-weight: 300;
  font-size: clamp(64px, 14vw, 180px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink-text);
}
.footer__wordmark em {
  font-style: italic;
  color: var(--teal);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.footer__tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-text-3);
  max-width: 280px;
  line-height: 1.6;
  text-align: right;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0;
}
.footer__col h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-text-3);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__col a {
  display: block;
  font-size: 15px;
  color: var(--ink-text);
  padding: 7px 0;
  transition: color 200ms var(--ease), padding-left 300ms var(--ease-out);
  letter-spacing: -0.01em;
}
.footer__col a:hover {
  color: var(--teal);
  padding-left: 8px;
}
.footer__note {
  font-size: 13px;
  color: var(--ink-text-3);
  line-height: 1.65;
  max-width: 320px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--hair);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-text-3);
}
.footer__bottom__right { display: flex; gap: 24px; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__masthead { flex-direction: column; align-items: flex-start; gap: 32px; }
  .footer__tag { text-align: left; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
