:root {
  color-scheme: light;
  --ink: #182016;
  --muted: #4e5f46;
  --link: #365b21;
  --line: #dce3d6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f5f6f3;
  color: var(--ink);
  font: 1rem/1.65 system-ui, sans-serif;
}

a { color: var(--link); text-underline-offset: .2em; }

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

.header, .footer, .product-heading, .actions, .header nav, .footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.header, .footer {
  justify-content: space-between;
  padding-block: 1rem;
}

.header { border-bottom: 1px solid var(--line); }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

.brand {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 820;
  letter-spacing: -.06em;
  text-decoration: none;
}

.brand span { color: #558413; }
.header nav a, .footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.skip { position: absolute; z-index: 1; padding: .75rem; background: white; transform: translateY(-120%); }
.skip:focus { transform: none; }

main { padding-block: clamp(2rem, 5vw, 4.5rem); }

h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.35rem); line-height: 1.06; letter-spacing: -.055em; }
h2 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -.025em; }
h3, dt { font-weight: 720; font-size: 1rem; }
p, dd { color: var(--muted); }
.intro { margin-top: .9rem; font-size: 1.125rem; }

.product-index {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-block: 1.5rem 2rem;
}

.product-index a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .35rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 650;
  text-decoration: none;
}

.product-index a:hover { background: #edf4e3; }

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product, .contact, .privacy {
  padding: clamp(1.125rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: white;
}

.product {
  display: flex;
  flex-direction: column;
}

.product:target, .privacy:target { border-color: #648148; }
.product, .privacy { scroll-margin-top: 1rem; }
.product-heading { flex-wrap: nowrap; align-items: flex-start; }
.product-heading img { flex: 0 0 auto; border-radius: .75rem; object-fit: cover; }
.product-heading p { margin-top: .3rem; }
.product dl { padding-block: 1.3rem; }
.product dt:not(:first-child) { margin-top: 1rem; }
.product dd { margin-top: .25rem; }

.actions { gap: .55rem 1rem; margin-top: auto; overflow-wrap: anywhere; }
.actions a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9375rem; }
.button {
  padding: .5rem .85rem;
  border-radius: .65rem;
  background: var(--ink);
  color: white;
  font-weight: 650;
  text-decoration: none;
}
.button:hover { background: #344b2a; }

.contact, .privacy { margin-top: 1rem; }
.contact { background: #edf4e3; }
.contact p, .privacy > p { margin-top: .5rem; }
.contact a { overflow-wrap: anywhere; }

.policy-sections {
  display: grid;
  max-width: 70ch;
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.policy-sections p { margin-top: .2rem; }

@media (max-width: 42rem) {
  .products { grid-template-columns: 1fr; }
  .header { align-items: flex-start; gap: .25rem .75rem; }
  .header nav { gap: .25rem 1rem; }
}

@media (forced-colors: active) {
  .button { border: 1px solid ButtonText; }
}
