:root {
  color-scheme: light;
  background: #ececeb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  color: #202124;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.7), transparent 32rem),
    #ececeb;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 14px 0 10px;
  backdrop-filter: blur(12px);
}
.brand {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
}

.brand span {
  margin-left: 6px;
  color: #7d8188;
  font-weight: 600;
}

button {
  appearance: none;
  border: 1px solid rgba(32,33,36,.12);
  border-radius: 999px;
  padding: 8px 13px;
  color: #3c4043;
  background: rgba(255,255,255,.82);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

button:hover { background: #fff; }

.resume {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 6px 0 56px;
}
.sheet {
  width: 100%;
  aspect-ratio: 595 / 842;
  margin: 0 0 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 45px rgba(24,28,33,.10), 0 2px 8px rgba(24,28,33,.06);
}

.sheet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

@media (max-width: 640px) {
  .toolbar,
  .resume { width: 100%; }

  .toolbar { padding: 10px 14px 8px; }
  .resume { padding: 0 0 24px; }
  .sheet { margin-bottom: 10px; box-shadow: none; }
}
@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  :root, body { background: #fff; }
  .toolbar { display: none; }
  .resume { width: 210mm; margin: 0; padding: 0; }
  .sheet {
    width: 210mm;
    height: 297mm;
    margin: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
}
