/* Presentation chrome in the Bakers document language. Only the plates carry a direction's brand. */
:root {
  --bg: #171717; --text: #f5f5f5; --muted: #a8a8a8; --plate: #202020;
  --col: 1160px; --read: 480px; --gut: 16px; --pad: 40px;
  --edge-top-background: #171717; --edge-bottom-background: #171717;
}
* { box-sizing: border-box; }
html { background: var(--edge-top-background); }
body { margin: 0; background: var(--edge-bottom-background); color: var(--muted); font: 14px/24px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--text); font-size: 14px; line-height: 24px; font-weight: 600; }
p { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.wrap { width: min(var(--col), 100% - 2 * var(--pad)); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top .logo { display: block; width: 104px; height: 13px; background: var(--text); -webkit-mask: url(bakers-logo.svg) center / contain no-repeat; mask: url(bakers-logo.svg) center / contain no-repeat; }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 4px 10px; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
.top nav a:hover { background: #262626; color: var(--text); }
.top nav a[aria-current] { background: #262626; color: var(--text); }

/* Text blocks sit on the reading column, left of the grid */
.intro { padding: 96px 0 72px; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); }
.intro > * { grid-column: 1 / span 5; }
.intro .lede { margin-top: 24px; display: grid; gap: 16px; }
.intro .facts { grid-column: 8 / span 5; display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; align-self: end; }
.intro .facts dt { color: var(--muted); }
.intro .facts dd { margin: 0; color: var(--text); }

section.part { padding: 72px 0 0; }
section.part > .wrap > header { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); margin-bottom: 24px; }
section.part > .wrap > header h2 { grid-column: 1 / span 3; }
section.part > .wrap > header p { grid-column: 4 / span 6; }

.plate { position: relative; overflow: hidden; border-radius: 12px; background: var(--plate); }
.plates { display: grid; gap: var(--gut); }
.plates.two { grid-template-columns: 1fr 1fr; }
.plates.three { grid-template-columns: repeat(3, 1fr); }
.cap { margin-top: 8px; font-size: 12px; line-height: 20px; color: var(--muted); }

/* Full-bleed hero plate */
.hero { position: relative; width: 100%; height: min(100svh - 72px, 900px); min-height: 560px; overflow: hidden; }

/* Out-of-home mockups (ooh.js) */
figure.ooh { margin: 0; position: relative; overflow: hidden; border-radius: 12px; background: #000; }
figure.ooh .stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; isolation: isolate; }
figure.ooh .stage > img { position: absolute; inset: 0; width: 100%; height: 100%; }
figure.ooh .plane { position: absolute; left: 0; top: 0; transform-origin: 0 0; mix-blend-mode: multiply; overflow: hidden; }
figure.ooh .plane.lit { mix-blend-mode: normal; }

.next { padding: 120px 0 96px; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gut); }
.next a { grid-column: 1 / span 6; color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.next a svg { width: 14px; height: 14px; }

.edge-top, .edge-bottom { position: fixed; left: 0; right: 0; pointer-events: none; z-index: 100; }
.edge-top { top: 0; } .edge-bottom { bottom: 0; }
.edge-top::after, .edge-bottom::after { content: ""; position: absolute; left: 0; right: 0; }
.edge-top::after { top: 0; height: max(12px, env(safe-area-inset-top)); background: var(--edge-top-background); }
.edge-bottom::after { bottom: 0; height: max(12px, env(safe-area-inset-bottom)); background: var(--edge-bottom-background); }
@media (hover: hover) and (pointer: fine) { .edge-top, .edge-bottom { display: none; } }

@media (max-width: 760px) {
  :root { --pad: 16px; }
  .top nav a:not([aria-current]) { display: none; }
  .intro { padding: 56px 0 40px; display: block; }
  .intro .facts { margin-top: 32px; }
  section.part { padding-top: 56px; }
  section.part > .wrap > header { display: block; }
  section.part > .wrap > header p { margin-top: 4px; }
  .plates.two, .plates.three { grid-template-columns: 1fr; }
  .hero { height: auto; min-height: 0; aspect-ratio: 3 / 4; }
}

/* Device frames: fills only. Scaled live pages use frames.js (data-w / data-h on .viewport). */
.browser { border-radius: 12px; overflow: hidden; background: #0d0d0d; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.browser .bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #242424; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b3b3b; }
.browser .bar .url { margin: 0 auto; transform: translateX(-24px); padding: 1px 14px; border-radius: 6px; background: #1a1a1a; font-size: 12px; line-height: 22px; color: var(--muted); }
.viewport { position: relative; overflow: hidden; }
.viewport > iframe, .viewport > .page { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; }
.phone { position: relative; aspect-ratio: 390 / 844; border-radius: 13% / 6%; padding: 3.2%; background: #0b0b0b; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); }
.phone > .viewport { width: 100%; height: 100%; border-radius: 10.5% / 4.9%; }
.open { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 14px; border-radius: 999px; background: #262626; color: var(--text); font-weight: 600; transition: background .2s; }
.open:hover { background: #303030; }
.open svg { width: 12px; height: 12px; }
