:root {
  --brand: #ed971b;
  --ink: #1f1f24;
  --muted: #5b5d66;
  --soft: #fff7eb;
  --line: #ed971b33;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #eeeeee;
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.45;
}

body {
  padding: 18px 18px 88px;
}

.sheet {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 18px;
  padding: 16mm 15mm 14mm;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(31, 31, 36, 0.14);
}

.sheet::before {
  content: "";
  position: absolute;
  top: -38mm;
  left: -34mm;
  width: 88mm;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #ffd08a, #ed971b18 70%);
  z-index: 0;
}

.sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ed971b0a 1px, transparent 1px),
    linear-gradient(90deg, #ed971b0a 1px, transparent 1px);
  background-size: 14mm 14mm;
  mask-image: linear-gradient(180deg, #000 0, transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.sheet > * {
  position: relative;
  z-index: 1;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10mm;
  margin-bottom: 12mm;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 41mm;
  height: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3mm 5mm;
  background: #ffffffd9;
  color: var(--muted);
  font-family: "Sora", Arial, sans-serif;
  font-size: 9pt;
  font-weight: 700;
}

.number {
  display: inline-grid;
  place-items: center;
  width: 13mm;
  height: 13mm;
  margin-bottom: 5mm;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: "Sora", Arial, sans-serif;
  font-size: 18pt;
  font-weight: 800;
  box-shadow: 0 7px 18px #ed971b33;
}

h1 {
  position: relative;
  max-width: 18ch;
  margin: 0 0 8mm;
  color: var(--ink);
  font-family: "Sora", Arial, sans-serif;
  font-size: 28pt;
  line-height: 1.08;
  letter-spacing: 0;
}

h1::after {
  content: "";
  display: block;
  width: 34mm;
  height: 1.2mm;
  margin-top: 4mm;
  border-radius: 999px;
  background: var(--brand);
}

.subtitle {
  max-width: 48ch;
  margin: 0 0 10mm;
  color: var(--muted);
  font-size: 13pt;
  font-weight: 600;
}

.focus {
  margin: 0 0 9mm;
  padding: 6mm 7mm;
  border: 1px solid var(--line);
  border-radius: 8mm;
  background: linear-gradient(120deg, #ffffff, #fff8ec);
}

.focus strong {
  color: var(--brand);
}

h2 {
  margin: 8mm 0 4mm;
  font-family: "Sora", Arial, sans-serif;
  font-size: 15pt;
  line-height: 1.2;
}

p {
  margin: 0 0 4mm;
  font-size: 11.4pt;
}

ul,
ol {
  margin: 0 0 6mm;
  padding-left: 7mm;
}

li {
  margin: 0 0 2.5mm;
  font-size: 11.2pt;
}

.quote {
  margin: 5mm 0;
  padding: 5mm 6mm;
  border-left: 1.5mm solid var(--brand);
  border-radius: 0 7mm 7mm 0;
  background: #fff8ef;
  font-size: 12pt;
  font-weight: 700;
}

.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3mm;
  margin-top: 7mm;
}

.method span {
  display: grid;
  place-items: center;
  min-height: 17mm;
  border: 1px solid var(--line);
  border-radius: 6mm;
  background: #fffaf2;
  color: var(--ink);
  font-family: "Sora", Arial, sans-serif;
  font-size: 10pt;
  font-weight: 800;
  text-align: center;
}

.note {
  margin-top: 8mm;
  padding-top: 4mm;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.2pt;
}

.footer {
  position: absolute;
  left: 15mm;
  right: 15mm;
  bottom: 9mm;
  display: flex;
  justify-content: space-between;
  gap: 8mm;
  color: #777;
  font-size: 8.5pt;
}

.sheet > ol {
  list-style: none;
  margin: 8mm 0 0;
  padding: 0;
  display: grid;
  gap: 3mm;
}

.sheet > ol li {
  margin: 0;
}

.sheet > ol a {
  display: block;
  padding: 4mm 5mm;
  border: 1px solid var(--line);
  border-radius: 6mm;
  background: linear-gradient(120deg, #fff, #fff8ec);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.sheet > ol a:hover,
.sheet > ol a:focus-visible {
  border-color: var(--brand);
  outline: none;
}

.page-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(31, 31, 36, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.page-nav a,
.page-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #ed971b30;
  border-radius: 999px;
  color: var(--ink);
  font-family: "Sora", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.page-nav a {
  background: #fff8ec;
}

.page-nav .pdf-link {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.page-nav a:hover,
.page-nav a:focus-visible {
  border-color: var(--brand);
  outline: none;
}

.page-nav span {
  opacity: 0.42;
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html,
  body {
    background: #fff;
  }

  body {
    padding: 0;
  }

  .sheet {
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    margin: 0;
    box-shadow: none;
    page-break-after: always;
  }

  .page-nav {
    display: none;
  }

  .sheet:last-child {
    page-break-after: auto;
  }
}
