:root {
  --bg: #0f0d0b;
  --card: #121212;
  --muted: #bfb8b0;
  --accent: #caa77b;
  --glass: rgba(255, 255, 255, 0.04);
  --container-width: 1200px;
  --shadow: 0 10px 30px rgba(2, 2, 2, 0.6);
  --card-elev: 0 6px 18px rgba(2, 2, 2, 0.45);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #0b0a09 0%, #141312 70%);
  color: #efece6;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem;
}
.site-header {
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.06));
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.6px;
}
.nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}
.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.25rem;
}

.hero {
  padding: 4rem 0 6rem;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: center;
}
.hero-copy {
  max-width: 720px;
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.2rem;
  margin: 0 0 0.4rem;
  color: #fff;
  letter-spacing: -0.5px;
}
.tagline {
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1rem;
}
.hero-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.hero-visual {
  height: 260px;
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.35)
    ),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #141312;
  text-decoration: none;
  font-weight: 600;
}

.about h2,
.roasts-header h2,
.contact h2 {
  font-family: "Playfair Display", serif;
  color: #fff;
  margin-top: 0;
}
.about p {
  color: var(--muted);
}

.roasts {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.roasts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-btn.active {
  background: var(--accent);
  color: #141312;
  border-color: transparent;
}

.roast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.25rem;
}
.roast-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(0, 0, 0, 0.06)
  );
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.22s;
}
.roast-card:hover,
.roast-card:focus {
  transform: translateY(-6px);
  box-shadow: var(--card-elev);
}
.roast-meta {
  padding: 1rem;
}
.roast-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.12rem;
}
.muted {
  color: var(--muted);
  font-size: 0.92rem;
}
.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.pill {
  background: var(--glass);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
}
.thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
}
.modal[aria-hidden="false"] {
  display: flex;
}
.modal-content {
  background: var(--card);
  padding: 1.25rem;
  border-radius: 12px;
  max-width: 820px;
  width: 100%;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  position: relative;
}
.modal-close {
  position: absolute;
  right: 0.6rem;
  top: 0.4rem;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 2rem 0;
  margin-top: 2rem;
  color: var(--muted);
}

/* Subtle animations */
@media (prefers-reduced-motion: no-preference) {
  .roast-card {
    will-change: transform;
  }
}

/* Responsive */
@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    height: 180px;
  }
}
@media (max-width: 800px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .container {
    padding: 1rem;
  }
}
