/* ════════════════════════════════════════════════════════════════════
   The Bento : shared styles. Reuses the Flip-a-Lunch design tokens
   (warm cream surfaces, coral accent, Nunito + Figtree, soft cards).
   ════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:          #e6e0e2;
  --surface:     #FFFBF2;
  --text:        #4d2738;
  --muted:       #7d4d65;
  --subtle:      #FFE8CC;
  --accent:      #FF5E6C;
  --accent-dark: #E84D5A;
  --accent-dim:  rgba(255,94,108,0.12);
  --accent-glow: rgba(255,94,108,0.30);
  --yellow:      #B8740A;
  --soft:        #FFAAAB;
  --locked:      #3A2A20;
  --locked-bg:   rgba(254,179,0,0.14);
  --locked-edge: #FEB300;
  --shadow-sm:   0 1px 4px rgba(77,39,56,0.06), 0 2px 10px rgba(77,39,56,0.05);
  --shadow-md:   0 4px 20px rgba(77,39,56,0.10), 0 1px 4px rgba(77,39,56,0.05);
  --shadow-lg:   0 12px 40px rgba(77,39,56,0.13), 0 2px 8px rgba(77,39,56,0.06);
  --font-display:'Nunito', sans-serif;
  --font-body:   'Figtree', sans-serif;
  --r:           18px;
}

html, body {
  min-height: 100%;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.bento-wrap { max-width: 1020px; margin: 0 auto; padding: 28px 24px 96px; }

/* ── TOP BAR ─────────────────────────────────────────────────────── */
.bento-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0 22px; gap: 16px; flex-wrap: wrap;
}
.bento-home { text-decoration: none; display: inline-flex; align-items: center; }
.bento-home-logo { height: 36px; width: auto; max-width: 100%; display: block; }
@media (max-width: 420px) { .bento-home-logo { height: auto; width: 52vw; max-width: 200px; } }
.bento-crumbs { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bento-crumbs a { color: var(--muted); text-decoration: none; transition: color .18s; }
.bento-crumbs a:hover { color: var(--accent); }
.bento-crumbs .sep { opacity: 0.5; }
.bento-crumbs .here { color: var(--text); font-weight: 600; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--yellow);
}

/* ── LANDING HERO ────────────────────────────────────────────────── */
.bento-masthead { text-align: center; padding: 30px 0 6px; }
.bento-masthead .eyebrow { display: block; margin-bottom: 14px; }
.bento-h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.08;
  letter-spacing: -0.02em; color: var(--text); margin-bottom: 16px;
  text-wrap: balance;
}
.bento-lede {
  font-size: 17px; color: var(--muted); max-width: 560px;
  margin: 0 auto; line-height: 1.7; text-wrap: pretty;
}

/* ── FEATURE CARD ────────────────────────────────────────────────── */
.bento-feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--surface); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-md); border: 1.5px solid var(--subtle);
  margin: 40px 0 18px; text-decoration: none; color: inherit;
  transition: box-shadow .25s, transform .25s;
}
.bento-feature:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.bento-feature-media { position: relative; min-height: 320px; }
.bento-feature-media .bento-tile,
.bento-feature-media .bento-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bento-feature-tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: var(--surface); color: var(--text);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 13px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.bento-feature-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.bento-feature-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.bento-feature-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.15;
  color: var(--text); margin-bottom: 14px; text-wrap: balance;
}
.bento-feature-excerpt { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 22px; text-wrap: pretty; }
.bento-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.bento-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--soft); }
.bento-readmore {
  margin-top: 24px; font-weight: 700; font-size: 15px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
}
.bento-feature:hover .bento-readmore .arrow { transform: translateX(4px); }
.bento-readmore .arrow { transition: transform .2s; }

/* ── ILLUSTRATION TILE / IMAGE ───────────────────────────────────── */
.bento-tile { display: flex; align-items: center; justify-content: center; }
.bento-tile svg { width: 40%; max-width: 120px; height: auto; }
.bento-img { object-fit: cover; }

/* ── FILTERS ─────────────────────────────────────────────────────── */
.bento-filters {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 40px 0 30px;
}
.bento-pill {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--subtle);
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: all .18s; white-space: nowrap;
}
.bento-pill:hover { border-color: var(--accent); color: var(--accent); }
.bento-pill.active { background: var(--soft); border-color: var(--soft); color: var(--text); }

/* ── GRID ────────────────────────────────────────────────────────── */
.bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.bento-card {
  background: var(--surface); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1.5px solid transparent;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.bento-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--subtle); }
.bento-card-media { position: relative; aspect-ratio: 3 / 2; }
.bento-card-media .bento-tile,
.bento-card-media .bento-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bento-card-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--surface); color: var(--text);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em;
  padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.bento-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.bento-card-title {
  font-family: var(--font-display); font-weight: 800; font-size: 18.5px;
  line-height: 1.25; color: var(--text); margin-bottom: 9px; text-wrap: pretty;
}
.bento-card:hover .bento-card-title { color: var(--accent); }
.bento-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; flex: 1; text-wrap: pretty; }
.bento-card-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.bento-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--soft); }

.bento-empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted);
}
.bento-empty p { font-size: 15px; }

