* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --ink: #302920;
  --sub: #61584d;
  --edge: #c6b8a5;
  --paper: #fbf7ef;
  --ground: #ece3d4;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font:
    1rem / 1.5 "Helvetica Neue",
    Arial,
    sans-serif;
}
main {
  max-width: 80rem;
  margin: auto;
  padding: 0 clamp(1rem, 4vw, 4rem) 3rem;
}
nav,
footer,
.examples {
  display: flex;
  align-items: center;
  gap: 1rem;
}
nav {
  justify-content: space-between;
  border-bottom: 1px solid var(--edge);
  padding: 1.3rem 0;
}
a {
  color: #603b20;
  text-underline-offset: 3px;
}
nav a {
  font-weight: 650;
  color: var(--ink);
}
header {
  padding: clamp(2rem, 5vw, 4rem) 0 2rem;
}
h1,
h2,
.result h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}
header > p:not(.eyebrow) {
  max-width: 53ch;
  font-size: 1.13rem;
}
p {
  margin: 0.75rem 0;
  color: var(--sub);
}
.eyebrow,
.examples span,
.kicker {
  font:
    600 0.77rem / 1.5 ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
.eyebrow {
  margin: 0 0 1rem;
}
.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.tools section {
  border: 1px solid var(--edge);
  background: var(--paper);
  border-radius: 1rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  scroll-margin: 1rem;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.card-head p:last-child {
  max-width: 50ch;
  margin-bottom: 1.25rem;
}
.fields,
label {
  display: grid;
  gap: 0.35rem;
}
.fields {
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
label {
  font-size: 0.89rem;
  font-weight: 650;
}
.dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
input,
select,
button {
  font: inherit;
  color: var(--ink);
  border: 1px solid #ac9d89;
  border-radius: 0.4rem;
  background: #fffcf6;
}
input,
select {
  width: 100%;
  min-width: 0;
  min-height: 2.8rem;
  padding: 0.45rem 0.55rem;
  font-size: 1rem;
}
button {
  padding: 0.45rem 0.65rem;
  min-height: 2.75rem;
  cursor: pointer;
}
button:hover {
  background: #e1d4c0;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #875021;
  outline-offset: 2px;
}
.result {
  margin-top: 0;
  padding: 1.15rem;
  border: 1px solid var(--edge);
  border-radius: 0.4rem;
  overflow-wrap: anywhere;
}
.receipt {
  background: #fffaf0;
  border-top: 3px double var(--edge);
}
.plate {
  background: #e4e7df;
  border-color: #a5b09e;
}
.kicker {
  margin: 0 0 0.55rem;
  color: #594d3d;
}
.result h3 {
  font-size: 1.65rem;
}
.result p {
  color: #413b31;
}
.result .detail {
  font-weight: 650;
}
.result a,
.examples button {
  font-size: 0.9rem;
}
.examples {
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.examples span {
  flex-basis: 100%;
  color: var(--sub);
}
footer {
  border-top: 1px solid var(--edge);
  margin-top: 2rem;
  padding: 1.5rem 0;
  align-items: flex-start;
  gap: 2rem;
}
footer > div {
  flex: 1;
}
footer h2 {
  font-size: 1.45rem;
}
@media (max-width: 720px) {
  .tools {
    grid-template-columns: 1fr;
  }
  footer {
    display: grid;
  }
  .dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 370px) {
  .dates {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.jump {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.cartridges {
  margin-top: 0.2rem;
}
