:root {
  color-scheme: light;
  --ink: #18261d;
  --muted: #60695e;
  --green: #173c2d;
  --green-light: #e8efe8;
  --leaf: #a9c78b;
  --paper: #f7f3e9;
  --white: #fffdf8;
  --line: #dedfd2;
  --danger: #a63232;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: var(--green); }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
.site-header { position: relative; z-index: 5; min-height: 96px; padding: 14px max(24px, calc((100% - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; }
.brand-name { font-family: Georgia, serif; font-size: 23px; letter-spacing: -.6px; line-height: 1.15; }
.brand-name strong { font-weight: 500; }
.brand-caption { display: block; margin-top: 7px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 1.65px; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.site-header nav a, .nav-link { color: #36463a; text-decoration: none; font-size: 14px; font-weight: 600; }
.site-header nav a { display: inline-flex; min-height: 44px; align-items: center; }
.site-header nav a.button { color: white; }
.site-header nav a:hover, .nav-link:hover { color: #4d724b; }
.site-header nav a.button:hover { color: white; }
.nav-form { display: inline; margin: 0; }
.nav-link { min-height: 44px; padding: 0; border: 0; background: transparent; }
.menu-toggle { display: none; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; padding: 12px 18px; border-radius: 6px; background: var(--green); color: white; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid #8ca76c; outline-offset: 4px; }
section[id] { scroll-margin-top: 24px; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; min-height: calc(100vh - 190px); }
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; margin: 32px 0 0; padding: clamp(30px, 5vw, 64px); border-radius: 20px; color: white; background: radial-gradient(ellipse at 90% 30%, #35553e 0, transparent 60%), #173c2d; }
.hero-content { position: relative; z-index: 1; }
.hero-art { position: relative; text-align: center; }
.hero-art img { display: block; width: 100%; height: auto; max-height: 425px; }
.hero-art span { color: #c6cfb0; font-size: 9px; letter-spacing: 2.4px; }
.eyebrow { margin: 0 0 9px; color: #526c48; font-size: 11px; font-weight: 800; letter-spacing: 1.65px; }
.hero .eyebrow { color: #c5d8b9; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 640px; margin: 16px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5.7vw, 67px); font-weight: 500; letter-spacing: -1.8px; line-height: 1.12; }
.hero h1 span { color: #cdd9ac; font-style: italic; }
.hero-copy { max-width: 480px; margin: 22px 0 29px; color: #d7e3d8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.hero-link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: #f4f1df; font-size: 13px; text-underline-offset: 5px; }
.trade-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 30px 0; border-bottom: 1px solid var(--line); gap: 20px; }
.trade-steps > div { display: flex; gap: 13px; }
.step-number { color: #647352; font-family: Georgia, serif; font-size: 23px; }
.trade-steps h3 { margin: 0 0 3px; font-size: 13px; font-weight: 700; }
.trade-steps p { margin: 0; color: var(--muted); font-size: 12px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; border: 1px solid var(--green); border-radius: 7px; background: var(--green); color: white; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.button:hover { background: #25533d; transform: translateY(-1px); }
.hero .button { position: relative; z-index: 1; background: #edf3e7; border-color: #edf3e7; color: var(--green); }
.button-small { min-height: 44px; padding: 0 14px; font-size: 12px; }
.button-full { width: 100%; }
.button-quiet { background: white; color: var(--ink); border-color: var(--line); }
.button-quiet:hover { background: #f2f2ec; }
.section { margin: 62px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2, .page-heading h1, .form-shell h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 42px); font-weight: 500; letter-spacing: -.8px; line-height: 1.15; }
.section-heading .muted { margin: 0 0 5px; }
.muted, .hint { color: var(--muted); }
.muted { font-size: 14px; }
.hint { font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 5px 20px rgb(24 38 29 / 3%); }
.product-image, .product-placeholder { display: block; width: 100%; height: 215px; object-fit: cover; }
.product-placeholder { display: grid; place-items: end center; padding: 22px; background: url("/botanical.svg") center / auto 95% no-repeat, #234530; color: #d7dfba; font-size: 9px; font-weight: 700; letter-spacing: 2px; }
.product-copy { padding: 19px 20px 16px; }
.product-copy h3, .order-product h3 { margin: 0 0 7px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.product-copy p:not(.eyebrow) { margin-bottom: 12px; font-size: 14px; }
.product-copy, .order-product-info, .history-product, td { overflow-wrap: anywhere; }
.product-copy .muted { padding-top: 10px; border-top: 1px solid #edf0ea; font-size: 12px; }
.empty-state { padding: 50px 20px; border: 1px dashed #bbc5aa; border-radius: 12px; background: rgb(255 253 248 / 60%); text-align: center; }
.empty-state img { margin-bottom: 12px; border-radius: 12px; }
.empty-state h3 { margin: 5px 0; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.empty-state p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.leaf-icon { color: #71916c; font-size: 27px; }
.form-shell { width: min(510px, 100%); margin: 62px auto 76px; }
.form-shell h1 { margin-bottom: 12px; }
.form-card { padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.form-shell > .muted { margin: 10px 0 24px; }
label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 13px; font-weight: 700; }
label .hint { font-weight: 400; }
input, textarea, select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 11px; border: 1px solid #cfd7cd; border-radius: 6px; background: white; color: var(--ink); font-size: 16px; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid #bfd2b2; outline-offset: 1px; border-color: #71916c; }
.form-card .hint { margin: 0 0 18px; line-height: 1.5; }
.form-switch { margin-top: 19px; color: var(--muted); font-size: 13px; }
.form-switch a { font-weight: 700; }
.alert, .notice { padding: 12px 15px; border: 1px solid #edc2b4; border-radius: 7px; background: #fff3ef; color: #842e25; font-size: 14px; }
.alert { margin: 17px 0; }
.notice { margin: 20px 0 0; border-color: #c1d5be; background: #edf5eb; color: #254b30; }
.page-heading { padding: 52px 0 22px; }
.page-heading h1 { margin-bottom: 9px; }
.page-heading .muted { margin-bottom: 0; }
.section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.section-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 30px; background: var(--white); text-decoration: none; font-size: 13px; font-weight: 600; }
.section-nav a:hover { background: var(--green-light); }
.order-list, .admin-list { display: grid; gap: 15px; }
.order-product { display: grid; grid-template-columns: 86px minmax(0, 1fr) minmax(260px, .85fr); align-items: start; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.order-product > img, .mini-placeholder { width: 86px; height: 86px; border-radius: 8px; object-fit: cover; }
.mini-placeholder { display: grid; place-items: center; background: var(--green-light); color: var(--green); font: italic 38px Georgia, serif; }
.order-product-info p { margin: 5px 0; font-size: 13px; }
.order-product-info .price { display: block; margin-top: 12px; font-size: 18px; }
.order-product-info .hint { font-size: 12px; }
.order-form { padding: 16px; border-radius: 8px; background: #f5f7f2; }
.order-form label { margin-bottom: 11px; }
.order-form button { width: 100%; }
.order-history { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.history-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.history-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.history-heading h3 { margin: 0; font-size: 14px; }
.history-product { margin: 0 0 18px; font-family: Georgia, serif; font-size: 22px; line-height: 1.3; }
.history-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 16px 0; border-top: 1px solid var(--line); }
.history-card dt { color: var(--muted); font-size: 11px; }
.history-card dd { margin: 3px 0 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.history-card > .hint { margin-bottom: 0; }
.badge, .status { display: inline-block; width: fit-content; padding: 3px 9px; border-radius: 30px; background: #edf0ea; color: #465449; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.status-approved, .status-processing, .status-fulfilled { background: #e8f2e5; color: #315b37; }
.status-pending, .status-submitted { background: #fff2d7; color: #765719; }
.status-rejected, .status-cancelled { background: #fbe8e5; color: #8e322b; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th, td { padding: 13px 14px; border-bottom: 1px solid #edf0ea; vertical-align: top; }
th { background: #f5f7f2; color: #4a5b4d; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.admin-add { margin-bottom: 18px; }
.admin-add h3 { margin: 0 0 18px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.span-two { grid-column: span 2; }
.admin-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 18px; }
.admin-product label { margin: 0; font-size: 12px; }
.admin-product-title { display: flex; align-items: center; gap: 11px; align-self: start; grid-column: 1 / -1; }
.admin-product-title > div { min-width: 0; overflow-wrap: anywhere; }
.admin-product-title img, .admin-product-title .mini-placeholder { width: 52px; height: 52px; flex-shrink: 0; }
.admin-product-title .mini-placeholder { font-size: 25px; }
.admin-product-title h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.compact-grid { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 7px; align-self: center; }
.inline-form { display: inline-block; margin: 3px 9px 3px 0; }
.text-button { min-height: 44px; padding: 4px 8px; border: 0; background: transparent; color: var(--green); font-size: 12px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.text-danger { color: var(--danger); }
.inline-status { min-width: 150px; }
.inline-status select { margin-bottom: 6px; }
.error-panel { max-width: 590px; margin: 90px auto; padding: 38px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.error-panel h1 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 36px; font-weight: 500; }
.error-panel p:not(.eyebrow) { margin-bottom: 22px; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px max(24px, calc((100% - 1120px) / 2)); border-top: 1px solid var(--line); background: var(--white); }
.site-footer p { margin: 3px 0; font-size: 13px; }
.site-footer .muted { font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 8px; }
.footer-brand p:first-child { font-family: Georgia, serif; font-size: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; text-underline-offset: 4px; }

@media (max-width: 850px) {
  .product-grid, .order-history { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1.6fr 1fr; padding: 34px; }
  .hero h1 { font-size: 44px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 80px; padding: 16px 20px; gap: 16px; flex-wrap: wrap; }
  .brand-name { font-size: 21px; }
  .brand-caption { font-size: 8px; }
  .has-menu .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; min-width: 88px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--green); font-size: 13px; font-weight: 600; }
  .menu-toggle span { font-size: 20px; }
  .site-header nav { width: 100%; gap: 8px 18px; }
  .has-menu .site-header nav { display: none; padding-top: 14px; border-top: 1px solid var(--line); }
  .has-menu .menu-toggle[aria-expanded="true"] + nav { display: flex; flex-direction: column; align-items: stretch; }
  .site-header nav a, .nav-link { padding: 8px 12px; }
  .nav-form { width: 100%; }
  .nav-link { width: 100%; text-align: left; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { position: absolute; width: 310px; right: -100px; bottom: -90px; opacity: .12; pointer-events: none; }
  .hero-art span { display: none; }
  .trade-steps { grid-template-columns: 1fr; gap: 20px; }
  .order-product { grid-template-columns: 70px minmax(0, 1fr); gap: 16px; }
  .order-product > img, .order-product > .mini-placeholder { width: 70px; height: 70px; }
  .order-form { grid-column: 1 / -1; }
  .site-footer { flex-direction: column; align-items: start; }
}
@media (max-width: 620px) {
  .site-header { padding: 14px 16px; gap: 12px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 19px; }
  .brand-caption { font-size: 7px; letter-spacing: 1px; }
  .container { width: min(100% - 32px, 1120px); }
  .hero { margin: 20px 0 0; padding: 36px 24px; border-radius: 14px; }
  .hero h1 { font-size: clamp(32px, 8.8vw, 46px); letter-spacing: -1px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .hero-copy { font-size: 14px; }
  .hero-actions { align-items: start; flex-direction: column; gap: 8px; }
  .section { margin: 48px 0; }
  .product-grid, .order-history { grid-template-columns: 1fr; gap: 16px; }
  .product-image, .product-placeholder { height: 205px; }
  .form-shell { margin: 43px auto 60px; }
  .form-card { padding: 19px; }
  .order-product { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .order-product > img, .order-product > .mini-placeholder { width: 62px; height: 62px; }
  .order-product-info h3 { font-size: 20px; }
  .order-form { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .admin-product { grid-template-columns: 1fr; }
  .admin-product-title { grid-column: 1 / -1; }
  .compact-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 24px 16px; }
  .page-heading { padding-top: 36px; }
  .section-heading { align-items: start; flex-wrap: wrap; gap: 10px; }
  .error-panel { padding: 24px; margin: 48px auto; }
  .table-wrap table { min-width: 650px; }
  .form-card input[type="file"] { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}
