:root {
  --ink: #172d28;
  --red: #a13629;
  --paper: #fffdf7;
  --tan: #e0d6c2;
  --rule: #c9c8b8;
  --mid: #465951;
  color: var(--ink);
  background: var(--paper);
  font:
    1rem/1.55 "Source Sans 3",
    system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main,
nav,
footer {
  width: min(71rem, 100%);
  padding-inline: clamp(1rem, 5vw, 4.6rem);
  margin: auto;
}
header {
  border-top: 0.32rem solid var(--red);
  border-bottom: 1px solid var(--rule);
}
nav,
nav div,
footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.3rem;
}
nav {
  justify-content: space-between;
  min-height: 3.8rem;
}
a {
  color: #854030;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b34e31;
  outline-offset: 3px;
}
.brand {
  font-family: "Baskervville", Georgia, serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
}
.skip {
  position: absolute;
  top: -8rem;
  background: white;
  padding: 0.5rem;
}
.skip:focus {
  top: 0;
}
.intro {
  padding-top: clamp(1.35rem, 3.8vw, 3.25rem);
  max-width: 54rem;
}
.intro h1,
h2,
h3 {
  font-family: "Baskervville", Georgia, serif;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  letter-spacing: -0.055em;
}
.intro p {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  margin: 0.65rem 0 1rem;
  max-width: 60ch;
}
.action {
  display: inline-block;
  color: var(--paper);
  background: var(--ink);
  padding: 0.58rem 0.9rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 0.2rem;
}
.opening-links {
  margin: 0.5rem 0 1rem;
}
section {
  padding: 1.3rem 0;
  border-top: 1px solid var(--rule);
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  margin: 0 0 0.75rem;
}
h3 {
  font-size: 1.33rem;
}
.date,
small,
.maker,
.meta,
.card-meta,
#count {
  color: var(--mid);
}
.date,
.card-meta,
small {
  font-size: 0.89rem;
}
.date {
  max-width: 78ch;
}
p {
  max-width: 78ch;
}
#filters,
#pickers {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.7rem 0.9rem;
}
label {
  display: block;
  font-size: 0.88rem;
  font-weight: bold;
  flex: 1 1 9.5rem;
}
.search {
  flex: 2 1 12rem;
}
select,
input,
button {
  font: inherit;
  max-width: 100%;
  border: 1px solid #83978b;
  border-radius: 0.25rem;
  background: white;
  color: var(--ink);
  padding: 0.55rem;
  min-height: 2.65rem;
}
select,
input {
  display: block;
  width: 100%;
  font-size: 1rem;
  margin-top: 0.25rem;
}
button {
  cursor: pointer;
  font-weight: 650;
}
button:hover {
  background: #edf1e9;
}
.pair,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0.9rem;
}
.card {
  background: #f2efe3;
  border: 1px solid var(--tan);
  border-top: 3px solid var(--red);
  padding: 1.1rem 1.2rem;
  min-width: 0;
}
.card p {
  margin: 0.4rem 0;
}
.card .card-meta {
  margin-bottom: 0.5rem;
}
.card h3 a {
  color: var(--ink);
}
.comparison .action {
  margin-top: 1rem;
}
.origin-label {
  display: inline-block;
  background: #e3ecdf;
  color: #234931;
  padding: 0.3rem 0.65rem;
  margin: 0.2rem 0;
  font-weight: bold;
}
.facts {
  margin: 0.8rem 0;
  max-width: 50rem;
}
.facts div {
  border-top: 1px solid var(--rule);
  padding: 0.65rem 0;
  display: grid;
  grid-template-columns: minmax(6rem, 28%) 1fr;
  gap: 1rem;
}
.card .facts div {
  display: block;
}
.facts dt {
  font-weight: 700;
}
.facts dd {
  margin: 0;
}
.sources,
.related,
#matches {
  list-style: none;
  margin: 0.8rem 0;
  padding: 0;
}
.sources li,
.related li,
#matches li {
  padding: 0.48rem 0;
  border-bottom: 1px solid var(--rule);
}
.sources small,
.related span,
#matches span {
  display: block;
  font-size: 0.91rem;
  color: var(--mid);
}
#matches li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
#matches button {
  padding: 0.31rem 0.65rem;
  min-height: 2.3rem;
}
#results {
  max-width: 52rem;
}
#comparison {
  scroll-margin: 1rem;
}
#comparison .pair {
  margin-top: 1rem;
}
.notice {
  padding: 0.6rem;
  background: #ffecce;
}
footer {
  margin-top: 1.5rem;
  padding-block: 1.3rem 2.8rem;
  border-top: 1px solid var(--rule);
  font-size: 0.93rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  nav {
    gap: 0.5rem;
  }
  nav div {
    gap: 0.8rem;
    font-size: 0.9rem;
  }
  .intro {
    padding-top: 1.1rem;
  }
  .facts div {
    display: block;
  }
  .facts dd {
    margin-top: 0.2rem;
  }
  .search {
    flex-basis: 100%;
  }
  #filters label {
    flex-basis: 45%;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  #finder {
    padding-top: 1rem;
  }
  .card {
    padding: 0.85rem;
  }
  .brand {
    font-size: 1.25rem;
  }
}
.opening-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
