/* ============================================
   SKOY RECIPES — Shared Stylesheet
   Aesthetic: Smokehouse editorial — warm, dark,
   tactile, like a well-worn recipe card pinned
   to a board in a serious home kitchen.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --bark: #2c1a10;
  --smoke: #4a3228;
  --ember: #c44b2b;
  --honey: #e8a532;
  --cream: #faf5ee;
  --paper: #f3ebe0;
  --ash: #8a7e74;
  --char: #1a0f08;
  --copper: #b87333;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;

  --max-width: 680px;
  --side-pad: 1.25rem;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--bark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---- Texture overlay (subtle grain) ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ SITE HEADER ============ */
.site-header {
  background: linear-gradient(170deg, var(--char) 0%, var(--bark) 60%, var(--smoke) 100%);
  color: var(--cream);
  padding: 2.5rem var(--side-pad) 2rem;
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ember), var(--honey), var(--ember));
}

.site-header .brand {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.site-header .brand em {
  color: var(--honey);
  font-style: normal;
}

.site-header .tagline {
  font-size: 0.9rem;
  color: var(--ash);
  margin-top: 0.4rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.site-header nav {
  margin-top: 1.2rem;
}

.site-header nav a {
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 1.25rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.site-header nav a:hover {
  opacity: 1;
  text-decoration: none;
}

/* ============ CONTENT WRAPPER ============ */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* ============ INDEX PAGE ============ */
.index-intro {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}

.index-intro p {
  font-size: 1rem;
  color: var(--smoke);
  max-width: 520px;
}

.recipe-card {
  display: block;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none !important;
}

.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.recipe-card .card-category {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--ember);
  margin-bottom: 0.35rem;
}

.recipe-card .card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--bark);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.recipe-card .card-desc {
  font-size: 0.88rem;
  color: var(--ash);
  line-height: 1.5;
}

.recipe-card .card-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.recipe-card .tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0,0,0,0.04);
  color: var(--smoke);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

/* ============ RECIPE PAGE ============ */
.recipe-hero {
  background: linear-gradient(170deg, var(--char) 0%, var(--bark) 60%, var(--smoke) 100%);
  color: var(--cream);
  padding: 2.5rem var(--side-pad) 1.75rem;
  position: relative;
}

.recipe-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ember), var(--honey), var(--ember));
}

.recipe-hero .back-link {
  font-size: 0.78rem;
  color: var(--ash);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.recipe-hero .back-link:hover {
  color: var(--cream);
  text-decoration: none;
}

.recipe-hero h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.recipe-hero .subtitle {
  color: var(--honey);
  font-weight: 600;
  font-size: 0.9rem;
}

.recipe-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.recipe-meta .meta-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ---- Sections ---- */
.recipe-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.recipe-section:last-child { border-bottom: none; }

.section-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--smoke);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-heading .icon {
  width: 28px;
  height: 28px;
  background: var(--ember);
  color: white;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ---- Ingredients ---- */
.ing-group {
  background: var(--paper);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
}

.ing-group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ash);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.35rem 0;
  border-bottom: 1px dotted rgba(0,0,0,0.07);
  font-size: 0.9rem;
}

.ing-row:last-child { border-bottom: none; }

.ing-row .amt {
  color: var(--ember);
  font-weight: 700;
  white-space: nowrap;
  margin-left: 0.75rem;
  font-size: 0.85rem;
}

/* ---- Steps ---- */
.step {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.5rem;
}

.step-num {
  position: absolute;
  left: 0; top: 0;
  width: 2rem; height: 2rem;
  background: var(--bark);
  color: var(--honey);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-display);
}

.step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--smoke);
  margin-bottom: 0.25rem;
}

.step-body {
  font-size: 0.88rem;
  color: #5a4e44;
  line-height: 1.7;
}

.step-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  background: #fef3e0;
  color: var(--ember);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.2rem 0.6rem;
  border-radius: 14px;
}

/* ---- Tip cards ---- */
.tip-card {
  background: linear-gradient(135deg, var(--bark), var(--smoke));
  color: var(--cream);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.6rem;
}

.tip-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--honey);
  margin-bottom: 0.3rem;
}

.tip-card p {
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ---- Chips (meal ideas etc) ---- */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 18px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--smoke);
}

/* ---- Download link ---- */
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ember);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.15s;
  margin-top: 0.5rem;
}

.download-link:hover {
  background: #a83d22;
  text-decoration: none !important;
}

/* ---- Scaling table ---- */
.scale-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.scale-table th {
  text-align: left;
  font-weight: 700;
  padding: 0.5rem 0.4rem;
  border-bottom: 2px solid var(--bark);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--smoke);
}

.scale-table td {
  padding: 0.4rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.scale-table tr:last-child td { border-bottom: none; }

/* ============ FOOTER ============ */
.site-footer {
  text-align: center;
  padding: 2rem var(--side-pad);
  font-size: 0.75rem;
  color: var(--ash);
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 1rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
  .site-header .brand { font-size: 1.8rem; }
  .recipe-hero h1 { font-size: 1.6rem; }
  .section-heading { font-size: 1.15rem; }
}
