:root {
  color-scheme: light;
  --paper: #f5f2eb;
  --ink: #252621;
  --muted: #77776d;
  --line: #dedbd2;
  --olive: #687258;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.announcement { padding: 9px 16px; background: var(--ink); color: #f7f5ef; text-align: center; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.site-header { height: 77px; display: flex; align-items: center; justify-content: space-between; padding: 0 6.5%; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 19px; font-weight: 700; letter-spacing: -.08em; }
.wordmark span { font-weight: 400; }
.main-nav, .header-actions { display: flex; align-items: center; gap: 32px; }
.main-nav a, .text-button, .cart-button { background: none; border: 0; padding: 8px 0; font-size: 12px; cursor: pointer; }
.main-nav a:hover, .text-button:hover { color: var(--olive); }
.cart-button { font-weight: 600; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; border-radius: 50%; background: #e6e3da; font-size: 10px; }
.hero { position: relative; min-height: 570px; display: grid; grid-template-columns: 1fr 1fr; padding: 34px 6.5% 48px; }
.hero-copy { z-index: 1; align-self: center; padding: 0 3vw 22px 4vw; }
.eyebrow { margin: 0 0 17px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(54px, 7vw, 91px); line-height: .99; }
h1 em, h2 em { color: var(--olive); font-weight: 500; }
.hero-copy > p:not(.eyebrow) { max-width: 345px; margin: 22px 0 27px; color: #696a60; font-size: 13px; line-height: 1.8; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; border: 0; padding: 0 21px; cursor: pointer; font-size: 11px; font-weight: 600; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--olive); }
.hero-image { position: relative; min-height: 486px; background: #c9c4b8 url("https://images.unsplash.com/photo-1539109136881-3be0616acf4b?auto=format&fit=crop&w=1200&q=85") center 42% / cover; }
.image-note { position: absolute; right: 0; bottom: 0; padding: 12px 16px; background: var(--paper); font-family: var(--serif); font-size: 13px; font-style: italic; }
.hero-index { position: absolute; right: 6.5%; bottom: 20px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.shop-section { padding: 93px 6.5% 105px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 35px; }
h2 { font-size: clamp(33px, 4vw, 48px); line-height: 1.12; }
.shop-tools { display: flex; align-items: center; gap: 19px; }
.shop-tools select, .product-form select { border: 0; border-bottom: 1px solid var(--line); padding: 9px 25px 9px 2px; background: transparent; color: var(--ink); font-size: 11px; }
.product-total { color: var(--muted); font-size: 10px; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 17px; }
.product-card { min-width: 0; }
.product-image-wrap { position: relative; overflow: hidden; background: #e8e5de; aspect-ratio: 3 / 4; }
.product-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s; }
.product-card:hover .product-image { transform: scale(1.035); }
.product-tag { position: absolute; top: 12px; left: 12px; padding: 6px 9px; background: var(--paper); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.product-details { display: flex; justify-content: space-between; gap: 9px; padding: 12px 1px 5px; }
.product-details h3 { margin: 0; font-size: 12px; font-weight: 500; }
.product-price { font-size: 11px; white-space: nowrap; }
.product-colour { margin: 0; color: var(--muted); font-size: 10px; }
.add-button { width: 100%; margin-top: 12px; border: 1px solid #cbc8bf; padding: 10px; background: transparent; cursor: pointer; font-size: 10px; transition: .2s; }
.add-button:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: white; }
.add-button:disabled { cursor: not-allowed; color: var(--muted); }
.empty-products { grid-column: 1/-1; padding: 40px 0; color: var(--muted); font-size: 13px; }
.store-status { margin: 0 0 20px; padding: 12px 14px; background: #e9e7df; color: var(--ink); font-size: 11px; line-height: 1.6; }
.story-section { padding: 82px 20px 89px; background: #e9e7df; text-align: center; }
.story-section h2 { font-size: clamp(38px, 5vw, 61px); }
.story-section > p:last-child { max-width: 465px; margin: 21px auto 0; color: #65665c; font-size: 12px; line-height: 1.9; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 28px 6.5%; }
.site-footer p, .site-footer > span { color: var(--muted); font-size: 10px; }
.overlay { position: fixed; z-index: 5; inset: 0; background: rgb(25 26 23 / 40%); }
.side-panel, .admin-panel { position: fixed; z-index: 6; top: 0; right: 0; width: min(440px, 100%); height: 100dvh; overflow-y: auto; padding: 30px; background: var(--paper); transform: translateX(102%); transition: transform .28s ease; }
.side-panel.is-open, .admin-panel.is-open { transform: translateX(0); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.panel-heading .eyebrow { margin-bottom: 7px; }
.panel-heading h2 { font-size: 30px; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
.cart-items { min-height: 120px; }
.cart-empty { padding: 30px 0; color: var(--muted); font-size: 12px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 76px; height: 92px; object-fit: cover; background: #e8e5de; }
.cart-line h3 { margin: 3px 0 6px; font-size: 12px; font-weight: 500; }
.cart-line p { margin: 0; color: var(--muted); font-size: 10px; }
.quantity-control { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.quantity-control button { width: 23px; height: 23px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.quantity-control span { min-width: 12px; text-align: center; font-size: 10px; }
.cart-line-end { display: flex; flex-direction: column; align-items: end; justify-content: space-between; padding: 3px 0; font-size: 11px; }
.remove-item { border: 0; padding: 3px 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; text-decoration: underline; }
.cart-bottom { position: sticky; bottom: -30px; margin: 0 -30px; padding: 20px 30px 30px; background: var(--paper); border-top: 1px solid var(--line); }
.subtotal-row, .checkout-total { display: flex; justify-content: space-between; font-size: 12px; }
.shipping-note { margin: 9px 0 18px; color: var(--muted); font-size: 10px; }
.full-button { width: 100%; }
.modal { position: fixed; z-index: 7; top: 50%; left: 50%; width: min(460px, calc(100% - 32px)); max-height: 90dvh; overflow: auto; padding: 36px; background: var(--paper); opacity: 0; pointer-events: none; transform: translate(-50%, -47%); transition: opacity .2s, transform .2s; }
.modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal h2 { margin-bottom: 8px; font-size: 36px; }
.modal-close { position: absolute; top: 24px; right: 24px; }
.checkout-disclaimer, .admin-notice { color: var(--muted); font-size: 10px; line-height: 1.7; }
#checkout-form { display: grid; gap: 9px; margin-top: 22px; }
#checkout-form label, .product-form label { margin-top: 4px; font-size: 10px; font-weight: 600; }
#checkout-form input, #checkout-form textarea, .product-form input { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 11px; background: #fbfaf6; font-size: 12px; }
.consent-label { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 10px !important; font-weight: 400 !important; line-height: 1.6; }
.consent-label input { width: auto !important; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--olive); }
.checkout-total { margin: 12px 0 8px; padding: 15px 0; border-top: 1px solid var(--line); }
.admin-panel { width: min(500px, 100%); padding-bottom: 45px; }
.admin-notice { margin: 14px 0 20px; padding: 11px; background: #e9e7df; }
.admin-login { display: grid; gap: 10px; margin: 20px 0; }
.admin-login label { font-size: 10px; font-weight: 600; }
.admin-login input { border: 1px solid var(--line); padding: 12px; background: #fbfaf6; }
.admin-login .button { width: 100%; }
.admin-logout { display: block; margin: 9px 0 16px auto; color: var(--muted); }
.product-form { display: grid; gap: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.product-form h3, .inventory-heading h3, .orders-heading h3 { margin: 0 0 5px; font-size: 13px; font-weight: 600; }
.product-form input { min-width: 0; }
.product-form select { width: 100%; border: 1px solid var(--line); padding: 11px; background: #fbfaf6; font-size: 11px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row > div { display: grid; gap: 8px; }
.form-actions { display: flex; align-items: center; gap: 15px; margin-top: 8px; }
.form-actions .button { min-height: 40px; }
.form-actions .text-button { color: var(--muted); }
.inventory-heading, .orders-heading { display: flex; justify-content: space-between; margin: 21px 0 9px; }
.inventory-heading span, .orders-heading span { color: var(--muted); font-size: 10px; }
.inventory-item, .order-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.inventory-item strong, .order-item strong { display: block; font-size: 11px; font-weight: 500; }
.inventory-item small, .order-item small { color: var(--muted); font-size: 9px; }
.inventory-actions { display: flex; gap: 6px; }
.inventory-actions button { border: 1px solid var(--line); padding: 6px 8px; background: transparent; cursor: pointer; font-size: 9px; }
.inventory-actions button:hover { border-color: var(--ink); }
.order-item { align-items: flex-start; }
.order-item div:last-child { text-align: right; white-space: nowrap; }
.toast { position: fixed; z-index: 10; bottom: 24px; left: 50%; max-width: calc(100% - 32px); padding: 13px 18px; background: var(--ink); color: white; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s; font-size: 11px; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  .site-header { height: 65px; padding: 0 5%; }
  .main-nav { display: none; }
  .header-actions { gap: 17px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 43px 5% 44px; }
  .hero-copy { padding: 4px 0 30px; }
  .hero-image { min-height: 390px; }
  .hero-index { right: 5%; bottom: 15px; }
  .shop-section { padding: 66px 5% 72px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 25px; }
  .shop-tools { width: 100%; justify-content: space-between; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .story-section { padding: 67px 20px; }
  .site-footer { gap: 8px; flex-wrap: wrap; padding: 23px 5%; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 17px; }
  .text-button, .cart-button { font-size: 10px; }
  .hero-image { min-height: 320px; }
  .side-panel, .admin-panel { padding-right: 20px; padding-left: 20px; }
  .cart-bottom { margin-right: -20px; margin-left: -20px; padding-right: 20px; padding-left: 20px; }
}
