:root {
  --red: #c41e32;
  --red-hot: #a81829;
  --bg: #efefef;
  --paper: #ffffff;
  --ink: #222222;
  --muted: #555555;
  --line: #e5e5e5;
  --link: #1e73be;
  --link-hover: #0f4f8a;
  --wrap: 1180px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.site-header {
  background: var(--red);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.site-header .inner {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 2px;
}

.site-nav a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  padding: 10px 11px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-on {
  opacity: 0.82;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.paper {
  background: var(--paper);
  padding: 42px 48px 56px;
  min-height: 70vh;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px 48px;
  align-items: center;
  margin-bottom: 36px;
}

.hero-shot {
  background: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero-shot img {
  width: 100%;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 500;
  color: #1a1a1a;
}

.hero .lead,
.lead {
  font-size: 17px;
  color: #444;
  margin: 0 0 16px;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  text-decoration: none !important;
  border: 0;
  border-radius: 4px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: var(--red-hot);
}

.btn-gold {
  background: var(--red);
  color: #fff !important;
}

.tpu-mark {
  height: 28px;
  width: auto;
  margin: 8px 0 16px;
}

.btn-ghost {
  background: #fff;
  color: var(--red) !important;
  box-shadow: inset 0 0 0 2px var(--red);
  margin-left: 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.toc {
  background: #fafafa;
  border: 1px solid var(--line);
  padding: 18px 22px;
  margin: 0 0 36px;
}

.toc h2 {
  margin: 0 0 8px;
  font-size: 18px;
  border: 0;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
}

.toc a {
  font-weight: 600;
}

h1 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
}

h2 {
  margin: 36px 0 12px;
  font-size: 24px;
  font-weight: 600;
  padding-top: 8px;
}

h3 {
  margin: 22px 0 8px;
  font-size: 18px;
}

p,
li {
  font-size: 16.5px;
}

p {
  margin: 0 0 14px;
}

.crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.crumb a {
  color: var(--muted);
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 18px 0 24px;
}

.shots.two {
  grid-template-columns: 1fr 1fr;
}

.shots.three {
  grid-template-columns: 1fr 1fr 1fr;
}

figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
}

figure img {
  width: 100%;
  background: #111;
}

figcaption {
  padding: 10px 12px 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.shot-frame img {
  transition: transform 0.35s ease;
}

.shot-frame:hover img {
  transform: scale(1.02);
}

.dl-box {
  border: 1px solid var(--line);
  background: #fafafa;
  padding: 20px 22px;
  margin: 22px 0;
}

.dl-box h2 {
  margin: 0 0 8px;
  padding: 0;
  font-size: 20px;
}

.meta {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
  color: #333;
}

.note,
.warn {
  padding: 12px 16px;
  margin: 16px 0;
  border-left: 4px solid var(--link);
  background: #f4f8fc;
}

.warn {
  border-left-color: var(--red);
  background: #fdf4f5;
}

.site-footer {
  background: #2b2b2b;
  color: #ddd;
  padding: 28px 0 36px;
  font-size: 14px;
}

.site-footer .inner {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #fff;
  margin-right: 16px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  place-items: center;
  z-index: 50;
  padding: 24px;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 90vh;
}

@media (max-width: 900px) {
  .hero,
  .shots.two,
  .shots.three {
    grid-template-columns: 1fr;
  }

  .paper {
    padding: 24px 18px 40px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--red-hot);
    flex-direction: column;
    padding: 8px 12px 16px;
  }

  .site-nav.open {
    display: flex;
  }
}
