:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #102342;
  background: #f4f6fa;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 0;
}

.wrap {
  width: min(calc(100% - 2.5rem), 48rem);
  margin-inline: auto;
}

.masthead {
  padding-block: 1.2rem;
  background: #102342;
  border-bottom: 2px solid #bd9450;
}

.brand {
  display: block;
  width: 12.5rem;
  max-width: 100%;
  height: auto;
  border-radius: .45rem;
  background: #edf4ff;
  padding: .36rem .48rem;
}

.main { padding-block: clamp(3rem, 8vw, 6.5rem); }

.accent {
  width: 3.25rem;
  height: .22rem;
  border-radius: 1rem;
  background: #9b6a1a;
  margin-bottom: 1.15rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.041em;
  margin: 0;
}

.intro {
  margin: 1rem 0 2rem;
  color: #3d4d68;
  font-size: 1.075rem;
  line-height: 1.55;
}

.result {
  --tone: #214786;
  --tint: #eaf1ff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem 1.15rem;
  background: #fff;
  border: 1px solid #d5deeb;
  border-inline-start: .3rem solid var(--tone);
  border-radius: .85rem;
  box-shadow: 0 .6rem 1.75rem #1023420b;
  padding: clamp(1.1rem, 4vw, 1.8rem);
}

.result[data-state="valid"] { --tone: #166244; --tint: #e2f5ea; }
.result[data-state="expired"] { --tone: #86510c; --tint: #fff0d6; }
.result[data-state="revoked"] { --tone: #99403a; --tint: #fdebea; }
.result[data-state="unknown"] { --tone: #44546c; --tint: #edf1f7; }
.result[data-state="unavailable"],
.result[data-state="rate_limited"] { --tone: #785015; --tint: #fff0d6; }

.symbol {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tone);
  background: var(--tint);
}

.result h2 {
  font-size: clamp(1.22rem, 4vw, 1.55rem);
  line-height: 1.22;
  margin: .05rem 0 .4rem;
}

.result p, .privacy {
  margin: 0;
  line-height: 1.55;
  color: #3d4d68;
}

.privacy {
  margin-top: 1.2rem;
  font-size: .94rem;
}

button {
  grid-column: 2;
  justify-self: start;
  min-height: 2.75rem;
  border: 0;
  border-radius: .45rem;
  background: #173969;
  color: white;
  font: inherit;
  font-weight: 650;
  padding: .65rem .95rem;
  cursor: pointer;
}

button:focus-visible {
  outline: .2rem solid #9b6a1a;
  outline-offset: .2rem;
}

@media (max-width: 24rem) {
  .wrap { width: calc(100% - 2rem); }
  .result { gap: .75rem; }
  .symbol { width: 2.1rem; height: 2.1rem; }
}
