/* ==========================================================================
   IDUNN Cooking Club — stylesheet
   Design tokens + components. One file, no build step.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --color-cream: #FBF6F2;
  --color-green: #1F3A30;
  --color-green-muted: #5a6b60;
  --color-terracotta: #B4655C;
  --color-terracotta-dark: #8F4E47;
  --color-gold: #a88236;
  --color-tan: #EFE7D9;
  --color-blush: #E8CFC2;
  --color-blush-border: #DFC9B8;

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  --radius: 4px;
  --radius-pill: 999px;

  --page-pad: 40px;
}

/* ---- Reset / base -------------------------------------------------------*/
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-green);
  font-family: var(--font-sans);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

a {
  color: var(--color-terracotta);
  text-decoration: none;
  cursor: pointer;
}

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

ul, ol {
  padding: 0;
  list-style: none;
}

/* ---- Layout helpers ------------------------------------------------------*/
.pad {
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.section {
  padding: 80px var(--page-pad) 0;
}

.section--tight {
  padding: 72px var(--page-pad) 0;
}

.section--band {
  padding: 80px var(--page-pad);
}

.section--tan {
  background: var(--color-tan);
}

.section--blush {
  background: var(--color-blush);
}

.section--dark {
  background: var(--color-green);
  color: var(--color-cream);
}

.max-720 { max-width: 720px; }
.max-1000 { max-width: 1000px; }
.max-1040 { max-width: 1040px; }
.max-1060 { max-width: 1060px; }

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 40px; }

.qa-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--color-blush-border);
}

/* ---- Typography ----------------------------------------------------------*/
.eyebrow {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 18px;
}

.eyebrow--light {
  color: var(--color-blush);
}

.eyebrow--muted {
  color: var(--color-green-muted);
}

.h1 {
  font-size: 50px;
  line-height: 1.08;
  margin: 0 0 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.h1--xl {
  font-size: 52px;
}

.h2 {
  font-size: 36px;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.h2--sm { font-size: 28px; }
.h2--md { font-size: 30px; }

.h2 span, .h1 span {
  color: inherit;
}

.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35;
}

.lede--lg {
  font-size: 32px;
  line-height: 1.3;
}

.quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.4;
}

