:root {
  --paper: #f7f4ee;
  --ink: #23211d;
  --muted: #6b665c;
  --rule: #ddd6c8;
  --accent: #3f5f55;
  --measure: 38rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1a18;
    --ink: #ebe6dc;
    --muted: #a39d91;
    --rule: #3a3732;
    --accent: #9cc2b5;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, "Bitstream Charter", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
  padding: 0 1.25rem;
}

.masthead,
main,
footer {
  max-width: var(--measure);
  margin: 0 auto;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

.wordmark span,
nav,
.url,
dt,
footer {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.wordmark span {
  font-size: 0.75em;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

section {
  padding: 2.75rem 0 0.5rem;
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  margin: 0 0 1rem;
}

h2 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

h3 a {
  color: var(--ink);
  text-decoration: none;
}

h3 a:hover {
  color: var(--accent);
}

p {
  margin: 0 0 1rem;
}

.products {
  list-style: none;
  margin: 0;
  padding: 0;
}

.products li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.products li:last-child {
  border-bottom: 1px solid var(--rule);
}

.products p {
  margin-bottom: 0.4rem;
}

.url,
.note,
footer {
  color: var(--muted);
  font-size: 0.875rem;
}

.contact {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem 1rem;
  margin: 0 0 1.25rem;
}

dt {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.3rem;
}

dd {
  margin: 0;
}

address {
  font-style: normal;
}

footer {
  margin-top: 3rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
}

footer p {
  margin: 0;
}

.notfound {
  padding: 4rem 0 2rem;
}
