/* ---- Design tokens ---- */
:root {
  --espresso: #1a1410;      /* dark-roast background */
  --espresso-deep: #120d0a; /* deeper brown */
  --oat: #f5f0e8;           /* cream text */
  --oat-dim: #c4b6a4;       /* muted warm text */
  --crema: #dd9a55;         /* amber / caramel accent */
  --line: #38291d;          /* hairline borders */

  --display: "Instrument Serif", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  color: var(--oat);
  background: var(--espresso);
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 64px);
}

.brand {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--oat-dim);
}
.nav a { transition: color 0.2s; }
.nav a:hover { color: var(--oat); }

/* ---- Hero ---- */
.hero {
  flex: 1;                       /* fill remaining screen height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 760px;
  padding: 40px clamp(20px, 5vw, 64px);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crema);
  margin: 0 0 20px;
}

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 104px);   /* fluid: scales with the screen */
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--crema);
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--oat-dim);
  max-width: 520px;
  margin: 0 0 36px;
}

/* ---- Buttons ---- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--crema);
  color: var(--espresso-deep);
}
.btn-primary:hover { background: #e8ac6d; }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--oat);
}
.btn-ghost:hover { border-color: var(--crema); }

/* ---- Featured roasts ---- */
.roasts {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--espresso-deep);
}

.section-head {
  max-width: 620px;
  margin: 0 0 clamp(36px, 6vw, 60px);
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 16px;
}

.section-note {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: var(--oat-dim);
  margin: 0;
}

.roast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));  /* reflows 3 -> 2 -> 1 on its own */
  gap: 20px;
}

.roast-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--espresso);
  transition: transform 0.18s, border-color 0.2s;
}
.roast-card:hover {
  transform: translateY(-4px);
  border-color: var(--crema);
}

.roast-level {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--oat-dim);
  margin-bottom: 18px;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-light  { background: #e8cfa6; }
.dot-medium { background: #c17e42; }
.dot-dark   { background: #5c3a24; }

.roast-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 6px;
}

.roast-origin {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--crema);
  margin: 0 0 16px;
}

.roast-notes {
  font-size: 15px;
  line-height: 1.6;
  color: var(--oat-dim);
  margin: 0 0 28px;
}

.roast-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;         /* pins the footer down so cards align even with uneven notes */
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.price { font-family: var(--display); font-size: 24px; }

.add {
  font-size: 14px;
  font-weight: 500;
  color: var(--oat);
  transition: color 0.2s;
}
.add:hover { color: var(--crema); }

/* ---- Small screens ---- */
@media (max-width: 640px) {
  .nav { display: none; }   /* keep it simple on phones for now */
}

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