/* ==========================================================================
   Brilliantly Yum — shared stylesheet
   Warm, editorial food-blog look. Edit the CSS variables below to re-theme.
   ========================================================================== */

:root {
  --cream: #f7f6f3;
  --cream-dark: #ece9e2;
  --charcoal: #17140f;
  --black: #0d0b09;
  --terracotta: #17140f;
  --terracotta-dark: #000000;
  --olive: #8a6d1f;
  --gold: #c49b42;
  --gold-light: #e4c878;
  --white: #ffffff;
  --max-width: 1100px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 11, 9, 0.12);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead {
  text-align: center;
  padding: 10px 24px 6px;
  border-bottom: 1px solid var(--cream-dark);
}

.masthead a {
  display: inline-block;
}

.masthead img {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}

.nav-bar {
  background: var(--black);
  width: 100%;
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-links a { color: var(--gold-light); }

.nav-social a {
  background: var(--gold);
  color: var(--black);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand span { color: var(--olive); }

.brand-icon {
  height: 40px;
  width: auto;
  display: block;
}

.hero-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  letter-spacing: 1px;
  color: var(--terracotta);
  text-align: center;
  line-height: 1;
  margin-bottom: 18px;
}

.hero-wordmark span { color: var(--olive); }

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--gold);
  color: var(--black);
}

.nav-social a {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 32px 0 30px;
  text-align: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 14px;
}

.hero p.lede {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.15rem;
  color: #4a423c;
}

.hero-subhead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 0.75px;
  color: #8a6415;
  text-shadow: 0 1px 1px rgba(13, 11, 9, 0.12);
  text-transform: uppercase;
  margin-top: 6px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--black);
  color: var(--gold-light);
  border: 1px solid var(--black);
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
  margin-left: 10px;
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* ---------- Category grid (homepage) ---------- */

.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: #6b6259;
  max-width: 560px;
  margin: 0 auto 36px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
  border-top: 4px solid var(--gold);
}

.category-card:hover { transform: translateY(-4px); }

.category-card .emoji {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}

.category-card h3 { margin-bottom: 6px; }

.category-card p {
  font-size: 0.92rem;
  color: #6b6259;
  margin-bottom: 0;
}

/* ---------- Food tiles (homepage, real-photo category links) ---------- */

.food-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 820px) {
  .food-tile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .food-tile-grid { grid-template-columns: 1fr; }
}

.food-tile {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.food-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(13, 11, 9, 0.18);
}

.food-tile-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.food-tile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.food-tile-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
}

.food-tile-photo-placeholder.gold-text {
  background: linear-gradient(135deg, var(--black) 0%, #2a2318 55%, var(--olive) 100%);
  padding: 12px;
  text-align: center;
}

.food-tile-photo-placeholder.gold-text span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rotw-wrap {
  position: relative;
}

.rotw-photo-frame {
  width: 100%;
  aspect-ratio: 2.4 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rotw-photo-frame .food-tile-photo-placeholder {
  height: 100%;
  border-radius: 0;
}

.rotw-card {
  position: absolute;
  top: 50%;
  right: 36px;
  transform: translateY(-50%);
  width: min(380px, 90%);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 28px clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
}

.rotw-card h3 {
  margin-bottom: 8px;
}

.rotw-card p {
  color: #6b6259;
  margin: 0;
}

@media (max-width: 780px) {
  .rotw-photo-frame {
    aspect-ratio: 16 / 10;
  }
  .rotw-card {
    position: static;
    transform: none;
    width: 100%;
    margin-top: -24px;
  }
}

.food-tile-label {
  padding: 12px 12px;
  text-align: center;
  background: var(--gold);
}

.food-tile-label .food-tile-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--black);
}

/* ---------- Recipe cards ---------- */

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 36px;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.recipe-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a99c8c;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  overflow: hidden;
}

.recipe-photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.recipe-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.recipe-card:has(.recipe-card-link):hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(13, 11, 9, 0.18);
}

.recipe-card .recipe-tag.gold {
  background: var(--gold);
  color: var(--black);
}

.recipe-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.recipe-reel-link {
  padding: 0 20px 18px;
  margin-top: -8px;
}

.recipe-reel-link a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--olive);
  text-decoration: none;
}

.recipe-reel-link a:hover {
  text-decoration: underline;
}

