:root {
  --page-bg: #e6ecf3;
  --ink: #0b1b33;
  --accent: #0ea5e9;
  --sheet-width: 210mm;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--page-bg);
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  padding: 28px 12px 96px;
}

.sheets {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.sheet {
  width: min(var(--sheet-width), 100%);
  aspect-ratio: 210 / 297;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(11, 27, 51, 0.12), 0 12px 32px rgba(11, 27, 51, 0.14);
}

.sheet img {
  display: block;
  width: 100%;
  height: 100%;
}

.print-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font: 600 14px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(11, 27, 51, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}

.print-button svg {
  width: 18px;
  height: 18px;
}

.print-button:hover {
  background: #12305a;
  transform: translateY(-1px);
}

.print-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

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

  body {
    padding: 0;
  }

  .sheets {
    display: block;
    gap: 0;
  }

  .sheet {
    width: 210mm;
    height: 297mm;
    aspect-ratio: auto;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
  }

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

  .print-button {
    display: none;
  }
}
