:root {
  --bg: #f3eadb;
  --bg-alt: #ebdfcb;
  --surface: #fbf6ee;
  --text: #2a1f17;
  --muted: #6e5d4f;
  --accent: #d9984f;
  --accent-text: #965517;
  --accent-ink: #1a120c;
  --line: rgba(42, 31, 23, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  letter-spacing: -0.02em;
}

h1 em {
  color: var(--accent-text);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 0.95rem var(--sans);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.btn:hover {
  background: #e5a961;
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

.link-arrow {
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.link-arrow:hover {
  border-color: var(--accent);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 234, 219, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font: 600 1.3rem var(--serif);
}

.logo svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
}

.nav a:not(.btn) {
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s;
}

.nav-toggle span:first-child {
  top: 15px;
}

.nav-toggle span:last-child {
  top: 23px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  background: radial-gradient(ellipse at 75% 40%, rgba(217, 152, 79, 0.18), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.cup {
  position: relative;
  width: 220px;
  height: 260px;
}

.cup-body {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 220px;
  height: 150px;
  background: linear-gradient(160deg, #4a382b, #22180f);
  border-radius: 0 0 110px 110px;
  overflow: hidden;
}

.crema {
  height: 26px;
  margin: 0 8px;
  background: radial-gradient(ellipse at 40% 50%, #d39a5c, #7a4a26 70%);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.cup-handle {
  position: absolute;
  bottom: 85px;
  right: -42px;
  width: 60px;
  height: 64px;
  border: 14px solid #3a2b20;
  border-left: 0;
  border-radius: 0 40px 40px 0;
}

.saucer {
  position: absolute;
  bottom: 20px;
  left: -40px;
  width: 300px;
  height: 30px;
  background: #2e2219;
  border-radius: 50%;
  box-shadow: 0 30px 60px rgba(60, 40, 20, 0.25);
}

.steam {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  gap: 18px;
  transform: translateX(-50%);
}

.steam i {
  display: block;
  width: 8px;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(to top, rgba(42, 31, 23, 0.25), transparent);
  filter: blur(3px);
  animation: steam 3.2s ease-in-out infinite;
}

.steam i:nth-child(2) {
  animation-delay: 0.8s;
}

.steam i:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes steam {
  0% {
    transform: translateY(20px) scaleY(0.6);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-30px) scaleY(1.2);
    opacity: 0;
  }
}

.roast-tag {
  position: absolute;
  right: 0;
  bottom: 10px;
  padding: 0.9rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.roast-tag strong {
  display: block;
  font: 600 1.1rem var(--serif);
  color: var(--text);
}

/* Ticker */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  font: italic 400 1.4rem var(--serif);
  color: var(--muted);
  animation: ticker 30s linear infinite;
}

.ticker-track span:nth-child(even) {
  color: var(--accent-text);
}

@keyframes ticker {
  to {
    transform: translateX(calc(-50% - 1.25rem));
  }
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* Beans */
.filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.chip {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 500 0.9rem var(--sans);
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  color: var(--text);
}

.chip.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.beans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.bean {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.25s, border-color 0.25s, opacity 0.25s;
}

.bean:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 164, 88, 0.4);
}

.bean.is-hidden {
  display: none;
}

.bean-swatch {
  aspect-ratio: 4 / 3;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 40%),
    linear-gradient(135deg, var(--c1), var(--c2));
}

.bean-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.bean p {
  color: var(--muted);
  font-size: 0.93rem;
  flex: 1;
}

.bean-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.bean-foot strong {
  font: 600 1.15rem var(--serif);
}

.bean-foot small {
  color: var(--muted);
}

/* Bar */
.bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0;
  font-size: 1.05rem;
}

.menu-list i {
  flex: 1;
  border-bottom: 1px dotted var(--line);
}

.menu-list li span:last-child {
  font-family: var(--serif);
  color: var(--accent-text);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.steps li {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.step-no {
  display: block;
  font: italic 400 2.5rem var(--serif);
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}

.steps p {
  color: var(--muted);
}

/* Abo */
.abo {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.2), transparent 50%),
    var(--accent);
  color: var(--accent-ink);
}

.abo .kicker {
  color: var(--accent-ink);
  opacity: 0.7;
}

.abo-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.abo-form input {
  flex: 1 1 220px;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(26, 18, 12, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  font: 400 1rem var(--sans);
  color: var(--accent-ink);
}

.abo-form input::placeholder {
  color: rgba(26, 18, 12, 0.55);
}

.abo-form input:focus {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

.abo-form .btn {
  background: var(--accent-ink);
  color: var(--bg);
}

.form-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.75;
}

/* Visit */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
}

.open-state {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.open-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.open-state.is-open::before {
  background: #7fc28a;
  box-shadow: 0 0 0 4px rgba(127, 194, 138, 0.2);
}

.hours {
  margin: 0;
}

.hours div {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.hours dt {
  color: var(--muted);
}

.hours dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer a:hover {
  color: var(--accent-text);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .beans {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .bar-grid,
  .abo,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .bar-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 16px 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav .btn {
    margin-top: 1rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 320px;
  }

  .cup {
    transform: scale(0.85);
  }
}

@media (max-width: 520px) {
  .beans {
    grid-template-columns: 1fr;
  }

  .menu-list {
    padding: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
