:root {
  --navy: #123a63;
  --navy-deep: #0b2947;
  --sky: #d9edfb;
  --orange: #f28c45;
  --cream: #f7f4ed;
  --paper: #ffffff;
  --ink: #142536;
  --muted: #637282;
  --line: #dfe6ec;
  --shadow: 0 22px 60px rgba(17, 51, 82, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }

.hero {
  min-height: 410px;
  color: white;
  background:
    radial-gradient(circle at 82% 22%, rgba(109, 188, 233, .35), transparent 22rem),
    linear-gradient(128deg, var(--navy-deep), var(--navy));
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  right: -80px;
  bottom: -190px;
  box-shadow: 0 0 0 65px rgba(255,255,255,.04), 0 0 0 130px rgba(255,255,255,.025);
}

.nav, .hero-content, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.brand { color: white; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--orange); font-weight: 900; font-size: 1.35rem; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.05rem; letter-spacing: .02em; }
.brand small { color: #bcd8eb; margin-top: 1px; }
.status { display: flex; align-items: center; gap: 9px; padding: 9px 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: .82rem; }
.status span { width: 8px; height: 8px; border-radius: 50%; background: #62d38b; box-shadow: 0 0 0 4px rgba(98,211,139,.13); }

.hero-content { padding: 52px 0 116px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; color: #9fd1ef; font-size: .75rem; font-weight: 800; letter-spacing: .17em; }
.eyebrow.dark { color: var(--navy); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 7vw, 5rem); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.hero-copy { max-width: 650px; color: #c9dfed; font-size: clamp(1rem, 2vw, 1.23rem); line-height: 1.65; }

main { margin-top: -70px; position: relative; z-index: 2; }
.search-panel { padding: 32px; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); }
.section-heading, .catalog-intro { display: flex; justify-content: space-between; gap: 28px; align-items: end; }
h2 { margin-bottom: 0; font-family: Georgia, "Times New Roman", serif; color: var(--navy-deep); font-size: clamp(1.8rem, 4vw, 2.55rem); font-weight: 500; letter-spacing: -.025em; }
.result-count { margin-bottom: 4px; color: var(--muted); font-size: .9rem; }
.filters { margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 16px; align-items: end; }
label > span { display: block; margin-bottom: 8px; color: #526272; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
select, .search-input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; color: var(--ink); }
select { padding: 0 38px 0 13px; }
.keyword-field { grid-column: span 3; }
.search-input { display: flex; align-items: center; gap: 9px; padding: 0 14px; }
.search-input > span { color: var(--navy); font-size: 1.3rem; }
.search-input input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.clear-button { min-height: 48px; border: 1px solid var(--navy); border-radius: 11px; color: var(--navy); background: white; font-weight: 750; }
.clear-button:hover, .clear-button:focus-visible { background: var(--sky); }
select:focus-visible, input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(242,140,69,.45); outline-offset: 2px; }

.catalog { padding: 72px 0 34px; }
.catalog-intro { align-items: start; }
.catalog-intro > p { max-width: 470px; margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.resource-card { display: flex; flex-direction: column; min-height: 370px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.resource-card:hover { transform: translateY(-4px); border-color: #bdcfdd; box-shadow: 0 16px 32px rgba(20,58,95,.09); }
.card-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 22px; }
.resource-type, .resource-term { font-size: .68rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.resource-type { padding: 6px 9px; border-radius: 7px; color: var(--navy); background: var(--sky); }
.resource-term { color: var(--orange); }
.resource-title { margin-bottom: 6px; color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.resource-author { color: var(--muted); font-size: .87rem; }
.resource-summary { color: #425466; font-size: .9rem; line-height: 1.55; }
.resource-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 22px; }
.resource-tags span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: #526272; background: #fafbfc; font-size: .7rem; }
.resource-link { align-self: flex-start; margin: 0 0 18px; color: var(--navy); font-size: .8rem; font-weight: 800; text-decoration: none; }
.resource-link:hover { text-decoration: underline; }
.resource-link[hidden] { display: none; }
.resource-meta { display: grid; grid-template-columns: .7fr .8fr 1.5fr; gap: 8px; margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.resource-meta div { min-width: 0; }
.resource-meta dt { margin-bottom: 4px; color: #89949f; font-size: .63rem; font-weight: 800; text-transform: uppercase; }
.resource-meta dd { margin: 0; color: var(--ink); font-size: .75rem; overflow-wrap: anywhere; }
.empty-state { margin-top: 30px; padding: 70px 20px; border: 1px dashed #bdcbd7; border-radius: 17px; text-align: center; background: rgba(255,255,255,.55); }
.empty-state > span { display: block; color: var(--navy); font-size: 2.2rem; }
.empty-state h3 { margin: 8px 0; color: var(--navy-deep); }
.empty-state p { margin-bottom: 0; color: var(--muted); }

.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 78px; border-radius: 18px; overflow: hidden; color: white; background: var(--navy); }
.info-strip div { display: flex; align-items: center; gap: 18px; min-height: 100px; padding: 22px 28px; border-right: 1px solid rgba(255,255,255,.13); }
.info-strip div:last-child { border-right: 0; }
.info-strip strong { color: var(--orange); font-family: Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.info-strip span { color: #d8e7f1; font-size: .86rem; line-height: 1.4; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 36px 0 44px; border-top: 1px solid #d4d9dc; color: var(--muted); font-size: .8rem; }
footer strong { color: var(--navy); }
footer p { margin: 5px 0 0; }

@media (max-width: 900px) {
  .filters { grid-template-columns: repeat(2, 1fr); }
  .keyword-field { grid-column: span 1; }
  .results { grid-template-columns: repeat(2, 1fr); }
  .info-strip { grid-template-columns: 1fr; }
  .info-strip div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
}

@media (max-width: 620px) {
  .nav, .hero-content, main, footer { width: min(100% - 24px, 1180px); }
  .nav { align-items: flex-start; }
  .status { max-width: 145px; border-radius: 12px; }
  .hero-content { padding-top: 35px; }
  .search-panel { padding: 24px 18px; }
  .section-heading, .catalog-intro, footer { display: block; }
  .result-count { margin-top: 12px; }
  .filters, .results { grid-template-columns: 1fr; }
  .keyword-field { grid-column: auto; }
  .catalog-intro > p { margin-top: 16px; }
  footer > p { margin-top: 22px; }
}
