/* ============================================================
   Foglight Coffee — sample site by Belkadi Studio
   Warm editorial · Fraunces + DM Sans + DM Mono
   ============================================================ */
:root {
  --cream:   #f6efe3;
  --cream-2: #efe4d2;
  --paper:   #fffaf2;
  --espresso:#2a201a;
  --ink:     #1c140e;
  --amber:   #c2763a;
  --amber-d: #a85e28;
  --sage:    #6f7558;
  --muted:   rgba(42, 32, 26, 0.64);
  --line:    rgba(42, 32, 26, 0.14);
  --font-d:  "Fraunces", Georgia, serif;
  --font-b:  "DM Sans", system-ui, sans-serif;
  --font-m:  "DM Mono", monospace;
  --wrap: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--cream); color: var(--espresso);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--amber); color: var(--paper); }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }

.grain { position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- shared ---------- */
.eyebrow { font-family: var(--font-m); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber-d); display: inline-flex; align-items: center; gap: 0.8em; }
.eyebrow .line-mark { width: 26px; height: 2px; background: var(--amber); }
.eyebrow--light { color: var(--amber); }
.eyebrow--light .line-mark { background: var(--amber); }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-title { font-family: var(--font-d); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.98; letter-spacing: -0.02em; margin-top: 0.4em; font-optical-sizing: auto; }
.sec-title em { font-style: italic; color: var(--amber-d); font-weight: 500; }
.sec-title--sm { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.sec-title--light { color: var(--cream); }

.btn { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-b); font-weight: 600;
  font-size: 0.95rem; background: var(--espresso); color: var(--cream); padding: 0.8em 1.5em; border-radius: 100px;
  border: none; cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.3s; }
.btn:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(42,32,26,.6); }
.btn--lg { padding: 0.95em 1.8em; font-size: 1rem; }
.btn--ghost { background: transparent; color: var(--espresso); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: rgba(42,32,26,.05); box-shadow: inset 0 0 0 1.5px var(--espresso); }
.btn--cream { background: var(--cream); color: var(--espresso); }
.btn--cream:hover { background: #fff; }
.btn--ghost-light { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(246,239,227,.4); }
.btn--ghost-light:hover { background: rgba(246,239,227,.1); box-shadow: inset 0 0 0 1.5px var(--cream); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; color: var(--amber-d);
  border-bottom: 2px solid transparent; padding-bottom: 2px; transition: gap 0.3s var(--ease), border-color 0.3s; }
.link-arrow:hover { gap: 0.8em; border-color: var(--amber); }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.55em; color: var(--espresso); }
.brand__mark { color: var(--amber-d); display: inline-flex; }
.brand__name { font-family: var(--font-d); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.01em; }
.brand__name--lg { font-size: 2.4rem; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 20px 0;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s, padding 0.4s; }
.nav.is-stuck { background: rgba(246,239,227,0.82); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; margin-right: 24px; }
.nav__links a { font-size: 0.95rem; font-weight: 500; color: var(--muted); position: relative; transition: color 0.25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--amber); transition: width 0.3s var(--ease); }
.nav__links a:hover { color: var(--espresso); }
.nav__links a:hover::after { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: clamp(120px, 16vw, 180px) 0 clamp(60px, 8vw, 100px); position: relative; }
.hero::before { content: ""; position: absolute; top: -10%; right: -5%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(194,118,58,0.18), transparent 64%); pointer-events: none; z-index: 0; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero__title { font-family: var(--font-d); font-weight: 600; font-size: clamp(3rem, 8.5vw, 6.4rem); line-height: 0.94;
  letter-spacing: -0.03em; margin: 0.3em 0 0; font-optical-sizing: auto; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--amber-d); }
.hero__lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--muted); max-width: 44ch; margin-top: 1.3em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.9em; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.hero__facts dt { font-family: var(--font-m); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-d); }
.hero__facts dd { font-family: var(--font-d); font-size: 1.15rem; font-weight: 500; margin-top: 0.15em; }

/* coffee illustration */
.hero__art { position: relative; display: grid; place-items: center; min-height: 340px; }
.cup { position: relative; width: 320px; height: 320px; display: grid; place-items: center; }
.cup__saucer { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--paper), var(--cream-2));
  box-shadow: 0 50px 90px -45px rgba(42,32,26,.55), inset 0 0 0 1px rgba(42,32,26,.07); }