.quote-cite {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.tag-label {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.body-lg {
  font-size: 18px;
  line-height: 1.7;
}

.body {
  font-size: 17px;
  line-height: 1.8;
}

.body-md {
  font-size: 16px;
  line-height: 1.7;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  padding: 15px 28px;
  border: 1px solid transparent;
}

.btn--sm {
  padding: 11px 22px;
}

.btn--md {
  padding: 13px 24px;
}

.btn--primary {
  background: var(--color-terracotta);
  color: var(--color-cream);
  border-color: var(--color-terracotta);
}

.btn--primary:hover {
  background: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: var(--color-cream);
}

.btn--dark {
  background: var(--color-green);
  color: var(--color-cream);
  border-color: var(--color-green);
}

.btn--dark:hover {
  background: #16281f;
  border-color: #16281f;
  color: var(--color-cream);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(251, 246, 242, 0.55);
}

.btn--outline-light:hover {
  border-color: var(--color-cream);
  color: var(--color-cream);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-green);
  border-color: var(--color-green);
}

.btn--outline-dark:hover {
  background: var(--color-green);
  color: var(--color-cream);
}

.btn--pill-light {
  padding: 10px 18px;
  font-size: 14px;
  border-color: rgba(251, 246, 242, 0.4);
  color: var(--color-cream);
}

.link-arrow {
  color: var(--color-terracotta);
  font-weight: 500;
  font-size: 16px;
  display: inline-block;
}

/* ---- Header / nav ---------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--page-pad);
  position: sticky;
  top: 0;
  background: var(--color-green);
  z-index: 20;
}

.site-header__logo img {
  height: 56px;
  display: block;
}

.site-header nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: rgba(251, 246, 242, 0.88);
}

.nav-links a:hover {
  color: var(--color-blush);
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  margin: 0;
  width: 100%;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(31, 58, 48, 0.97) 0%, rgba(31, 58, 48, 0.82) 34%, rgba(31, 58, 48, 0.36) 62%, rgba(31, 58, 48, 0.18) 100%);
}

.heropad {
  position: relative;
  padding: 52px;
  max-width: 760px;
  color: var(--color-cream);
}

.hero--simple {
  min-height: 0;
}

/* ---- Numbered feature list (home "Cook. Learn. Eat. Connect.") -------- */
.feature {
  border-top: 1px solid var(--color-blush);
  padding-top: 14px;
}

.feature__num {
  font-family: var(--font-accent);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 24px;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 10px;
}

.feature__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.feature__text {
  font-size: 15px;
  line-height: 1.6;
}

/* ---- Cards (class cards on home + calendar + related) ------------------*/
.card {
  display: flex;
  flex-direction: column;
  color: var(--color-green);
  background: var(--color-cream);
  border-radius: var(--radius);
  overflow: hidden;
}

.card--bordered {
  border: 1px solid var(--color-blush);
}

.card__image {
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.card--calendar .card__image {
  height: 230px;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.card__subtitle {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 18px;
  min-height: 45px;
}

.card__meta {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.card__meta--muted {
  color: var(--color-green-muted);
  margin-bottom: 20px;
}

.card__link {
  color: var(--color-terracotta);
  font-weight: 500;
  font-size: 15px;
  display: inline-block;
  margin-top: auto;
}

/* related-class link card (no border, used at bottom of class pages) */
.related {
  display: block;
  color: var(--color-green);
}

.related__image {
  height: 170px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}

.related__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related__title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.related__subtitle {
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0 10px;
}

/* ---- Testimonials ------------------------------------------------------*/
.testimonial {
  padding: 8px 0;
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(31, 58, 48, 0.18);
  padding-top: 20px;
}

.testimonial:first-child {
  border-top: none;
  padding-top: 0;
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.4;
  max-width: 560px;
}

/* ---- Accordion (FAQ) ---------------------------------------------------*/
.accordion {
  border-bottom: 1px solid var(--color-blush);
}

.accordion--alt {
  border-bottom-color: var(--color-blush-border);
}

.accordion-item {
  border-top: 1px solid var(--color-blush);
}

.accordion--alt .accordion-item {
  border-top-color: var(--color-blush-border);
}

.accordion-question {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--color-green);
  font-size: 18px;
  font-weight: 500;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  cursor: pointer;
}

.accordion-question:hover {
  color: var(--color-terracotta);
}

.accordion-sign {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 22px;
  color: var(--color-terracotta);
  flex-shrink: 0;
}

.accordion-answer {
  font-size: 17px;
  line-height: 1.75;
  padding: 0 60px 24px 0;
  max-width: 920px;
  display: none;
}

.accordion-item.is-open .accordion-answer {
  display: block;
}

/* ---- Stacked offset images (about / class pages) ------------------------*/
.stack-img {
  position: relative;
  height: 460px;
}

.stack-img__main {
  position: absolute;
  inset: 0 60px 60px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.stack-img__detail {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 220px;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(31, 58, 48, 0.22);
}

.stack-img__main img,
.stack-img__detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Collage (private events) -------------------------------------------*/
.collage {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
  height: 460px;
}

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.collage__a { grid-column: 1; grid-row: 1 / span 2; overflow: hidden; border-radius: var(--radius); }
.collage__b { grid-column: 2; grid-row: 1; overflow: hidden; border-radius: var(--radius); }
.collage__c { grid-column: 2; grid-row: 2 / span 2; overflow: hidden; border-radius: var(--radius); }
.collage__d { grid-column: 1; grid-row: 3; overflow: hidden; border-radius: var(--radius); }

/* ---- Contact tiles ------------------------------------------------------*/
.contact-tile {
  display: block;
  color: var(--color-green);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.contact-tile--bordered {
  border: 1px solid var(--color-blush);
}

.contact-tile--card {
  background: var(--color-cream);
  padding: 32px;
}

.contact-tile__label {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.contact-tile__value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-terracotta);
}

.contact-tile__value--sm {
  font-size: 20px;
  overflow-wrap: normal;
}

.info-block {
  border-top: 1px solid var(--color-blush);
  padding-top: 20px;
}

/* ---- CTA band ------------------------------------------------------------*/
.cta-band {
  padding: 44px var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.cta-band__text {
  font-size: 16px;
  line-height: 1.6;
}

/* ---- Dark split band (private events teaser, class booking band) --------*/
.split-band {
  padding: 48px var(--page-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.split-band__image {
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
}

.split-band__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.booking-band {
  padding: 64px var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.booking-band__title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.booking-band__text {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(251, 246, 242, 0.85);
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--color-green);
  color: var(--color-cream);
  padding: 64px var(--page-pad) 28px;
}

.site-footer__logo img {
  height: 50px;
  display: block;
}

.footer-heading {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-blush);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-links a,
.footer-links span {
  color: rgba(251, 246, 242, 0.85);
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 246, 242, 0.2);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 15px;
  color: rgba(251, 246, 242, 0.7);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Back link (class page) ---------------------------------------------*/
.back-link {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- Meta strip (class page) ---------------------------------------------*/
.meta-strip {
  border-top: 1px solid var(--color-blush);
  border-bottom: 1px solid var(--color-blush);
  padding: 22px 0;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-green-muted);
}

.learn-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  font-size: 17px;
  line-height: 1.7;
}

.learn-row__mark {
  color: var(--color-terracotta);
}

.quote-block {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.4;
  border-left: 2px solid var(--color-terracotta);
  padding-left: 24px;
  color: var(--color-green);
}

/* ---- Responsive ---------------------------------------------------------*/
@media (max-width: 1100px) {
  .nav-links {
    gap: 16px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .qa-row { grid-template-columns: 1fr; gap: 10px; }
  .site-header { flex-wrap: wrap; row-gap: 12px; }
  .nav-links { gap: 14px; font-size: 13px; flex-wrap: wrap; }
  .pad { padding-left: 20px; padding-right: 20px; }
  .section, .section--tight, .section--band { padding-left: 20px; padding-right: 20px; }
  .cta-band, .booking-band, .split-band { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 640px) {
  .nav-links { gap: 4px 14px; font-size: 13px; }
  .nav-links a { padding: 8px 0; display: inline-block; }
  .site-header { padding-top: 10px; padding-bottom: 10px; }
  .site-header__logo img { height: 42px; }
  .collage { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 130px); }
  .h1 { font-size: 34px !important; }
  .h2 { font-size: 28px !important; }
  .hero { height: auto; min-height: 560px; }
  .heropad { padding: 28px; }
  .stack-img { height: 280px; }
}

/* ---- Additional utilities & one-off modifiers --------------------------- */
.on-dark {
  color: rgba(251, 246, 242, 0.88);
}

.lede--sm {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.35;
}

.lede--quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.4;
  color: var(--color-blush);
  margin-top: 26px;
}

.defs-list {
  border-bottom: 1px solid var(--color-blush-border);
}

.lead-text {
  font-size: 19px;
  line-height: 1.7;
  font-weight: 500;
}

.subtitle-serif {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
}

.included-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
}

.grid-2--asym-a { grid-template-columns: 0.85fr 1.15fr; }
.grid-2--asym-b { grid-template-columns: 1.05fr 0.95fr; }
.grid-2--asym-c { grid-template-columns: 1.1fr 1fr; }
.grid-2--asym-d { grid-template-columns: 1fr 320px; }

.split-band--hero {
  padding: 80px var(--page-pad);
  grid-template-columns: 1.1fr 1fr;
}

.split-band__image--lg {
  height: 460px;
}

@media (max-width: 900px) {
  .grid-2--asym-a,
  .grid-2--asym-b,
  .grid-2--asym-c,
  .grid-2--asym-d,
  .split-band--hero {
    grid-template-columns: 1fr;
  }
}
