/*
  direction-e.css
  Autumn & April brochure site.

  Trimmed from the Option E prototype direction-e.css per the approved design spec
  (3_design/01_design-system-spec.md). All commerce blocks are dropped: product grid,
  product card, collection cards, collection page, filter sidebar, PDP, cart drawer,
  cart page, search overlay, shop dropdown, header action icons, newsletter, trust
  strip, local strip, journal. The Option E .about-teaser image-with-text pattern is
  carried verbatim and renamed .media-text (a neutral, non-commerce name).

  Builds on, in load order:
    assets/css/reset.css
    assets/css/base.css
    assets/css/components.css
    assets/css/direction-e-tokens.css   (sets the [data-direction="e"] CSS vars)

  No framework, no build step, no bundler. A browser opens this file directly.
*/

/* ============================================================
   GLOBAL HOOKS
   ============================================================ */

html, body {
  background: var(--color-bg);
  color: var(--color-text);
}

[data-direction="e"] body {
  font-family: var(--font-body);
  font-feature-settings: "ss01", "kern";
}

[data-direction="e"] h1,
[data-direction="e"] h2,
[data-direction="e"] h3,
[data-direction="e"] .h1,
[data-direction="e"] .h2,
[data-direction="e"] .h3 {
  font-family: var(--font-heading);
}

/* ============================================================
   HEADER (wordmark left, four-item nav right)
   ============================================================ */

[data-direction="e"] .site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 60;
}

/* Two real elements (toggle/logo and nav). Logo left, nav right.
   The mobile toggle and the desktop nav never show at the same width. */
[data-direction="e"] .site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

@media (min-width: 900px) {
  [data-direction="e"] .site-header__bar {
    padding-block: 1.1rem;
  }
}

[data-direction="e"] .site-header__logo img {
  height: 80px;
  width: auto;
  display: block;
}

@media (min-width: 900px) {
  [data-direction="e"] .site-header__logo img {
    height: 104px;
  }
}

[data-direction="e"] .site-header__logo {
  display: inline-flex;
  align-items: center;
}

[data-direction="e"] .site-nav {
  display: none;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  [data-direction="e"] .site-nav {
    display: flex;
    align-items: center;
  }
}

[data-direction="e"] .site-nav__link {
  font-family: var(--font-nav);
  font-size: var(--type-nav-size);
  letter-spacing: var(--type-nav-tracking);
  text-transform: uppercase;
  color: var(--color-text);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
}

[data-direction="e"] .site-nav__link:hover {
  border-bottom-color: var(--color-accent);
  color: var(--color-text);
}

/* Active page: a quiet Autumn Rust underline (design spec section 5). */
[data-direction="e"] .site-nav__link[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}

/* Mobile nav toggle */
[data-direction="e"] .mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  color: var(--color-text);
  border-bottom: none;
  cursor: pointer;
}

@media (min-width: 900px) {
  [data-direction="e"] .mobile-nav-toggle {
    display: none;
  }
}

[data-direction="e"] .mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile slide-out menu */
[data-direction="e"] .mobile-menu {
  position: fixed;
  inset: 0 30% 0 0;
  background: var(--color-bg);
  z-index: 250;
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 280ms var(--motion-default-easing);
  max-width: 360px;
}

[data-direction="e"] .mobile-menu[data-open="true"] {
  transform: translateX(0);
}

[data-direction="e"] .mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 42, 45, 0.5);
  z-index: 240;
  display: none;
}

[data-direction="e"] .mobile-menu__overlay[data-open="true"] {
  display: block;
}

[data-direction="e"] .mobile-menu__close {
  font-family: var(--font-nav);
  font-size: var(--type-small-size);
  letter-spacing: var(--type-nav-tracking);
  text-transform: uppercase;
  border-bottom: none;
  cursor: pointer;
}

[data-direction="e"] .mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

[data-direction="e"] .mobile-menu__list a {
  font-family: var(--font-nav);
  font-size: 16px;
  letter-spacing: var(--type-nav-tracking);
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: none;
  display: inline-block;
  padding-block: 0.35rem;
}

[data-direction="e"] .mobile-menu__list a[aria-current="page"] {
  color: var(--color-accent);
}

/* ============================================================
   HOMEPAGE HERO (lifted verbatim from Option E; the backdrop image
   is now a static src, the renderHomeHeroBackdrop JS is dropped)
   ============================================================ */

