/* Exit Strategy landing page: page basics and self-hosted fonts.
   Layout lives inline in exit-strategy/index.html, as exported from the design.
   Fonts are SIL Open Font License 1.1 (see fonts/LICENSE.txt). No external requests. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/exit-strategy/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/exit-strategy/fonts/public-sans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/exit-strategy/fonts/caveat-latin-700-normal.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: #F5F2ED; }
img { max-width: 100%; }

a { color: #1B1A17; }
a:hover { color: #8A3A0F; }
.es-dark a { color: #F5F2ED; }
.es-dark a:hover { color: #F2A23A; }
:focus-visible { outline: 3px solid #8A3A0F; outline-offset: 3px; }
.es-dark :focus-visible { outline-color: #F2A23A; }

section[id] { scroll-margin-top: 16px; }

.es-skip {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: #1B1A17; color: #F5F2ED; padding: 8px 16px;
}
.es-skip:focus { left: 8px; top: 8px; color: #F5F2ED; }

/* "Inside the app" section: screenshot tiles and the full-size viewer. */
.es-shots {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 28px;
}
.es-shots li { display: flex; flex-direction: column; gap: 10px; }
.es-shots h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 21px; }
.es-shots p { margin: 0; font-size: 16px; color: #D9D4CA; }
.es-step {
  margin-top: 10px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 15px;
  letter-spacing: 0.1em; text-transform: uppercase; color: #E8611A;
}
.es-shot {
  display: block; border: 2px solid #F5F2ED; border-radius: 22px; overflow: hidden;
  background: #F6F3EA; box-shadow: 8px 8px 0 #E8611A; cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.es-shot:hover, .es-shot:focus-visible { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 #E8611A; }
@media (prefers-reduced-motion: reduce) { .es-shot { transition: none; } .es-shot:hover, .es-shot:focus-visible { transform: none; } }
.es-shot img { display: block; width: 100%; height: auto; }

.es-maps { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; padding-top: 48px; border-top: 2px solid #4A4740; }
.es-map-pair { flex: 1 1 520px; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.25fr); gap: 28px; align-items: start; }
.es-map-pair figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.es-map-pair figcaption { font-size: 15px; color: #D9D4CA; }
@media (max-width: 560px) { .es-map-pair { grid-template-columns: 1fr; } }

.es-viewer {
  padding: 0; border: 2px solid #1B1A17; border-radius: 18px; background: #F5F2ED; color: #1B1A17;
  width: min(430px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: hidden;
}
.es-viewer[data-wide] { width: min(960px, calc(100vw - 24px)); }
.es-viewer[open] { display: flex; flex-direction: column; }
.es-viewer::backdrop { background: rgba(27, 26, 23, 0.82); }
.es-viewer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 18px; border-bottom: 2px solid #1B1A17; font-family: 'Bricolage Grotesque', sans-serif;
}
.es-viewer-close {
  font: inherit; font-weight: 700; padding: 8px 18px; border: 2px solid #1B1A17; border-radius: 999px;
  background: #1B1A17; color: #F5F2ED; cursor: pointer;
}
.es-viewer :focus-visible { outline-color: #8A3A0F; }
.es-viewer-body { overflow: auto; overscroll-behavior: contain; }
.es-viewer-body img { display: block; width: 100%; height: auto; }
