/* Fringe Table - Recipe Website Styles */
:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --text: #2c2416;
  --muted: #6b5e4a;
  --accent: #c45c26;
  --accent-dark: #9a4519;
  --border: #e8e0d4;
  --hero-bg: #1a1610;
  --success: #3d6b4f;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(44, 36, 22, 0.08);
  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

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

/* Header */
header {
  background: var(--hero-bg);
  color: #f5f0e8;
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #f5f0e8;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

nav a {
  color: #d4cbb8;
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover {
  color: #fff;
}

/* Hero */
.hero {
  background: linear-gradient(145deg, #1a1610 0%, #2c2416 55%, #3d3220 100%);
  color: #f5f0e8;
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 5.5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 2.2rem;
  font-size: 1.18rem;
  color: #c9bfa8;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.02rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(196, 92, 38, 0.35);
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 92, 38, 0.4);
}

/* Main content */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

section {
  margin-bottom: 4.5rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.section-intro {
  color: var(--muted);
  margin-bottom: 2.2rem;
  max-width: 660px;
  font-size: 1.05rem;
}

/* Recipe grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.85rem;
}

.recipe-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(44, 36, 22, 0.13);
}

.card-image {
  height: 190px;
  background: linear-gradient(135deg, #e8d9c0, #d4c4a8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.6rem;
  position: relative;
}

.card-image::after {
  content: attr(data-origin);
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(26, 22, 16, 0.78);
  color: #f5f0e8;
  font-size: 0.7rem;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.card-meta {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.card-body p {
  font-size: 0.96rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1.15rem;
  line-height: 1.55;
}

.card-link {
  font-weight: 600;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link::after {
  content: "→";
  transition: transform 0.2s;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* About box */
.about-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 2.4rem;
  box-shadow: var(--shadow);
}

.about-box p {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.about-box p:last-child {
  margin-bottom: 0;
}

/* Recipe page specific */
.recipe-header {
  margin-bottom: 2.6rem;
}

.recipe-header .origin {
  display: inline-block;
  background: #f0e6d6;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.32rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recipe-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 2.7rem);
  margin-bottom: 0.7rem;
  line-height: 1.2;
}

.recipe-header .lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 660px;
  line-height: 1.7;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 1.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.meta-row strong {
  color: var(--text);
  font-weight: 600;
}

.recipe-layout {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 2.6rem;
  align-items: start;
}

@media (max-width: 800px) {
  .recipe-layout {
    grid-template-columns: 1fr;
  }
}

.ingredients-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 5.2rem;
}

.ingredients-box h2 {
  font-size: 1.28rem;
  margin-bottom: 1.05rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--border);
}

.ingredients-box ul {
  list-style: none;
}

.ingredients-box li {
  padding: 0.48rem 0;
  border-bottom: 1px solid #f0ebe3;
  font-size: 0.96rem;
  display: flex;
  gap: 0.55rem;
}

.ingredients-box li:last-child {
  border-bottom: none;
}

.ingredients-box .qty {
  font-weight: 600;
  color: var(--accent-dark);
  min-width: 4.6rem;
}

.steps h2 {
  font-size: 1.45rem;
  margin-bottom: 1.35rem;
}

.step {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}

.step-num {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
}

.step p {
  color: var(--text);
  padding-top: 0.22rem;
  line-height: 1.6;
}

.notes {
  background: #f7f2e9;
  border-left: 4px solid var(--accent);
  padding: 1.35rem 1.6rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 2.2rem;
}

.notes h3 {
  font-size: 1.02rem;
  margin-bottom: 0.55rem;
  color: var(--accent-dark);
}

.notes p {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Ad placeholder */
.ad-placeholder {
  background: #f5f0e6;
  border: 1px dashed #c9b99a;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  color: #8a7a62;
  font-size: 0.9rem;
  margin: 2rem 0;
}

/* Footer */
footer {
  background: var(--hero-bg);
  color: #a89b84;
  text-align: center;
  padding: 2.8rem 1.5rem;
  font-size: 0.92rem;
}

footer a {
  color: #d4cbb8;
}

footer a:hover {
  color: #fff;
}

footer p {
  margin-bottom: 0.45rem;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Utility */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
  font-size: 0.95rem;
}

.back-link::before {
  content: "←";
}

@media (max-width: 600px) {
  nav ul {
    gap: 1rem;
  }
  .hero {
    padding: 3.8rem 1.25rem 3.2rem;
  }
  .ingredients-box {
    position: static;
  }
  .about-box {
    padding: 1.6rem 1.4rem;
  }
}