:root {
  --ink: #202522;
  --muted: #68706b;
  --line: #dfe3df;
  --surface: #f4f5f2;
  --accent: #2f6255;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Avenir, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 13px;
  height: 17px;
  display: inline-block;
  border: 2px solid var(--accent);
}

.site-header p,
footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

main {
  padding: clamp(1.75rem, 5vh, 3.5rem) 0 2rem;
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.5rem, 4vh, 2.75rem);
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.intro > p {
  max-width: 390px;
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.25vw, 1rem);
}

.document-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.document-card:hover,
.document-card:focus-within {
  border-color: #aeb6b0;
  box-shadow: 0 10px 28px rgba(26, 38, 32, 0.08);
  transform: translateY(-2px);
}

.document-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.document-preview {
  height: clamp(150px, 27vh, 220px);
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.paper {
  position: relative;
  width: min(72%, 126px);
  height: 100%;
  max-height: 174px;
  padding: 0.8rem;
  background: var(--white);
  border: 1px solid #d7dcd7;
}

.paper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--accent);
}

.paper-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.37rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper > strong {
  display: block;
  margin-top: clamp(1rem, 3vh, 1.7rem);
  color: var(--accent);
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  letter-spacing: -0.05em;
}

.paper-lines {
  display: grid;
  gap: 5px;
  margin-top: 0.9rem;
}

.paper-lines i {
  height: 1px;
  display: block;
  background: #d9ddda;
}

.paper-lines i:nth-child(2) {
  width: 82%;
}

.paper-lines i:nth-child(3) {
  width: 62%;
}

.paper small {
  position: absolute;
  right: 0.8rem;
  bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.45rem;
  letter-spacing: 0.08em;
}

.document-copy {
  padding: 1rem;
}

.document-copy h3 {
  min-height: 2.4em;
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  line-height: 1.25;
}

.document-copy > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.document-copy span,
.document-copy strong {
  font-size: 0.59rem;
  line-height: 1.2;
  white-space: nowrap;
}

.document-copy span {
  color: var(--muted);
}

.document-copy strong {
  color: var(--accent);
  letter-spacing: 0.02em;
}

footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

:focus-visible {
  outline: 3px solid rgba(47, 98, 85, 0.28);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 760px);
  }

  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-preview {
    height: 220px;
  }
}

@media (max-width: 520px) {
  .document-grid {
    grid-template-columns: 1fr;
  }

  .document-preview {
    height: 210px;
  }

  .document-copy h3 {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
