:root {
  --cream: #FAF3E8;
  --paper: #FFFDF8;
  --ink: #3A2E23;
  --rust: #B5502F;
  --sage: #6B7654;
  --tan: #D9C7A8;
  --border: #C9B48C;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  line-height: 1.6;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--border);
  background: var(--paper);
}

.site-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--rust);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-header nav a {
  margin-left: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover {
  border-bottom: 2px solid var(--rust);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  font-size: 2rem;
  color: var(--rust);
  margin-bottom: 0.25rem;
}

.recipes-intro {
  color: #6b5a45;
  margin-bottom: 2rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.recipe-card {
  text-decoration: none;
  color: inherit;
}

.recipe-card-inner {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 2px 2px 0 var(--tan);
}

.recipe-card:hover .recipe-card-inner {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--tan);
}

.recipe-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--ink);
}

.recipe-card p {
  margin: 0 0 0.75rem;
  color: #6b5a45;
  font-size: 0.95rem;
}

.recipe-time {
  font-size: 0.85rem;
  color: var(--sage);
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--rust);
  text-decoration: none;
}

.recipe-meta {
  display: flex;
  gap: 1.25rem;
  color: var(--sage);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.ingredients {
  background: var(--paper);
  border-left: 4px solid var(--rust);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.ingredients h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--rust);
}

.ingredients ul {
  margin: 0;
  padding-left: 1.2rem;
}

.recipe-body {
  font-size: 1.05rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: #9c8b73;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Shared section intro text (lessons, photos) */
.lessons-intro,
.photos-intro,
.album-summary {
  color: #6b5a45;
  margin-bottom: 2rem;
}

/* Card grids */
.lessons-grid,
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.lesson-card,
.album-card {
  text-decoration: none;
  color: inherit;
}

.lesson-card-inner,
.album-card-inner {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 2px 2px 0 var(--tan);
}

.lesson-card:hover .lesson-card-inner,
.album-card:hover .album-card-inner {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--tan);
}

.lesson-card h2,
.album-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--ink);
}

.lesson-card p,
.album-card p {
  margin: 0 0 0.75rem;
  color: #6b5a45;
  font-size: 0.95rem;
}

.lesson-by {
  display: block;
  font-size: 0.85rem;
  color: var(--sage);
}

.lesson-meta {
  display: flex;
  gap: 1.25rem;
  color: var(--sage);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.lesson-body {
  font-size: 1.05rem;
}

.album-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

/* Photos */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.photo-item {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 2px 2px 0 var(--tan);
}

.photo-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
