/* Million Dollar Baby Co — brand layer.
   Loaded AFTER css/theme.css (the starter's structural stylesheet, kept for post/page
   typography, the tree-menu dropdown and the mobile <dialog> drawer). Everything visual that
   makes this theme MDB Co lives here. Light-only: tokens.json and tokens.light.json carry the
   same cream palette. */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-var-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root { color-scheme: light; --radius-lg: 28px; --radius-xl: 40px; --header-h: 76px; }

html, body { background: var(--bg); color: var(--fg); }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
p { color: var(--muted); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 380; letter-spacing: -0.02em; font-variation-settings: 'SOFT' 50, 'opsz' 96; }
::selection { background: var(--clay-soft); color: var(--ink); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; }
.skip-link:focus { top: 12px; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: var(--container); padding-inline: clamp(20px, 4vw, 40px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 500; font-size: 15px; letter-spacing: 0.01em; border-radius: 999px; padding: 14px 26px; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s, translate .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease-out; cursor: pointer; text-decoration: none; }
.btn-solid, .btn-clay { background: var(--ink); color: #FAF6F0; }
.btn-solid:hover, .btn-clay:hover { background: var(--accent-text); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--ink); color: #FAF6F0; border-color: var(--ink); }
.btn-light { background: #FAF6F0; color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header, :root[data-theme="light"] .site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); }
.site-header.scrolled { border-bottom-color: var(--border); }
.nav-row { height: var(--header-h); gap: 24px; }
.brand.mdb-brand { display: flex; flex-direction: column; line-height: 1; gap: 3px; font-family: var(--font-display); color: var(--ink); }
.mdb-brand .brand-word { font-size: 21px; font-weight: 450; letter-spacing: -0.01em; white-space: nowrap; }
.mdb-brand .brand-word em { font-style: italic; color: var(--accent-text); }
.mdb-brand .brand-sub { font-family: var(--font-body); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.main-nav a, .main-nav .menu-item > a { font-size: 15px; color: var(--ink); opacity: .82; }
.main-nav a:hover, .main-nav a[aria-current="page"] { opacity: 1; color: var(--accent-text); }
.main-nav .menu-list.depth-2, .main-nav ul ul { background: var(--bg); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(31,27,24,.25); }
.nav-actions { gap: 10px; }
.nav-actions .nav-cta { padding: 11px 20px; font-size: 14px; }
@media (max-width: 900px) { .nav-actions .nav-cta { display: none; } }
.mnav, .mnav-panel { background: var(--bg); color: var(--fg); }
.mnav-title { font-family: var(--font-display); font-size: 22px; }

/* ---------- shared section bits ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section { padding-block: clamp(80px, 11vw, 150px); }
.section-title { font-size: clamp(38px, 5.2vw, 72px); line-height: 1.02; color: var(--ink); }
.section-title em { font-style: italic; color: var(--accent-text); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.65; max-width: 56ch; }

/* ---------- hero ---------- */
.mdb-hero { padding-block: clamp(36px, 6vw, 72px) clamp(64px, 8vw, 110px); }
.mdb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.mdb-hero h1 { font-size: clamp(54px, 8.6vw, 128px); line-height: .94; letter-spacing: -0.035em; color: var(--ink); font-weight: 340; }
.mdb-hero h1 em { font-style: italic; color: var(--accent-text); font-weight: 300; }
.mdb-hero .lead { margin-top: 30px; }
.mdb-hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-media { position: relative; }
.hero-media .frame { border-radius: 240px 240px var(--radius-xl) var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; display: block; }
.hero-badge { position: absolute; left: -28px; bottom: 44px; background: var(--bg); border-radius: 22px; padding: 18px 22px; box-shadow: 0 24px 50px -24px rgba(31,27,24,.35); display: flex; align-items: center; gap: 14px; }
.hero-badge b { font-family: var(--font-display); font-size: 40px; font-weight: 380; color: var(--accent-text); line-height: 1; }
.hero-badge > span { font-size: 13px; line-height: 1.35; color: var(--muted); max-width: 13ch; }
.hero-sprig { position: absolute; right: -18px; top: 40px; width: 92px; height: 92px; border-radius: 50%; background: var(--sage-soft); display: grid; place-items: center; color: var(--sage); }

/* ---------- brand strip ---------- */
.brand-strip { border-block: 1px solid var(--border); padding-block: 34px; }
.brand-strip .wrap { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; justify-content: space-between; }
.brand-strip .label { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); flex: 0 0 auto; }
.brand-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: clamp(18px, 3.6vw, 52px); align-items: baseline; }
.brand-list li { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.brand-list li:nth-child(even) { font-style: italic; }

/* ---------- mission ---------- */
.mission-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.mission-media { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 5 / 6; background: var(--surface-2); }
.mission-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mission-copy p + p { margin-top: 18px; }
.mission-copy .lead { margin-top: 28px; }
.signature { margin-top: 34px; font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--ink); }

/* ---------- stats ---------- */
.stats-band { background: var(--ink); color: #FAF6F0; border-radius: var(--radius-xl); padding: clamp(44px, 6vw, 80px) clamp(28px, 5vw, 72px); }
.stats-band .stats-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.stats-band h2 { font-size: clamp(30px, 3.6vw, 48px); color: #FAF6F0; max-width: 18ch; line-height: 1.08; }
.stats-band h2 em { color: #E9B79C; font-style: italic; }
.stats-band .stats-head p { color: rgba(250,246,240,.72); max-width: 40ch; }
.stats-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stats-grid li { padding: 8px clamp(14px, 2vw, 28px); border-left: 1px solid rgba(250,246,240,.18); }
.stats-grid li:first-child { border-left: 0; padding-left: 0; }
.stat-value { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: 340; font-size: clamp(48px, 6vw, 84px); line-height: 1; color: #FAF6F0; letter-spacing: -0.03em; }
.stat-number { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.stat-number.w4 { inline-size: 4.1ch; }
.stat-number.w1 { inline-size: 0.75ch; }
.stat-number.w3 { inline-size: 2.7ch; }
.stat-value .unit { color: #E9B79C; font-style: italic; }
.stat-value.word { font-style: italic; font-size: clamp(36px, 4.4vw, 60px); padding-block: .08em; }
.stat-label { margin-top: 14px; font-size: 14.5px; color: rgba(250,246,240,.72); line-height: 1.45; max-width: 22ch; }

/* ---------- we design (categories) ---------- */
.design-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li a, .chips li span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 1px solid var(--border-strong); font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); color: var(--ink); background: transparent; transition: background .25s, color .25s, border-color .25s; }
.chips li:nth-child(3n+1) span { background: var(--clay-soft); border-color: transparent; }
.chips li:nth-child(3n+2) span { background: var(--sage-soft); border-color: transparent; }
.chips .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chips li:nth-child(3n+2) .dot { background: var(--sage); }
.chips li:nth-child(3n) .dot { background: var(--ink); }
.design-feature { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.design-feature figure { margin: 0; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-2); position: relative; }
.design-feature figure img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 11; }
.design-feature .note { border-radius: var(--radius-xl); background: var(--surface); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.design-feature .note h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; color: var(--ink); }
.design-feature .note ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.design-feature .note li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; color: var(--muted); }
.design-feature .note li::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--sage); transform: translateY(-2px); }

/* ---------- story (since 1990) ---------- */
.story { background: var(--surface); }
.story-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.story-media { position: relative; }
.story-media .frame { border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 220px; overflow: hidden; aspect-ratio: 4 / 5; }
.story-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; display: block; }
.story-year { position: absolute; right: -20px; top: -26px; font-family: var(--font-display); font-style: italic; font-size: clamp(64px, 8vw, 120px); line-height: 1; color: var(--accent-text); font-weight: 300; }
.timeline { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.timeline b { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--ink); }
.timeline span { color: var(--muted); font-size: 15.5px; }
.story .cta-row { margin-top: 36px; }

/* ---------- careers ---------- */
.careers-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--sage-soft); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: stretch; }
.careers-copy { padding: clamp(36px, 6vw, 80px); }
.careers-copy .section-title { font-size: clamp(36px, 4.6vw, 64px); }
.careers-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.careers-list li { display: flex; gap: 14px; align-items: baseline; font-size: 17px; color: var(--ink); }
.careers-list li::before { content: "\2192"; color: var(--accent-text); font-weight: 500; }
.careers-copy .cta-row { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.careers-media { position: relative; min-height: 420px; }
.careers-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; display: block; }

