:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #64716d;
  --paper: #f6f8f5;
  --panel: #ffffff;
  --line: #dbe4df;
  --accent: #d95d39;
  --accent-dark: #a83d23;
  --answer: #e6f2ed;
  --shadow: 0 18px 45px rgba(33, 58, 49, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: 330px;
  content: "";
  background: linear-gradient(135deg, #dcebe3 0%, #f6f8f5 68%);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
}

.app-shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 64px 0 80px;
}

.page-header {
  margin-bottom: 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font: 700 0.76rem/1.2 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 400;
  line-height: 0.95;
}

.intro {
  max-width: 510px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-icon {
  color: var(--accent);
  font: 2rem/1 Arial, sans-serif;
  transform: rotate(-20deg);
}

.search-box input {
  min-width: 0;
  flex: 1;
  padding: 8px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: 1.08rem Georgia, "Times New Roman", serif;
}

.search-box input::placeholder {
  color: #94a19c;
}

kbd {
  padding: 4px 8px;
  color: var(--muted);
  background: #f0f4f1;
  border: 1px solid var(--line);
  font: 0.8rem Arial, sans-serif;
}

.result-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  color: var(--muted);
  font: 0.78rem Arial, sans-serif;
}

.clear-button {
  padding: 6px 0;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.clear-button:hover {
  color: var(--ink);
}

.results {
  display: grid;
  gap: 14px;
}

.question-item {
  padding: 24px 26px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(33, 58, 49, 0.045);
}

.question-meta {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font: 700 0.72rem Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question {
  margin: 0 0 19px;
  font-size: 1.18rem;
  line-height: 1.42;
}

.answer {
  margin: 0;
  padding: 14px 16px;
  color: #27493e;
  background: var(--answer);
  border-left: 4px solid #71a994;
  font-size: 1.02rem;
  line-height: 1.5;
}

.answer-label {
  display: block;
  margin-bottom: 4px;
  color: #50786a;
  font: 700 0.68rem Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-state {
  padding: 42px 20px;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line);
  text-align: center;
  font-size: 1.05rem;
}

.error-state {
  color: var(--accent-dark);
}

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

@media (max-width: 600px) {
  .app-shell {
    width: min(100% - 24px, 920px);
    padding-top: 38px;
  }

  h1 {
    font-size: 3.3rem;
  }

  .question-item {
    padding: 20px;
  }

  kbd {
    display: none;
  }
}