/* ==========================================================================
   Fade & Co. Coffee House
   Mobile-first. Warm, editorial, photography-led.
   ========================================================================== */

:root {
  --cream:        #F7F2EA;
  --cream-deep:   #F0E8DB;
  --espresso:     #2A2019;
  --espresso-ink: #1C1510;
  --muted:        #6E5F51;
  --tan:          #A8713F;
  --line:         rgba(42, 32, 25, 0.13);

  --serif: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --sans:  'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: 22px;
  --max:    1240px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

body {
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* One consistent grade across every photograph on the page. */
main img { filter: saturate(0.94) contrast(1.04) sepia(0.05); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--espresso); color: var(--cream);
  padding: 12px 18px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 9.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.lede {
  margin-top: 20px;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--muted);
  max-width: 34ch;
}
.lede-narrow { max-width: 30ch; }

.link-more {
  display: inline-block;
  margin-top: 26px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(168, 113, 63, 0.4);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.link-more span { display: inline-block; transition: transform 0.35s var(--ease); }
.link-more:hover { border-color: var(--tan); }
.link-more:hover span { transform: translateX(5px); }

.btn {
  display: inline-block;
  background: var(--tan);
  color: #FFF8EE;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  padding: 18px 38px;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: #96632F; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark:hover { background: var(--espresso-ink); }

/* ---------- Layout ---------- */
.section {
  padding: clamp(78px, 17vw, 150px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head { margin-bottom: clamp(38px, 9vw, 64px); }
.section-foot { margin-top: clamp(36px, 8vw, 56px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: #FBF6EE;
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
              box-shadow 0.45s var(--ease);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: block; line-height: 1.15; }
.logo-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.logo-sub {
  display: block;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-top: 3px;
}

.site-header.is-scrolled {
  background: rgba(247, 242, 234, 0.94);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  backdrop-filter: saturate(1.1) blur(10px);
  color: var(--espresso);
  box-shadow: 0 1px 0 var(--line);
}

/* Hamburger */
.menu-btn {
  width: 44px; height: 44px;
  margin-right: -10px;
  display: grid;
  place-items: center;
}
.menu-btn-bars { display: block; width: 26px; }
.menu-btn-bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.menu-btn-bars i + i { margin-top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn-bars i:first-child { transform: translateY(4.2px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars i:last-child  { transform: translateY(-4.2px) rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--cream);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0s;
}

.menu-inner {
  height: 100%;
  padding: 120px var(--gutter) 48px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-list li { overflow: hidden; }
.menu-list li + li { margin-top: 6px; }
.menu-list a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 11vw, 3.4rem);
  line-height: 1.28;
  color: var(--espresso);
}
.menu-list a span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.6s var(--ease), color 0.3s var(--ease);
}
.menu.is-open .menu-list a span { transform: translateY(0); }
.menu-list li:nth-child(2) a span { transition-delay: 0.06s; }
.menu-list li:nth-child(3) a span { transition-delay: 0.12s; }
.menu-list li:nth-child(4) a span { transition-delay: 0.18s; }
.menu-list a:hover span { color: var(--tan); }

.menu-foot {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.25s;
}
.menu.is-open .menu-foot { opacity: 1; }

body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  min-height: 78svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--gutter) 92px;
  overflow: hidden;
  background: var(--espresso-ink);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(20, 14, 10, 0.55) 0%,
      rgba(20, 14, 10, 0.22) 34%,
      rgba(20, 14, 10, 0.42) 72%,
      rgba(20, 14, 10, 0.62) 100%);
}

.hero-body {
  position: relative;
  color: #FDF8F0;
  max-width: 640px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 11.6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 28px rgba(16, 10, 6, 0.4);
}

.hero-sub {
  margin-top: 22px;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 2;
  opacity: 0.92;
}

.hero-body .btn { margin-top: 34px; }

.br-sm { display: none; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  color: rgba(253, 248, 240, 0.75);
}
.hero-scroll svg { width: 20px; }

/* ---------- Craft ---------- */
.craft-media {
  margin: 0 calc(var(--gutter) * -1) 40px 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.craft-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Food ---------- */
.food { background: transparent; }

.food-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.food-col { display: flex; flex-direction: column; gap: 34px; }
.food-col-offset { margin-top: 46px; }

.food-item figcaption {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: var(--espresso);
}
.food-item figcaption span { color: var(--muted); white-space: nowrap; }

.food-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.food-item.ratio-45 img { aspect-ratio: 4 / 5; }
.food-item.ratio-11 img { aspect-ratio: 1 / 1; }
.food-item.pos-bottom img { object-position: 50% 78%; }

/* ---------- Shop ---------- */
.shop { background: var(--cream-deep); max-width: none; }
.shop > * { max-width: var(--max); margin-inline: auto; }

.shop-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 63%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  margin-right: calc(var(--gutter) * -1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-row::-webkit-scrollbar { display: none; }
.shop-item { scroll-snap-align: start; }
.shop-item img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.shop-name {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
}
.shop-price { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* ---------- Visit ---------- */
.visit-media {
  margin: 0 calc(var(--gutter) * -1) 42px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.visit-media img { width: 100%; height: 100%; object-fit: cover; }

.visit-info {
  margin-top: 34px;
  display: grid;
  gap: 26px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.visit-info dt {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.visit-info dd { font-size: 0.98rem; line-height: 1.75; }
.visit-text .btn { margin-top: 36px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso-ink);
  color: #E9DFD1;
  padding: clamp(64px, 14vw, 100px) var(--gutter) 44px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.logo-footer { margin-bottom: 44px; }

.footer-cols {
  display: grid;
  gap: 30px;
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(233, 223, 209, 0.76);
}
.footer-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(233, 223, 209, 0.5);
  margin-bottom: 8px;
}

.footer-social {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-social a { padding-bottom: 4px; border-bottom: 1px solid rgba(233, 223, 209, 0.28); }
.footer-social a:hover { border-color: rgba(233, 223, 209, 0.75); }

.footer-base {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(233, 223, 209, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(233, 223, 209, 0.55);
}
.footer-legal a { border-bottom: 1px solid transparent; }
.footer-legal a:hover { border-color: rgba(233, 223, 209, 0.5); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Larger screens — the layout opens into an editorial grid
   ========================================================================== */

@media (min-width: 600px) {
  :root { --gutter: 40px; }
  .br-sm { display: inline; }
  .food-grid { gap: 22px; }
  .food-col { gap: 44px; }
  .shop-row { grid-auto-columns: 40%; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 240px)); }
}

@media (min-width: 900px) {
  :root { --gutter: 56px; }

  .hero { min-height: 92vh; min-height: 92svh; }
  .hero-sub { font-size: 0.8rem; }

  .craft {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
  }
  .craft-media { order: 2; margin: 0; aspect-ratio: 3 / 4; }
  .craft-text  { order: 1; }

  /* three-up editorial grid: the columns dissolve, the items stagger */
  .food-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .food-col { display: contents; }
  .food-col-offset { margin-top: 0; }
  .food-col .food-item:nth-child(2) { margin-top: 64px; }
  .food-col .food-item:nth-child(3) { margin-top: 24px; }

  .shop-row {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    overflow: visible;
    margin-right: 0;
  }

  .visit {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
  }
  .visit-media { margin: 0; aspect-ratio: 3 / 4; }
  .visit-info { grid-template-columns: 1fr 1fr; }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo cols"
      "social cols"
      "base base";
    align-items: start;
    column-gap: 60px;
  }
  .logo-footer   { grid-area: logo; margin-bottom: 28px; }
  .footer-cols   { grid-area: cols; grid-template-columns: repeat(2, minmax(0, 210px)); }
  .footer-social { grid-area: social; margin-top: 0; }
  .footer-base   { grid-area: base; }
}

@media (min-width: 1200px) {
  .section { padding-block: 170px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .menu-list a span { transform: none; }
}

/* ------------------------------------------------------------------
   cezdesigns-portfolio-embed
   This build is also framed as a scrollable preview inside the
   CezDesigns portfolio. Containing the overscroll stops a scroll that
   reaches this document's top or bottom edge from chaining out and
   moving the CezDesigns page behind it. Harmless when the site is
   viewed on its own.
   ------------------------------------------------------------------ */
html { overscroll-behavior-y: contain; }
