/* ==========================================================================
   Lynda Rosini — realfoodwithlynda.com
   Single-page static site. No build step, no dependencies.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --purple:        hsl(267 43% 46%);
  --purple-deep:   hsl(267 43% 28%);
  --purple-darker: hsl(267 40% 18%);
  --lavender:      hsl(270 54% 75%);
  --lilac:         hsl(270 35% 95%);
  --amber:         hsl(38 76% 57%);

  --ink:        hsl(264 22% 18%);
  --ink-muted:  hsl(270 8% 43%);
  --on-dark:    hsl(285 33% 98%);
  --on-dark-mut: hsl(280 30% 88%);

  --surface:  #fff;
  --border:   hsl(270 26% 88%);
  --ring:     hsl(267 43% 46% / .45);

  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px hsl(267 43% 20% / .06), 0 2px 8px hsl(267 43% 20% / .06);
  --shadow-md: 0 4px 12px hsl(267 43% 20% / .08), 0 12px 32px hsl(267 43% 20% / .10);
  --shadow-lg: 0 12px 40px hsl(267 43% 20% / .18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap:  1160px;
  --gap:   clamp(1.25rem, 3vw, 2.25rem);
  --pad-y: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

:where(a, button, input, textarea, summary, details):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.4rem + 4.8vw, 4.6rem); }
h2 { font-size: clamp(1.95rem, 1.25rem + 2.9vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.005em; }

/* the amber italic phrase inside headings */
h1 em, h2 em { font-style: italic; color: var(--amber); font-weight: 500; }

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .85rem;
}
.eyebrow::after {
  content: "";
  flex: 0 0 clamp(28px, 6vw, 68px);
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.eyebrow-light { color: var(--lavender); }

.footnote { font-size: .875rem; color: var(--ink-muted); margin-top: 1rem; }
.footnote-light { color: var(--on-dark-mut); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--purple); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 820px); }
.section { padding-block: var(--pad-y); position: relative; }
.section-tint { background: var(--lilac); }
.section-narrow { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.center { text-align: center; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head.reveal + .card-grid { margin-top: 0; }
.center .section-head, .section-head.center { margin-inline: auto; }
.section-lede { font-size: 1.1rem; color: var(--ink-muted); margin-top: 1.1rem; }
.lede-light { color: var(--on-dark-mut); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--purple);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .6rem 1.25rem; font-size: .88rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--purple); }
.btn-primary:hover { background: hsl(267 43% 40%); }

.btn-ghost {
  background: hsl(0 0% 100% / .14);
  color: #fff;
  border-color: hsl(0 0% 100% / .45);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: hsl(0 0% 100% / .24); }

.btn-outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--lilac); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.center .btn-row { justify-content: center; }

/* ---------- icons ---------- */
.icon {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-sm { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: hsl(0 0% 100% / .92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
  transition: color .3s ease;
}
.brand-mark { width: 20px; height: 20px; color: var(--amber); }
.brand-cred { font-size: .82em; opacity: .8; }
.is-scrolled .brand { color: var(--ink); }

.nav { display: flex; gap: 1.6rem; }
.nav a {
  color: hsl(0 0% 100% / .92);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 400;
  transition: color .2s ease;
}
.nav a:hover { color: var(--amber); }
.is-scrolled .nav a { color: var(--ink); }
.is-scrolled .nav a:hover { color: var(--purple); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .4rem;
  color: #fff;
  cursor: pointer;
}
.is-scrolled .nav-toggle { color: var(--ink); }

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    gap: 0;
    background: #fff;
    padding: .5rem 0 1.25rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { color: var(--ink); padding: .85rem 1.5rem; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding-block: clamp(8rem, 16vh, 11rem) clamp(3rem, 8vh, 5rem);
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(115deg, hsl(267 60% 30% / .93) 0%, hsl(267 50% 38% / .80) 42%, hsl(208 70% 42% / .58) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: var(--gap);
  align-items: center;
}
.hero-copy { max-width: 40rem; }
.hero h1 { margin-bottom: 1.5rem; text-shadow: 0 2px 24px hsl(267 50% 15% / .35); }
.hero-bio { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: hsl(0 0% 100% / .93); max-width: 34rem; }
.hero-bio strong { font-weight: 700; }

.stats { display: grid; gap: .85rem; }
.stats li {
  background: hsl(0 0% 100% / .12);
  border: 1px solid hsl(0 0% 100% / .22);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
}
.stat-value { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.stat-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: hsl(0 0% 100% / .78);
  margin-top: .15rem;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 1rem; }
}

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: var(--gap);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-muted); }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--purple), hsl(280 45% 58%));
  color: #fff;
  margin-bottom: 1.15rem;
  box-shadow: 0 6px 16px hsl(267 43% 46% / .28);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.1rem;
  font-weight: 700;
  font-size: .93rem;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }
.card-link .icon { transition: transform .2s ease; }
.card-link:hover .icon { transform: translateX(3px); }

