/* =================================
   Gray's Color of Cooking
   Warm, rustic, sage-forward, soft.
   ================================= */

:root {
  /* Paper & ink */
  --paper:        #f6efdf;
  --paper-soft:   #efe6d1;
  --paper-deep:   #e6dcc2;
  --ink:          #2a2c22;
  --ink-soft:     #5a5a4a;
  --ink-muted:    #83836f;

  /* Sage / olive palette */
  --olive:        #3f4a33;
  --olive-deep:   #2e3724;
  --sage:         #8a9a72;
  --sage-soft:    #b3bfa0;
  --sage-mist:    #dbe0cb;

  /* Warm accent (used sparingly) */
  --clay:         #b27552;
  --clay-soft:    #d49b78;

  /* Type */
  --display: "Fraunces", "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --body:    "Lora", "Georgia", serif;
  --ui:      "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  /* Shape */
  --r-xs: 8px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-pill: 999px;

  /* Container */
  --container: 1240px;
  --gutter: clamp(1.25rem, 3vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 320ms var(--ease);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";

  /* subtle paper grain */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(138, 154, 114, 0.05), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(178, 117, 82, 0.04), transparent 45%);
}

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

a {
  color: var(--olive);
  text-decoration: none;
  transition: color var(--t);
}
a:hover { color: var(--clay); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  color: var(--olive-deep);
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}

h1 { font-size: clamp(3rem, 7vw, 6.25rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2vw, 1.85rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

em, .italic {
  font-style: italic;
  color: var(--clay);
}

.eyebrow {
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-block;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
}

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

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 239, 223, 0.85);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.35rem var(--gutter);
}

.brand {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--olive-deep);
  font-variation-settings: "SOFT" 100, "opsz" 40;
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.brand:hover { color: var(--olive-deep); }
.brand em {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
}
.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--olive);
  border-radius: var(--r-pill);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  align-self: center;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--paper);
  border-radius: var(--r-pill);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--clay); }
.nav-links a.active { color: var(--olive); }

.nav-cta {
  padding: 0.55rem 1.1rem;
  background: var(--olive);
  color: var(--paper) !important;
  border-radius: var(--r-pill);
  font-size: 0.88rem !important;
  transition: background var(--t), transform var(--t);
}
.nav-cta:hover { background: var(--olive-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  color: var(--olive-deep);
  cursor: pointer;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
}
.btn-primary {
  background: var(--olive);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--olive-deep);
  color: var(--paper);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--olive-deep);
  border-color: var(--olive);
}
.btn-ghost:hover {
  background: var(--olive);
  color: var(--paper);
}
.btn-arrow { transition: transform var(--t); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============ Hero ============ */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 1.5rem; }

.hero h1 {
  margin-bottom: 1.75rem;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.hero h1 .script {
  font-style: italic;
  color: var(--clay);
  font-weight: 300;
}

.hero .lead { margin-bottom: 2.25rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-media {
  position: relative;
}
.hero-photo {
  aspect-ratio: 4 / 5;
  border-radius: 280px 280px 28px 28px;
  overflow: hidden;
  background: var(--sage-mist);
  box-shadow:
    0 1px 2px rgba(42, 44, 34, 0.04),
    0 24px 48px -12px rgba(42, 44, 34, 0.18);
  position: relative;
  z-index: 2;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* decorative leaf behind photo */
.hero-leaf {
  position: absolute;
  inset: auto -40px -40px auto;
  width: 70%;
  aspect-ratio: 1;
  background: var(--sage);
  border-radius: 300px 40px 300px 40px;
  opacity: 0.22;
  z-index: 1;
  transform: rotate(-8deg);
}

/* ============ Marquee strip ============ */
.strip {
  background: var(--olive);
  color: var(--paper);
  padding: 1.25rem 0;
  overflow: hidden;
  border-radius: 0;
}
.strip-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  white-space: nowrap;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  font-variation-settings: "SOFT" 100, "opsz" 40;
  animation: slide 40s linear infinite;
}
.strip-track span { display: inline-flex; align-items: center; gap: 3rem; }
.strip-track .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay-soft);
  display: inline-block;
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Sections ============ */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-alt {
  background: var(--paper-soft);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 56ch;
  margin: 0 auto;
}

/* ============ About ============ */
.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sage-mist);
  box-shadow: 0 20px 40px -20px rgba(42, 44, 34, 0.3);
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-copy .eyebrow { margin-bottom: 1.25rem; }
.about-copy h2 { margin-bottom: 1.75rem; }
.about-copy p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.about-sig {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--olive);
  margin-top: 1.75rem;
  font-variation-settings: "SOFT" 100, "opsz" 40;
}

