/* Community Cyber Resilience — poster-style theme
   Cream paper, deep teal ink, warm red accent (matches the event poster). */

:root {
  --paper: #f1e6cf;
  --paper-2: #e9dbbd;
  --ink: #1b3440;
  --teal: #1d4b5a;
  --red: #d9432a;
  --red-soft: #f3c9b8;
  --gold: #e3a33b;
  --green: #3f7a52;
  --muted: #5d6f73;

  --font-display: "Bowlby One SC", "Arial Black", sans-serif;
  --font-cond: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
}

/* ---------- base ---------- */
.reveal-viewport {
  background-color: var(--paper);
  /* subtle paper grain */
  background-image:
    radial-gradient(ellipse at center, transparent 55%, rgba(120, 90, 40, .14) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .35  0 0 0 0 .2  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.reveal {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
}

.reveal .slides section { text-align: left; }
.reveal .slides section.center-text { text-align: center; }

.reveal h1, .reveal h2, .reveal h3 {
  font-family: var(--font-display);
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
  margin: 0 0 .35em;
  /* faint misregistration, like a letterpress print */
  text-shadow: 2px 2px 0 rgba(217, 67, 42, .28);
}
.reveal h1 { font-size: 2.6em; }
.reveal h2 { font-size: 1.75em; }
.reveal h3 { font-size: 1.1em; text-shadow: none; }

.reveal .kicker {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
  font-size: .72em;
  margin-bottom: .35em;
}
.reveal .kicker::before, .reveal .kicker::after {
  content: ""; display: inline-block; width: 1.6em; height: 4px;
  background: var(--red); vertical-align: middle; margin: 0 .45em; border-radius: 2px;
}
.reveal .kicker.left::before { display: none; }
.reveal .kicker.left::after { width: 2.4em; }

.reveal p { margin: .4em 0; line-height: 1.35; }
.reveal .lead { font-size: 1.15em; line-height: 1.3; }
.reveal .small { font-size: .7em; }
.reveal .muted { color: var(--muted); }
.reveal strong { color: var(--teal); font-weight: 700; }
.reveal em { color: var(--red); font-style: normal; font-weight: 600; }
.reveal a { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.reveal a:hover { color: var(--teal); }

.reveal ul, .reveal ol { display: block; margin: .3em 0 .3em 1.1em; }
.reveal li { margin: .28em 0; line-height: 1.3; }
.reveal ul li::marker { color: var(--red); }
.reveal ol li::marker { color: var(--red); font-family: var(--font-cond); font-weight: 700; }

.reveal code, .reveal kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .82em;
  background: rgba(29, 75, 90, .09);
  border-radius: 6px;
  padding: .05em .35em;
}
.reveal pre {
  width: 100%;
  box-shadow: none;
  font-size: .62em;
  margin: .5em 0;
}
.reveal pre code {
  display: block;
  background: var(--teal);
  color: var(--paper);
  padding: .9em 1.1em;
  border-radius: 12px;
  max-height: none;
  line-height: 1.5;
}
.reveal pre code .c { color: #9fc0c4; }

/* ---------- sunburst title slides (rays come from data-background-image) ---------- */
.reveal section.burst { text-align: center; }

/* ribbon banner like the poster footer */
.ribbon {
  display: inline-block;
  position: relative;
  background: var(--teal);
  color: var(--paper);
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3em 1.4em;
  font-size: .8em;
}
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: .9em;
  background: var(--teal);
}
.ribbon::before { left: -.8em; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 45% 50%); }
.ribbon::after { right: -.8em; clip-path: polygon(0 0, 100% 0, 55% 50%, 100% 100%, 0 100%); }

/* ---------- layout helpers ---------- */
.row { display: flex; gap: 1.1em; align-items: stretch; }
.row.center { align-items: center; }
.row > * { flex: 1 1 0; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8em 1.2em; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.stack > * + * { margin-top: .5em; }

.card {
  background: rgba(255, 252, 244, .72);
  border: 3px solid var(--teal);
  border-radius: 18px;
  padding: .7em .9em;
  box-shadow: 6px 6px 0 rgba(29, 75, 90, .18);
}
.card h3 { margin-bottom: .25em; }
.card p, .card li { font-size: .78em; }
.card.red { border-color: var(--red); box-shadow: 6px 6px 0 rgba(217, 67, 42, .2); }
.card.flat { box-shadow: none; }

.logo { width: 1.6em; height: 1.6em; display: inline-block; vertical-align: middle; }
.logo.lg { width: 2.4em; height: 2.4em; }
.logo-row { display: flex; align-items: center; gap: .5em; margin-bottom: .3em; }
.logo-row h3 { margin: 0; }

.tag {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .55em;
  padding: .15em .6em;
  border-radius: 999px;
  background: var(--teal);
  color: var(--paper);
  vertical-align: middle;
}
.tag.red { background: var(--red); }
.tag.gold { background: var(--gold); color: var(--ink); }
.tag.green { background: var(--green); }

/* menu path, e.g. Settings › General › Software Update */
.path {
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: .95em;
  color: var(--teal);
  background: rgba(29, 75, 90, .08);
  border-left: 6px solid var(--red);
  padding: .3em .7em;
  border-radius: 0 10px 10px 0;
  margin: .25em 0;
}
.path b { color: var(--red); font-weight: 700; padding: 0 .2em; }

/* target-version badge */
.target {
  display: inline-flex; align-items: center; gap: .5em;
  border: 3px dashed var(--red);
  border-radius: 14px;
  padding: .25em .8em;
  font-size: .8em;
  background: rgba(255, 252, 244, .6);
}
.target .label {
  font-family: var(--font-cond); text-transform: uppercase; font-weight: 700;
  color: var(--red); letter-spacing: .06em;
}

/* callouts */
.callout {
  border-radius: 16px;
  padding: .6em .9em .6em 3.1em;
  position: relative;
  font-size: .8em;
  line-height: 1.3;
  margin: .5em 0;
}
.callout::before {
  position: absolute; left: .7em; top: .45em;
  font-size: 1.5em; line-height: 1;
}
.callout.warn { background: var(--red); color: #fff7ee; }
.callout.warn::before { content: "⚠"; }
.callout.warn strong, .callout.warn em { color: #fff; }
.callout.warn a { color: #fff; }
.callout.tip { background: rgba(29, 75, 90, .1); border: 2px solid var(--teal); }
.callout.tip::before { content: "💡"; }
.callout.ok { background: rgba(63, 122, 82, .12); border: 2px solid var(--green); }
.callout.ok::before { content: "✓"; color: var(--green); font-weight: 800; }

/* the security ladder */
.ladder { list-style: none; margin: 0 !important; padding: 0; }
.ladder li {
  display: flex; align-items: center; gap: .7em;
  margin: .22em 0;
  padding: .3em .7em;
  border-radius: 12px;
  font-size: .8em;
  background: rgba(255, 252, 244, .7);
  border: 2px solid rgba(29, 75, 90, .25);
}
.ladder .lvl {
  font-family: var(--font-display); font-size: .9em;
  width: 1.8em; height: 1.8em; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  color: var(--paper);
}
.ladder .name { font-weight: 700; color: var(--teal); min-width: 9.5em; }
.ladder .meter { margin-left: auto; letter-spacing: .1em; color: var(--red); font-size: .9em; white-space: nowrap; }

/* defense-in-depth layers */
.layers { position: relative; width: 520px; height: 520px; margin: 0 auto; }
.layers .ring {
  position: absolute; border-radius: 50%;
  display: flex; align-items: flex-start; justify-content: center;
  font-family: var(--font-cond); font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; font-size: 20px; color: var(--paper);
  padding-top: 14px; box-sizing: border-box;
}
.layers .core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 130px; height: 130px; border-radius: 50%; background: var(--paper);
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-cond); font-weight: 700; font-size: 18px; color: var(--teal);
  line-height: 1.1; border: 4px solid var(--teal);
}

/* screenshots */
.shot {
  margin: 0;
  border: 3px solid var(--teal);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(29, 75, 90, .18);
}
.shot img { display: block; width: 100%; height: auto; margin: 0; }
.shot.missing {
  background: repeating-linear-gradient(-45deg, rgba(29,75,90,.06) 0 14px, transparent 14px 28px);
  border-style: dashed;
  min-height: 300px;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-cond); color: var(--muted); font-size: .6em;
  padding: 1em; box-shadow: none;
}
.shot.missing span { display: block; }
.shot.missing .file { font-family: ui-monospace, Menlo, monospace; font-size: .85em; opacity: .8; margin-top: .4em; }

.step-num {
  display: inline-grid; place-items: center;
  width: 1.5em; height: 1.5em; border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: var(--font-cond); font-weight: 700; font-size: .8em;
  margin-right: .35em; vertical-align: .1em;
}

/* down-arrow hint on slides that have vertical children */
.down-hint {
  position: absolute; bottom: -10px; left: 0; right: 0; text-align: center;
  font-family: var(--font-cond); font-size: .5em; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red);
}
.down-hint::after { content: " ↓"; }

/* xkcd frame */
.comic { background: #fff; padding: 10px; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 rgba(27, 52, 64, .2); }
.comic img { display: block; margin: 0; max-height: 470px; width: auto; }

/* reveal chrome */
.reveal .controls { color: var(--red); }
.reveal .progress { color: var(--red); height: 5px; }
.reveal .slide-number { background: transparent; color: var(--muted); font-family: var(--font-cond); font-size: 16px; }

/* print / pdf */

/* callouts and side cards beside text shouldn't stretch to full row height */
.row > .callout, .grid-2 > .card.side { align-self: start; }

/* link anatomy: highlight the real domain */
.url-anatomy {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.05em; text-align: center;
  background: #fff; border: 3px solid var(--teal); border-radius: 12px;
  padding: .45em .8em; margin: .5em auto; width: fit-content;
}
.url-anatomy .dim { color: var(--muted); }
.url-anatomy .fake { color: var(--teal); }
.url-anatomy .real, .url-anatomy .fake + .real { color: #fff; background: var(--red); border-radius: 6px; padding: 0 .15em; }
