:root {
  --gw-ink: #14202a;
  --gw-muted: #5e6870;
  --gw-paper: #f4f1ea;
  --gw-white: #ffffff;
  --gw-line: rgba(20, 32, 42, .16);
  --gw-accent: #9a6b3f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--gw-ink);
  background: var(--gw-paper);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.serif { font-family: "Libre Baskerville", serif; }

.home-wrap {
  min-height: calc(100vh - 108px);
  display: grid;
  place-items: center;
  padding: 4rem 0;
}
.home-panel { text-align: center; }
.eyebrow {
  margin-bottom: 1rem;
  color: var(--gw-muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.home-title {
  margin: 0;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -.06em;
}
.home-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.35rem;
  margin-top: 2rem;
}
.home-link {
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.home-link:hover { color: var(--gw-accent); }
.home-divider { width: 1px; height: 28px; background: var(--gw-line); }

.page-hero { padding: clamp(4rem, 8vw, 8rem) 0 3rem; }
.display-title {
  max-width: 1000px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.lead-copy {
  max-width: 900px;
  margin-top: 1.5rem;
  color: var(--gw-muted);
}
.section-pad { padding: 3rem 0 6rem; }
.library-search { position: relative; }
.library-search .form-control {
  min-height: 64px;
  padding: 1rem 5rem 1rem 1.25rem;
  border: 1px solid var(--gw-line);
  border-radius: 0;
  background: rgba(255,255,255,.72);
}
.search-clear, .search-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.search-clear {
  right: 2.8rem;
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
}
.search-clear.is-visible { display: block; }
.search-icon { right: 1.1rem; color: var(--gw-muted); }
.typeahead-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border: 1px solid var(--gw-line);
  background: var(--gw-white);
  box-shadow: 0 18px 44px rgba(20,32,42,.12);
}
.typeahead-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--gw-line);
  background: transparent;
  text-align: left;
}
.typeahead-item:hover { background: var(--gw-paper); }
.typeahead-item small { color: var(--gw-muted); }

.resource-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--gw-line);
  background: rgba(255,255,255,.58);
}
.resource-type {
  margin-bottom: .75rem;
  color: var(--gw-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.resource-card h3 {
  font-family: "Libre Baskerville", serif;
  font-size: 1.2rem;
  line-height: 1.35;
}
.resource-card p { color: var(--gw-muted); }
.btn-gw {
  display: inline-flex;
  width: fit-content;
  padding: .68rem .9rem;
  border: 1px solid var(--gw-ink);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.btn-gw:hover { background: var(--gw-ink); color: var(--gw-white); }

.site-footer {
  border-top: 1px solid var(--gw-line);
  padding: 1.4rem 0;
  font-size: .78rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.footer-phones { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.footer-phones a { text-decoration: none; }
.footer-phones a:hover { color: var(--gw-accent); }
.footer-separator { color: var(--gw-line); }

@media (max-width: 767px) {
  .home-actions { flex-direction: column; }
  .home-divider { width: 40px; height: 1px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-phones { justify-content: center; }
}
