@import url('https://fonts.googleapis.com/css2?family=Beth+Ellen&display=swap');

/* ============================================================
   EN POINTE CASTING — Global Stylesheet (v4)
   Aesthetic: editorial magazine — Yes Man · MY20'S · liminal zine energy
   Palette: Antique White · Cappuccino · Pale Violet Red · Licorice
   ============================================================ */

/* ----------------------------------------------------------
   1. FONT SYSTEM — v4 (unchanged from v3)
      Beth Ellen         : wordmark ONLY ("en pointe casting")
      Bebas Neue         : display headings — scaled down, editorial
      Playfair Display   : subheadings, pull quotes — editorial serif
      DM Sans            : body, labels, nav, form — clean & modern
   ---------------------------------------------------------- */

/* ----------------------------------------------------------
   2. CSS CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
  /* ── NEW PALETTE ─────────────────────────────────────────
     Antique White  #FFECDA  — page background, light surfaces
     Cappuccino     #59382C  — headings, strong text, dark anchor
     Pale Violet Red #88B836 — accent / mailing strip / hover
     Licorice       #1E151C  — near-black, footer bg, max contrast
     -------------------------------------------------------- */
  --cream:          #FFECDA;      /* Antique White — page background */
  --cream-light:    #fff5ed;      /* slightly lighter antique white */
  --cream-dark:     #f0d8c4;      /* borders, dividers */
  --taupe:          #8a6455;      /* mid text — between cream & cappuccino */
  --taupe-dark:     #59382C;      /* Cappuccino — headings, strong text */
  --taupe-light:    #c4a090;      /* placeholder, muted text */
  --amber:          #88B836;      /* Pale Violet Red — accent (used as warm accent) */
  --pink:           #FFAD8D;      /* fluorescent peach-pink — pop accent */
  --pink-deep:      #E68B6F;      /* deeper fluorescent peach — hover states */
  --pink-pale:      #FFE4D9;      /* soft peach blush — mailing strip bg */
  --coral:          #FFAD8D;      /* fluorescent pink accent */
  --ink:            #1E151C;      /* Licorice — near-black body text */
  --white:          #FFECDA;      /* Antique White — surface color */

  /* Typography — v3 magazine system */
  --serif:       'Beth Ellen', cursive;   /* wordmark ONLY */
  --display:     'Bebas Neue', 'Arial Narrow', sans-serif; /* h1 — Numéro energy */
  --editorial:   'Playfair Display', 'Georgia', serif;     /* h2/h3, pull quotes */
  --sans:        'DM Sans', 'Helvetica Neue', Arial, sans-serif; /* body, nav, labels */

  /* Spacing */
  --sp-xs:   0.5rem;
  --sp-sm:   1rem;
  --sp-md:   2rem;
  --sp-lg:   4rem;
  --sp-xl:   7rem;

  /* Nav */
  --nav-h:   64px;

  /* Transitions */
  --ease:    0.35s ease;
  --ease-slow: 0.65s ease;
}

/* ----------------------------------------------------------
   3. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grain texture overlay — the analogue film feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
address { font-style: normal; }

/* ----------------------------------------------------------
   4. TYPOGRAPHY — v4 magazine system
      Bebas Neue     → editorial headers, SCALED DOWN per feedback
      Playfair Display → subheads, captions, pull quotes
      DM Sans        → body, labels, nav — clean & modern
      Cormorant      → wordmark ONLY
   ---------------------------------------------------------- */

/* Display — Bebas Neue, scaled back from v3 (~25% smaller) */
.t-display {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--taupe-dark);
}

.t-display em {
  font-family: var(--editorial);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
}

/* Heading — Playfair Display, editorial serif */
.t-heading {
  font-family: var(--editorial);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--taupe-dark);
}

/* Label — DM Sans, small caps feel */
.t-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* Body — DM Sans, readable and modern */
.t-body {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink);
}

/* Small — DM Sans */
.t-small {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--taupe-light);
}

/* ----------------------------------------------------------
   5. LAYOUT UTILITIES
   ---------------------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.container--narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.pad { padding: var(--sp-xl) 0; }
.pad--md { padding: var(--sp-lg) 0; }
.pad--sm { padding: var(--sp-md) 0; }

.page-wrap { padding-top: var(--nav-h); }

/* Thin rule */
.rule {
  width: 32px;
  height: 1px;
  background-color: var(--amber);
  display: block;
  margin: var(--sp-sm) 0;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.22s; }
.reveal-d3 { transition-delay: 0.36s; }
.reveal-d4 { transition-delay: 0.5s; }

/* ----------------------------------------------------------
   6. NAVIGATION
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-md);
  background-color: rgba(255, 236, 218, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), background-color var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--cream-dark);
  background-color: rgba(255, 236, 218, 0.97);
}

/* Wordmark — Cormorant ONLY, unchanged */
.nav__wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 100;
  letter-spacing: 0.12em;
  color: var(--taupe-dark);
  font-style: normal;
}

/* Links — DM Sans */
.nav__links {
  display: flex;
  gap: var(--sp-md);
  align-items: center;
}

.nav__link {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  /* Pink underline on nav hover — nods to the Nylon/zine references */
  background-color: var(--pink);
  transition: width var(--ease);
}

