:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --panel: #ffffff;
  --soft: #f8fafd;
  --blue: #1a73e8;
  --red: #d93025;
  --yellow: #fbbc04;
  --green: #188038;
  --button: #f8f9fa;
  --button-hover: #f1f3f4;
  --shadow: 0 18px 50px rgba(60, 64, 67, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family:
    Arial,
    Helvetica,
    sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 14%, rgba(251, 188, 4, 0.16), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(26, 115, 232, 0.12), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

button,
input {
  font: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  padding: 7vh 18px 26px;
  place-items: center;
}

.search-panel {
  width: min(100%, 740px);
  text-align: center;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  transform: translateY(-150%);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  color: var(--blue);
  background: var(--panel);
}

.skip-link:focus {
  transform: translateY(0);
}

.wordmark {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.18em;
  margin-bottom: 34px;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(3.4rem, 12vw, 6.8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: lowercase;
}

.blue {
  color: var(--blue);
}

.red {
  color: var(--red);
}

.yellow {
  color: var(--yellow);
}

.green {
  color: var(--green);
}

.ask-form {
  display: grid;
  gap: 22px;
}

.search-box {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  width: min(100%, 640px);
  min-height: 56px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.search-box:focus-within {
  border-color: #c7d2fe;
  box-shadow: 0 20px 56px rgba(26, 115, 232, 0.18);
}

.search-box svg {
  width: 22px;
  height: 22px;
  fill: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
}

.search-box input::placeholder {
  color: #70757a;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.actions button {
  min-width: 132px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 18px;
  color: #3c4043;
  background: var(--button);
  cursor: pointer;
}

.actions button:hover {
  border-color: var(--line);
  background: var(--button-hover);
}

.actions button:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.28);
  outline-offset: 2px;
}

.link-tools {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.link-tools[hidden] {
  display: none;
}

.link-button {
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  padding: 0 12px;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
}

.link-button:hover {
  background: rgba(26, 115, 232, 0.08);
}

.link-button:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.28);
  outline-offset: 2px;
}

#share-link {
  width: min(100%, 640px);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--panel);
  text-align: center;
}

.status {
  min-height: 22px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .page-shell {
    align-items: start;
    padding-top: 16vh;
  }

  .wordmark {
    margin-bottom: 28px;
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .search-box {
    min-height: 52px;
    padding: 0 16px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions button {
    width: min(100%, 280px);
    margin: 0 auto;
  }
}
