/* ==========================================================================
   Kaleigh Cohen Fitness — brand stylesheet
   No images anywhere. Typography, color, and space do the work.
   Palette + fonts carried from the 2023 legacy brand guide.
   ========================================================================== */

:root {
  /* Core */
  --black: #231F20;
  --white: #FFFFFF;
  /* Accents */
  --teal: #2E5065;
  --sage: #6A7E62;
  --terracotta: #9F6146;
  --amber: #DD9844;
  --cream: #DFCD87;
  /* Derived */
  --ink: #231F20;
  --paper: #FBF8F1;       /* warm off-white background */
  --paper-2: #F3EEE2;     /* cream-tinted panel */
  --muted: #6b6660;
  --line: #e3ddcf;
  --teal-dark: #20394a;
  --sage-dark: #54664e;
  --good: #4f7a4a;
  --warn: #b4622f;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(35,31,32,.06), 0 8px 24px rgba(35,31,32,.06);
  --shadow-sm: 0 1px 2px rgba(35,31,32,.08);
  --maxw: 1120px;

  --font-body: "Merriweather", Georgia, "Times New Roman", serif;
  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-script: "Brittany Signature", "Segoe Script", "Snell Roundhand", cursive;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}
img, svg { max-width: 100%; }   /* defensive; no images are used */

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.04;
  letter-spacing: .01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; }
