:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #26231f;
  background: #f7f3ed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.62;
}

a {
  color: #714f2f;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #3f2b19;
}

.site-header,
.site-footer {
  background: #efe7dc;
}

.site-header__inner,
.site-footer__inner,
main {
  width: min(100% - 2rem, 56rem);
  margin-inline: auto;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  color: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

main {
  min-height: calc(100vh - 9rem);
  padding-block: 2rem 4rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

h2 {
  margin-top: 2.25rem;
  font-size: 1.4rem;
}

h3 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
}

li + li {
  margin-top: 0.35rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fffdf9;
}

th,
td {
  padding: 0.75rem;
  border: 1px solid #d9cdbf;
  text-align: left;
  vertical-align: top;
}

th {
  background: #efe7dc;
}

.document-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.document-card {
  padding: 1.25rem;
  border: 1px solid #d9cdbf;
  border-radius: 0.75rem;
  background: #fffdf9;
}

.document-card h2 {
  margin-top: 0;
}

.document-context {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-left: 0.25rem solid #9b7652;
  background: #efe7dc;
}

.document-context--archive {
  border-left-color: #665e54;
}

.legal-text {
  overflow-wrap: anywhere;
}

.site-footer {
  color: #665e54;
  font-size: 0.9rem;
}

@media (max-width: 40rem) {
  h1 {
    font-size: clamp(1.4rem, 7vw, 1.75rem);
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tr + tr {
    border-top: 1px solid #d9cdbf;
  }

  td {
    border-width: 0 1px 1px;
  }

  td::before {
    display: block;
    margin-bottom: 0.15rem;
    color: #665e54;
    content: attr(data-label);
    font-size: 0.8rem;
    font-weight: 700;
  }
}
