:root {
  color-scheme: light;
  --ink: #1d2520;
  --muted: #555f56;
  --paper: #f8f8f3;
  --green: #244c38;
  --lime: #dcf19b;
  --line: #dde0d7;
  font: 16px/1.45 "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #548553; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { z-index: 3; width: auto; height: auto; clip-path: none; background: white; padding: .6rem; }
.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(1.15rem, 4.5vw, 5.5rem);
}
.site-header { min-height: 76px; background: var(--paper); }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3.5vw, 3.25rem); }
.site-header nav a, .site-footer a { text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.wordmark { display: inline-flex; gap: .25em; align-items: center; text-decoration: none; white-space: nowrap; font-size: 1.26rem; letter-spacing: -.075em; font-weight: 820; line-height: 1; }
.wordmark > span:first-child { display: inline-grid; place-items: center; background: var(--green); color: white; min-width: 1.76em; height: 1.7em; letter-spacing: -.08em; padding-right: .06em; }
.wordmark .wordmark-dot { color: #557655; margin-left: -.19em; }
.cart-trigger { background: transparent; border: 1px solid var(--line); padding: .53rem .7rem .53rem .85rem; white-space: nowrap; }
.cart-trigger span { display: inline-grid; place-items: center; min-width: 1.52rem; margin-left: .2rem; background: #e6ebdd; font-size: .84rem; border-radius: 99px; }
.hero { position: relative; isolation: isolate; min-height: clamp(440px, 52vw, 660px); display: grid; align-items: center; background: #10261f; color: white; }
.hero img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero img { object-fit: cover; object-position: center 34%; }
.hero::after { content: ""; background: linear-gradient(90deg, #0c211de8 0%, #0c211d99 36%, #102b2512 73%); }
.hero-inner { padding: 3rem clamp(1.4rem, 7.2vw, 8rem); }
.hero h1 { margin: 0; font-size: clamp(3.45rem, 7.2vw, 7.25rem); line-height: .99; letter-spacing: -.078em; font-weight: 790; }
.hero p { max-width: 25rem; margin: 1.4rem 0 1.65rem; color: #f0f4eb; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 45px; background: var(--green); color: white; border: 1px solid transparent; padding: .65rem 1.14rem; font-weight: 670; text-decoration: none; }
.button:hover { background: #173c2a; }
.hero-action { background: var(--lime); color: #15251b; }
.hero-action:hover { background: #f0ffc0; }
.catalog { padding: clamp(2.7rem, 6vw, 5.3rem) clamp(1.15rem, 4.5vw, 5.5rem); max-width: 1700px; margin: auto; scroll-margin-top: 1rem; }
.catalog-head, .catalog-controls { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.catalog-head h2, dialog h2 { font-size: clamp(2rem, 4.3vw, 3.6rem); margin: 0; line-height: 1; letter-spacing: -.065em; }
input, textarea, select { border: 1px solid #b4beb4; border-radius: 0; min-height: 43px; background: #fff; color: var(--ink); padding: .55rem .65rem; max-width: 100%; }
.search input { width: clamp(11rem, 25vw, 19rem); }
.catalog-controls { margin: 1.45rem 0 1rem; align-items: center; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.filters button, .small-button { background: transparent; border: 1px solid var(--line); min-height: 42px; padding: .42rem .76rem; color: var(--ink); }
.filters button[aria-pressed="true"], .filters button:hover, .small-button:hover { background: #e7ebdf; border-color: #b8c6b8; }
.catalog-controls p, .notice, .product-category { color: var(--muted); margin: 0; font-size: .9rem; }
.notice { margin-bottom: .9rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 1.75vw, 1.9rem); }
.product-card { min-width: 0; position: relative; }
.product-card img, #product-detail img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #e9ecea; }
.product-open { display: block; text-align: left; width: 100%; background: transparent; color: inherit; padding: 0; border: 0; }
.product-open:hover .product-name { text-decoration: underline; text-underline-offset: .2em; }
.product-category { display: block; margin-top: .7rem; }
.product-name { display: block; margin: .18rem 0; font-size: clamp(1rem, 1.65vw, 1.25rem); line-height: 1.25; font-weight: 720; letter-spacing: -.025em; overflow-wrap: anywhere; }
.price { display: block; margin-bottom: .5rem; font-weight: 680; }
.site-footer { min-height: 100px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer .wordmark { color: var(--ink); }
dialog { width: min(92vw, 560px); max-height: 88dvh; padding: 1.7rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); overscroll-behavior: contain; }
body:has(dialog[open]) { overflow: hidden; }
dialog::backdrop { background: #0b1d16a8; }
dialog h2 { font-size: clamp(1.8rem, 5vw, 2.65rem); margin: 0 2rem 1.1rem 0; }
.dialog-close { position: absolute; top: .8rem; right: .8rem; }
.dialog-close button { width: 42px; height: 42px; border: 1px solid var(--line); background: var(--paper); font-size: 1.5rem; }
#product-detail img { max-height: 38vh; object-fit: contain; margin-bottom: 1rem; }
.cart-row { border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; padding: .65rem 0; }
.quantity { display: flex; gap: .55rem; align-items: center; }
.quantity button { min-width: 40px; }
.total { font-weight: 750; }
form label { display: grid; gap: .25rem; }
#checkout, .admin-form { display: grid; gap: .7rem; }
#checkout p { color: var(--muted); margin: 0; font-size: .9rem; }
.admin-main { max-width: 1100px; margin: auto; padding: 2rem clamp(1rem, 5vw, 3rem); }
.admin-main h1 { margin: 0 0 1.2rem; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.06em; }
.admin-login { width: min(100%, 430px); margin-top: 7vh; }
.admin-form { max-width: 650px; background: #fff; border: 1px solid var(--line); padding: 1rem; }
.admin-form textarea { min-height: 5rem; resize: vertical; }
.admin-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.admin-list article { padding: .9rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.admin-list h3, .admin-list p { margin: 0 0 .35rem; }
.admin-list ul { margin: .5rem 0; padding-left: 1.2rem; }
.admin-main [role="status"], #cart-status { color: var(--green); font-weight: 650; }
@media (max-width: 680px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; gap: .55rem; padding-block: .65rem; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; }
  .site-header nav a { padding: .55rem 0; }
  .hero { min-height: 460px; align-items: end; }
  .hero img { object-position: 64% center; }
  .hero::after { background: linear-gradient(0deg, #0b1d17f5 0%, #0b1d179c 52%, #0b1d171a 100%); }
  .hero-inner { padding-bottom: 2rem; }
  .catalog-head { flex-wrap: wrap; }
  .search, .search input { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { flex-wrap: wrap; padding-block: 1.5rem; gap: 1rem; }
}
