@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --paprika: #b6371f;
  --paprika-dark: #7e2513;
  --meadow: #2f6e4f;
  --meadow-dark: #1e4a34;
  --mustard: #c9931a;
  --mustard-dark: #8f6710;
  --ink: #2b241d;
  --muted: #6b6155;
  --bg: #faf4e6;
  --card: #fffdf8;
  --border: #e4d9bf;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Work Sans', -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.top-bar {
  background: var(--ink);
  color: #f3ead9;
  padding: 12px 24px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.top-bar a { color: #f3ead9; }

/* Signature element: folk embroidery strip, built from repeating diamonds */
.motif {
  height: 14px;
  width: 100%;
  background-image:
    linear-gradient(45deg, var(--paprika) 25%, transparent 25%, transparent 75%, var(--paprika) 75%),
    linear-gradient(45deg, var(--paprika) 25%, transparent 25%, transparent 75%, var(--paprika) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
  opacity: 0.85;
}
.motif.meadow {
  background-image:
    linear-gradient(45deg, var(--meadow) 25%, transparent 25%, transparent 75%, var(--meadow) 75%),
    linear-gradient(45deg, var(--meadow) 25%, transparent 25%, transparent 75%, var(--meadow) 75%);
}

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 20px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mustard-dark);
  margin-bottom: 14px;
}

h1.title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--ink);
}

.hero p.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

h2.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 4px;
}

.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.tile {
  display: block;
  position: relative;
  padding: 20px 20px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 5px;
  background: var(--tile-color, var(--paprika));
}

.tile:hover {
  transform: translateY(-3px);
  border-color: var(--tile-color, var(--paprika));
  box-shadow: 0 8px 18px -10px rgba(43, 36, 29, 0.35);
}

.tile:active {
  animation: tile-pulse 0.35s ease-out;
}

@keyframes tile-pulse {
  0%   { transform: translateY(-3px) scale(1); }
  35%  { transform: translateY(-3px) scale(0.94); box-shadow: 0 0 0 0 rgba(182, 55, 31, 0.35); }
  70%  { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 0 10px rgba(182, 55, 31, 0); }
  100% { transform: translateY(-3px) scale(1); }
}

.tile .tile-index {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tile-color, var(--paprika));
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}

.tile .tile-title {
  font-weight: 600;
  font-size: 1.02rem;
  display: block;
}

.tile .tile-sub {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.card-note {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--meadow);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 0.95rem;
}

audio.lesson-audio {
  width: 100%;
  margin: 10px 0 20px 0;
  accent-color: var(--paprika);
}

.audio-placeholder {
  border: 1px dashed var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 10px 0 20px 0;
  background: #fffaf0;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 30px 20px 40px;
}