/* ---------- closing quote ---------- */
.closing { text-align: center; }
.closing blockquote { margin: 0 auto; max-width: 22ch; font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 64px); line-height: 1.1; color: var(--ink); font-weight: 340; letter-spacing: -0.02em; }
.closing blockquote em { color: var(--accent-text); }
.closing .cta-row { justify-content: center; display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

/* the CMS Home page body, if the owner adds one */
.landing-content { padding-block: 0 72px; }
.landing-content:not(:has(.post-detail-body > *)) { display: none; }

/* ---------- footer ---------- */
.site-footer.mdb-footer { background: var(--ink); color: #FAF6F0; border-top: 0; padding: clamp(64px, 8vw, 110px) 0 36px; margin-top: clamp(24px, 4vw, 48px); }
.section.closing { padding-bottom: clamp(56px, 7vw, 96px); }
.mdb-footer .footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(250,246,240,.16); }
.mdb-footer .footer-brand p { color: rgba(250,246,240,.7); max-width: 34ch; margin-top: 18px; font-size: 15.5px; }
.mdb-footer .footer-logo { display: block; width: 116px; height: 116px; border-radius: 22px; background: #FAF6F0; padding: 6px; }
.mdb-footer .footer-logo img { width: 100%; height: 100%; display: block; }
.mdb-footer h2 { font-family: var(--font-body); font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #E9B79C; margin-bottom: 18px; }
.mdb-footer .footer-col a, .mdb-footer .footer-col li a { display: block; color: rgba(250,246,240,.82); font-size: 15px; margin-bottom: 12px; }
.mdb-footer .footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.mdb-footer .footer-col ul { list-style: none; margin: 0; padding: 0; }
.mdb-footer .footer-col address { font-style: normal; color: rgba(250,246,240,.82); font-size: 15px; line-height: 1.7; }
.mdb-footer .footer-col-menu:not(:has(a)) { display: none; }
.mdb-footer .footer-big { font-family: var(--font-display); font-size: clamp(56px, 11vw, 168px); line-height: .9; letter-spacing: -0.04em; color: rgba(250,246,240,.08); padding-top: 40px; font-weight: 340; white-space: nowrap; overflow: hidden; }
.mdb-footer .footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 0; padding-top: 24px; font-size: 13.5px; color: rgba(250,246,240,.6); }
.mdb-footer .footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.mdb-footer .footer-legal a { color: rgba(250,246,240,.75); font-size: 13.5px; display: inline; margin: 0; }
.mdb-footer .footer-legal a:hover { color: #fff; }
.mdb-footer .footer-legal ul { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.mdb-footer :focus-visible { outline-color: #E9B79C; }

/* ---------- inner pages ---------- */
.post-detail h1, .post-detail-header h1 { font-family: var(--font-display); color: var(--ink); }
.post-detail-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .mdb-footer .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mdb-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .mdb-hero-grid, .mission-grid, .story-grid, .design-head, .design-feature, .careers-band { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-badge { left: 12px; bottom: 18px; }
  .hero-sprig { right: 6px; top: 16px; width: 72px; height: 72px; }
  .mission-media { order: 2; aspect-ratio: 4 / 3; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .stats-grid li:nth-child(3) { border-left: 0; padding-left: 0; }
  .story-year { right: 8px; top: -18px; }
  .careers-media { min-height: 320px; order: -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-grid li { border-left: 0; padding-left: 0; border-top: 1px solid rgba(250,246,240,.18); padding-top: 22px; }
  .stats-grid li:first-child { border-top: 0; padding-top: 0; }
  .timeline li { grid-template-columns: 76px minmax(0, 1fr); }
  .mdb-footer .footer-top { grid-template-columns: minmax(0, 1fr); }
  .brand-strip .wrap { justify-content: flex-start; }
  .mdb-brand .brand-word { font-size: 18px; }
}
