:root {
  --paper: #ffffff;
  --ink: #111111;
  --muted: #646464;
  --rule: #202020;
  --accent: #1647ff;
  --soft-accent: #edf1ff;
  --page-gutter: clamp(24px, 3vw, 48px);
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

a { color: inherit; }

.search-stage {
  width: min(780px, calc(100% - (2 * var(--page-gutter))));
  margin: clamp(58px, 9vh, 92px) auto 0;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: stretch;
  gap: 9px;
}

.search-field {
  position: relative;
  min-width: 0;
}

.search-input {
  width: 100%;
  height: 58px;
  padding: 0 24px;
  border: 1px solid var(--rule);
  border-radius: 0;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  appearance: none;
}

.search-input::placeholder {
  color: #777777;
  opacity: 1;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.search-submit {
  display: grid;
  min-height: 58px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.search-submit svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-submit:hover,
.search-submit:focus-visible {
  background: #ffffff;
  color: var(--accent);
  outline: 0;
}

.suggestions {
  position: absolute;
  z-index: 10;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  border: 1px solid var(--accent);
  background: #ffffff;
}

.suggestion {
  display: block;
  width: 100%;
  padding: 13px 23px;
  border: 0;
  border-top: 1px solid #e7e7e7;
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.suggestion:first-child { border-top: 0; }

.suggestion:hover,
.suggestion.is-active {
  background: var(--soft-accent);
  color: var(--accent);
}

.site-footer {
  position: fixed;
  right: var(--page-gutter);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
}

.site-footer a {
  color: #222222;
  text-decoration: none;
}

.site-footer a + a::before {
  margin: 0 18px;
  color: #7c7c7c;
  content: "|";
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .search-form {
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 6px;
  }

  .search-input,
  .search-submit {
    min-height: 54px;
    height: 54px;
  }

  .site-footer {
    right: 20px;
    bottom: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100% - 40px);
    font-size: 12px;
  }

  .site-footer a + a::before { margin: 0 9px; }
}

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