/* Maple Line Bakery — warm brown, full-width hero strip */
:root {
  --espresso: #2c1810;
  --maple: #8b5a2b;
  --cream: #fff9f0;
  --butter: #f5e6d3;
  --muted: #6b5344;
  --banner-bg: #2c1810;
  --banner-fg: #fff9f0;
  --font: "Segoe UI", system-ui, sans-serif;
  --display: "Segoe UI", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}

/* “Flour dust” grain + angled hero cut */
body.mlb-theme {
  background-color: var(--cream);
  background-image: radial-gradient(
    rgba(139, 90, 43, 0.11) 1.2px,
    transparent 1.2px
  );
  background-size: 16px 16px;
}

.mlb-hero-strip {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 50% 100%, 0 calc(100% - 20px));
  padding-bottom: 2.75rem;
}

.mlb-hero-strip::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0.35rem;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 249, 240, 0.45) 20%,
    rgba(255, 249, 240, 0.45) 80%,
    transparent
  );
  opacity: 0.7;
  pointer-events: none;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--maple);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 200;
}
.skip:focus {
  left: 0.5rem;
}

.mlb-hero-strip {
  background: linear-gradient(135deg, var(--espresso) 0%, #4a2c1a 100%);
  color: var(--cream);
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
}
.mlb-hero-strip h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.5rem;
  font-weight: 700;
}
.mlb-hero-strip .lead {
  margin: 0 auto;
  max-width: 36rem;
  opacity: 0.95;
  font-size: 1.05rem;
}

.mlb-bar {
  background: var(--butter);
  border-bottom: 2px solid rgba(139, 90, 43, 0.25);
}
.mlb-bar__inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.mlb-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--espresso);
  text-decoration: none;
}
.mlb-brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mlb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
.mlb-nav a {
  color: var(--maple);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}
.mlb-nav a:hover,
.mlb-nav a.active {
  text-decoration: underline;
  color: var(--espresso);
}

.mlb-main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.mlb-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--maple);
  font-weight: 800;
  margin: 0 0 0.35rem;
}

h1.page-title {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1rem 0 1.5rem;
  box-shadow: 0 16px 40px rgba(44, 24, 16, 0.12);
}

.tile-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 540px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tile {
  display: block;
  padding: 1.2rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(139, 90, 43, 0.2);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.tile:hover {
  border-color: var(--maple);
  box-shadow: 0 8px 24px rgba(139, 90, 43, 0.12);
}
.tile-grid .tile:nth-child(odd):hover {
  transform: rotate(-1.2deg) translateY(-2px);
}
.tile-grid .tile:nth-child(even):hover {
  transform: rotate(1.2deg) translateY(-2px);
}

.mlb-bake-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--espresso);
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed var(--maple);
  border-radius: 4px;
}
.tile h2 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  color: var(--espresso);
}
.tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn--fill {
  background: var(--maple);
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--espresso);
  border-color: var(--espresso);
}

.legal-doc h2 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.5rem;
}
.legal-doc p,
.legal-doc ul {
  margin: 0 0 1rem;
}
.legal-muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.policy-band {
  margin: 2rem 0 1rem;
  padding: 1.4rem 1.2rem;
  background: #fff;
  border: 2px solid var(--maple);
  border-radius: 12px;
}
.policy-band__title {
  font-size: 1.1rem;
  margin: 0 0 0.45rem;
}
.policy-band__lede {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.policy-band__grid {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 560px) {
  .policy-band__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.policy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.65rem;
  font-weight: 800;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--espresso);
  border-radius: 8px;
}
.policy-btn:hover {
  opacity: 0.92;
}
.policy-btn--accent {
  background: var(--maple);
}

.site-foot {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(139, 90, 43, 0.2);
  font-size: 0.86rem;
  color: var(--muted);
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.45rem 0;
}
.foot-legal a {
  color: var(--maple);
  font-weight: 700;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--banner-bg);
  color: var(--banner-fg);
  padding: 1rem 1.25rem;
  z-index: 999;
  border-top: 3px solid var(--maple);
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-banner__inner {
  max-width: 50rem;
  margin: 0 auto;
}
.cookie-banner__title {
  font-size: 0.98rem;
  margin: 0 0 0.45rem;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
}
.cookie-banner .btn--fill {
  border: none;
}
.cookie-banner .btn--outline {
  color: var(--banner-fg);
  border-color: rgba(255, 249, 240, 0.45);
}
.cookie-banner a {
  color: #fcd34d;
}
