:root {
  color-scheme: light;
  --ink: #17324d;
  --muted: #5c6f82;
  --line: #dce7ef;
  --paper: #ffffff;
  --page: #f3f8fc;
  --focus: #ff8a00;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: #075caa; }

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(22px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand { width: 118px; }
.brand img { display: block; width: 100%; height: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-header nav a { font-weight: 700; text-decoration: none; }

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero { max-width: 800px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; color: #0b7770; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; }
.hero > p:last-child { color: var(--muted); font-size: 1.08rem; }

.domain-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 42px;
}

.domain-nav a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  text-decoration: none;
  font-weight: 650;
}

.collections,
.domain {
  margin: 28px 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(23, 50, 77, .06);
}

.domain { border-top: 6px solid var(--accent); }
.domain > p { margin-top: -6px; color: var(--muted); }
h2 { margin: 0 0 12px; font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { margin: 30px 0 12px; font-size: 1.16rem; }

.collections ul,
.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collections a,
.resource-list a {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fbfdff;
  text-decoration: none;
}

.collections a:hover,
.resource-list a:hover { border-color: var(--accent, #0b67b2); background: var(--soft, #f3f8fc); }
.collections span,
.resource-list span { color: var(--muted); font-size: .92rem; }
.resource-list .file-type { display: inline-block; margin-left: 5px; color: #a43d31; font-size: .72rem; }

footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  text-align: center;
}

footer a,
footer button {
  color: #075caa;
  font: inherit;
}

footer button {
  padding: 0;
  border: 0;
  background: none;
  text-decoration: underline;
  cursor: pointer;
}

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

@media (max-width: 620px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  main { padding-top: 34px; }
  .collections, .domain { border-radius: 18px; }
}
