/* Shared theme for the HackMeridian 2026 decks, following the Aha master deck
   (theahaco/brand templates): 1920×1080 canvas, Space Grotesk for titles and
   labels, Spectral for body text, brand colors and neutrals only. */
@font-face { font-family: "Spectral"; font-weight: 400; src: url(assets/fonts/spectral-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 600; src: url(assets/fonts/spectral-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 600; font-style: italic; src: url(assets/fonts/spectral-latin-600-italic.woff2) format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 700; src: url(assets/fonts/spectral-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 400; src: url(assets/fonts/space-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; src: url(assets/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; src: url(assets/fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }

:root {
  /* Brand colors */
  --navy: #1a3b60;
  --green: #47a019;
  --tan: #d6bdbe;
  --pink: #f6e2ff;
  /* Neutrals and tints derived from them */
  --ink: #14181d;
  --slate: #3c4753;
  --grey: #6b7480;
  --mid-grey: #8a94a0;
  --rule: #c9ced6;
  --blue-10: #e8ebef;
  --green-12: #e9f4e3;
  --lavender: #fbf3ff;
  --tan-30: #f3ebeb;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --serif: "Spectral", Georgia, serif;
  --mono: "Liberation Mono", ui-monospace, Menlo, Consolas, monospace;
}

body, .reveal-viewport { background: #fff; }
/* Body runs a little above the brand's 24–26px so it reads from the back of a hall */
.reveal { font-family: var(--serif); font-size: 32px; color: var(--ink); }
.reveal .slides { text-align: left; }
/* Brand grid: 96px side margins, 80px top, 56px footer band */
.reveal .slides section { box-sizing: border-box; height: 1080px; padding: 80px 96px 120px; }
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--sans); color: var(--navy); text-transform: none; letter-spacing: normal; text-shadow: none;
}
.reveal h1 { font-weight: 700; font-size: 84px; line-height: 1.05; margin: 0 0 24px; }
.reveal h1 em { font-style: normal; }
.reveal h2 { font-weight: 700; font-size: 56px; line-height: 1.1; margin: 0 0 32px; }
.reveal h2 .num { color: var(--green); margin-right: 0.35em; }
.reveal h3 { font-weight: 500; font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
.reveal p { margin: 0 0 20px; line-height: 1.4; }
.reveal strong, .reveal b { color: var(--navy); font-weight: 600; }
.reveal a { color: var(--navy); }
.reveal ul { display: block; margin: 0 0 20px 1.1em; }
.reveal li { margin: 10px 0; line-height: 1.4; }
.reveal li::marker { color: var(--green); }

.reveal .eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); margin: 0 0 16px;
}
.reveal .lead { font-size: 34px; color: var(--slate); }
.reveal .muted { color: var(--grey); }
.reveal .small { font-size: 26px; }
.reveal .label { font-family: var(--sans); font-weight: 500; font-size: 24px; color: var(--navy); margin: 0 0 12px; }

/* Code: Tan 30% panels with a green rule */
.reveal pre {
  position: relative; width: 100%; margin: 0 0 24px; box-shadow: none; font-size: 28px;
  background: var(--tan-30); border-left: 6px solid var(--green); border-radius: 0;
}
.reveal pre.tight { font-size: 24px; }
.reveal pre.dense { font-size: 20px; }
.reveal pre.dense code { padding: 16px 24px; }
.reveal pre code { max-height: 680px; padding: 24px 32px; background: var(--tan-30); color: var(--ink); font-family: var(--mono); line-height: 1.45; }
.reveal code { font-family: var(--mono); }
.reveal p code, .reveal li code, .reveal .card code { color: var(--navy); background: var(--tan-30); padding: 0 0.2em; font-size: 0.85em; }
.reveal .hljs-comment { color: var(--grey); }
.reveal .hljs-keyword, .reveal .hljs-built_in, .reveal .hljs-type, .reveal .hljs-attr { color: var(--navy); font-weight: 700; }
.reveal .hljs-string, .reveal .hljs-number, .reveal .hljs-literal { color: var(--green); }
.reveal .hljs-title, .reveal .hljs-function .hljs-title, .reveal .hljs-variable, .reveal .hljs-template-variable { color: var(--slate); }
.reveal .hljs-tag, .reveal .hljs-name { color: var(--navy); }
.reveal .hljs.has-highlights tr:not(.highlight-line) { opacity: 0.35; }
.reveal .hljs-ln-numbers { color: var(--mid-grey); }

/* Layout helpers: brand gutters, 48 for three columns, 64 for two */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split.wide-left { grid-template-columns: 1.3fr 1fr; }
.split.wide-right { grid-template-columns: 1fr 2fr; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.card { background: var(--lavender); border-top: 4px solid var(--navy); padding: 32px 36px; font-size: 26px; line-height: 1.4; }
.card h3 { font-family: var(--mono); font-weight: 700; font-size: 26px; }
.card h3 span { font-family: var(--sans); font-weight: 400; color: var(--ink); }
.card .muted { margin: 0; }
.reveal img { max-width: 100%; }
/* Keep screenshots clear of the bottom of the stage screen */
.reveal .slides section:not(.navy) img:not([src$=".svg"]) { width: auto; max-height: 420px; }
/* Except where reading the screenshot matters more than the bottom edge */
.reveal .slides section:not(.navy) img.big-shot:not([src$=".svg"]) { width: 580px; max-height: none; }
.reveal .slides section:not(.navy) img.fill-shot:not([src$=".svg"]) { width: 100%; max-height: none; }
.reveal .slides section:not(.navy) img.match-code:not([src$=".svg"]) { max-height: 459px; }

/* Status pills */
.reveal .tag {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; vertical-align: middle;
  font-family: var(--sans); font-weight: 500; font-size: 18px; padding: 4px 14px; border-radius: 999px;
}
.reveal .tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; }
.reveal .tag.now { background: var(--green-12); color: var(--navy); }
.reveal .tag.now::before { background: var(--green); }
.reveal .tag.soon { background: var(--blue-10); color: var(--slate); }
.reveal .tag.soon::before { border: 2px solid var(--mid-grey); }

/* Navy slides: cover, section dividers, closing (data-background-color="#1a3b60") */
.reveal section.navy { color: #fff; }
.reveal section.navy h1, .reveal section.navy h2 { color: #fff; }
.reveal section.navy p, .reveal section.navy .eyebrow { color: var(--pink); }
.reveal section.navy b { color: #fff; }
.reveal section.navy code { background: rgba(255, 255, 255, 0.14); color: #fff; }
.reveal section.navy { padding-bottom: 56px; }
.brand-logo { width: 280px; display: block; }
.cover { display: flex; flex-direction: column; height: 100%; }
.cover .content { margin-top: 64px; max-width: 1300px; }
.cover .bottom {
  display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.4); font: 20px var(--sans); color: #fff;
}

.divider { display: flex; align-items: flex-start; gap: 56px; padding-top: 140px; }
.divider .numeral { font: 400 280px/0.8 var(--serif); color: var(--green); }
.divider .text { border-left: 2px solid rgba(255, 255, 255, 0.4); padding-left: 56px; max-width: 1100px; }
.divider .text p:last-child { margin: 0; }

.closing { display: flex; flex-direction: column; height: 100%; }
.closing .row { margin-top: 72px; display: flex; justify-content: space-between; align-items: flex-end; gap: 96px; }
.closing .qr { background: #fff; padding: 24px; text-align: center; }
.closing .qr img { width: 280px; display: block; }
.reveal section.navy .closing .qr p { color: var(--navy); font: 18px var(--sans); margin: 12px 0 0; }

/* Agenda (brand p.38) */
.agenda { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; }
.agenda ol { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.agenda li {
  display: grid; grid-template-columns: 72px 1fr auto; margin: 0; padding: 22px 0;
  border-top: 1px solid var(--rule); line-height: 1.3;
}
.agenda .n { font: 500 28px var(--sans); color: var(--green); }
.agenda h3 { margin: 0 0 4px; }
.agenda li p { margin: 0; font-size: 22px; color: var(--grey); }
.agenda .min { font: 400 24px var(--sans); color: var(--slate); }

/* Pink slides: big idea and key takeaways (data-background-color="#f6e2ff") */
.quote { margin-top: 140px; max-width: 1500px; }
.quote::before { content: ""; display: block; width: 120px; height: 8px; background: var(--green); margin-bottom: 48px; }
.quote p { font: 700 72px/1.15 var(--sans); color: var(--navy); margin: 0 0 24px; }
.takeaways { list-style: none; margin: 64px 0 0; padding: 0; }
.takeaways li { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; margin: 0 0 44px; }
.takeaways .n { font: 400 96px/1 var(--serif); color: var(--green); }
.takeaways p { font: 500 36px/1.35 var(--sans); color: var(--navy); margin: 0; }
.split .takeaways { margin-top: 24px; }
.split .takeaways li { margin-bottom: 28px; }
.takeaways p span { display: block; font: 400 26px/1.4 var(--serif); color: var(--slate); margin-top: 6px; }

/* Scaffold's handoff question */
.reveal .handoff {
  font-family: var(--serif); font-size: 52px; line-height: 1.3; color: var(--navy);
  border-left: 6px solid var(--green); padding-left: 40px; margin: 120px 0 48px;
}


/* Slide number, top right: the bottom of the stage screen is hidden by lights and the podium */
.slide-footer {
  position: absolute; top: 24px; right: 96px; font: 16px var(--sans); color: var(--grey);
}
.reveal .controls { color: var(--navy); }
.reveal .progress { color: var(--green); }

/* Resource cards: a label and its link, readable from the room */
.resource-cards { grid-template-columns: repeat(2, 1fr); gap: 24px 48px; margin-top: 8px; }
.resource-cards .card { padding: 22px 32px; }
.resource-cards .card h3 { font: 700 44px/1.15 var(--sans); color: var(--navy); margin-bottom: 8px; }
.resource-cards .card p { font: 30px/1.4 var(--mono); color: var(--slate); margin: 0; }

/* Case study steps */
.reveal .case-steps { margin-left: 0; list-style: none; }
.reveal .case-steps li { font-size: 36px; line-height: 1.35; margin: 0 0 28px; }

/* Speakers slide */
.speakers h3 { font-size: 40px; font-weight: 700; margin-bottom: 4px; }
.speakers .lead { font-size: 28px; color: var(--grey); }

/* Slides that are just a bulleted list get bigger type */
.reveal .slides > section > ul > li { font-size: 52px; margin: 28px 0; line-height: 1.25; }

/* Nido: screenshot beside its text, comparison tables, big numbers, diffs */
.with-shot { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start; }
.with-shot img, .reveal img.shot { display: block; border: 1px solid var(--rule); }
.reveal table.compare { width: 100%; border-collapse: collapse; margin: 0 0 32px; font-size: 26px; }
.reveal table.compare th, .reveal table.compare td {
  text-align: left; vertical-align: top; padding: 14px 24px; border-bottom: 1px solid var(--rule); line-height: 1.35;
}
.reveal table.compare th { font: 500 20px/1.35 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); padding-left: 0; }
.reveal table.compare thead th { color: var(--navy); border-bottom: 2px solid var(--navy); }
.reveal table.compare thead th + th { padding-left: 24px; }
.reveal table.compare th code { text-transform: none; letter-spacing: normal; }
.reveal table.compare td code { color: var(--navy); background: var(--tan-30); padding: 0 0.2em; font-size: 0.85em; }
.reveal table.compare .hl { background: var(--lavender); }
.reveal .stat { font: 400 200px/1 var(--serif); color: var(--green); margin: 0 0 12px; }
.reveal .hljs-addition { color: var(--green); }
.reveal .hljs-deletion { color: var(--grey); }
