:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --ink: #262b25;
  --muted: #535d4f;
  --line: #cfcfc2;
  --green: #344337;
  --cream: #ecebde;
  --surface: #fffdf7;
  --error: #8e3026;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
body.admin { --paper: #eef0ea; --surface: #fbfcf8; background: var(--paper); }
a { color: inherit; text-underline-offset: .22em; }
button, select, input, textarea { font: inherit; }
a, button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #925321; outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
p + p { margin-top: .8rem; }
img { max-width: 100%; display: block; height: auto; }
.wrap { width: min(100% - 2.5rem, 82rem); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; background: var(--surface); padding: .65rem; }
.announcement { color: #f9f5e8; background: var(--green); text-align: center; padding: .55rem 1rem; font-size: .82rem; font-weight: 650; }
.site-header, .site-footer { border-block-end: 1px solid var(--line); }
.site-footer { border-block: 1px solid var(--line) 0; color: var(--muted); }
.masthead, .footer-row { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: .6rem; }
.brand { font-size: 1.2rem; font-weight: 800; letter-spacing: -.055em; text-decoration: none; }
.brand span { font-size: .8rem; font-weight: 600; letter-spacing: 0; padding-left: .3rem; color: var(--muted); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1.4rem; }
nav a, nav .link { font-size: .9rem; font-weight: 600; }
nav a:not([aria-current]):not(:hover) { text-decoration: none; }
nav a, nav button { padding-block: .5rem; }
main { min-height: 64vh; padding-block: 2.6rem 4rem; }
.hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }
.hero-copy { align-self: center; padding: clamp(2rem, 6vw, 6rem); }
.hero h1, .section-heading h1 {
  font: 500 clamp(2.55rem, 6vw, 5.8rem)/.96 Georgia, serif;
  letter-spacing: -.06em;
}
.hero h1 em { font-weight: 400; }
.hero p, .section-heading p { color: var(--muted); margin-top: 1rem; max-width: 46ch; }
.hero .button { margin-top: 1.6rem; }
.hero-image { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.button {
  min-height: 2.7rem; display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  background: var(--green); color: #fffdf4; border: 1px solid var(--green);
  padding: .55rem 1rem; border-radius: .25rem; font-weight: 650; text-decoration: none; cursor: pointer;
}
.button:hover { background: #202e24; }
.button.secondary { color: var(--green); background: transparent; }
.button.secondary:hover { background: var(--cream); }
.link { border: 0; background: none; padding: .3rem 0; text-decoration: underline; color: inherit; cursor: pointer; }
.featured { margin-top: 3.2rem; }
.featured-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-bottom: 1rem; }
.featured-heading h2 { font: 500 clamp(1.55rem, 4vw, 2.5rem)/1.1 Georgia, serif; letter-spacing: -.035em; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7rem 1rem; }
.product-card { text-decoration: none; min-width: 0; }
.product-card:hover h3 { text-decoration: underline; }
.product-art { aspect-ratio: 6 / 5; background: var(--cream); display: grid; place-items: center; }
.product-art img { width: 100%; }
.product-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem .6rem; padding-top: .65rem; }
.product-summary h3 { font-size: 1rem; }
.product-summary span { color: var(--muted); font-size: .9rem; }
.image-placeholder { padding: .75rem; color: var(--muted); text-align: center; }
.section-heading { margin-bottom: 1.5rem; }
.section-heading h1 { font-size: clamp(2.4rem, 6vw, 4.65rem); }
.admin .section-heading h1 { font: 690 clamp(1.75rem, 5vw, 3rem)/1.1 system-ui, sans-serif; letter-spacing: -.045em; }
.reading { max-width: 65ch; display: grid; gap: 1rem; }
.reading summary { cursor: pointer; font-weight: 650; padding: .5rem 0; }
.reading details { border-block-end: 1px solid var(--line); padding-bottom: .5rem; }
.filter, .inline-form, .actions { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem 1rem; }
.filter { margin-bottom: 1.7rem; }
.filter label:first-child { flex: 1 1 12rem; max-width: 25rem; }
.stack { display: grid; gap: 1rem; }
.stack > .button, .actions > .button { justify-self: start; }
label { display: grid; gap: .25rem; font-size: .89rem; font-weight: 650; min-width: 0; }
input:not([type="checkbox"]), select, textarea {
  width: 100%; min-height: 2.7rem; min-width: 0; padding: .5rem .6rem; color: var(--ink);
  border: 1px solid #a4aa9c; border-radius: .25rem; background: var(--surface);
}
input[type="hidden"] { display: none; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--green); }
.back { display: inline-block; margin-bottom: 1rem; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 5vw, 4rem); }
.product-detail .stack { max-width: 27rem; }
.variant-list, .line-list { list-style: none; margin: 0; padding: 0; }
.variant-list { margin-bottom: 1.35rem; }
.variant-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem .75rem; padding: .5rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.line-list > li { border-block-end: 1px solid var(--line); padding-block: .85rem; overflow-wrap: anywhere; }
.cart-line, .admin-row { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: end; }
.cart-line > div, .admin-row > div { flex: 1 1 15rem; min-width: 0; }
.cart-line input[type="number"] { width: 5rem; }
.cart-summary { display: grid; justify-items: end; gap: .8rem; margin-top: 1.5rem; }
.cart-summary .costs { width: min(100%, 20rem); margin: 0; }
.empty, .panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); }
.panel { max-width: 48rem; border-radius: .3rem; }
.panel > p, .receipt .line-list { margin-bottom: 1rem; }
.panel > a { display: inline-block; margin-top: 1rem; }
.costs { display: grid; gap: .4rem; margin: 0 0 1rem; }
.costs div { display: flex; gap: .5rem; justify-content: space-between; }
.costs dd { margin: 0; }
.order-total { border-top: 1px solid var(--line); padding-top: .4rem; font-weight: 700; }
.message { white-space: pre-wrap; }
.narrow, .login-card { max-width: 30rem; }
.login-card { margin-inline: auto; }
.error { color: var(--error); }
fieldset { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: .25rem; padding: .8rem; }
legend { font-weight: 650; overflow-wrap: anywhere; }
.form-grid, .stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid div { background: var(--surface); border: 1px solid var(--line); padding: 1rem; overflow-wrap: anywhere; }
.stat-grid dt { font-weight: 650; }
.stat-grid dd { font-size: 1.6rem; margin: 0; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { justify-content: flex-start; }
  .masthead nav { column-gap: 1.2rem; }
  main { padding-top: 1.55rem; }
  .hero, .product-detail { grid-template-columns: 1fr; }
  .hero-copy { padding: 1.65rem; }
  .hero-image { aspect-ratio: 6 / 4.2; height: auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
