: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 */
.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;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.eyebrow a:hover,
.eyebrow a:focus {
  color: var(--gw-ink);
  text-decoration: none;
}

.eyebrow a:visited {
  color: inherit;
}

.home-title {
  margin: 0;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -.06em;
}

.home-title a {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.home-title a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .05em;
  width: 100%;
  height: 4px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.home-title a:hover::after,
.home-title a:focus::after {
  transform: scaleX(1);
}

.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 typography */
.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 */
.library-search {
  position: relative;
}

.library-search .form-control {
  min-height: 64px;
  padding: 1rem 6.5rem 1rem 1.25rem;
  border: 1px solid var(--gw-line);
  border-radius: 0;
  background: rgba(255, 255, 255, .72);
  color: var(--gw-ink);
}

.library-search .form-control:focus {
  border-color: rgba(154, 107, 63, .55);
  box-shadow: 0 0 0 .2rem rgba(154, 107, 63, .12);
  background: var(--gw-white);
}

.library-search input[type="search"]::-webkit-search-cancel-button,
.library-search input[type="search"]::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

.library-search input[type="search"]::-ms-clear,
.library-search input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.search-clear,
.search-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.search-clear {
  right: 3.8rem;
  display: none;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gw-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease;
}

.search-clear:hover,
.search-clear:focus {
  color: var(--gw-ink);
}

.search-clear.is-visible {
  display: grid;
  place-items: center;
}

.search-icon {
  right: 1.25rem;
  color: var(--gw-muted);
  pointer-events: none;
}

.search-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.typeahead-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 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;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--gw-line);
  background: transparent;
  color: var(--gw-ink);
  text-align: left;
}

.typeahead-item:last-child {
  border-bottom: 0;
}

.typeahead-item:hover,
.typeahead-item:focus {
  background: var(--gw-paper);
}

.typeahead-item small {
  flex: 0 0 auto;
  color: var(--gw-muted);
}

/* Resource cards */
.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--gw-line);
  background: rgba(255, 255, 255, .58);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease,
    background-color .25s ease;
}

.resource-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gw-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.resource-card:hover,
.resource-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(154, 107, 63, .4);
  background: var(--gw-white);
  box-shadow: 0 18px 40px rgba(20, 32, 42, .12);
}

.resource-card:hover::before,
.resource-card:focus-within::before {
  transform: scaleX(1);
}

.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;
  transition: color .2s ease;
}

.resource-card:hover h3,
.resource-card:focus-within h3 {
  color: var(--gw-accent);
}

.resource-card p {
  color: var(--gw-muted);
}

.btn-gw {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .75rem 1rem;
  border: 1px solid var(--gw-ink);
  background: transparent;
  color: var(--gw-ink);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition:
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease;
}

.btn-gw:hover,
.btn-gw:focus {
  border-color: var(--gw-ink);
  background: var(--gw-ink);
  color: var(--gw-white);
}

/* Footer */
.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,
.footer-copyright a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-phones a:hover,
.footer-phones a:focus,
.footer-copyright a:hover,
.footer-copyright a:focus {
  color: var(--gw-accent);
}

.footer-separator {
  color: var(--gw-line);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@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;
  }

  .typeahead-item {
    align-items: flex-start;
    flex-direction: column;
    gap: .2rem;
  }
}
