:root {
  --espresso: #1c1410;
  --bark: #2a1f1a;
  --bark-soft: #332620;
  --crema: #f3e9d8;
  --gold: #c9a35c;
  --gold-bright: #e0bd7e;
  --ember: #d96c39;
  --smoke: #9c8f80;
  --line: rgba(243,233,216,0.12);
  --speed: 0.4s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--espresso);
  color: var(--crema);
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background var(--speed) ease, padding var(--speed) ease, box-shadow var(--speed) ease;
}
.nav.scrolled {
  background: rgba(28,20,16,0.92);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand span { color: var(--gold); font-style: italic; font-weight: 400; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 0.92rem; letter-spacing: 0.02em; position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--speed) ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.05em;
  border: 1px solid var(--gold); color: var(--gold-bright); padding: 9px 18px;
  border-radius: 2px; transition: background var(--speed) ease, color var(--speed) ease;
}
.nav-cta:hover { background: var(--gold); color: var(--espresso); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
  /* Added heart latte art background, dimmed with the espresso color */
  background: linear-gradient(rgba(28, 20, 16, 0.8), rgba(28, 20, 16, 0.95)), 
              url('https://images.unsplash.com/photo-1541167760496-1628856ab772?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}
.steam {
  position: absolute; bottom: -10%; border-radius: 50%; filter: blur(40px); opacity: 0.5;
  background: radial-gradient(circle, rgba(201,163,92,0.35), transparent 70%);
  animation: rise 14s ease-in infinite; pointer-events: none;
}
.steam.s1 { left: 8%; width: 260px; height: 420px; animation-delay: 0s; }
.steam.s2 { left: 55%; width: 200px; height: 340px; animation-delay: 4s; opacity: 0.35; }
.steam.s3 { left: 80%; width: 180px; height: 300px; animation-delay: 9s; opacity: 0.3; }

@keyframes rise {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  15% { opacity: 0.5; }
  50% { transform: translateY(-180px) translateX(20px) scale(1.15); }
  100% { transform: translateY(-420px) translateX(-10px) scale(1.3); opacity: 0; }
}

.hero-inner { position: relative; z-index: 2; max-width: 680px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 18px 0 22px; color: var(--crema); }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold-bright); }
.hero p.lede { font-size: 1.08rem; color: var(--smoke); max-width: 520px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px;
  font-family: 'Work Sans', sans-serif; font-size: 0.94rem; font-weight: 500;
  letter-spacing: 0.01em; border-radius: 2px;
  transition: transform var(--speed) ease, background var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease;
}
.btn-primary { background: var(--gold); color: var(--espresso); border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--crema); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.hero-divider { width: 46px; height: 2px; background: var(--gold); margin-bottom: 18px; }

/* ---------- section shared ---------- */
section { padding: 120px 0; }
.section-head { margin-bottom: 64px; max-width: 560px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin-top: 14px; color: var(--crema); }
.section-head p { color: var(--smoke); margin-top: 14px; font-size: 1rem; }

