:root {
  color-scheme: light;
  --ink: #132237;
  --muted: #5d6877;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --line: #dce3ec;
  --blue: #1556a8;
  --blue-dark: #0d3c79;
  --yellow: #f0bd32;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(21, 86, 168, 0.07), transparent 32rem),
    var(--paper);
}

.site-header {
   position: sticky;
   top: 0;
   z-index: 100;
   border-bottom: 1px solid rgba(255, 255, 255, 0.15);
   background: var(--blue-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(1120px, calc(100% - 2rem));
  min-height: 3.25rem;
  margin: 0 auto;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.chip {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 2px solid var(--yellow);
  border-radius: 0.45rem;
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

main {
  width: calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.75rem 0 3rem;
}

.intro {
  max-width: 760px;
  margin-bottom: 2.7rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.lead {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.reader-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.document-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.document-button {
  display: block;
  width: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 0.3rem solid transparent;
  border-radius: 0.65rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(25, 46, 78, 0.06);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.document-button:hover {
  border-color: #aac1df;
  box-shadow: 0 16px 36px rgba(25, 46, 78, 0.12);
}

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

.document-button.active {
  border-color: #aac1df;
  border-left-color: var(--yellow);
  background: #f8fbff;
}

.number {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.document-button h2 {
  margin: 0.45rem 0 0.4rem;
  font-size: 1.12rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.document-button p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pdf-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(25, 46, 78, 0.08);
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.pdf-toolbar h2 {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
}

.pdf-meta {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.open-button {
  flex: 0 0 auto;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  color: #fff;
  background: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.open-button:hover {
  background: var(--blue-dark);
}

#pdf-frame {
  display: block;
  width: 100%;
  height: min(78vh, 980px);
  min-height: 650px;
  border: 0;
  background: #e5e9ef;
}

.pdf-fallback {
  margin: 0;
  padding: 0.7rem 1.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.notice {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--surface);
}

footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.3rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

@media (max-width: 700px) {
  main {
    padding-top: 2rem;
  }

  .reader-layout {
    grid-template-columns: 1fr;
  }

  .pdf-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  #pdf-frame {
    height: 72vh;
    min-height: 520px;
  }
}

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