.badge {
  display: inline-block;
  background: var(--amber);
  color: hsl(30 60% 16%);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .42rem 1rem;
  border-radius: 999px;
}
.badge-inline { margin-bottom: 1.1rem; }

/* ---------- book ---------- */
.book-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.book-figure { position: relative; }
.book-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.book-figure .badge { position: absolute; top: 1rem; left: 1rem; box-shadow: var(--shadow-sm); }

.pull-quote {
  margin-top: 1.75rem;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--amber);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.pull-quote p { font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.55; }
.pull-quote cite {
  display: block;
  margin-top: .85rem;
  font-style: normal;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-muted);
}
.book-copy > p { color: var(--ink-muted); }

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

/* ---------- about ---------- */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-copy p { color: var(--ink-muted); margin-top: 1.15rem; }
.about-copy h2 { margin-bottom: .5rem; }

.cred-list { display: grid; gap: 1rem; }
.cred-list li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--lilac);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}
.cred-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--purple);
  box-shadow: var(--shadow-sm);
}
.cred-list h3 { font-size: 1rem; margin-bottom: .2rem; }
.cred-list p { font-size: .93rem; color: var(--ink-muted); line-height: 1.55; }

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

/* ---------- photo sections ---------- */
.section-photo {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}
.photo-bg { position: absolute; inset: 0; z-index: -2; }
.photo-bg img { width: 100%; height: 100%; object-fit: cover; }
.section-photo::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(150deg, hsl(267 55% 24% / .94), hsl(267 45% 32% / .88) 55%, hsl(208 65% 34% / .82));
}
.on-photo { color: #fff; }
/* Cards sit on the light surface, so they opt back out of the section's
   white text colour — otherwise labels and names vanish into the card. */
.section-photo .card { background: hsl(0 0% 100% / .97); color: var(--ink); }

/* ---------- testimonials ---------- */
.quote-card { display: flex; flex-direction: column; }
.quote-mark {
  font-family: var(--serif);
  font-size: 3.6rem;
  line-height: .8;
  color: var(--amber);
  margin-bottom: .35rem;
}
.quote-card blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.03rem;
  line-height: 1.6;
  color: var(--ink);
}
.quote-card footer { margin-top: auto; padding-top: 1.35rem; }
.quote-name { display: block; font-weight: 700; }
.quote-role { display: block; font-size: .86rem; color: var(--ink-muted); }

/* ---------- newsletter ---------- */
.signup {
  display: flex;
  gap: .6rem;
  max-width: 500px;
  margin: 2rem auto 0;
}
.signup input {
  flex: 1;
  min-width: 0;
  padding: .95rem 1.3rem;
  border: 1px solid hsl(0 0% 100% / .32);
  border-radius: 999px;
  background: hsl(0 0% 100% / .14);
  color: #fff;
  backdrop-filter: blur(8px);
}
.signup input::placeholder { color: hsl(0 0% 100% / .62); }
.signup input:focus { background: hsl(0 0% 100% / .22); }

@media (max-width: 520px) {
  .signup { flex-direction: column; border-radius: var(--radius); }
  .signup input { text-align: center; }
}

/* ---------- faq ---------- */
.faq { display: grid; gap: .75rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq details[open] { border-color: hsl(267 43% 70%); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--purple); transition: transform .25s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq-body { padding: 0 1.5rem 1.35rem; }
.faq-body p { color: var(--ink-muted); }

/* ---------- contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-list { display: grid; gap: 1rem; margin-top: 2.25rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: hsl(0 0% 100% / .14);
  border: 1px solid hsl(0 0% 100% / .22);
  color: #fff;
  backdrop-filter: blur(8px);
}
.contact-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
}
.contact-list a, .contact-list span:not(.contact-label):not(.contact-icon) { color: #fff; text-decoration: none; font-weight: 700; }
.contact-list a:hover { color: var(--amber); }

.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .86rem; font-weight: 700; }
.field input, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--purple); }

.form-status { font-size: .9rem; margin-top: .5rem; min-height: 1.4em; }
.form-status.is-error { color: hsl(0 65% 45%); }
.section-photo .center .form-status { color: var(--on-dark-mut); }

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

/* ---------- footer ---------- */
.site-footer {
  background: var(--purple-darker);
  color: var(--on-dark-mut);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  padding-bottom: 2.75rem;
}
.brand-footer { color: #fff; margin-bottom: 1rem; }
.footer-desc { font-size: .95rem; max-width: 34rem; }
.site-footer h3 { color: #fff; font-size: 1.02rem; margin-bottom: 1rem; }
.footer-links { display: grid; gap: .6rem; font-size: .95rem; }
.footer-links a { color: var(--on-dark-mut); text-decoration: none; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid hsl(0 0% 100% / .13);
  padding-block: 1.5rem;
  font-size: .875rem;
}

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

/* ---------- scroll reveal (JS-gated so it degrades safely) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .6, .3, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
