@font-face {
  font-family: Manrope;
  src: url('fonts/Manrope-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: #f5f6f7;
  --surface: #fcfcfd;
  --preview-background: #e9ecef;
  --text: #182026;
  --muted: #56616b;
  --line: #d5dce0;
  --accent: #086c50;
  --button-background: #086c50;
  --button-text: #f8fffc;
  --focus: #087c5b;
  --radius: 10px;
  font-family: Manrope, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #09090b;
    --surface: #111115;
    --preview-background: #19191e;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --line: #33333c;
    --accent: #34d399;
    --button-background: #34d399;
    --button-text: #09251c;
    --focus: #6ee7b7;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; background: var(--background); color: var(--text); font-size: 14px; line-height: 1.6; }
button, output { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.container { width: min(1120px, 100% - 64px); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 12px 18px; border-radius: var(--radius); background: var(--surface); transform: translateY(-160%); z-index: 1; }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.navigation { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Space Grotesk', Manrope, sans-serif; font-size: 19px; font-weight: 600; }
.brand img { display: block; }
.brand-section { color: var(--muted); font-size: 14px; font-weight: 400; }
.website-link { color: var(--muted); text-decoration: none; font-size: 13px; }
.website-link span { margin-left: 8px; }
.website-link:hover, .page-footer a:hover { color: var(--accent); }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 42px 32px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-family: 'Space Grotesk', Manrope, sans-serif; font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -.045em; }
.role { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.role span { padding-inline: 5px; }
.document-actions { display: flex; gap: 10px; flex-shrink: 0; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius); text-decoration: none; white-space: nowrap; font-size: 13px; font-weight: 700; }
.button span { font-size: 18px; line-height: 1; }
.button-primary { background: var(--button-background); color: var(--button-text); }
.button-secondary { border-color: var(--line); background: var(--surface); }
.button:hover { filter: brightness(.94); }
.button:active { transform: translateY(1px); }
.viewer { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.viewer-toolbar { min-height: 76px; padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.document-info h2 { margin: 0; font-size: 13px; font-weight: 700; }
.document-info p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.document-info p > span:first-child { padding-inline: 3px; }
.zoom-controls { display: flex; align-items: center; gap: 4px; }
.zoom-button, .fit-button { min-height: 44px; min-width: 44px; border: 1px solid transparent; border-radius: 7px; background: transparent; }
.zoom-button { font-size: 24px; line-height: 1; }
.zoom-button:hover:enabled, .fit-button:hover { background: var(--preview-background); }
.zoom-button:active:enabled, .fit-button:active { transform: translateY(1px); }
#zoom-level { min-width: 48px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.fit-button { margin-left: 12px; padding-inline: 12px; border-color: var(--line); font-size: 12px; }
.document-viewport { overflow: auto; padding: 32px; background: var(--preview-background); }
.document-paper { width: var(--page-width, 100%); margin-inline: auto; background: #fff; box-shadow: 0 4px 24px rgb(15 23 42 / .12); }
.document-paper img { display: block; width: 100%; height: auto; color: #182026; }
.preview-error { margin: 0; padding: 24px; }
.preview-error a { color: var(--accent); text-underline-offset: 3px; }
.page-footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 22px 32px; color: var(--muted); font-size: 12px; }
.page-footer p { margin: 0; max-width: 65ch; }
.page-footer a { white-space: nowrap; text-decoration: none; }

@media (max-width: 767px) {
  .container { width: calc(100% - 32px); }
  .navigation { height: 64px; }
  .intro { display: block; padding-block: 30px 24px; }
  .role { font-size: 12px; }
  .role span { padding-inline: 2px; }
  .document-actions { margin-top: 22px; }
  .button { flex: 1; }
  .viewer-toolbar { padding: 10px 12px; gap: 8px; }
  .file-size { display: none; }
  .zoom-controls { gap: 0; }
  .fit-button { margin-left: 4px; padding-inline: 9px; }
  .document-viewport { padding: 12px; }
  .page-footer { display: block; padding-top: 16px; }
  .page-footer a { display: inline-block; margin-top: 12px; }
}

@media (max-width: 359px) {
  .viewer-toolbar { flex-wrap: wrap; }
  .zoom-controls { width: 100%; justify-content: center; }
  .website-link { font-size: 12px; }
}
