:root {
  --bg: #f7f1df;
  --surface: rgba(255, 252, 246, 0.92);
  --surface-strong: #fffdf8;
  --ink: #1d315c;
  --muted: #60707b;
  --line: rgba(29, 49, 92, 0.12);
  --accent: #7e9e74;
  --accent-strong: #5f8058;
  --shadow: 0 20px 60px rgba(29, 49, 92, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(220, 204, 155, 0.34), transparent 26%),
    radial-gradient(circle at 100% 8%, rgba(126, 158, 116, 0.18), transparent 24%),
    linear-gradient(180deg, #fcf7ea 0%, #f4ebd9 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: rgba(255, 251, 244, 0.82);
  box-shadow: var(--shadow);
}

.topbar {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 14px;
}

.brand-logo {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(29, 49, 92, 0.08);
  background: #fff9ed;
  box-shadow: 0 10px 28px rgba(29, 49, 92, 0.08);
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong,
h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-copy span:last-child,
.lede,
.footer {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

.nav a {
  align-items: center;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.88rem;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  padding: 46px 0 20px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.12;
  margin: 0;
}

.lede {
  max-width: 60ch;
  margin: 20px 0 0;
  font-size: 1.08rem;
  line-height: 1.8;
}

.verify-form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.verify-form label {
  font-size: 0.86rem;
  font-weight: 700;
}

.verify-search {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 6px;
}

.verify-search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  outline: none;
  padding: 0 16px;
}

.verify-search button {
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: #fffdf8;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 0 22px;
}

.verify-search button:hover {
  background: var(--accent-strong);
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 100%;
  padding: 28px;
}

.result-card.is-valid {
  border-color: rgba(126, 158, 116, 0.42);
}

.result-card.is-invalid {
  border-color: rgba(180, 35, 24, 0.28);
}

.result-details {
  display: grid;
  margin-top: 24px;
}

.result-details div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 14px 0;
}

.result-details dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.result-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 18px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--accent-strong);
  font-weight: 700;
}

@media (max-width: 860px) {
  .topbar,
  .hero {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .site-shell {
    border-radius: 20px;
    padding: 16px;
    width: min(100% - 20px, 1180px);
  }

  .brand-logo {
    height: 60px;
    width: 60px;
  }

  .verify-search,
  .result-details div {
    grid-template-columns: 1fr;
  }

  .verify-search {
    border-radius: 18px;
  }
}
