*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #4285f4;
  --red: #ea4335;
  --yellow: #fbbc05;
  --green: #34a853;
  --border: #4285f4;
  --button: #4285f4;
  --bg: #ffffff;
  --text: #202124;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Nunito", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 1.75rem;
  transform: translateY(-6vh);
}

.logo {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: clamp(3.25rem, 9vw, 5.25rem);
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
}

.logo-s {
  color: var(--blue);
}
.logo-e {
  color: var(--red);
}
.logo-a {
  color: var(--yellow);
}
.logo-r {
  color: var(--blue);
}
.logo-c {
  color: var(--green);
}
.logo-h {
  color: var(--red);
}

.search-form {
  width: min(100%, 36rem);
}

.search-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 3.25rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-bar:focus-within {
  box-shadow: 0 1px 6px rgba(66, 133, 244, 0.28);
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 1.25rem;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}

.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
  display: none;
}

.search-button {
  flex-shrink: 0;
  width: 3.25rem;
  height: 100%;
  border: none;
  background: var(--button);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.search-button:hover {
  background: #3367d6;
}

.search-button:active {
  transform: scale(0.97);
}

.search-icon {
  width: 1.35rem;
  height: 1.35rem;
}

@media (max-width: 480px) {
  .page {
    gap: 1.35rem;
    transform: translateY(-3vh);
  }

  .search-bar {
    height: 3rem;
  }

  .search-button {
    width: 3rem;
  }
}