.recipe-detail-photo-link {
  display: block;
  position: relative;
}

.recipe-detail-photo-link::after {
  content: "\25b6  Watch on Instagram";
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(13, 11, 9, 0.75);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 7px 12px;
  border-radius: 999px;
  pointer-events: none;
}

.recipe-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recipe-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--black);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.recipe-body h3 { margin-bottom: 8px; }

.recipe-body p {
  font-size: 0.92rem;
  color: #6b6259;
  flex: 1;
}

.recipe-meta {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: #9a8f83;
  margin-top: 10px;
  border-top: 1px solid var(--cream-dark);
  padding-top: 12px;
}

/* ---------- Full recipe detail ---------- */

.recipe-detail {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}

.recipe-detail-photo-wrap {
  width: 100%;
  max-height: 560px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.recipe-detail-photo-placeholder {
  width: 100%;
  min-height: 260px;
  background: linear-gradient(135deg, var(--black) 0%, #2a2318 55%, var(--olive) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.recipe-detail-photo-placeholder span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 700px;
}

.recipe-photo-placeholder {
  background: linear-gradient(135deg, var(--black) 0%, #2a2318 55%, var(--olive) 100%);
}

.recipe-photo-placeholder span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recipe-detail-photo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.recipe-detail-body {
  padding: 32px clamp(20px, 4vw, 48px) 44px;
}

.recipe-detail-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 8px;
}

.recipe-detail-body h2 {
  margin-bottom: 10px;
}

.recipe-detail-dek {
  font-size: 1.05rem;
  color: #4a423c;
  max-width: 640px;
  margin-bottom: 24px;
}

.recipe-stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--cream-dark);
}

.recipe-stat {
  flex: 1 1 120px;
  text-align: center;
  padding: 14px 10px;
  border-right: 1px solid var(--cream-dark);
}

.recipe-stat:last-child { border-right: none; }

.recipe-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--black);
}

.recipe-stat span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a8074;
}

.recipe-columns {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
}

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

.recipe-columns h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--black);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.ingredient-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ingredient-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.95rem;
}

.ingredient-list li:last-child { border-bottom: none; }

.ingredient-list .amt {
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  min-width: 108px;
}

.instructions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.instructions-list li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.instructions-list li::before {
  content: counter(step);
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instructions-list h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
}

.instructions-list p { margin: 0; color: #4a423c; }

.recipe-note {
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: #4a423c;
  margin-top: 28px;
}

.recipe-note strong { color: var(--black); }

.recipe-side-photo {
  width: 100%;
  border-radius: var(--radius);
  margin-top: 24px;
  box-shadow: var(--shadow);
}

/* ---------- Page header (category / about pages) ---------- */

.page-header {
  padding: 10px 0 2px;
  text-align: center;
}

.page-header .hero-eyebrow {
  margin-bottom: 3px;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
}

.page-header h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.12em;
}

.page-header p {
  max-width: 620px;
  margin: 0 auto;
  color: #6b6259;
  font-size: 0.88rem;
}

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a99c8c;
  font-weight: 600;
  text-align: center;
  padding: 24px;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--black);
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin: 32px 0;
}

/* ---------- Contact & Collabs ---------- */

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px clamp(20px, 4vw, 44px);
  margin-bottom: 28px;
}

.contact-card h2 {
  margin-bottom: 6px;
}

.contact-card .contact-kicker {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 8px;
}

.contact-card p {
  color: #4a423c;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.partner-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  display: grid;
  gap: 10px;
}

.partner-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #4a423c;
}

.partner-list li::before {
  content: "\25cf";
  color: var(--gold);
  font-size: 0.6rem;
  margin-top: 7px;
  flex-shrink: 0;
}

/* ---------- Callout / placeholder notice ---------- */

.callout {
  background: #fff7ea;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.92rem;
  color: #6b5a2e;
  margin: 32px 0;
}

.callout strong { color: var(--terracotta-dark); }

/* ---------- Newsletter / follow strip ---------- */

.follow-strip {
  background: var(--black);
  color: var(--cream);
  text-align: center;
  padding: 52px 0;
}

.follow-strip h2 { color: var(--white); }

.follow-strip p {
  color: #cfc6ba;
  max-width: 520px;
  margin: 0 auto 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream-dark);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #8a8074;
}

.site-footer a { color: var(--olive); font-weight: 600; }