p { margin: 0 0 1rem; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.script { font-family: var(--font-script); font-weight: 400; }
.display { font-family: var(--font-display); }
.eyebrow { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; font-weight: 700; color: var(--terracotta); margin: 0 0 .8rem; }
.lead { font-size: 1.2rem; color: #443f3a; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.ui { font-family: var(--font-ui); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-tight { padding: 2rem 0; }
.grid { display: grid; gap: 1.25rem; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.tight { gap: .75rem .8rem; }
@media (max-width: 860px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.spacer { flex: 1; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251,248,241,.92);
  backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand-mark { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .02em;
  color: var(--ink); display: inline-flex; align-items: baseline; gap: .4rem; }
.brand-mark:hover { text-decoration: none; }
.brand-mark .kc { color: var(--terracotta); }
.nav-links { display: flex; gap: .25rem; align-items: center; margin-left: auto; flex-wrap: wrap; }
.nav-links a { font-family: var(--font-ui); font-size: .92rem; color: #3a352f;
  padding: .45rem .7rem; border-radius: 8px; }
.nav-links a:hover { background: var(--paper-2); text-decoration: none; }
.nav-links a.active { color: var(--teal-dark); background: var(--paper-2); font-weight: 600; }
@media (max-width: 820px) {
  .nav-links { margin-left: 0; width: 100%; padding-bottom: .35rem; }
  .nav-links a { padding: .45rem .55rem; font-size: .88rem; }
}

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-ui); font-weight: 600; font-size: .95rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem; padding: .72rem 1.2rem;
  border-radius: 999px; border: 1.5px solid transparent; background: var(--teal);
  color: #fff; transition: transform .04s ease, background .15s ease; line-height: 1; }
.btn:hover { text-decoration: none; background: var(--teal-dark); }
.btn:active { transform: translateY(1px); }
.btn.amber { background: var(--amber); color: #3a2a10; }
.btn.amber:hover { background: #c9852f; }
.btn.terra { background: var(--terracotta); }
.btn.terra:hover { background: #834d36; }
.btn.ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn.ghost:hover { background: var(--paper-2); color: var(--teal-dark); }
.btn.sage { background: var(--sage); }
.btn.sage:hover { background: var(--sage-dark); }
.btn.sm { padding: .45rem .8rem; font-size: .85rem; }
.btn.block { width: 100%; justify-content: center; }
.btn.danger { background: #9a3b2a; }
/* Quiet, low-emphasis action (e.g. cancel membership) — hints destructive on hover only */
.btn.quiet { background: transparent; color: var(--muted); border-color: var(--line); }
.btn.quiet:hover { background: var(--paper-2); color: var(--warn); border-color: var(--warn); }
/* Even quieter: a small text link (cancel membership) */
.cancel-link { all: unset; cursor: pointer; font-family: var(--font-ui); font-size: .78rem;
  color: var(--muted); text-decoration: underline; }
.cancel-link:hover { color: var(--warn); }
/* Password field with a show/hide eye */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.6rem; }
.pw-toggle { all: unset; cursor: pointer; position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); border-radius: 6px; }
.pw-toggle:hover { color: var(--teal-dark); }
.pw-toggle.on { color: var(--teal); }
.pw-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Cards / panels ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm); }
.card.pad-lg { padding: 2rem; }
.panel { background: var(--paper-2); border-radius: var(--radius); padding: 1.4rem; }
.bordered { border: 1px solid var(--line); border-radius: var(--radius); }
.hr { height: 1px; background: var(--line); border: 0; margin: 1.5rem 0; }

/* ---------- Badges / pills ---------- */
.badge { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: var(--paper-2);
  color: #5a554e; display: inline-block; }
.badge.teal { background: #dde8ee; color: var(--teal-dark); }
.badge.sage { background: #e1e8dc; color: var(--sage-dark); }
.badge.amber { background: #f6e6c8; color: #7a521b; }
.badge.terra { background: #efdacd; color: #7a4329; }
.badge.live { background: #d9ecd6; color: #3c6b37; }
.badge.draft { background: #eee7d6; color: #836f3f; }
.badge.staged { background: #e7e0f0; color: #5b4a82; }
.pill-row { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Forms ---------- */
label { font-family: var(--font-ui); font-weight: 600; font-size: .9rem; display: block;
  margin: 0 0 .35rem; color: #3a352f; }
/* `input:not([type])` catches bare <input name="..."> (implicit text) so they
   get the same styling as typed inputs and <select> — not browser defaults. */
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number],
input[type=search], select, textarea {
  width: 100%; font-family: var(--font-ui); font-size: 1rem; padding: .7rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  color: var(--ink); line-height: 1.4; }
/* Single-line controls share one height so a text field and a dropdown next to
   it always line up (native select arrow kept — no background image). */
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number],
input[type=search], select { height: 48px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px;
  border-color: var(--amber); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field { margin-bottom: 1.1rem; }
.field .hint { font-family: var(--font-ui); font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-family: var(--font-ui);
  font-weight: 500; font-size: .95rem; padding: .55rem .7rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer; margin-bottom: .5rem; }
.check input { width: auto; margin-top: .15rem; }
.check.selected { border-color: var(--sage); background: #f1f5ee; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (max-width: 620px) { .choice-grid { grid-template-columns: 1fr; } }

/* ---------- Flash / notices ---------- */
.notice { font-family: var(--font-ui); padding: .85rem 1rem; border-radius: var(--radius-sm);
  margin-bottom: 1.2rem; border: 1px solid var(--line); background: #fff; font-size: .92rem; }
.notice.ok { background: #eaf3e7; border-color: #c5dcc0; color: #2f5a2c; }
.notice.err { background: #f6e6e0; border-color: #e3c3b6; color: #8a3a23; }
.notice.info { background: #e3edf2; border-color: #c2d7e1; color: var(--teal-dark); }
.notice.grace { background: #f6efdc; border-color: #e6d6a8; color: #7a5a1b; }

/* ---------- Hero ---------- */
.hero { background:
    radial-gradient(1200px 480px at 80% -10%, rgba(221,152,68,.16), transparent 60%),
    radial-gradient(900px 420px at -5% 10%, rgba(46,80,101,.12), transparent 55%),
    var(--paper); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: clamp(2.5rem, 7vw, 5rem); }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 52ch; }

/* ---------- Calendar ---------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); text-align: center; padding: .3rem 0; }
.cal-cell { background: #fff; border: 1px solid var(--line); border-radius: 10px; min-height: 104px;
  padding: .5rem; display: flex; flex-direction: column; gap: .35rem; position: relative; }
.cal-cell.empty { background: transparent; border: 0; }
.cal-cell.today { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(221,152,68,.35); }
.cal-cell .daynum { font-family: var(--font-ui); font-weight: 700; font-size: .82rem; color: #6a655e; }
/* Completed day: paint a big corner-to-corner X across the whole cell. The two
   gradients always reach the corners regardless of the cell's size. */
.cal-cell.done {
  border-color: #cfe0c7;
  background:
    linear-gradient(to top right, transparent calc(50% - 1.5px), rgba(106,126,98,.5) calc(50% - 1.5px), rgba(106,126,98,.5) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(to bottom right, transparent calc(50% - 1.5px), rgba(106,126,98,.5) calc(50% - 1.5px), rgba(106,126,98,.5) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    #f1f6ee;
}
.cal-cell.done .cell-body, .cal-cell.done .rest-day { opacity: .55; }

/* Green checkmark toggle (replaces the old "Mark done" pill) */
.cell-check { margin: 0; line-height: 0; }
.check-toggle { all: unset; cursor: pointer; width: 24px; height: 24px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-ui);
  font-weight: 700; font-size: .82rem; line-height: 1; border: 1.5px solid var(--sage);
  color: var(--sage); background: #fff; transition: background .12s ease, color .12s ease; }
.check-toggle:hover { background: #eef3ea; }
.check-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.check-toggle.on { background: var(--sage); color: #fff; }

/* Rest day */
.cal-cell.rest { background: var(--paper-2); border-style: dashed; }
.rest-day { display: flex; flex-direction: column; gap: .15rem; margin: auto 0;
  font-family: var(--font-ui); }
.rest-label { font-weight: 700; font-size: .82rem; color: var(--sage-dark); }
.rest-sub { font-size: .7rem; color: var(--muted); }

/* Drag-and-drop rearrange (pointer-based) */
.cal-grid[data-arrange] .cal-cell[data-day] { cursor: grab; }
.cal-cell.dragging { opacity: .6; }
.cal-cell.drop-target { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(221,152,68,.45); }
.drag-ghost { position: fixed; z-index: 100; margin: 0; pointer-events: none; opacity: 1;
  box-shadow: var(--shadow); transform: rotate(1.5deg); }
body.arranging { -webkit-user-select: none; user-select: none; cursor: grabbing; }
.cell-body { display: flex; flex-direction: column; gap: .15rem; }

/* Rearrange chooser — illustrated options */
.arrange-wide { max-width: 640px; }
.arrange-option { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; margin-bottom: .8rem; }
.arrange-diagram { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; flex: 1; }
.arrange-option .btn { flex-shrink: 0; }
.day-chip { font-family: var(--font-ui); font-weight: 700; font-size: .82rem; padding: .35rem .6rem;
  border-radius: 8px; background: var(--paper-2); color: var(--ink); white-space: nowrap; }
.day-chip.dragged { background: var(--amber); color: #3a2a10; }
.day-chip.target { background: var(--sage); color: #fff; }
.day-chip.range { background: #fff; border: 1px dashed var(--line); color: var(--muted); font-weight: 600; }
.arrange-arrow { color: var(--muted); font-weight: 700; font-size: .9rem; }
.arrange-arrow.wrap { color: var(--terracotta); }
.swap-arrows { display: inline-flex; flex-direction: column; line-height: .85; color: var(--terracotta);
  font-weight: 700; font-size: .85rem; }
.wk-row { grid-column: 1 / -1; background: var(--paper-2); border-radius: 8px;
  padding: .35rem .7rem; font-family: var(--font-ui); font-size: .8rem; color: var(--sage-dark);
  display: flex; gap: .5rem; align-items: baseline; }
.wk-row b { font-weight: 700; color: #4a5a44; }
.wlink { font-family: var(--font-ui); font-size: .78rem; line-height: 1.25; display: block;
  padding: .18rem .25rem; border-radius: 6px; color: #33403a; }
.wlink:hover { background: var(--paper-2); text-decoration: none; }
.wlink .k { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: var(--terracotta); }
.donemark { position: absolute; top: .35rem; right: .4rem; font-size: .7rem; color: var(--good);
  font-family: var(--font-ui); font-weight: 700; }
@media (max-width: 720px) {
  .cal-cell { min-height: 92px; }
  .cal-cell .wlink { font-size: .72rem; }
}

/* Locked track pill + upsell */
.track-switch .locked-pill { opacity: .85; }
.track-switch .locked-pill .lock { font-size: .8em; }
.track-switch .locked-pill:hover { opacity: 1; }

/* Rearrange chooser option buttons */
.opt-btn { display: block; width: 100%; text-align: left; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; padding: .7rem .9rem; cursor: pointer;
  font-family: var(--font-ui); transition: border-color .12s ease, background .12s ease; }
.opt-btn:hover { border-color: var(--sage); background: #f6f8f4; }
.opt-btn b { font-weight: 700; display: block; color: var(--ink); }
.opt-btn span { font-size: .82rem; color: var(--muted); }

/* "Your why" banner on the calendar */
.why-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-left: 4px solid var(--amber); }
.why-banner .why-text { font-family: var(--font-body); font-style: italic; font-size: 1.05rem; color: #443f3a; }

/* Community call-to-action */
.community-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  background: var(--paper-2); border-color: var(--line); }
@media (max-width: 620px) {
  .why-banner, .community-cta { flex-direction: column; align-items: flex-start; }
}

/* day detail list (mobile-friendly alt view) */
.day-list .day-item { display: flex; gap: .8rem; padding: .8rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; margin-bottom: .5rem; align-items: flex-start; }
.day-item .dnum { font-family: var(--font-display); font-size: 1.6rem; color: var(--teal); min-width: 2ch; }

/* Dashboard "Here's your day" rows — simple title + pop-out indicator */
.day-item { display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); font-family: var(--font-body); text-decoration: none; }
.day-item:hover { border-color: var(--sage); text-decoration: none; }
.day-item .ext-icon { width: 15px; height: 15px; fill: var(--muted); flex-shrink: 0; }
.day-item:hover .ext-icon { fill: var(--teal); }

/* ---------- Recipe grid ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .recipe-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .recipe-grid { grid-template-columns: 1fr; } }
.recipe-card { display: flex; flex-direction: column; gap: .5rem; position: relative; }
.recipe-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.recipe-card:hover { border-color: var(--sage); }
/* Stretched link covers the whole card; interactive children sit above it. */
.recipe-card .card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.recipe-card .fav-btn { position: relative; z-index: 2; }
.fav-btn { all: unset; cursor: pointer; font-family: var(--font-ui); font-weight: 600; font-size: .8rem;
  color: var(--terracotta); }
.fav-btn.on { color: #b4622f; }

/* Social share icon buttons (inline SVG — no external assets) */
.share-icons { display: inline-flex; }
.icon-btn { cursor: pointer; width: 34px; height: 34px; border-radius: 999px; padding: 0; line-height: 0;
  display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line);
  color: var(--teal-dark); background: #fff; transition: background .12s ease, color .12s ease, border-color .12s ease; }
.icon-btn:hover { background: var(--paper-2); text-decoration: none; }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.icon-btn.fb:hover { color: #1877F2; border-color: #1877F2; }
.icon-btn.pin:hover { color: #E60023; border-color: #E60023; }
.icon-btn.ig:hover { color: #C13584; border-color: #C13584; }

/* Recipe ingredients + servings scaler */
.servings-control .servings-input { width: 4rem; padding: .3rem .4rem; text-align: center; }
.ingredient-list { list-style: none; padding: 0; margin: .8rem 0 0; }
.ingredient-list .ingredient { display: flex; gap: .5rem; padding: .35rem 0; border-bottom: 1px dashed var(--line);
  align-items: baseline; }
.ingredient-list .ingredient:last-child { border-bottom: 0; }
.ingredient-list .amt { font-family: var(--font-ui); font-weight: 700; color: var(--terracotta);
  min-width: 4.5rem; flex-shrink: 0; }
.ingredient-list .item { color: var(--ink); }

/* What's-cooking weekly list — all seven days, stacked Sunday→Saturday */
.cook-week { list-style: none; padding: 0; margin: 1rem 0 0; }
.cook-week .cook-day { display: flex; gap: 1rem; padding: .55rem .2rem; border-bottom: 1px solid var(--line);
  align-items: baseline; }
.cook-week .cook-day:last-child { border-bottom: 0; }
.cook-week .cook-dow { font-family: var(--font-ui); font-weight: 700; font-size: .8rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--terracotta); min-width: 7rem; flex-shrink: 0; }
.cook-week .cook-meal { font-family: var(--font-body); }

/* ---------- Community (Discord teaser / funnel) ---------- */
.join-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  border-left: 5px solid var(--amber); }
.room-card { display: flex; flex-direction: column; gap: .25rem; transition: border-color .12s ease; }
.room-card:hover { border-color: var(--sage); text-decoration: none; }
.room-card h3 { font-family: var(--font-ui) !important; font-size: 1rem !important; }
.panel.buzz { display: flex; flex-direction: column; }
@media (max-width: 620px) { .join-cta { flex-direction: column; align-items: flex-start; } }

/* Discord-style mock — typography only, no images */
.discord-mock { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.dm-side { background: var(--ink); color: #cfc9bd; padding: .9rem .7rem; font-family: var(--font-ui); }
.dm-server { font-weight: 700; color: #fff; font-size: .95rem; padding: 0 .3rem .6rem;
  border-bottom: 1px solid #3a3633; margin-bottom: .5rem; }
.dm-section { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: #8c8578;
  padding: .2rem .4rem; }
.dm-chan { padding: .28rem .5rem; border-radius: 6px; font-size: .86rem; color: #b9b2a5; }
.dm-chan::before { content: '# '; color: #7d7669; }
.dm-chan.active { background: rgba(255,255,255,.12); color: #fff; }
.dm-main { padding: 1rem 1.2rem; }
.dm-head { font-family: var(--font-ui); font-weight: 700; border-bottom: 1px solid var(--line);
  padding-bottom: .6rem; margin: 0 0 .9rem; }
.dm-msg { display: flex; gap: .6rem; margin-bottom: .9rem; }
.dm-msg:last-child { margin-bottom: 0; }
.dm-avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--sage); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-ui);
  font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.dm-msg .who { font-family: var(--font-ui); font-weight: 700; font-size: .88rem; }
.dm-msg .when { font-size: .7rem; color: var(--muted); margin-left: .45rem; }
@media (max-width: 620px) {
  .discord-mock { grid-template-columns: 1fr; }
  .dm-side { display: flex; flex-wrap: wrap; gap: .2rem .4rem; }
  .dm-server { width: 100%; }
}

/* Discord join walkthrough */
.connect-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.connect-steps li { counter-increment: step; position: relative; padding: .2rem 0 1rem 3rem; }
.connect-steps li::before { content: counter(step); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 999px; background: var(--sage); color: #fff;
  font-family: var(--font-display); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.connect-steps li > strong { display: block; }
.connect-steps li span { display: block; margin-top: .15rem; }

/* ---------- Testimonials carousel ---------- */
.carousel { display: flex; align-items: center; gap: .5rem; max-width: 840px; margin: 0 auto; }
.carousel-viewport { overflow: hidden; flex: 1; }
.carousel-track { display: flex; transition: transform .35s ease; }
.testi-slide { flex: 0 0 100%; margin: 0; padding: .5rem 1rem; text-align: center; }
.testi-slide blockquote { font-family: var(--font-body); font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.45; color: var(--ink); margin: 0 0 .9rem; }
.testi-slide figcaption { font-family: var(--font-ui); font-weight: 700; font-size: .9rem; color: var(--terracotta); }
.carousel-arrow { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; line-height: 1;
  color: var(--teal-dark); border: 1.5px solid var(--line); background: #fff; }
.carousel-arrow:hover { background: var(--paper); border-color: var(--teal); }
.carousel-dots { display: flex; gap: .4rem; justify-content: center; margin-top: 1rem; }
.carousel-dots button { all: unset; cursor: pointer; width: 9px; height: 9px; border-radius: 999px; background: var(--line); }
.carousel-dots button.active { background: var(--terracotta); }
.carousel-arrow[disabled] { opacity: .3; cursor: default; }

/* Day strip (recipes "what's cooking") — 3 cards at a time, clamped, no wrap */
.day-strip { display: flex; align-items: center; gap: .5rem; }
.day-strip-viewport { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 1.2rem) / 3);
  gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none; }
.day-strip-viewport::-webkit-scrollbar { display: none; }
.day-strip-viewport > * { scroll-snap-align: start; }
.day-card { scroll-snap-align: start; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .8rem; display: flex; flex-direction: column; gap: .12rem; min-height: 116px; }
.day-card.today { border-color: var(--amber); background: #fff; }
.day-card-dow { font-family: var(--font-ui); font-weight: 700; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--terracotta); }
.day-card-date { font-family: var(--font-ui); font-size: .7rem; color: var(--muted); }
.day-card-meal { font-family: var(--font-body); margin-top: .35rem; line-height: 1.3; }
.day-card-meal.muted { color: var(--muted); font-style: italic; }
.fav-save.on { color: var(--terracotta); border-color: var(--terracotta); background: var(--paper-2); }
@media (max-width: 640px) { .day-strip-viewport { grid-auto-columns: calc((100% - .6rem) / 2); } }

/* Homepage recipe-week teaser */
.recipe-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; }
.recipe-week-card { display: flex; flex-direction: column; gap: .2rem; color: inherit; cursor: pointer; }
.recipe-week-card:hover { border-color: var(--sage); text-decoration: none; }
.recipe-week-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .recipe-week { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .recipe-week { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tables (admin) ---------- */
.table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); border-bottom: 2px solid var(--line); padding: .55rem .6rem; }
.table td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: #fff; }
.table.boxed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; }

/* ---------- Admin shell ---------- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; gap: 0; min-height: calc(100vh - 64px); }
.admin-side { background: #fff; border-right: 1px solid var(--line); padding: 1.2rem .8rem; }
.admin-side a { display: block; font-family: var(--font-ui); font-size: .9rem; color: #3a352f;
  padding: .5rem .7rem; border-radius: 8px; }
.admin-side a:hover { background: var(--paper-2); text-decoration: none; }
.admin-side a.active { background: var(--teal); color: #fff; }
.admin-side .grouplabel { font-family: var(--font-ui); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin: 1rem .7rem .3rem; }
.admin-main { padding: 1.6rem clamp(1rem, 3vw, 2.2rem); }
@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d3c7; margin-top: 3rem;
  font-family: var(--font-ui); font-size: .9rem; }
.site-footer .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.site-footer a { color: #e9cf9a; }
.site-footer h4 { color: #fff; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-note { border-top: 1px solid #3a3633; margin-top: 2rem; padding-top: 1.2rem;
  color: #9c958a; font-size: .8rem; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(35,31,32,.55); display: none;
  align-items: center; justify-content: center; z-index: 60; padding: 1rem; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--paper); border-radius: var(--radius); max-width: 460px; width: 100%;
  padding: 1.6rem; box-shadow: var(--shadow); max-height: 85vh; overflow-y: auto; }
.modal h3 { margin-bottom: .3rem; }
.modal-close { float: right; all: unset; cursor: pointer; font-size: 1.3rem; color: var(--muted); }

/* ---------- Misc utilities ---------- */
.tag-link { font-family: var(--font-ui); font-size: .8rem; padding: .25rem .6rem; border-radius: 999px;
  background: var(--paper-2); color: #5a554e; display: inline-block; }
.tag-link:hover { background: #e9e2d2; text-decoration: none; }
.kicker { font-family: var(--font-script); font-size: 1.6rem; color: var(--terracotta); }
.big-quote { font-family: var(--font-display); font-size: clamp(1.6rem,4vw,2.6rem); line-height: 1.1;
  color: var(--teal-dark); }
.feature-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--amber); }
.stat { font-family: var(--font-display); font-size: 2.6rem; color: var(--teal); }
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--sage);
  font-family: var(--font-ui); font-weight: 700; }
.divider-script { text-align: center; color: var(--terracotta); font-family: var(--font-script);
  font-size: 1.4rem; margin: 1rem 0; }
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .cal-cell { min-height: 90px; }
}
