:root {
  color-scheme: light;
  --ink: #17221c;
  --muted: #687169;
  --paper: #f4f1ea;
  --surface: #fffdf8;
  --line: #d8d8ce;
  --accent: #1e5b3a;
  --accent-light: #dce9de;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.eyebrow,
.kicker,
.document-type {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.55fr);
  gap: 56px;
  align-items: end;
  padding: 72px 0 52px;
}

.kicker,
.document-type {
  margin: 0 0 12px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.intro-copy {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.document-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgb(23 34 28 / 7%);
}

.document-heading {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.document-heading h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button-primary {
  background: var(--accent);
  color: white;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
}

.button-secondary:hover {
  background: var(--accent-light);
}

.viewer {
  position: relative;
  height: min(78vh, 900px);
  min-height: 560px;
  padding: 12px;
  background: #e3e3dc;
}

.viewer iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  background: white;
}

.viewer-fallback {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(90%, 460px);
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--muted);
  text-align: center;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 32px 0 42px;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1240px);
  }

  .site-header {
    min-height: 72px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 52px 0 36px;
  }

  .document-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .viewer {
    height: 68vh;
    min-height: 460px;
    padding: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
