@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Italiana&display=swap");

:root {
  --ink: #1a1a17;
  --cream: #f0ede5;
  --paper: #f8f6f0;
  --muted: #817e75;
  --line: rgba(26, 26, 23, 0.16);
  --accent: #b88b57;
  --dark: #171713;
  --serif: "Italiana", "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px clamp(24px, 5vw, 72px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.header-download {
  display: inline-flex;
  min-height: 46px;
  padding: 0 19px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 34px);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #aaa69c;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.language-button {
  padding: 7px 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: color 160ms ease;
}

.language-button:hover,
.language-button.is-active {
  color: var(--ink);
}

.language-button.is-active {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.header-download:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.header-download svg,
.toolbar-download svg,
.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.intro {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 168px) clamp(24px, 5vw, 72px)
    clamp(80px, 10vw, 140px);
}

.eyebrow,
.section-number {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 940px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 9vw, 132px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.87;
}

.intro h1 em,
.closing h2 em {
  color: var(--accent);
  font-weight: 400;
}

.intro-copy {
  max-width: 510px;
  margin: 42px 0 0 auto;
  color: #5f5d56;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.8;
}

.viewer-section {
  padding: clamp(62px, 8vw, 110px) clamp(16px, 4vw, 62px);
  background: var(--dark);
  color: var(--paper);
}

.viewer-heading {
  display: flex;
  max-width: 1360px;
  margin: 0 auto 46px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.viewer-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.viewer-hint {
  max-width: 355px;
  margin: 0 0 6px;
  color: #a8a69f;
  font-size: 13px;
  line-height: 1.7;
}

.pdf-shell {
  max-width: 1360px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #292925;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38);
}

.pdf-toolbar {
  display: flex;
  min-height: 76px;
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #22221e;
}

.document-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.document-info > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.document-info strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-info small {
  margin-top: 3px;
  color: #8f8e88;
  font-size: 10px;
}

.file-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: #d8b68e;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.viewer-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-button,
.toolbar-download,
.zoom-value {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c9c7c0;
  cursor: pointer;
  font-family: var(--sans);
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.icon-button:hover,
.toolbar-download:hover,
.zoom-value:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.zoom-value {
  width: 54px;
  font-size: 11px;
}

.control-divider {
  width: 1px;
  height: 21px;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.14);
}

.pdf-frame-wrap {
  position: relative;
  height: min(80vh, 960px);
  min-height: 540px;
  background: #3b3b37;
}

#pdfViewer {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #3b3b37;
}

.pdf-fallback {
  display: none;
}

.pdf-frame-wrap:fullscreen {
  width: 100vw;
  height: 100vh;
  background: #292925;
}

.closing {
  display: grid;
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(100px, 14vw, 190px) clamp(24px, 5vw, 72px);
  justify-items: center;
  text-align: center;
}

.closing > p {
  margin: 0 0 26px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.closing-link {
  display: inline-flex;
  margin-top: 45px;
  padding-bottom: 9px;
  align-items: center;
  gap: 45px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.closing-link span {
  color: var(--accent);
  font-size: 18px;
  transition: transform 180ms ease;
}

.closing-link:hover span {
  transform: translate(3px, 3px);
}

footer {
  display: flex;
  max-width: 1480px;
  margin: 0 auto;
  padding: 30px clamp(24px, 5vw, 72px);
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .site-header {
    padding-block: 20px;
  }

  .brand-copy span {
    display: none;
  }

  .header-download {
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  .header-actions {
    gap: 13px;
  }

  .header-download span {
    display: none;
  }

  .intro {
    padding-top: 90px;
  }

  .intro-copy {
    margin-top: 34px;
  }

  .viewer-heading {
    display: block;
    padding-inline: 8px;
  }

  .viewer-hint {
    margin-top: 20px;
  }

  .pdf-toolbar {
    min-height: 68px;
    padding: 10px;
  }

  .document-info small {
    display: none;
  }

  .file-icon,
  #fullscreenButton,
  .control-divider {
    display: none;
  }

  .viewer-controls {
    flex: 0 0 auto;
  }

  .icon-button,
  .toolbar-download {
    width: 36px;
    height: 36px;
  }

  .pdf-frame-wrap {
    height: 70vh;
    min-height: 500px;
  }

  footer {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