[data-direction="e"] .home-hero {
  position: relative;
  background: var(--color-tertiary); /* warm cream band, distinct from page bone */
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

/* Hero backdrop: a quiet brand still behind the watermark + script lockup.
   Stack: cream band -> image at 86% opacity -> cream linear wash -> watermark + script. */
[data-direction="e"] .home-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Image at near-full strength (86% opacity) plus a uniform linear cream tint over
   the whole image so the tan watermark and Sacramento script stay legible on top. */
[data-direction="e"] .home-hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.86;
  display: block;
  transition: opacity 0.4s ease;
}
[data-direction="e"] .home-hero__backdrop img[src=""] {
  opacity: 0;
}
[data-direction="e"] .home-hero__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(245, 239, 230, 0.35) 0%,
    rgba(245, 239, 230, 0.55) 100%);
}
[data-direction="e"] .home-hero .container {
  position: relative;
  z-index: 2;
}

[data-direction="e"] .home-hero__inner {
  position: relative;
  display: block;
  padding-block: 3.5rem;
  text-align: center;
}

@media (min-width: 900px) {
  [data-direction="e"] .home-hero__inner {
    padding-block: 5.5rem;
  }
}

[data-direction="e"] .home-hero__copy {
  position: relative;
  z-index: 3;
  text-align: center;
}

[data-direction="e"] .home-hero__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-secondary);
  opacity: 0.55;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
  font-size: clamp(80px, 14vw, 220px);
  max-width: 90vw;
  z-index: 1;
}

@media (max-width: 640px) {
  [data-direction="e"] .home-hero__watermark {
    display: none;
  }
}

[data-direction="e"] .home-hero__script {
  font-family: var(--font-script);
  color: var(--color-text);
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 3;
}

[data-direction="e"] .home-hero__sub {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 500;
  margin-block: 0.4rem 1.4rem;
  line-height: 1.3;
  color: var(--color-text);
  position: relative;
  z-index: 3;
}
[data-direction="e"] .home-hero__cta {
  position: relative;
  z-index: 3;
  margin-top: 0.5rem;
}

/* ============================================================
   SECTION RHYTHM
   ============================================================ */

[data-direction="e"] .section {
  padding-block: var(--space-section-vertical);
}

[data-direction="e"] .section + .section {
  padding-top: 0;
  margin-top: 3.5rem;
}

@media (min-width: 768px) {
  [data-direction="e"] .section + .section {
    margin-top: 5rem;
  }
}

/* A cream-banded section keeps its own internal padding rather than the
   collapsed .section + .section spacing, so the band reads as a full block. */
[data-direction="e"] .section.section--cream + .section,
[data-direction="e"] .section + .section.section--cream {
  margin-top: 0;
  padding-top: var(--space-section-vertical);
}

[data-direction="e"] .section-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

[data-direction="e"] .section-head--centered {
  align-items: center;
  text-align: center;
  margin-inline: auto;
  max-width: 640px;
}

[data-direction="e"] .section-head__eyebrow {
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: var(--type-nav-tracking);
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}

[data-direction="e"] .section-head h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0;
}

[data-direction="e"] .section-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0;
}

[data-direction="e"] .section-head__sub {
  margin-top: 0.4rem;
  color: var(--color-text);
  opacity: 0.85;
}

/* ============================================================
   IMAGE-WITH-TEXT BAND (.media-text)
   Lifted verbatim from the Option E .about-teaser pattern and renamed
   to a neutral, non-commerce class. Used by the What to Expect category
   sections. No price, no buy/shop control, no per-item link.
   ============================================================ */

