:root {
  --leaffy-paper: #f7f4eb;
  --leaffy-ink: #253324;
  --leaffy-moss: #344a33;
  --leaffy-fog: #e0e6d5;
  --leaffy-clay: #9b442d;
  --leaffy-blush: #efd8ca;
  --leaffy-rule: #39482a44;
  --leaffy-arch: 48% 48% 2px 2px / 32% 32% 2px 2px;
  --leaffy-serif: "Instrument Serif", Georgia, serif;
  --leaffy-sans: "Figtree", system-ui, sans-serif;
}

:root { --leaffy-content-width: min(1280px, calc(100% - 80px)); }
@media (max-width: 900px) {
  :root { --leaffy-content-width: calc(100% - 44px); }
}
@media (max-width: 680px) {
  :root { --leaffy-content-width: calc(100% - 32px); }
}

.leaffy-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #1b4332;
  color: #faf9f6;
  border-bottom: 1px solid #faf9f626;
  font: 400 .9375rem/1.35 var(--leaffy-sans);
}
.leaffy-header-inner {
  width: var(--leaffy-content-width);
  margin-inline: auto;
  min-height: 76px;
  padding-block: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.leaffy-header-logo { justify-self: start; }
.leaffy-header-logo img {
  display: block;
  width: 140px;
  height: auto;
  filter: brightness(0) invert(1);
}
.leaffy-header a { color: inherit; text-decoration: none; }
.leaffy-header a[hidden] { display: none; }
.leaffy-nav-links { display: flex; gap: 32px; color: #e6ece8; }
.leaffy-nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.leaffy-nav-links a:is(:hover,:focus-visible) { color: white; text-decoration: underline; text-underline-offset: 4px; }
.leaffy-header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.leaffy-header .leaffy-header-cart,.leaffy-menu-toggle {
  min-height: 40px;
  border-radius: 9999px;
  padding: 0 16px;
}
.leaffy-header .leaffy-header-cart { display: inline-flex; align-items: center; background: #faf9f6; color: #1b4332; }
.leaffy-header .leaffy-header-cart:hover { background: #ffdbcf; }
.leaffy-menu-toggle { display: none; font: inherit; border: 1px solid #faf9f660; background: transparent; color: inherit; cursor: pointer; }
.leaffy-header :focus-visible { outline: 2px solid #ffb59c; outline-offset: 3px; }
@media (max-width: 760px) {
  .leaffy-header-inner { grid-template-columns: 1fr auto; min-height: 64px; }
  .leaffy-menu-toggle { display: inline-flex; align-items: center; }
  .leaffy-nav-links { display: none; position: absolute; inset: 100% 0 auto; padding: 8px max(16px,calc((100% - var(--leaffy-content-width)) / 2)); gap: 0; background: #1b4332; border-bottom: 1px solid #faf9f626; }
  .leaffy-nav-links.is-open { display: grid; }
}
@media (max-width: 480px) {
  .leaffy-header-logo img { width: 108px; }
}

.leaffy-footer {
  background: #1b4332;
  color: #e6ece8;
  font: 400 .9375rem/1.5 "Mulish", system-ui, sans-serif;
  padding-block: clamp(32px, 5vw, 68px) 12px;
}
.leaffy-footer-inner { width: var(--leaffy-content-width); margin-inline: auto; }
.leaffy-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr .7fr;
  gap: 24px clamp(20px, 4vw, 64px);
}
.leaffy-footer-brand img { display: block; width: 140px; height: auto; filter: brightness(0) invert(1); }
.leaffy-footer-brand p { max-width: 28ch; margin: 14px 0 0; }
.leaffy-footer nav { display: flex; flex-direction: column; align-items: flex-start; }
.leaffy-footer h2 { margin: 0 0 4px; color: #fff; font: 800 1rem/1.5 "Mulish", system-ui, sans-serif; letter-spacing: normal; }
.leaffy-footer a { color: inherit; text-underline-offset: 4px; }
.leaffy-footer nav a,.leaffy-footer-top { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.leaffy-footer a[hidden] { display: none; }
.leaffy-footer a:is(:hover,:focus-visible) { color: #fff; text-decoration: underline; }
.leaffy-footer :focus-visible { outline: 2px solid #ffb59c; outline-offset: 3px; }
.leaffy-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 20px;
  border-top: 1px solid #faf9f640;
  margin-top: 24px;
  padding-top: 12px;
}
.leaffy-footer-bottom small { font-size: .8125rem; }
.leaffy-footer-bottom small a { text-decoration: underline; }
.leaffy-footer-top { gap: 8px; }
@media (max-width: 760px) {
  .leaffy-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .leaffy-footer-brand { grid-column: 1 / -1; }
}