/* ── ARTICLE PAGE ────────────────────────────────────────────────── */
.bento-article { max-width: 720px; margin: 0 auto; }
.bento-article-head { text-align: center; padding: 18px 0 30px; }
.bento-article-cat {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.bento-article-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 4.4vw, 42px); line-height: 1.12;
  letter-spacing: -0.02em; color: var(--text); margin-bottom: 18px; text-wrap: balance;
}
.bento-article-excerpt { font-size: 18px; color: var(--muted); line-height: 1.6; margin-bottom: 22px; text-wrap: pretty; }
.bento-byline {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13.5px; color: var(--muted); flex-wrap: wrap;
}
.bento-byline .author { font-weight: 700; color: var(--text); }
.bento-byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--soft); }
.bento-byline .updated { font-style: italic; opacity: 0.85; }

.bento-hero-media {
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md);
  border: 1.5px solid var(--subtle); aspect-ratio: 16 / 8; position: relative; margin-bottom: 40px;
}
.bento-hero-media .bento-tile,
.bento-hero-media .bento-img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* prose */
.bento-prose { font-size: 18px; line-height: 1.78; color: var(--text); }
.bento-prose > * + * { margin-top: 1.15em; }
.bento-prose h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 25px;
  line-height: 1.25; color: var(--text); margin-top: 1.7em; letter-spacing: -0.01em;
}
.bento-prose h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--text); margin-top: 1.4em;
}
.bento-prose p { color: var(--text); text-wrap: pretty; }
.bento-prose strong { font-weight: 700; color: var(--text); }
.bento-prose em { font-style: italic; }
.bento-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.bento-prose a:hover { color: var(--accent-dark); }
.bento-prose ul, .bento-prose ol { padding-left: 1.4em; }
.bento-prose li { margin-top: 0.5em; padding-left: 0.2em; }
.bento-prose li::marker { color: var(--soft); font-weight: 700; }
.bento-prose blockquote {
  border-left: 3px solid var(--yellow); background: var(--surface);
  padding: 18px 24px; border-radius: 0 14px 14px 0; box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  color: var(--text); line-height: 1.5; font-style: normal;
}

/* article footer */
.bento-article-foot {
  margin-top: 48px; padding-top: 28px; border-top: 1.5px solid var(--subtle);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.bento-back {
  font-weight: 700; font-size: 15px; color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.bento-back .arrow { transition: transform .2s; }
.bento-back:hover .arrow { transform: translateX(-4px); }
.bento-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.bento-tag {
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1.5px solid var(--subtle);
  padding: 5px 11px; border-radius: 999px;
}

/* ── RELATED ─────────────────────────────────────────────────────── */
.bento-related { margin-top: 70px; }
.bento-related-head { text-align: center; margin-bottom: 30px; }
.bento-related-head .eyebrow { display: block; margin-bottom: 8px; }
.bento-related-title {
  font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--text);
}

/* ── DIVIDER (apple motif, reused) ───────────────────────────────── */
.bento-divider { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 64px 0 8px; }
.bento-divider-line { flex: 1; max-width: 120px; height: 1.5px; background: var(--subtle); border-radius: 2px; }
.bento-divider svg { width: 40px; height: 40px; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.bento-footer { margin-top: 60px; padding-top: 26px; border-top: 1.5px solid var(--subtle); text-align: center; }
.bento-footer-nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.bento-footer-nav a { font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .18s; }
.bento-footer-nav a:hover { color: var(--accent); }
.bento-footer-nav .sep { color: var(--subtle); }
.bento-footer-copy { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ── FALLBACK ("lunch break") ────────────────────────────────────── */
.bento-fallback { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.bento-fallback-card { text-align: center; max-width: 440px; }
.bento-fallback-card svg { width: 76px; height: 76px; margin-bottom: 22px; }
.bento-fallback-title {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  line-height: 1.25; color: var(--text); margin-bottom: 10px; text-wrap: balance;
}
.bento-fallback-text { font-size: 16px; color: var(--muted); margin-bottom: 26px; }
.bento-fallback-link {
  display: inline-block; font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 13px 28px; background: var(--accent); color: #fff; border-radius: 999px;
  text-decoration: none; box-shadow: 0 4px 18px rgba(255,94,108,0.30); transition: background .15s, transform .15s;
}
.bento-fallback-link:hover { background: var(--accent-dark); transform: scale(1.03); }

/* ── LOADING ─────────────────────────────────────────────────────── */
.bento-loading { min-height: 50vh; display: flex; align-items: center; justify-content: center; }
.bento-spinner {
  width: 28px; height: 28px; border: 3px solid var(--subtle);
  border-top-color: var(--accent); border-radius: 50%; animation: bentospin .7s linear infinite;
}
@keyframes bentospin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-feature { grid-template-columns: 1fr; }
  .bento-feature-media { min-height: 220px; aspect-ratio: 16 / 9; }
  .bento-feature-body { padding: 30px 28px; }
}
@media (max-width: 560px) {
  .bento-wrap { padding: 22px 16px 72px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-prose { font-size: 17px; }
  .bento-article-foot { flex-direction: column; align-items: flex-start; }
}