.nav__link:hover,
.nav__link.active { color: var(--taupe-dark); }

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

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 501;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background-color: var(--taupe-dark);
  transition: transform var(--ease), opacity var(--ease);
}

.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer — Licorice background for drama */
.nav__drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 260px;
  height: 100vh;
  background-color: var(--ink);
  border-left: 1px solid #3a2836;
  z-index: 499;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-lg) var(--sp-md);
  transition: right var(--ease);
}

.nav__drawer.open { right: 0; }

.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.nav__drawer-link {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color var(--ease);
}

.nav__drawer-link:hover,
.nav__drawer-link.active { color: var(--pink); }

.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(58, 48, 40, 0.25);
  z-index: 498;
  backdrop-filter: blur(2px);
}

.nav__overlay.open { display: block; }

/* ----------------------------------------------------------
   7. FOOTER — Licorice background, editorial feel
   ---------------------------------------------------------- */
.footer {
  background-color: #2a2318;
  padding: var(--sp-lg) var(--sp-md);
  border-top: none;
  text-align: center;
}

.footer__wordmark {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: normal;
  font-weight: 100;
  letter-spacing: 0.03em;
  color: var(--cream);
  opacity: 0.80;
  margin-bottom: var(--sp-sm);
  display: block;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-sm);
  flex-wrap: wrap;
}

.footer__link {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
  transition: color var(--ease);
}

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

.footer__copy {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--cream-dark);
  opacity: 0.75;
}

/* ----------------------------------------------------------
   8. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
  cursor: pointer;
  padding: 0.8rem 1.8rem;
  border: none;
}

.btn--dark {
  background-color: var(--taupe-dark);
  color: var(--cream);
}
.btn--dark:hover { background-color: var(--ink); }

.btn--outline {
  background-color: transparent;
  border: 1px solid var(--taupe);
  color: var(--taupe-dark);
}
.btn--outline:hover {
  background-color: var(--taupe-dark);
  color: var(--cream);
  border-color: var(--taupe-dark);
}

.btn--pink {
  background-color: var(--pink);
  color: var(--taupe-dark);
}
.btn--pink:hover {
  background-color: #e8a3b4;
}

/* ----------------------------------------------------------
   9. LIGHTBOX
   ---------------------------------------------------------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background-color: rgba(30, 21, 28, 0.96);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--sp-md);
}

.lightbox.open { display: flex; }

.lightbox__close {
  position: absolute;
  top: var(--sp-sm);
  right: var(--sp-md);
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--taupe-light);
  transition: color var(--ease);
  line-height: 1;
}
.lightbox__close:hover { color: var(--cream); }

.lightbox__img-wrap {
  max-width: 760px;
  width: 100%;
  position: relative;
}

.lightbox__img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.lightbox__caption {
  margin-top: var(--sp-sm);
  text-align: center;
}

.lightbox__caption-title {
  font-family: var(--editorial);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--taupe-dark);
  margin-bottom: 0.25rem;
}

.lightbox__caption-meta {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe-light);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--taupe-light);
  padding: var(--sp-sm);
  transition: color var(--ease);
  z-index: 901;
}
.lightbox__nav:hover { color: var(--taupe-dark); }
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }

/* ----------------------------------------------------------
   10. MAILING LIST STRIP — new palette: Pale Violet Red accent
   ---------------------------------------------------------- */
.mailing-strip {
  background-color: var(--cream-dark);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  padding: var(--sp-lg) var(--sp-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Large background asterisk — zine texture */
.mailing-strip::before {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28rem;
  color: var(--taupe-dark);
  opacity: 0.03;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

.mailing-strip__inner {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mailing-strip__eyebrow {
  margin-bottom: var(--sp-sm);
  color: var(--taupe-dark);
  letter-spacing: 0.28em;
}

.mailing-strip__title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  font-style: normal;
  color: var(--taupe-dark);
  line-height: 1.2;
  margin-bottom: var(--sp-xs);
  letter-spacing: 0.01em;
}

.mailing-strip__sub {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--taupe);
  margin-bottom: var(--sp-md);
  line-height: 1.75;
}

.mailing-strip__form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.mailing-strip__input {
  flex: 1;
  padding: 0.85rem 1rem;
  background-color: var(--cream-light);
  border: 1px solid var(--cream-dark);
  border-right: none;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
}

.mailing-strip__input::placeholder { color: var(--taupe-light); }
.mailing-strip__input:focus { border-color: var(--taupe-dark); }

/* Pale Violet Red subscribe button */
.mailing-strip__btn {
  padding: 0.85rem 1.5rem;
  background-color: var(--pink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--pink);
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.mailing-strip__btn:hover {
  background-color: var(--pink-deep);
  border-color: var(--pink-deep);
}

.mailing-strip__success {
  display: none;
  font-family: var(--editorial);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--taupe-dark);
  margin-top: var(--sp-sm);
}

.mailing-strip__privacy {
  margin-top: var(--sp-sm);
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--taupe-light);
}

/* ----------------------------------------------------------
   11. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .mailing-strip__form {
    flex-direction: column;
    gap: var(--sp-xs);
  }
  .mailing-strip__input { border-right: 1px solid #4a2a38; }
  .mailing-strip__btn { width: 100%; }
}

@media (max-width: 480px) {
  .nav { padding: 0 var(--sp-sm); }
}
