@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Noto+Serif:wght@500;600;700;800&display=swap");

:root {
  color-scheme: light;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  color: #42160e;
  background: #fffaf0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 290px; }

.skip-link {
  position: absolute;
  z-index: 10;
  top: -4rem;
  left: 1rem;
  padding: .7rem 1rem;
  color: #4d100a;
  background: #fff;
  border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(370px, 38vw, 590px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: #750a09 url("/images/hero-library.webp") center center / cover no-repeat;
}
.hero__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(60 3 6 / 18%), rgb(73 0 3 / 58%) 27%, rgb(81 0 4 / 66%) 59%, rgb(60 3 6 / 16%)), linear-gradient(0deg, rgb(54 0 3 / 40%), transparent 25%);
}
.hero__content {
  width: min(100%, 1480px);
  padding: 34px 24px 48px;
  color: #ffe7a8;
  text-shadow: 0 3px 12px rgb(38 0 0 / 65%);
}
.hero__emblem {
  display: block;
  width: clamp(68px, 7vw, 96px);
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 4px 7px rgb(57 0 0 / 38%));
}
.hero__org {
  margin: 0 0 10px;
  color: #ffe6a1;
  font: 700 clamp(1.1rem, 2.35vw, 2.35rem)/1.35 "Noto Serif", Georgia, serif;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  color: #fff2bd;
  font: 800 clamp(1.45rem, 4.25vw, 4.45rem)/1.22 "Noto Serif", Georgia, serif;
  letter-spacing: -.028em;
  white-space: nowrap;
}
.hero__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(490px, 70%);
  margin: 20px auto 12px;
  color: #f7cb74;
  font-size: 1rem;
}
.hero__rule::before, .hero__rule::after { content: ""; display: block; flex: 1; height: 1px; background: #f2bd65; }
.hero__subline {
  margin: 0;
  color: #fff8e3;
  font-size: clamp(.72rem, 1.05vw, .93rem);
  font-weight: 600;
  letter-spacing: .045em;
}

.library {
  padding: 74px 24px 78px;
  background: radial-gradient(circle at 50% -180px, #fff1cf 0, transparent 620px), #fffaf0;
}
.library__heading {
  max-width: 800px;
  margin: 0 auto 36px;
  text-align: center;
}
.section-kicker {
  color: #a92718;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .19em;
}
.library__heading h2, .visit-stats h2 {
  margin: 12px 0 12px;
  color: #780d0d;
  font: 700 clamp(1.9rem, 3vw, 2.8rem)/1.3 "Noto Serif", Georgia, serif;
}
.library__heading p {
  margin: 0;
  color: #70564e;
  font-size: .98rem;
  line-height: 1.85;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1140px;
  margin: auto;
}
.category-card {
  display: block;
  position: relative;
  min-height: 305px;
  overflow: hidden;
  border-radius: 12px;
  background: #75110d;
  box-shadow: 0 15px 35px rgb(76 23 10 / 15%);
  text-decoration: none;
}
.category-card:focus-visible { outline: 3px solid #bb7d13; outline-offset: 4px; }
.category-card__image, .category-card__wash { position: absolute; inset: 0; }
.category-card__image img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.category-card__wash { background: linear-gradient(0deg, rgb(52 4 4 / 95%) 0%, rgb(72 3 3 / 60%) 34%, transparent 84%); }
.category-card__content {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 30px 27px;
  color: #fff7e8;
  text-shadow: 0 2px 6px rgb(35 0 0 / 60%);
}
.category-card__number { color: #ffda82; font-size: .68rem; font-weight: 800; letter-spacing: .18em; }
.category-card h3 {
  max-width: 480px;
  margin: 9px 0 13px;
  font: 700 clamp(1.35rem, 2vw, 1.85rem)/1.35 "Noto Serif", Georgia, serif;
}
.category-card__state {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgb(255 230 176 / 55%);
  border-radius: 5px;
  color: #fff2d8;
  background: rgb(94 14 11 / 45%);
  font-size: .7rem;
  font-weight: 600;
}
.library__note {
  max-width: 820px;
  margin: 25px auto 0;
  color: #73584f;
  font-size: .86rem;
  line-height: 1.7;
  text-align: center;
}
.library__submit {
  max-width: 600px;
  margin: 28px auto 0;
  padding: 24px 20px;
  border: 1px solid #e6cda8;
  border-radius: 12px;
  background: #fff7e7;
  text-align: center;
}
.library__submit p { margin: 0 0 14px; color: #70412e; font-weight: 700; }
.library__submit a {
  display: inline-block;
  padding: 11px 19px;
  border-radius: 7px;
  color: #fff8e5;
  background: #8b1914;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
.library__submit a:hover { background: #6f0c0b; }
.library__submit a:focus-visible { outline: 3px solid #bb7d13; outline-offset: 3px; }
.library__submit small { display: block; margin-top: 12px; color: #73584f; line-height: 1.55; }

.visit-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  padding: 45px max(24px, calc((100vw - 1140px) / 2));
  color: #fff5dc;
  background: linear-gradient(110deg, #6b090a, #941c16 55%, #6b090a);
}
.visit-stats .section-kicker { color: #f4c56b; }
.visit-stats h2 { margin-bottom: 8px; color: #fff0c2; font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.visit-stats__intro p { margin: 0; color: #f3d8cd; font-size: .84rem; line-height: 1.6; }
.visit-stats__numbers { display: flex; gap: 18px; flex-shrink: 0; }
.visit-stats__numbers > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 160px;
  padding: 16px 23px;
  border: 1px solid rgb(255 224 153 / 40%);
  border-radius: 10px;
  background: rgb(255 255 255 / 7%);
}
.visit-stats__numbers strong { color: #ffdf8e; font: 700 2rem/1.2 "Noto Serif", Georgia, serif; }
.visit-stats__numbers span { margin-top: 5px; font-size: .74rem; }
.visit-stats__error { color: #fff3dd; }

.site-footer {
  padding: 23px 20px 28px;
  color: #f8e5ca;
  background: #3f0909;
  text-align: center;
}
.site-footer p { margin: 0; font-size: .84rem; line-height: 1.6; }
.site-footer__credit { margin-bottom: 8px !important; color: #d8b8a4; font-size: .67rem !important; }
.site-footer a { color: inherit; }

@media (max-width: 760px) {
  .hero { min-height: 355px; background-position: 54% center; }
  .hero__content { padding: 28px 12px 32px; }
  .hero__emblem { width: 63px; margin-bottom: 17px; }
  .hero__org { font-size: clamp(.92rem, 4vw, 1.35rem); }
  .hero h1 { font-size: clamp(1.18rem, 4.65vw, 2.2rem); letter-spacing: -.05em; }
  .hero__subline { font-size: .65rem; letter-spacing: 0; }
  .library { padding: 48px 17px 55px; }
  .category-grid { grid-template-columns: 1fr; gap: 18px; }
  .category-card { min-height: 275px; }
  .visit-stats { flex-direction: column; align-items: stretch; gap: 25px; padding: 38px 20px; }
  .visit-stats__numbers { gap: 10px; }
  .visit-stats__numbers > div { min-width: 0; width: 50%; padding: 14px; }
  .visit-stats__numbers strong { font-size: 1.6rem; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 4.5vw; }
  .hero__subline { max-width: 275px; margin: auto; line-height: 1.55; }
  .category-card__content { padding: 22px; }
}
