/* ==========================================================================
   Far & Fame — Editorial Design System & Typography
   Air Mail × Cabana × T Magazine Aesthetic
   ========================================================================== */

:root {
  /* Core Editorial Palette */
  --ff-paper: #F6F2EB;
  --ff-paper-subtle: #ECE6DB;
  --ff-ink: #141210;
  --ff-ink-muted: #5C554E;
  --ff-ink-faint: #8E867E;
  --ff-oxblood: #6B1F26;
  --ff-oxblood-hover: #50161C;
  --ff-border: rgba(20, 18, 16, 0.12);
  --ff-border-strong: rgba(20, 18, 16, 0.25);
  
  /* Gallery Darkroom Palette */
  --ff-dark-bg: #0F0E0D;
  --ff-dark-surface: #181614;
  --ff-dark-card: #201D1A;
  --ff-dark-border: rgba(246, 242, 235, 0.12);
  --ff-dark-text: #F6F2EB;
  --ff-dark-muted: #A39C93;

  /* Typography */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', 'Newsreader', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation & Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 12px 36px rgba(0, 0, 0, 0.12);
  --shadow-editorial: 0 24px 60px rgba(0, 0, 0, 0.18);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--ff-paper);
  color: var(--ff-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Clean Header Attachment at top: 0 (Zero AI Template Artifacts)
   -------------------------------------------------------------------------- */
.ff-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(246, 242, 235, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ff-border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.ff-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.ff-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ff-ink);
}

.ff-brand__logo {
  height: 38px;
  width: auto;
  display: block;
}

.ff-brand__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.ff-brand__title span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ff-oxblood);
}

.ff-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ff-nav__link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ff-ink);
  transition: color 0.18s ease;
  position: relative;
  padding: 0.25rem 0;
}

.ff-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--ff-oxblood);
  transition: width 0.24s var(--ease-out-expo);
}

.ff-nav__link:hover::after,
.ff-nav__link.is-active::after {
  width: 100%;
}

.ff-nav__link:hover {
  color: var(--ff-oxblood);
}

.ff-nav__cta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.65rem 1.35rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--ff-paper);
  background-color: var(--ff-ink);
  border: 1px solid var(--ff-ink);
  transition: all 0.2s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ff-nav__cta:hover {
  background-color: var(--ff-oxblood);
  border-color: var(--ff-oxblood);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(107, 31, 38, 0.25);
}

/* --------------------------------------------------------------------------
   Editorial Layout Components
   -------------------------------------------------------------------------- */
.ff-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.ff-container--narrow {
  max-width: 960px;
}

.ff-hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.ff-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--ff-ink);
}

.ff-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--ff-ink-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Editorial Footer
   -------------------------------------------------------------------------- */
.ff-footer {
  margin-top: auto;
  border-top: 1px solid var(--ff-border);
  background-color: var(--ff-paper-subtle);
  padding: 3.5rem 0 2.5rem;
}

.ff-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.ff-footer__col {
  flex: 1;
  min-width: 240px;
}

.ff-footer__brand-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.ff-footer__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ff-ink-muted);
  max-width: 320px;
}

.ff-footer__heading {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ff-oxblood);
  margin-bottom: 1rem;
}

.ff-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ff-footer__link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--ff-ink-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.ff-footer__link:hover {
  color: var(--ff-ink);
}

.ff-footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(20, 18, 16, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--ff-ink-faint);
}

/* --------------------------------------------------------------------------
   Mobile Navigation & Responsiveness
   -------------------------------------------------------------------------- */
.ff-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ff-ink);
}

@media (max-width: 860px) {
  .ff-header__inner {
    padding: 1rem 1.25rem;
  }
  
  .ff-mobile-toggle {
    display: block;
  }
  
  .ff-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--ff-paper);
    border-bottom: 1px solid var(--ff-border);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-medium);
  }
  
  .ff-nav.is-open {
    display: flex;
  }
  
  .ff-container {
    padding: 0 1.25rem;
  }
}
