/* ==========================================================
   BURNS BUNS — sourdough baking courses
   Palette: flour, espresso crust, burnished gold
   Type: Young Serif (display) · Albert Sans (body) · Space Mono (labels)
   ========================================================== */

:root {
  --flour:    #FAF7F0;
  --rye:      #F0E8D8;
  --espresso: #241609;
  --crust:    #7A4A24;
  --gold:     #D9993F;
  --gold-hi:  #E8B15E;

  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Albert Sans", -apple-system, sans-serif;
  --font-label: "Space Mono", monospace;

  --max-w: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--flour);
  color: var(--espresso);
  line-height: 1.6;
  font-size: 1.0625rem;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; }

h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 0.6em; }
h3 { font-size: 1.35rem; margin-bottom: 0.4em; }

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--crust);
  margin-bottom: 1.1rem;
}

.eyebrow-light { color: var(--gold-hi); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

.btn-gold { background: var(--gold); color: var(--espresso); }
.btn-gold:hover { background: var(--gold-hi); }

.btn-ghost { border-color: var(--gold); color: var(--gold-hi); }
.btn-ghost:hover { background: rgba(217, 153, 63, 0.14); }

.btn-dark { background: var(--espresso); color: var(--flour); }
.btn-dark:hover { background: var(--crust); }

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-decoration: none;
}

.wordmark-bun { width: 30px; height: 30px; }

.site-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-family: var(--font-label);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.site-nav a { text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.site-nav a:hover { border-bottom-color: var(--gold); }

/* ---------- hero ---------- */

.hero {
  background: var(--espresso);
  color: var(--flour);
  position: relative;
  padding: 4.5rem 1.5rem 3rem;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-sub {
  font-size: 1.18rem;
  max-width: 30em;
  margin: 1.3rem 0 2.1rem;
  color: #EDE0CB;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-art { display: flex; justify-content: center; }

.boule { width: min(100%, 360px); }

@keyframes rise {
  from { transform: translateY(26px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes drift {
  0%, 100% { transform: translateY(0);    opacity: 0.35; }
  50%      { transform: translateY(-7px); opacity: 0.9;  }
}

.boule { animation: rise 0.9s ease-out both; }

.steam { animation: drift 3.2s ease-in-out infinite; transform-origin: center; }
.steam-2 { animation-delay: 0.6s; }
.steam-3 { animation-delay: 1.2s; }

.hero-scores { display: block; width: 100%; height: 34px; margin-top: 2.5rem; }

/* ---------- sections ---------- */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-lede { max-width: 42em; font-size: 1.12rem; margin-bottom: 2.5rem; }

.section-tint {
  max-width: none;
  background: var(--rye);
}

.section-tint > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }

.section-tint .section-lede,
.section-tint .eyebrow,
.section-tint h2 { max-width: var(--max-w); }

.section-tint { padding: 5rem 1.5rem; }

.section-dark {
  max-width: none;
  background: var(--espresso);
  color: var(--flour);
  padding: 5rem 1.5rem;
}

.section-dark > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }

/* ---------- courses / empty state ---------- */

.empty-card {
  background: #FFFFFF;
  border: 2px dashed var(--crust);
  border-radius: 18px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 560px;
}

.empty-icon { width: 60px; height: 60px; margin: 0 auto 1.2rem; }

.empty-card p { max-width: 32em; margin: 0.5rem auto 1.6rem; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.course-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 1.8rem;
  border: 1px solid #E5DAC5;
}

.course-date {
  font-family: var(--font-label);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--crust);
  margin-bottom: 0.7rem;
}

.course-meta {
  font-family: var(--font-label);
  font-size: 0.82rem;
  color: var(--crust);
  margin: 0.9rem 0 1.3rem;
}

/* ---------- order / cities ---------- */

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.city-card {
  background: var(--flour);
  border-radius: 18px;
  padding: 1.8rem;
  border: 1px solid #E0D5BE;
}

.city-status {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.status-now   { background: var(--gold); color: var(--espresso); }
.status-soon  { background: var(--espresso); color: var(--flour); }
.status-later { background: transparent; color: var(--crust); border: 1.5px solid var(--crust); }

.order-note { margin-top: 2.2rem; font-size: 1.05rem; }
.order-note a { color: var(--crust); font-weight: 700; }

/* ---------- meet the baker ---------- */

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

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), transparent 55%),
    linear-gradient(160deg, var(--gold-hi), var(--gold) 55%, var(--crust));
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder span {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--espresso);
  opacity: 0.85;
}

.baker-photo img { border-radius: 18px; }

.baker-copy p { margin-bottom: 1.2rem; max-width: 36em; }

.baker-copy .btn { margin-top: 0.4rem; }

/* ---------- instagram ---------- */

.ig-handle { color: var(--gold-hi); text-decoration-color: var(--gold); text-underline-offset: 5px; }
.ig-handle:hover { color: var(--gold); }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.ig-tile {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1.5px solid rgba(217, 153, 63, 0.45);
  background: rgba(217, 153, 63, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14%;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ig-tile:hover { transform: translateY(-4px); background: rgba(217, 153, 63, 0.16); }

.ig-tile svg { width: 100%; height: 100%; }

.ig-note {
  margin-top: 2rem;
  color: #D8C8AC;
  font-size: 0.98rem;
}

/* ---------- footer ---------- */

.site-footer { background: var(--flour); }

.footer-score { display: block; width: 100%; height: 26px; }

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.2rem 1.5rem 3rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.footer-links { font-family: var(--font-label); font-size: 0.88rem; }
.footer-links span { margin: 0 0.5rem; color: var(--crust); }

.footer-fine {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--crust);
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .boule { width: min(60%, 260px); }
  .baker-grid { grid-template-columns: 1fr; gap: 2rem; }
  .photo-placeholder { max-width: 340px; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .section, .section-tint, .section-dark { padding: 3.5rem 1.25rem; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boule, .steam { animation: none; }
  .btn:hover, .ig-tile:hover { transform: none; }
}
