:root {
  --ink: #1d1d1a;
  --muted: #706f68;
  --blue: #23445d;
  --accent: #355b77;
  --line: #d9d8d2;
  --paper: #fbfbfa;
  --soft: #f4f7f6;
  --soft-line: #cfd9d5;
  --hover: #f5f7f7;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: -9999px;
  padding: 8px 12px;
  background: white;
  color: var(--blue);
  font-weight: 700;
}

.skip-link:focus {
  left: 8px;
}

:focus-visible {
  outline: 3px solid #7ba6c4;
  outline-offset: 4px;
}

.archive-header,
.page,
.archive-footer {
  width: min(1160px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

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

.archive-brand,
.main-website,
.return-link,
.resource-row,
.connection-grid a,
.documentation-links a,
.reuse-links a,
.archive-footer a {
  text-decoration: none;
}

.archive-brand {
  font: 400 25px/1 Georgia, "Times New Roman", serif;
}

.main-website {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.main-website:hover,
.return-link:hover,
.documentation-links a:hover,
.reuse-links a:hover,
.archive-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page {
  padding: 30px 0 88px;
}

.return-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 38px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.intro {
  max-width: 890px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  max-width: 850px;
  font-size: 58px;
  line-height: 1.04;
}

h2 {
  font-size: 32px;
  line-height: 1.15;
}

.lede {
  max-width: 820px;
  margin: 22px 0 0;
  color: #393a36;
  font: 400 20px/1.55 Georgia, "Times New Roman", serif;
}

.snapshot,
.downloads,
.connections,
.specialised {
  margin-top: 64px;
}

.section-heading {
  display: flex;
  min-height: 92px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.section-heading .kicker {
  margin-bottom: 8px;
}

.section-note {
  max-width: 470px;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  text-align: right;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.metrics div {
  min-height: 128px;
  padding: 26px 24px 22px 0;
}

.metrics div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.metrics dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.metrics dd {
  margin: 10px 0 0;
  color: var(--blue);
  font: 400 31px/1.1 Georgia, "Times New Roman", serif;
}

.preview-caveat {
  margin: 12px 0 0;
  color: #85847d;
  font-size: 11.5px;
  line-height: 1.5;
}

.resource-list {
  border-bottom: 1px solid var(--line);
}

.resource-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 160px;
  min-height: 116px;
  align-items: center;
  gap: 24px;
  border-top: 1px solid transparent;
  color: var(--ink);
}

.resource-row + .resource-row {
  border-top-color: var(--line);
}

.resource-row:hover {
  background: var(--hover);
}

.resource-row-featured {
  margin-top: 16px;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  background: var(--soft);
}

.resource-row-featured + .resource-row {
  border-top: 0;
}

.format {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.resource-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.resource-copy strong {
  font: 400 23px/1.2 Georgia, "Times New Roman", serif;
}

.resource-copy > span {
  max-width: 700px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.resource-action {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.connection-grid a {
  display: grid;
  min-height: 206px;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  padding: 28px 34px 26px 0;
  border-top: 1px solid var(--line);
}

.connection-grid a:nth-child(even) {
  padding-right: 0;
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.connection-grid a:hover {
  background: var(--hover);
}

.connection-label {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.connection-grid strong {
  font: 400 24px/1.2 Georgia, "Times New Roman", serif;
}

.connection-grid a > span:not(.connection-label) {
  max-width: 440px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.connection-grid b {
  color: var(--blue);
  font-size: 13px;
}

.documentation,
.reuse {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(480px, 1.3fr);
  gap: 60px;
  margin-top: 64px;
  padding: 30px;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  background: var(--soft);
}

.documentation h2,
.reuse h2 {
  max-width: 420px;
  font-size: 28px;
  line-height: 1.23;
}

.documentation-copy > p:not(.kicker),
.reuse-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.documentation-copy > p:not(.kicker) {
  margin-top: 18px;
}

.documentation-links {
  display: grid;
  align-content: start;
}

.documentation-links a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--soft-line);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.documentation-links a:first-child {
  border-top: 1px solid var(--soft-line);
}

.reuse {
  margin-top: 22px;
  background: transparent;
}

.reuse-copy strong {
  color: var(--ink);
}

.reuse-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 22px;
}

.reuse-links a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

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

.archive-footer > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.archive-footer strong {
  font: 400 21px/1.2 Georgia, "Times New Roman", serif;
}

.archive-footer span,
.archive-footer nav {
  color: var(--muted);
  font-size: 12.5px;
}

.archive-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 26px;
}

.archive-footer a {
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 760px) {
  .archive-header,
  .page,
  .archive-footer {
    width: calc(100% - 40px);
  }

  .archive-header {
    min-height: 84px;
  }

  .archive-brand {
    font-size: 23px;
  }

  .main-website {
    font-size: 13px;
    white-space: nowrap;
  }

  .page {
    padding-top: 24px;
    padding-bottom: 62px;
  }

  .return-link {
    margin-bottom: 30px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.08;
  }

  .lede {
    font-size: 18px;
    line-height: 1.55;
  }

  .snapshot,
  .downloads,
  .connections,
  .specialised {
    margin-top: 48px;
  }

  .section-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .section-note {
    max-width: none;
    text-align: left;
  }

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

  .metrics div {
    min-height: 112px;
    padding: 22px 14px 18px 0;
  }

  .metrics div + div {
    padding-left: 14px;
  }

  .metrics div:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .metrics div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .metrics dd {
    font-size: 27px;
  }

  .resource-row {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 0;
    gap: 12px;
    padding: 22px 0;
  }

  .resource-row-featured {
    margin-top: 0;
    padding-right: 10px;
    padding-left: 10px;
  }

  .format {
    align-self: start;
    padding-top: 5px;
    text-align: left;
  }

  .resource-copy strong {
    font-size: 21px;
  }

  .resource-action {
    grid-column: 2;
    min-height: auto;
    justify-content: flex-start;
    padding: 0;
    border: 0;
  }

  .connection-grid {
    grid-template-columns: 1fr;
  }

  .connection-grid a,
  .connection-grid a:nth-child(even) {
    min-height: 178px;
    padding: 24px 0;
    border-left: 0;
  }

  .documentation,
  .reuse {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
    padding: 26px 20px;
  }

  .reuse {
    margin-top: 20px;
  }

  .archive-footer {
    min-height: 176px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
  }

  .archive-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 39px;
  }

  .metrics dd {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