.cup__body { position: relative; width: 224px; height: 224px; border-radius: 50%;
  background: radial-gradient(circle at 40% 36%, #7a4d2b 0%, #3a2718 55%, #2a201a 100%);
  box-shadow: inset 0 0 0 11px var(--paper), inset 0 10px 34px rgba(0,0,0,.55), 0 18px 40px -20px rgba(42,32,26,.6); }
.cup__body::after { content: ""; position: absolute; inset: 26px; border-radius: 50%;
  border: 2px solid rgba(246,239,227,.12); }
.cup__steam { position: absolute; top: -2%; width: 9px; height: 64px; border-radius: 10px; filter: blur(2.5px); opacity: 0;
  background: linear-gradient(to top, rgba(42,32,26,0), rgba(42,32,26,.22)); animation: steam 3.6s ease-in-out infinite; }
.cup__steam:nth-child(1) { left: 42%; animation-delay: 0s; }
.cup__steam:nth-child(2) { left: 50%; animation-delay: 0.9s; height: 78px; }
.cup__steam:nth-child(3) { left: 58%; animation-delay: 1.7s; }
@keyframes steam { 0% { transform: translateY(14px) scaleY(0.6); opacity: 0; } 30% { opacity: 0.7; } 100% { transform: translateY(-46px) scaleY(1.25); opacity: 0; } }
.hero__stamp { position: absolute; top: 4%; right: 2%; width: 92px; height: 92px; border-radius: 50%;
  background: var(--amber); color: var(--paper); display: grid; place-items: center; text-align: center;
  font-family: var(--font-m); font-size: 0.62rem; letter-spacing: 0.14em; line-height: 1.5; transform: rotate(-12deg);
  box-shadow: 0 16px 30px -14px rgba(168,94,40,.7); }

/* ---------- strip ---------- */
.strip { background: var(--amber); color: var(--paper); padding: 14px 0; overflow: hidden;
  border-top: 1px solid rgba(42,32,26,.12); border-bottom: 1px solid rgba(42,32,26,.12); }
.strip__track { display: flex; align-items: center; gap: 30px; width: max-content; animation: scroll 34s linear infinite; }
.strip__track span { font-family: var(--font-d); font-style: italic; font-weight: 500; font-size: 1.2rem; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- menu ---------- */
.menu { padding: clamp(72px, 11vw, 140px) 0; }
.menu__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 4vw, 56px); }
.menu__cat { font-family: var(--font-d); font-style: italic; font-weight: 500; font-size: 1.5rem; color: var(--amber-d);
  margin-bottom: 0.8em; padding-bottom: 0.5em; border-bottom: 2px solid var(--line); }
.menu__list { list-style: none; display: grid; gap: 0.95em; }
.menu__list li { display: flex; align-items: baseline; gap: 8px; }
.menu__name { font-weight: 500; }
.menu__name em { font-style: italic; font-weight: 400; color: var(--muted); font-size: 0.9em; }
.dots { flex: 1; border-bottom: 1.5px dotted var(--line); transform: translateY(-3px); }
.menu__price { font-family: var(--font-m); font-size: 0.92rem; color: var(--amber-d); }
.menu__price::before { content: "$"; opacity: 0.6; }
.menu__note { margin-top: clamp(30px, 4vw, 48px); font-family: var(--font-d); font-style: italic; font-size: 1.1rem;
  color: var(--muted); text-align: center; }

/* ---------- story ---------- */
.story { background: var(--cream-2); padding: clamp(72px, 11vw, 140px) 0; }
.story__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.story__art { position: relative; height: clamp(320px, 38vw, 460px); }
.story__frame { position: absolute; border-radius: 14px; box-shadow: 0 30px 60px -34px rgba(42,32,26,.5); }
.story__frame--a { inset: 0 28% 22% 0; background: linear-gradient(150deg, #8a5a30, #3a2718); }
.story__frame--b { inset: 32% 0 0 30%; background: linear-gradient(150deg, var(--sage), #4c5240); border: 6px solid var(--cream-2); }
.story__badge { position: absolute; right: 6%; top: 4%; z-index: 2; width: 86px; height: 86px; border-radius: 50%;
  background: var(--paper); color: var(--espresso); display: grid; place-items: center; text-align: center;
  font-family: var(--font-m); font-size: 0.62rem; letter-spacing: 0.12em; line-height: 1.6;
  box-shadow: 0 14px 28px -14px rgba(42,32,26,.5); }
.story__badge b { font-family: var(--font-d); font-size: 1.1rem; }
.story__copy > p { color: var(--muted); font-size: 1.06rem; margin: 1em 0; max-width: 52ch; }
.story__copy .link-arrow { margin-top: 0.4em; }

/* ---------- visit ---------- */
.visit { background: var(--espresso); color: var(--cream); padding: clamp(72px, 11vw, 140px) 0; }
.visit__inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.visit__addr { font-family: var(--font-d); font-size: 1.5rem; line-height: 1.4; margin-top: 1em; color: var(--cream); }
.visit__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }
.visit__hours { background: rgba(246,239,227,.06); border: 1px solid rgba(246,239,227,.14); border-radius: 18px; padding: clamp(26px, 3vw, 38px); }
.visit__hours h3 { font-family: var(--font-d); font-style: italic; font-weight: 500; font-size: 1.5rem; color: var(--amber); margin-bottom: 0.8em; }
.visit__hours ul { list-style: none; display: grid; gap: 0.9em; }
.visit__hours li { display: flex; justify-content: space-between; gap: 1em; padding-bottom: 0.9em; border-bottom: 1px solid rgba(246,239,227,.12); font-size: 0.98rem; }
.visit__hours li:last-child { border-bottom: none; padding-bottom: 0; }
.visit__hours li span:first-child { color: rgba(246,239,227,.7); }
.visit__kitchen span:last-child { color: var(--amber); font-family: var(--font-m); font-size: 0.85rem; }

/* ---------- footer ---------- */
.footer { background: var(--cream); padding: clamp(50px, 7vw, 80px) 0 32px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.footer__nav a:hover { color: var(--amber-d); }
.footer__base { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: clamp(30px, 5vw, 50px);
  padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.footer__credit a { color: var(--amber-d); font-weight: 600; border-bottom: 1.5px solid var(--amber); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }
.reveal[data-d="4"] { transition-delay: 0.4s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; min-height: 280px; }
  .menu__cols { grid-template-columns: 1fr; gap: 36px; }
  .story__inner, .visit__inner { grid-template-columns: 1fr; }
  .story__art { max-width: 420px; }
}
@media (max-width: 520px) { .wrap { padding: 0 20px; } .cup { width: 260px; height: 260px; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