/* ============ Dish grid ============ */
.dishes {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2rem);
}
.dish {
  position: relative;
  cursor: pointer;
  transition: transform var(--t);
}
.dish:hover { transform: translateY(-4px); }

.dish-media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sage-mist);
  margin-bottom: 1.25rem;
  position: relative;
}
.dish-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.dish:hover .dish-media img { transform: scale(1.04); }

.dish-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(246, 239, 223, 0.94);
  color: var(--olive-deep);
  padding: 0.4rem 0.9rem;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
}

.dish h3 {
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}
.dish p {
  color: var(--ink-muted);
  font-size: 0.98rem;
  margin: 0;
}

/* Asymmetric layout: tall-wide-tall-wide */
.dish:nth-child(1) { grid-column: span 5; }
.dish:nth-child(2) { grid-column: span 7; }
.dish:nth-child(2) .dish-media { aspect-ratio: 5 / 4; }
.dish:nth-child(3) { grid-column: span 7; }
.dish:nth-child(3) .dish-media { aspect-ratio: 5 / 4; }
.dish:nth-child(4) { grid-column: span 5; }

/* ============ Video feature ============ */
.video-feature {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.video-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--olive-deep);
  cursor: pointer;
  box-shadow: 0 24px 48px -16px rgba(42, 44, 34, 0.35);
  transition: transform var(--t);
}
.video-card:hover { transform: scale(1.01); }
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(42, 44, 34, 0.1) 0%, rgba(42, 44, 34, 0.35) 100%);
}
.video-play-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  transition: transform var(--t);
}
.video-card:hover .video-play-btn { transform: scale(1.08); }
.video-play-btn svg { width: 30px; height: 30px; fill: var(--olive-deep); margin-left: 4px; }

.video-info .eyebrow { margin-bottom: 1rem; }
.video-info h2 { margin-bottom: 1rem; }
.video-info p { color: var(--ink-soft); margin-bottom: 1.5rem; }

/* ============ Follow ============ */
.follow {
  background: var(--olive-deep);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.follow::before,
.follow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}
.follow::before {
  width: 300px; height: 300px;
  background: var(--sage);
  top: -120px; left: -80px;
}
.follow::after {
  width: 260px; height: 260px;
  background: var(--clay);
  bottom: -100px; right: -60px;
}
.follow > * { position: relative; z-index: 1; }

.follow .eyebrow { color: var(--sage-soft); margin-bottom: 1rem; }
.follow h2 { color: var(--paper); margin-bottom: 1rem; }
.follow p {
  color: rgba(246, 239, 223, 0.78);
  max-width: 46ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.socials {
  list-style: none;
  display: inline-flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}
.socials a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(246, 239, 223, 0.08);
  border: 1px solid rgba(246, 239, 223, 0.18);
  color: var(--paper);
  transition: all var(--t);
}
.socials a:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper);
  transform: translateY(-2px);
}
.socials svg { width: 20px; height: 20px; fill: currentColor; }

/* ============ Placeholder / Coming soon ============ */
.coming {
  padding: clamp(4rem, 10vw, 8rem) 0;
  text-align: center;
}
.coming-inner {
  max-width: 640px;
  margin: 0 auto;
}
.coming .eyebrow { margin-bottom: 1.25rem; }
.coming h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
}
.coming h1 em { color: var(--clay); }
.coming p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.signup {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 auto;
  background: var(--paper);
  padding: 0.4rem;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--paper-deep);
}
.signup input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.65rem 1rem;
  font-family: var(--ui);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
}
.signup input::placeholder { color: var(--ink-muted); }

