:root {
  --text: #202124;
  --muted: #5f6368;
  --border: #dfe1e5;
  --hover-border: #c6c6c6;
  --surface: #fff;
  --button: #f8f9fa;
  --link: #1a0dab;
  --green: #188038;
  --shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
}

.home-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.home-shell {
  width: min(100%, 640px);
  padding: 32px 20px;
  text-align: center;
}

.logo {
  font-size: clamp(4rem, 8vw, 5.8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
}

.logo.small {
  font-size: 2rem;
  text-decoration: none;
  flex-shrink: 0;
  margin: 0;
}

.blue {
  color: #4285f4;
}

.red {
  color: #ea4335;
}

.yellow {
  color: #fbbc05;
}

.green {
  color: #34a853;
}

.search-form {
  width: 100%;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--surface);
}

.search-input-wrap:hover,
.search-input-wrap:focus-within {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.search-icon {
  color: var(--muted);
  font-size: 1rem;
}

input[type="text"] {
  border: 0;
  outline: 0;
  width: 100%;
  min-height: 50px;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

button,
.secondary-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--button);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 16px;
  cursor: pointer;
}

button:hover,
.secondary-button:hover {
  border-color: var(--hover-border);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.tagline,
.meta,
.display-url,
.result-snippet {
  color: var(--muted);
}

.tagline {
  margin-top: 26px;
  font-size: 0.95rem;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.search-form.compact {
  max-width: 720px;
}

.results-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 24px 48px;
}

.meta {
  font-size: 0.92rem;
  margin: 10px 0 28px;
}

.results-list {
  display: grid;
  gap: 28px;
}

.result-card {
  max-width: 680px;
}

.display-url {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

.result-title {
  color: var(--link);
  font-size: 1.35rem;
  line-height: 1.3;
  text-decoration: none;
}

.result-title:hover {
  text-decoration: underline;
}

.result-snippet {
  margin: 8px 0 0;
  line-height: 1.6;
  font-size: 0.97rem;
}

.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) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .logo.small {
    align-self: center;
  }

  .results-shell {
    padding-inline: 18px;
  }
}