/* ---------- menu ---------- */
.menu { background: var(--bark); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 80px; }
.menu-cat h3 { font-size: 1.15rem; font-style: italic; color: var(--gold-bright); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.menu-item { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.menu-item .name { flex-shrink: 0; font-size: 1rem; color: var(--crema); }
.menu-item .desc { display: block; font-size: 0.84rem; color: var(--smoke); margin-top: 3px; font-style: normal; }
.menu-item .name-wrap { display: flex; flex-direction: column; flex-shrink: 0; max-width: 62%; }
.leader { flex: 1; border-bottom: 1px dotted rgba(243,233,216,0.28); margin-bottom: 6px; min-width: 20px; }
.menu-item .price { font-family: 'IBM Plex Mono', monospace; font-size: 0.92rem; color: var(--gold); flex-shrink: 0; }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.visit .section-head { margin-bottom: 36px; }
.hours-table { width: 100%; border-collapse: collapse; font-family: 'IBM Plex Mono', monospace; font-size: 0.94rem; margin-bottom: 36px; }
.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 14px 0; }
.hours-table td:first-child { color: var(--smoke); letter-spacing: 0.04em; }
.hours-table td:last-child { text-align: right; color: var(--crema); }
.addr { color: var(--smoke); font-size: 0.96rem; margin-bottom: 8px; }
.addr strong { color: var(--crema); display: block; font-weight: 500; margin-bottom: 4px; font-family: 'Work Sans'; font-style: normal; }
.note { font-size: 0.86rem; color: var(--smoke); border-left: 2px solid var(--gold); padding-left: 16px; margin-top: 28px; }
.cup-art { width: 100%; max-width: 340px; margin: 0 auto; }
.cup-art .ring { stroke: var(--gold); stroke-width: 1.4; fill: none; opacity: 0.85; }

/* ---------- reserve ---------- */
.reserve { background: var(--bark); }
.ticket {
  position: relative; max-width: 560px; margin: 0 auto; background: var(--bark-soft);
  border: 1px solid var(--line); padding: 48px 44px 40px; border-radius: 2px;
}
.ticket::before, .ticket::after {
  content: ''; position: absolute; left: 0; right: 0; height: 14px;
  background-image: radial-gradient(circle, var(--espresso) 5px, transparent 5.5px);
  background-size: 22px 14px; background-repeat: repeat-x; background-position: center;
}
.ticket::before { top: -7px; }
.ticket::after { bottom: -7px; }
.stamp {
  position: absolute; top: 34px; right: 38px; border: 1.5px solid var(--ember);
  color: var(--ember); font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem;
  letter-spacing: 0.18em; padding: 6px 10px; transform: rotate(-8deg); opacity: 0.85;
}
.ticket h2 { font-size: 1.7rem; margin-bottom: 8px; color: var(--crema); }
.ticket .sub { color: var(--smoke); font-size: 0.92rem; margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke); margin-bottom: 8px; }
.field input, .field select {
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  color: var(--crema); font-family: 'Work Sans', sans-serif; font-size: 0.96rem;
  padding: 8px 2px; transition: border-color var(--speed) ease;
}
.field select option { background: var(--bark-soft); color: var(--crema); }
.field input::placeholder { color: rgba(156,143,128,0.6); }
.field input:focus, .field select:focus { border-color: var(--gold); }
.ticket .btn-primary { width: 100%; justify-content: center; margin-top: 14px; border: 1px solid var(--gold); cursor: pointer; }
.confirm { display: none; text-align: center; padding: 20px 0 4px; }
.confirm.show { display: block; }
.confirm .eyebrow { display: block; margin-bottom: 10px; }
.confirm p { color: var(--smoke); font-size: 0.92rem; }
.ticket form.hide { display: none; }

/* ---------- footer ---------- */
footer { padding: 64px 0 36px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { display: block; margin-bottom: 10px; }
.footer-brand p { color: var(--smoke); font-size: 0.88rem; max-width: 280px; }
.footer-col h4 { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--smoke); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 0.9rem; color: var(--crema); margin-bottom: 8px; }
.footer-col a { transition: color var(--speed) ease; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--smoke); font-family: 'IBM Plex Mono', monospace; }

/* ---------- scroll animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width:860px){
  .menu-grid { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .cup-art { max-width: 220px; margin-top: 20px; }
  .nav-links { display: none; }
  section { padding: 84px 0; }
}
@media (max-width:560px){
  .form-row { grid-template-columns: 1fr; }
  .ticket { padding: 40px 26px 32px; }
  .stamp { top: 24px; right: 22px; }
}

/* ---------- performance ---------- */
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  .steam { animation: none; opacity: 0.18; }
  .btn:hover, .nav-cta:hover { transform: none; }
  * { transition-duration: 0.01ms !important; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}
@media (update: slow){
  .steam { display: none; }
  .nav.scrolled { backdrop-filter: none; }
  .btn:hover, .nav-cta:hover { transform: none; }
}