/* ============ Recipe archive ============ */
.archive {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(5rem, 9vw, 8rem);
}
.archive-head {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.archive-head .eyebrow { margin-bottom: 1rem; }
.archive-head h2 { margin-bottom: 1rem; }
.archive-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 50ch;
  margin: 0 auto;
}

.archive-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.recipe-item {
  background: var(--paper-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: background var(--t);
}
.recipe-item[open] { background: var(--paper-deep); }

.recipe-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 1.75rem;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: padding var(--t);
}
.recipe-item summary::-webkit-details-marker,
.recipe-item summary::marker { display: none; content: ""; }

.recipe-country {
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-2, var(--sage));
  font-weight: 600;
}

.recipe-title {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--olive-deep);
  font-variation-settings: "SOFT" 100, "opsz" 40;
  line-height: 1.25;
}

.recipe-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  color: var(--olive-deep);
  transition: transform var(--t), background var(--t), color var(--t);
  flex-shrink: 0;
}
.recipe-item[open] .recipe-toggle {
  background: var(--olive);
  color: var(--paper);
  transform: rotate(45deg);
}
.recipe-toggle svg { width: 14px; height: 14px; fill: currentColor; }

.recipe-body {
  padding: 0.25rem 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 2.5rem;
  color: var(--ink-soft);
  border-top: 1px solid rgba(42, 44, 34, 0.06);
  margin-top: 0.25rem;
  padding-top: 1.75rem;
}

.recipe-meta-list {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}
.recipe-meta-list div {
  padding-bottom: 0.9rem;
  border-bottom: 1px dotted rgba(42, 44, 34, 0.15);
}
.recipe-meta-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.recipe-meta-list dt {
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.recipe-meta-list dd {
  font-family: var(--body);
  color: var(--ink);
  font-size: 1rem;
}

.recipe-content h4 {
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.recipe-content h4:not(:first-child) { margin-top: 1.75rem; }
.recipe-content ul, .recipe-content ol {
  padding-left: 1.15rem;
  margin: 0;
}
.recipe-content li { margin-bottom: 0.35rem; }
.recipe-placeholder {
  font-style: italic;
  color: var(--ink-muted);
  font-family: var(--body);
  margin: 0;
}

@media (max-width: 720px) {
  .recipe-item summary {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    padding: 1.2rem 1.25rem;
  }
  .recipe-country {
    grid-column: 1;
    grid-row: 1;
  }
  .recipe-title {
    grid-column: 1;
    grid-row: 2;
  }
  .recipe-toggle {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .recipe-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1.25rem 1.75rem;
  }
}

/* ============ Footer ============ */
.footer {
  padding: 4rem 0 2.5rem;
  color: var(--ink-muted);
  font-family: var(--ui);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--paper-deep);
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p {
  color: var(--ink-muted);
  font-family: var(--body);
  max-width: 36ch;
  font-size: 0.98rem;
}

.footer-col h4 {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: grid; gap: 0.65rem; }
.footer-col a { color: var(--ink-soft); }
.footer-col a:hover { color: var(--clay); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============ Page header (Recipes/Shop) ============ */
.page-hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 1.25rem; }
.page-hero h1 { margin-bottom: 1.25rem; }
.page-hero p {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 58ch;
  margin: 0 auto;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: var(--paper);
    padding: 1.5rem;
    gap: 1.25rem;
    border-radius: var(--r-md);
    box-shadow: 0 20px 40px -10px rgba(42, 44, 34, 0.15);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all var(--t);
    align-items: flex-start;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 440px; margin: 0 auto; }
  .hero-photo { aspect-ratio: 5 / 6; border-radius: 200px 200px 24px 24px; }

  .about { grid-template-columns: 1fr; }
  .about-portrait { max-width: 380px; margin: 0 auto; }

  .dish { grid-column: span 12 !important; }
  .dish .dish-media { aspect-ratio: 4 / 3 !important; }

  .video-feature { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .strip-track { font-size: 1.05rem; gap: 2rem; }
  .strip-track span { gap: 2rem; }
}