[data-direction="e"] .media-text {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  [data-direction="e"] .media-text {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Reverse modifier: image on the right at desktop. Markup order stays
   image-then-copy so the mobile stack is always image-then-text. */
@media (min-width: 768px) {
  [data-direction="e"] .media-text--reverse .media-text__media {
    order: 2;
  }
  [data-direction="e"] .media-text--reverse .media-text__copy {
    order: 1;
  }
}

[data-direction="e"] .media-text__media {
  background: var(--color-secondary);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

[data-direction="e"] .media-text__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

[data-direction="e"] .media-text__copy h2 {
  margin-bottom: 0.75rem;
}

[data-direction="e"] .media-text__booth-line {
  margin-top: 1rem;
  font-size: 15px;
  opacity: 0.85;
}

/* ============================================================
   HOME THREE-CATEGORY TEASER (content tiles, not collection cards)
   ============================================================ */

[data-direction="e"] .category-tile {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  border-bottom: none;
  color: var(--color-text);
}

[data-direction="e"] .category-tile:hover {
  color: var(--color-text);
  border-bottom: none;
}

[data-direction="e"] .category-tile__media {
  aspect-ratio: 4 / 5;
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

[data-direction="e"] .category-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 600ms var(--motion-default-easing);
}

[data-direction="e"] .category-tile:hover .category-tile__media img {
  transform: scale(1.03);
}

[data-direction="e"] .category-tile__name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  transition: color var(--motion-default-duration) var(--motion-default-easing);
}

[data-direction="e"] .category-tile:hover .category-tile__name {
  color: var(--color-accent);
}

[data-direction="e"] .category-tile__desc {
  font-size: 14px;
  margin: 0;
  opacity: 0.85;
}

/* ============================================================
   FOOTER (three-column: Brand, Explore, Connect)
   ============================================================ */

[data-direction="e"] .site-footer {
  background: var(--color-tertiary);
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
  padding-block: 3.5rem 2rem;
  margin-top: 5rem;
}

[data-direction="e"] .site-footer__top {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  [data-direction="e"] .site-footer__top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

[data-direction="e"] .footer-brand img {
  height: 112px;
  width: auto;
  display: block;
  margin-bottom: 0.85rem;
}

@media (min-width: 900px) {
  [data-direction="e"] .footer-brand img {
    height: 128px;
  }
}

[data-direction="e"] .footer-brand__tagline {
  font-style: normal;
  font-size: 14px;
  margin: 0 0 1rem;
  opacity: 0.85;
}

[data-direction="e"] .footer-brand__booth {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

[data-direction="e"] .footer-col__title {
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: var(--type-nav-tracking);
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

[data-direction="e"] .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

[data-direction="e"] .footer-col ul a {
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid transparent;
  opacity: 0.85;
}

[data-direction="e"] .footer-col ul a:hover {
  border-bottom-color: var(--color-text);
  opacity: 1;
}

[data-direction="e"] .site-footer__bottom {
  margin-top: 0;
  padding-top: 0.5rem;
  border-top: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 12px;
  opacity: 0.85;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

[data-direction="e"] .about-hero {
  background: var(--color-tertiary);
  border-bottom: 1px solid var(--color-border);
  padding-block: 3rem;
}

[data-direction="e"] .about-hero__inner {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  [data-direction="e"] .about-hero__inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}

[data-direction="e"] .about-hero__inner h1 {
  font-size: clamp(32px, 5vw, 48px);
}

[data-direction="e"] .about-hero__summary {
  margin-top: 1rem;
  font-size: 17px;
  opacity: 0.85;
}

[data-direction="e"] .about-hero__signage {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-direction="e"] .about-hero__signage img,
[data-direction="e"] .about-hero__signage svg {
  max-width: 90%;
  height: auto;
}

[data-direction="e"] .about-tiles {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  [data-direction="e"] .about-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

[data-direction="e"] .about-tile {
  background: var(--color-tertiary);
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

[data-direction="e"] .about-tile h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 0;
}

[data-direction="e"] .about-tile p {
  font-size: 14px;
  margin: 0;
  opacity: 0.85;
}

/* ============================================================
   VISIT & CONTACT PAGE
   ============================================================ */

/* Booth-address placeholder block: a bounded panel so the placeholder reads
   as intentional. The real address swaps into .visit-address with no CSS change. */
[data-direction="e"] .visit-address {
  border: 1px solid var(--color-border);
  background: var(--color-tertiary);
  padding: 1.75rem;
  max-width: 620px;
}

[data-direction="e"] .visit-address p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

[data-direction="e"] .contact-info {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  [data-direction="e"] .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

[data-direction="e"] .contact-info__item h4 {
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: var(--type-nav-tracking);
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

[data-direction="e"] .contact-info__item p {
  font-size: 15px;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

[data-direction="e"] .contact-info__item p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   LEGAL / PROSE PAGE (Privacy)
   ============================================================ */

[data-direction="e"] .prose {
  max-width: 720px;
  margin-inline: auto;
  padding-block: 2.5rem 4rem;
}

[data-direction="e"] .prose h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 1rem;
}

[data-direction="e"] .prose h2 {
  font-size: 22px;
  margin-block: 2rem 0.6rem;
}

[data-direction="e"] .prose p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 1rem;
}

[data-direction="e"] .prose a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
}

[data-direction="e"] .prose a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ============================================================
   JOURNAL PAGE - follow-along social cards
   Two equal bordered cards (Facebook, Instagram) inside the
   .section--cream band. Replaces the old live-feed embed: the
   feed is not shipped (new Page reads thin), so this is the
   designed, substantial "follow along on social" moment.
   Built from the same hairline-on-warm-ground panel language
   as .about-tile / .visit-address. Square corners (radius 0).
   ============================================================ */

[data-direction="e"] .social-follow {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto 0;            /* breathing room below the section head */
  max-width: 760px;                 /* caps the two-up width so cards stay tidy */
  display: grid;
  grid-template-columns: 1fr;       /* mobile: single column, cards stack */
  gap: 1.25rem;                     /* matches .about-tiles card gap */
}

@media (min-width: 700px) {
  [data-direction="e"] .social-follow {
    grid-template-columns: 1fr 1fr; /* two equal cards side by side */
    gap: 1.75rem;
  }
}

[data-direction="e"] .social-follow__card {
  background: var(--color-bg);              /* Warm Bone card on the Cream band: soft two-tone */
  border: 1px solid var(--color-border);    /* the site's hairline frame */
  border-radius: var(--radius-card);        /* 0px, square, system-wide */
  padding: 2rem 1.75rem;                    /* generous; more air than .about-tile's 1.25rem */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  transition: border-color var(--motion-default-duration) var(--motion-default-easing),
    box-shadow var(--motion-default-duration) var(--motion-default-easing);
}

/* Quiet hover lift, reusing the system's existing card-hover shadow token.
   The whole card is not a link; this is a gentle affordance toward the CTA. */
[data-direction="e"] .social-follow__card:hover {
  border-color: var(--color-secondary);     /* Warm Tan, a touch warmer than the hairline */
  box-shadow: var(--shadow-card-hover);      /* existing token: 0 6px 18px rgba(42,42,45,0.06) */
}

/* Decorative platform glyph in a small warm-tan disc. */
[data-direction="e"] .social-follow__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;                        /* the ONLY round element; a glyph chip, not a panel */
  background: var(--color-tertiary);         /* Cream disc, sits quietly inside the Bone card */
  border: 1px solid var(--color-border);
  color: var(--color-accent);                /* Autumn Rust glyph: the single brand accent */
  margin-bottom: 0.25rem;
}

[data-direction="e"] .social-follow__glyph svg {
  width: 26px;
  height: 26px;
  display: block;
}

[data-direction="e"] .social-follow__platform {
  font-family: var(--font-heading);          /* Playfair */
  font-size: 22px;                            /* matches .category-tile__name weight/scale */
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

[data-direction="e"] .social-follow__line {
  font-family: var(--font-body);              /* Inter */
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  opacity: 0.85;                              /* same soft body tone as .about-tile p */
  max-width: 30ch;                            /* keeps the line tidy and centered */
}

[data-direction="e"] .social-follow__handle {
  font-family: var(--font-nav);               /* Tenor Sans, the site's label face */
  font-size: 13px;
  letter-spacing: var(--type-nav-tracking);
  text-transform: uppercase;
  color: var(--color-accent);                 /* Autumn Rust, ties to the eyebrow + glyph */
  margin: 0;
}

/* The CTA fills the card width so the two buttons read as a matched pair. */
[data-direction="e"] .social-follow__cta {
  margin-top: 0.5rem;
  width: 100%;
}

/* ============================================================
   UTILS
   ============================================================ */

[data-direction="e"] .text-link {
  font-family: var(--font-body);
  color: var(--color-text);
  border-bottom: 1px solid currentColor;
  font-size: 14px;
}

[data-direction="e"] .text-link:hover {
  color: var(--color-accent);
}

[data-direction="e"] .stack-sm > * + * { margin-top: 0.5rem; }
[data-direction="e"] .stack-md > * + * { margin-top: 1rem; }
[data-direction="e"] .stack-lg > * + * { margin-top: 1.75rem; }

[data-direction="e"] .center-x {
  margin-inline: auto;
}

[data-direction="e"] .max-prose {
  max-width: 60ch;
}

[data-direction="e"] .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll lock when the mobile menu is open */
body.is-locked {
  overflow: hidden;
}

/* ============================================================
   ONE-PAGE SCROLL (Gate 4 rework)
   The site is a single-page scroll with anchor navigation.
   - Smooth scrolling for in-page anchor jumps.
   - scroll-padding-top keeps the sticky header from covering a
     section heading when an anchor link lands on a section id.
     The header height is ~80px logo + padding on mobile and
     ~104px + padding from 900px up, so the offset steps up there.
   ============================================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

@media (min-width: 900px) {
  html {
    scroll-padding-top: 134px;
  }
}

/* Respect a reduced-motion preference: no animated scroll jumps. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
