:root {
  --ink: #1d1d1a;
  --muted: #64635e;
  --blue: #23445d;
  --blue-dark: #173f5f;
  --line: #d9d8d2;
  --line-light: #e9e8e3;
  --paper: #ffffff;
  --wash: #f5f7f6;
  --focus: #b46a2c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), 1256px);
  min-height: 92px;
  margin: 16px auto 0;
  border-bottom: 1px solid var(--line);
}

.archive-brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
}

.archive-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.archive-nav a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.archive-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

main {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
}

.intro {
  padding: 74px 0 62px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  font-size: 44px;
  line-height: 1.12;
}

h2 {
  font-size: 29px;
  line-height: 1.25;
}

.lede {
  max-width: 720px;
  margin: 16px 0 0;
  color: #42413d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.55;
}

.search-form {
  max-width: 820px;
  margin-top: 36px;
}

.search-form label,
.filters label > span {
  display: block;
  margin-bottom: 7px;
  color: #42413d;
  font-size: 13px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.search-row input {
  min-width: 0;
  height: 49px;
  padding: 0 15px;
  border: 1px solid #aaa9a3;
  border-right: 0;
  border-radius: 0;
  color: var(--ink);
  background: #fff;
}

.search-row input::placeholder {
  color: #74736e;
}

.search-row button {
  min-width: 112px;
  height: 49px;
  padding: 0 20px;
  border: 1px solid var(--blue);
  border-radius: 0;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

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

.pathways,
.catalogue {
  padding: 58px 0 64px;
  border-bottom: 1px solid var(--line);
}

.section-heading,
.catalogue-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.clear-theme,
.clear-filters {
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 2px 0;
  color: var(--blue);
  background: transparent;
  font-weight: 700;
}

.theme-list {
  border-top: 1px solid var(--line);
}

.theme-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.35fr) 64px;
  align-items: center;
  width: 100%;
  min-height: 87px;
  padding: 18px 4px;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

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

.theme-row[aria-pressed="true"] {
  background: var(--wash);
  box-shadow: inset 4px 0 0 var(--blue);
}

.theme-name {
  padding-right: 24px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.3;
}

.theme-description {
  padding-right: 26px;
  color: #52514c;
  font-size: 14px;
  line-height: 1.55;
}

.theme-count {
  justify-self: end;
  color: #62615c;
  font-size: 13px;
  font-weight: 700;
}

.subtheme-panel {
  margin: 0 0 22px;
  padding: 17px 18px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.subtheme-label {
  margin: 0 0 12px;
  color: #52514c;
  font-size: 13px;
  font-weight: 700;
}

.subtheme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subtheme-list button {
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid #b9b8b2;
  border-radius: 2px;
  color: var(--blue);
  background: #fff;
  font-size: 13px;
}

.subtheme-list button[aria-pressed="true"] {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.result-count {
  margin: 0;
  color: #62615c;
  font-size: 14px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.filters label {
  min-width: 0;
}

.filters select {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 11px;
  border: 1px solid #aaa9a3;
  border-radius: 0;
  color: var(--ink);
  background: #fff;
}

.clear-filters {
  align-self: center;
  margin-top: 22px;
  white-space: nowrap;
}

.active-context {
  margin: 0 0 25px;
  padding: 15px 18px;
  border-left: 3px solid var(--blue);
  background: var(--wash);
  color: #464540;
  font-size: 14px;
}

.active-context strong {
  color: var(--ink);
}

.result-list {
  border-top: 1px solid var(--line);
}

.result-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 28px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line-light);
}

.result-image-link {
  display: grid;
  place-items: center;
  width: 128px;
  height: 146px;
  overflow: hidden;
  background: #f1f0eb;
}

.result-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-meta {
  margin: 0 0 6px;
  color: #686761;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.result-title {
  font-size: 23px;
  line-height: 1.26;
}

.result-title a {
  color: var(--ink);
  text-decoration-color: #8f8e88;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.result-title a:hover {
  color: var(--blue-dark);
}

.result-description {
  max-width: 790px;
  margin: 11px 0 0;
  color: #4e4d48;
  font-size: 14px;
}

.result-details {
  margin: 11px 0 0;
  color: #686761;
  font-size: 13px;
}

.result-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.result-themes li {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  padding: 42px 0;
  color: #55544f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.pagination {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
}

.pagination button {
  border: 0;
  border-radius: 0;
  padding: 8px 0;
  color: var(--blue);
  background: transparent;
  font-weight: 700;
}

.pagination button:first-child {
  text-align: left;
}

.pagination button:last-child {
  text-align: right;
}

.pagination button:disabled {
  color: #999892;
  cursor: default;
}

#page-status {
  color: #686761;
  font-size: 13px;
  text-align: center;
}

.no-script-note {
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.archive-footer {
  width: min(calc(100% - 40px), 1256px);
  margin: 48px auto 24px;
  padding: 25px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.archive-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.archive-footer-identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.archive-footer-brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
}

.archive-footer-subtitle {
  color: #706f68;
  font-size: 12px;
  line-height: 1.55;
}

.archive-footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 2px 0 0 auto;
}

.archive-footer-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
}

.archive-footer a:hover,
.archive-footer a:focus-visible {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .archive-header {
    align-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 104px;
    padding: 21px 0 18px;
    row-gap: 10px;
  }

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

  .archive-nav {
    width: 100%;
    gap: 18px;
  }

  .archive-nav a {
    font-size: 13px;
  }

  .intro {
    padding: 49px 0 45px;
  }

  h1 {
    font-size: 35px;
  }

  h2 {
    font-size: 26px;
  }

  .lede {
    font-size: 18px;
  }

  .pathways,
  .catalogue {
    padding: 46px 0 50px;
  }

  .theme-row {
    grid-template-columns: 1fr auto;
    gap: 7px 14px;
    min-height: 0;
    padding: 17px 3px;
  }

  .theme-name {
    padding-right: 0;
    font-size: 19px;
  }

  .theme-description {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .theme-count {
    grid-column: 2;
    grid-row: 1;
  }

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

  .clear-filters {
    justify-self: start;
    margin-top: 0;
  }

  .result-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 17px;
  }

  .result-image-link {
    width: 92px;
    height: 116px;
  }

  .result-title {
    font-size: 20px;
  }

  .archive-footer-inner {
    flex-direction: column;
    gap: 22px;
  }

  .archive-footer-nav {
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 0;
  }
}

@media (max-width: 500px) {
  main,
  .archive-header,
  .archive-footer {
    width: calc(100% - 32px);
  }

  .search-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .search-row input {
    border-right: 1px solid #aaa9a3;
  }

  .section-heading,
  .catalogue-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .result-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }

  .result-image-link {
    width: 76px;
    height: 100px;
  }

  .result-description {
    grid-column: 1 / -1;
  }

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

  #page-status {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}
