:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5b6661;
  --paper: #f7f4ed;
  --line: #d9d5ca;
  --green: #2a6b4c;
  --green-soft: #dfece2;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(42, 107, 76, 0.09), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  width: min(100% - 2.5rem, 70rem);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 2rem 0 1.75rem;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img { display: block; }

section {
  align-self: center;
  max-width: 47rem;
  padding: 5rem 0;
}

.tool { max-width: 52rem; }

.tool-title {
  max-width: 15ch;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.94;
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 10vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.intro {
  max-width: 37rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

form {
  display: grid;
  gap: 0.8rem;
  margin-top: 2.25rem;
}

form label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9rem;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.46);
  padding: 0.9rem 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.search-form label { grid-template-columns: minmax(0, 1fr) minmax(14rem, 24rem); }

select,
input,
button {
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  font: inherit;
}

select,
input {
  width: 100%;
  background: #fff;
  color: var(--ink);
  padding: 0 0.75rem;
}

button {
  width: fit-content;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0 1.2rem;
  font-weight: 720;
  cursor: pointer;
}

button:hover { background: var(--green); }

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #68b788;
  outline-offset: 3px;
}

.result {
  margin-top: 1.2rem;
  border-left: 0.3rem solid var(--green);
  border-radius: 0.3rem 0.75rem 0.75rem 0.3rem;
  background: var(--green-soft);
  padding: 1rem 1.1rem;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.5;
}

.results article {
  border-bottom: 1px solid rgba(42, 107, 76, 0.2);
  padding: 0.8rem 0;
}

.results article:first-child { padding-top: 0; }
.results article:last-child { border-bottom: 0; padding-bottom: 0; }
.results article p { margin: 0.25rem 0 0; font-weight: 450; }

.source {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

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

.status {
  width: fit-content;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  padding: 0.72rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.3rem var(--green-soft);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 34rem) {
  main { width: min(100% - 2rem, 70rem); padding-top: 1.25rem; }
  section { padding: 4rem 0; }
  h1 { font-size: clamp(3.4rem, 19vw, 5.5rem); }
  .status { align-items: flex-start; border-radius: 1rem; line-height: 1.35; }
  form label,
  .search-form label { grid-template-columns: 1fr; gap: 0.65rem; }
  .tool-title { font-size: clamp(3rem, 16vw, 5rem); }
  .pulse { flex: 0 0 auto; margin-top: 0.3rem; }
  footer { flex-direction: column; }
}
