/* Ooaker — colours and type from the Ooaker brand guide */
:root {
  --surface: #F7F0E3;      /* cream */
  --surface-raised: #E9D7B4; /* sand */
  --ink: #3B2A20;          /* espresso */
  --ink-muted: #6B5646;
  --ochre: #C8862A;
  --on-ochre: #2B1D14;
  --ochre-text: #8A5A14;
  --line: #DCCBAE;
  --error: #9C2F1F;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--ochre-text); }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; }
h1, h2, .wordmark, .big { font-family: var(--serif); font-variation-settings: "opsz" 36; font-weight: 600; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.wordmark { font-size: 30px; line-height: 1; color: var(--ink); text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: 17px; }
.btn-dark { background: var(--ink); color: var(--surface); }
.btn-dark:hover { color: var(--surface); background: #2B1D14; }
.btn-ochre { background: var(--ochre); color: var(--on-ochre); }
.btn-ochre:hover { color: var(--on-ochre); background: #B9791F; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ochre-text); }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; }
.lead { margin: 20px 0 28px; font-size: 19px; line-height: 1.55; color: var(--ink-muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-tiles { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { aspect-ratio: 1; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.tile svg { width: 60%; }

.band-sand { background: var(--surface-raised); padding: 56px 0; }
.band-sand h2, .compare h2 { font-size: 34px; margin-bottom: 24px; }
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: 18px; padding: 26px; }
.card .big { margin: 0 0 8px; font-size: 40px; line-height: 1.1; color: var(--ochre-text); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-muted); }

.compare { padding-top: 56px; padding-bottom: 56px; }
.compare h2 { margin-bottom: 8px; }
.table-scroll { overflow-x: auto; margin: 20px 0 12px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; }
th { text-align: left; padding: 12px 10px; border-bottom: 2px solid var(--ink); }
td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.ours { background: #F2E6D3; }
tr.ours td:first-child, tr.ours td:last-child { font-weight: 600; }

.band-dark { background: var(--ink); color: var(--surface); padding: 56px 0; }
.join { display: flex; flex-wrap: wrap; gap: 40px; }
.join-text { flex: 1 1 320px; min-width: 0; }
.join-text h2 { font-size: 36px; line-height: 1.1; margin-bottom: 12px; }
.join-text p { color: var(--surface-raised); font-size: 17px; }
.form-card { flex: 1 1 420px; min-width: 0; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 28px; }
.form-card form { display: flex; flex-direction: column; gap: 14px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form-card label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form-card input[type=text], .form-card input[type=email], .form-card input[type=url], .form-card select { height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #FFFDF8; padding: 0 14px; font: inherit; color: var(--ink); }
.form-card input[aria-invalid=true], .form-card select[aria-invalid=true] { border-color: var(--error); }
.form-card label.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--ink-muted); font-weight: 400; line-height: 1.4; }
.form-card label.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.field-error, .form-error { margin: 0; color: var(--error); font-size: 14px; font-weight: 500; }
.form-error { padding: 10px 14px; background: #F6E1DC; border-radius: 10px; }
.thanks h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 10px; }
.thanks p { margin: 0; color: var(--ink-muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.prose { max-width: 720px; padding-top: 24px; padding-bottom: 56px; }
.prose h1 { font-size: 40px; margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 28px 0 6px; }

.site-footer { border-top: 1px solid var(--surface-raised); padding: 28px 0 40px; font-size: 13px; color: var(--ink-muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

.auth { display: flex; justify-content: center; padding-top: 32px; padding-bottom: 72px; }
.auth-card { flex: 0 1 460px; border: 1px solid var(--line); }
.auth-card h1 { font-size: 32px; line-height: 1.15; margin-bottom: 10px; }
.auth-card p { margin: 0 0 16px; }
.auth-card form { margin-top: 8px; }
.form-note { padding: 10px 14px; background: var(--surface-raised); border-radius: 10px; font-size: 14px; }

.header-links { display: flex; align-items: center; gap: 20px; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink-muted); }
.btn-outline:hover { color: var(--ink); background: var(--surface-raised); }
.btn:disabled { opacity: .6; cursor: default; }

.admin { padding-top: 16px; padding-bottom: 72px; }
.admin h1 { font-size: 40px; margin-bottom: 8px; }
.admin > p { max-width: 720px; margin: 0 0 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 16px; }
.tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.tabs a[aria-current=page] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.tabs .count { opacity: .7; margin-left: 4px; }
.empty { padding: 24px 0; }
.signups { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.signup { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: flex-start; background: #FFFDF8; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.signup-main { flex: 1 1 420px; min-width: 0; }
.signup h2 { font-family: var(--sans); font-size: 18px; font-weight: 600; }
.signup h2 .muted { font-weight: 400; }
.signup-email { margin: 2px 0 12px; overflow-wrap: anywhere; }
.signup-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; font-size: 14px; }
.signup-facts dt { color: var(--ink-muted); }
.signup-facts dd { margin: 0; overflow-wrap: anywhere; }
.signup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-section form { margin-top: 4px; }
.account-secondary { margin-top: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Shop settings */
.shop-settings { max-width: 820px; padding-top: 16px; padding-bottom: 72px; }
.shop-settings h1 { font-size: 40px; margin-bottom: 8px; }
.shop-settings > p { margin: 0 0 16px; }
.settings-form { border: 1px solid var(--line); margin-top: 8px; }
.settings-form fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 22px 0 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.settings-form fieldset:first-of-type { border-top: 0; padding-top: 0; }
.settings-form legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; font-family: var(--serif); font-weight: 600; font-size: 22px; }
.settings-form legend + * { clear: both; }
.form-card textarea, .form-card input[type=file] { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); background: #FFFDF8; width: 100%; }
.form-card textarea { resize: vertical; line-height: 1.5; }
/* Example text in empty boxes: lighter and in italics, so it can't be mistaken for something filled in */
.settings-form ::placeholder { color: #A99784; font-style: italic; opacity: 1; }
/* 16px text in boxes, so phones don't zoom in when you tap one */
.settings-form input[type=text] { font-size: 16px; }
.form-card input[type=file] { padding: 8px 12px; font-size: 15px; color: var(--ink-muted); }
.form-card input[type=file]::file-selector-button { margin-right: 12px; padding: 6px 16px; border: 1px solid var(--ink-muted); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.form-card input[type=file]::file-selector-button:hover { background: var(--surface-raised); }
.settings-form > .btn[type=submit] { align-self: flex-start; margin-top: 8px; }
.form-card textarea[aria-invalid=true], .form-card input[type=file][aria-invalid=true] { border-color: var(--error); }
textarea:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.hint { font-size: 13px; font-weight: 400; color: var(--ink-muted); line-height: 1.45; margin: 0; }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #FFFDF8; padding-left: 12px; min-width: 0; }
.input-prefix > span { color: var(--ink-muted); font-size: 16px; font-weight: 400; white-space: nowrap; }
.form-card .input-prefix input[type=text] { border: 0; background: transparent; padding-left: 0; min-width: 0; flex: 1; height: 44px; }
.input-prefix:has(input[aria-invalid=true]) { border-color: var(--error); }
.banner-preview { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 14px; background: var(--surface-raised); height: auto; }
.delivery-option { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.6fr); gap: 12px; align-items: start; }
.delivery-option label { white-space: nowrap; }
.delivery-option .field-error { white-space: normal; }
.delivery-option[hidden] { display: none; }
.delivery .btn { align-self: flex-start; }
.narrow { max-width: 280px; }
@media (max-width: 700px) {
  .delivery-option { grid-template-columns: 1fr 1fr; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
  .delivery-option label:first-child, .delivery-option label:last-child { grid-column: 1 / -1; }
  .input-prefix > span { font-size: 14px; }
  .settings-form { padding: 22px 18px; }
  .delivery-option label { white-space: normal; }
}

/* Public shop page */
.shop-page { padding-bottom: 72px; }
.shop-banner { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 20px; background: var(--surface-raised); }
.shop-body { padding-top: 24px; }
.shop-body h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin-bottom: 24px; overflow-wrap: anywhere; }
.shop-body h2 { font-size: 22px; margin-bottom: 8px; }
.shop-items { background: var(--surface-raised); border-radius: 18px; padding: 24px; margin-bottom: 32px; }
.shop-items p { margin: 0; }
.shop-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.shop-info p { margin: 0 0 12px; overflow-wrap: anywhere; }
.delivery-list { margin: 0 0 12px; padding-left: 20px; }
.delivery-list li { margin-bottom: 6px; }
@media (max-width: 700px) {
  .shop-banner { aspect-ratio: 5 / 2; border-radius: 14px; }
}
.delivery-option label { min-width: 0; }
.delivery-option input { width: 100%; min-width: 0; }

/* Work photos on the waitlist form and the admin waitlist */
.optional { font-weight: 400; color: var(--ink-muted); }
.photo-field { display: flex; flex-direction: column; gap: 8px; }
.photo-previews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 96px)); gap: 8px; }
.photo-previews[hidden] { display: none; }
.photo-previews img, .signup-photos img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--surface-raised); }
.signup-photos { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); gap: 8px; }
.signup-photos a { display: block; border-radius: 10px; }
.signup-photos a:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

/* A maker's items */
.items-page { max-width: 920px; padding-top: 16px; padding-bottom: 72px; }
.items-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.items-head h1 { font-size: 40px; margin-bottom: 4px; }
.items-head p { margin: 0; }
.items-page > .form-note, .items-page > .form-error { margin: 0 0 16px; }
.items-empty { background: var(--surface-raised); border-radius: 18px; padding: 24px; }
.items-empty p { margin: 0; max-width: 620px; }
.item-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.item-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; background: #FFFDF8; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.item-row-main { flex: 1 1 300px; min-width: 0; }
.item-row h2 { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.item-row h2 a { color: var(--ink); text-decoration: none; }
.item-row h2 a:hover { text-decoration: underline; }
.item-row-main p { margin: 2px 0 0; }
.item-row-price { margin: 0; font-weight: 600; font-size: 17px; min-width: 72px; text-align: right; }
.status-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-raised); color: var(--ink); }
.status-live { background: #DDE8D2; color: #2F4A22; }
.status-sold { background: var(--ink); color: var(--surface); }
.status-removed { background: transparent; border: 1px solid var(--line); color: var(--ink-muted); }
.price-prefix > span { margin-right: 4px; }
.form-card select { font-size: 16px; width: 100%; }
.narrow-wide { max-width: 420px; }
@media (max-width: 700px) {
  .items-head h1 { font-size: 34px; }
  .item-row { padding: 14px 16px; }
  .item-row-main { flex-basis: 100%; }
  .item-row-price { min-width: 0; text-align: left; margin-right: auto; }
}

/* Boxes with a prefix (£, the shop web address): outline the whole box on focus, not just the typing area inside it */
.input-prefix:focus-within { outline: 3px solid var(--ochre); outline-offset: 2px; }
.input-prefix input:focus-visible { outline: none; }

/* Item form: how it's made, price and stock */
.type-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.form-card label.type-option { flex-direction: row; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #FFFDF8; cursor: pointer; font-weight: 400; }
.type-option input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--ochre-text); }
.type-option:has(input:checked) { border-color: var(--ochre); box-shadow: inset 0 0 0 1px var(--ochre); background: #FBF3E4; }
.type-option:has(input:focus-visible) { outline: 3px solid var(--ochre); outline-offset: 2px; }
.type-option input:focus-visible { outline: none; }
.type-text { display: flex; flex-direction: column; gap: 2px; }
.type-text strong { font-size: 15px; font-weight: 600; }
.type-field:has(.field-error) .type-option { border-color: var(--error); }
.price-stock { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-start; }
.price-box { flex: 0 1 260px; min-width: 0; }
.quantity-box { flex: 0 1 260px; min-width: 0; }
.quantity-box[hidden] { display: none; }
.form-card .quantity-box input { width: 100%; font-size: 16px; }
@media (max-width: 700px) {
  .type-options { grid-template-columns: 1fr; }
  .price-box, .quantity-box { flex-basis: 100%; }
}
.nowrap { white-space: nowrap; }

/* Item photos: on the item form and in the items list */
.item-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.item-photo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.item-photo a { display: block; border-radius: 12px; }
.item-photo a:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.item-photo img, .photo-missing { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--surface-raised); }
.photo-missing { display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-muted); }
.item-photo:has(input[name=main_photo]:checked) img { box-shadow: 0 0 0 3px var(--ochre); }
.item-photo:has([data-remove-photo]:checked) img { opacity: .35; }
.form-card .item-photo label.check { font-size: 14px; color: var(--ink); align-items: center; }
.form-card .item-photo label.check input { margin-top: 0; accent-color: var(--ochre-text); }
.photos-field .photo-previews { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.item-thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface-raised); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-thumb span { font-size: 11px; line-height: 1.2; text-align: center; color: var(--ink-muted); padding: 4px; }
@media (max-width: 700px) {
  .item-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-row-main { flex-basis: calc(100% - 84px); }
}

/* Item options (variations): one set per item, each with its own price and stock */
.options-toggle { display: flex; flex-direction: column; gap: 6px; }
.options-toggle[hidden], .options-editor[hidden], .price-stock[hidden], [data-stock-col][hidden], .add-option[hidden] { display: none; }
.form-card .options-toggle label.check { color: var(--ink); font-weight: 500; font-size: 15px; }
.form-card .options-toggle label.check input { accent-color: var(--ochre-text); }
.options-editor { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #FBF6EC; }
.option-grid { display: flex; flex-direction: column; gap: 10px; }
.option-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .8fr); gap: 12px; align-items: start; }
.no-stock .option-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.option-row[hidden] { display: none; }
.option-row label { min-width: 0; }
.option-row input[type=text] { width: 100%; min-width: 0; }
.option-head { font-size: 14px; font-weight: 500; margin-bottom: -4px; }
.option-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.options-editor > .field-error, .options-editor > .hint { margin: 0; }
.add-option { align-self: flex-start; }
@media (max-width: 700px) {
  .option-head { display: none; }
  .option-row, .no-stock .option-row { grid-template-columns: 1fr 1fr; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
  .option-row label:first-of-type { grid-column: 1 / -1; }
  .option-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .options-editor { padding: 14px; }
}
.item-row-price .from { font-weight: 400; font-size: 14px; color: var(--ink-muted); }

/* Item form: personalisation and delivery */
.form-card label.toggle-check { color: var(--ink); font-weight: 500; font-size: 15px; }
.form-card label.check input[type=radio], .form-card label.check input[type=checkbox] { accent-color: var(--ochre-text); }
.sub-box { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #FBF6EC; }
.sub-box[hidden], .mode-detail[hidden] { display: none; }
.sub-box > .hint { margin: 0; }
.delivery-modes { display: flex; flex-direction: column; gap: 10px; }
.group-label { font-size: 14px; font-weight: 500; }
.form-card .delivery-modes label.check { color: var(--ink); font-size: 15px; }
.mode-detail { margin: -2px 0 4px 28px; }
.mode-detail .delivery-list { margin: 0 0 6px; }
.mode-detail .form-note, .mode-detail .hint { margin: 0 0 6px; }
.own-delivery { display: flex; flex-direction: column; gap: 10px; }
.own-delivery-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.own-delivery-row label { min-width: 0; }
.own-delivery-row input[type=text] { width: 100%; min-width: 0; }
.delivery-field > .hint, .personalisation-field > .hint { margin: 0; }
@media (max-width: 700px) {
  .mode-detail { margin-left: 0; }
  .own-delivery-row { grid-template-columns: 1fr 1fr; }
  .own-delivery-row label:first-child { grid-column: 1 / -1; }
  .sub-box { padding: 14px; }
}

/* Whether an item is on sale: the box at the top of the item form */
.item-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: #FFFDF8; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 16px 0 24px; }
.item-status-text { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; flex: 1 1 280px; min-width: 0; }
.item-status-text p { margin: 0; }
.item-status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.item-status-actions form { margin: 0; }
.item-status-todo { flex: 1 1 100%; border-top: 1px solid var(--line); padding-top: 12px; }
.item-status-todo p { margin: 0 0 4px; font-weight: 600; }
.item-status-todo ul { margin: 0; padding-left: 20px; }
.item-status-todo li { margin-bottom: 2px; }
.item-save { margin-top: 8px; }
@media (max-width: 520px) {
  .item-save .btn { width: 100%; }
}
.item-counts { margin: 0 0 10px; }
.items-removed-link { margin: 20px 0 0; }

/* Items on sale on the public shop page */
.shop-owner-note { margin-bottom: 16px !important; background: #FFFDF8; }
.shop-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 20px; }
.shop-card { min-width: 0; }
.shop-card-photo { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface); margin-bottom: 10px; }
.shop-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-card h3 { font-family: var(--sans); font-size: 16px; font-weight: 500; line-height: 1.35; margin: 0 0 4px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-price { font-weight: 600; }
.shop-card-price .from { font-weight: 400; color: var(--ink-muted); }
.shop-card-note { font-size: 14px; color: var(--ink-muted); margin-top: 2px !important; }
@media (max-width: 520px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .shop-items { padding: 16px; }
}

/* Buyers' pages: header, home page and footer (milestone 3) */
.wrap-wide { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon-button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--ink); cursor: pointer; }
.icon-button:hover { background: var(--surface-raised); }

.buyer-header { position: relative; z-index: 20; border-bottom: 1px solid var(--surface-raised); background: var(--surface); }
.buyer-header-row { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.buyer-header .wordmark { font-size: 34px; flex: none; }
.search-box { flex: 1 1 auto; display: flex; min-width: 0; max-width: 720px; }
.search-box input { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: #FFFDF8; padding: 0 20px; font: inherit; font-size: 16px; color: var(--ink); }
.search-box input::placeholder { color: #8C7A69; opacity: 1; }
.search-box input:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.search-box button { flex: none; width: 54px; height: 46px; border: 0; border-radius: 0 999px 999px 0; background: var(--ochre); color: var(--on-ochre); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.search-box button:hover { background: #B9791F; }
.search-box button:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.account-link { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; }
.account-link:hover { color: var(--ochre-text); }
.category-row { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-bottom: 14px; }
.category-row a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 2px 0; }
.category-row a:hover { color: var(--ochre-text); text-decoration: underline; text-underline-offset: 4px; }

.site-menu { display: none; }
.site-menu summary { list-style: none; margin-left: -8px; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary:focus-visible { outline: 3px solid var(--ochre); outline-offset: 0; }
.site-menu-open { display: flex; }
.site-menu-close { display: none; }
.site-menu[open] .site-menu-open { display: none; }
.site-menu[open] .site-menu-close { display: flex; }
.site-menu-panel { position: absolute; top: 60px; left: 0; right: 0; height: calc(100vh - 60px); height: calc(100dvh - 60px); overflow-y: auto; background: var(--surface); border-top: 1px solid var(--surface-raised); padding-bottom: 32px; }
.site-menu-panel h2 { font-family: var(--sans); font-size: 20px; font-weight: 500; padding: 20px 16px 8px; }
.site-menu-panel ul { list-style: none; margin: 0; padding: 0; }
.site-menu-panel a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; border-bottom: 1px solid var(--surface-raised); color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; }
.site-menu-panel a:hover { background: var(--surface-raised); }
.site-menu-panel a:focus-visible { outline-offset: -3px; }
.site-menu-more { margin-top: 20px !important; }
.site-menu-more a { font-weight: 400; color: var(--ink-muted); }
html.menu-is-open { overflow: hidden; }

.home-section { padding-top: 32px; padding-bottom: 32px; }
.home-section-last { padding-bottom: 64px; }
.home-section > h2 { font-size: 32px; line-height: 1.15; margin-bottom: 20px; }
.home-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; background: var(--surface-raised); border-radius: 24px; padding: 48px; }
.home-hero-text { flex: 1 1 380px; min-width: 0; }
.home-hero h1 { font-size: clamp(40px, 4.6vw, 58px); line-height: 1.05; }
.home-hero .eyebrow { color: var(--ink-muted); }
.home-hero .lead { margin: 20px 0 28px; max-width: 460px; font-size: 18px; }
.home-hero .btn-outline { border-color: var(--ink); }
.home-hero-photo { flex: 1 1 380px; min-width: 0; height: 420px; border-radius: 16px; overflow: hidden; background: #C97B5D; position: relative; }
.home-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-credit { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.3; padding: 7px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-credit:hover { color: var(--ink); background: #FFFDF8; }

.category-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 16px; }
.category-tiles a { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; text-align: center; line-height: 1.3; }
.category-tile-photo { display: block; width: 100%; aspect-ratio: 1; border-radius: 999px; overflow: hidden; background: var(--surface-raised); }
.category-tile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.category-tiles a:hover .category-tile-photo img { transform: scale(1.04); }
.category-tiles a:hover .category-tile-name { color: var(--ochre-text); }

.item-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 24px; }
.item-card { min-width: 0; }
.item-card a { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.item-card-photo { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--surface-raised); margin-bottom: 12px; }
.item-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.type-tag { position: absolute; top: 12px; left: 12px; background: #9C532A; color: var(--surface); font-size: 12px; font-weight: 500; line-height: 1.4; padding: 4px 12px; border-radius: 999px; }
.type-made_to_order { background: #6E6B3E; }
.type-small_batch { background: var(--ink); }
.item-card-title { font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-card a:hover .item-card-title { text-decoration: underline; text-underline-offset: 3px; }
.item-card-shop { font-size: 14px; color: var(--ink-muted); margin-top: 2px; overflow-wrap: anywhere; }
.item-card-price { font-weight: 600; margin-top: 6px; }
.item-card-price .from { font-weight: 400; color: var(--ink-muted); }
.item-card-note { font-size: 14px; color: var(--ink-muted); }

.home-maker { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; background: var(--ink); color: var(--surface); border-radius: 24px; padding: 48px; }
.home-maker-photo { flex: 1 1 360px; min-width: 0; height: 360px; border-radius: 16px; overflow: hidden; background: #6E6B3E; }
.home-maker-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-maker-text { flex: 1 1 360px; min-width: 0; }
.home-maker .eyebrow { color: #E3A853; }
.home-maker h2 { font-size: 40px; line-height: 1.1; overflow-wrap: anywhere; }
.home-maker-text > p:not(.eyebrow) { margin: 20px 0 28px; font-size: 17px; line-height: 1.6; color: var(--surface-raised); overflow-wrap: anywhere; }

.home-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.home-how > div { background: var(--surface-raised); border-radius: 16px; padding: 28px; }
.home-how h3 { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.home-how p { margin: 0; color: var(--ink-muted); line-height: 1.5; }
.home-how-dot { display: block; width: 44px; height: 44px; border-radius: 999px; margin-bottom: 16px; background: var(--ochre); }
.home-how > div:nth-child(2) .home-how-dot { background: #9C532A; }
.home-how > div:nth-child(3) .home-how-dot { background: #6E6B3E; }

.home-sell { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--ochre); color: var(--on-ochre); border-radius: 24px; padding: 40px 48px; }
.home-sell > div { flex: 1 1 360px; min-width: 0; }
.home-sell h2 { font-size: 36px; line-height: 1.1; }
.home-sell p { margin: 10px 0 0; font-size: 17px; }

.site-footer-full { padding-top: 0; }
.footer-columns { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 40px; padding-bottom: 32px; font-size: 14px; color: var(--ink); }
.footer-about { flex: 1 1 260px; }
.footer-about .wordmark { font-size: 28px; margin: 0 0 10px; }
.footer-about p:last-child { margin: 0; max-width: 300px; color: var(--ink-muted); line-height: 1.5; }
.footer-links { display: flex; flex-direction: column; gap: 8px; min-width: 140px; }
.footer-links h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.footer-links a { color: var(--ink-muted); padding: 3px 0; }
.footer-links a:hover { color: var(--ink); }
.site-footer-full .footer-row { padding-top: 4px; }

@media (max-width: 799px) {
  .buyer-header-row { flex-wrap: wrap; gap: 4px; padding: 10px 12px 12px; }
  .site-menu { display: block; }
  .buyer-header .wordmark { font-size: 27px; margin-left: 2px; }
  .account-link { order: 3; width: 44px; justify-content: center; margin-right: -6px; }
  .account-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .search-box { order: 4; flex: 1 1 100%; max-width: none; margin-top: 8px; padding: 0 4px; }
  .search-box input { height: 44px; padding: 0 16px; }
  .search-box button { height: 44px; width: 50px; }
  .category-row { display: none; }

  .wrap-wide { padding-left: 16px; padding-right: 16px; }
  .home-section { padding-top: 20px; padding-bottom: 20px; }
  .home-section > h2 { font-size: 24px; margin-bottom: 14px; }
  .home-hero { background: none; padding: 0; gap: 20px; border-radius: 0; }
  .home-hero-photo { order: -1; flex-basis: 100%; height: 260px; }
  .home-hero h1 { font-size: 34px; line-height: 1.08; }
  .home-hero .eyebrow { display: none; }
  .home-hero .lead { margin: 12px 0 18px; font-size: 16px; line-height: 1.5; }
  .home-hero .btn-ochre { background: var(--ink); color: var(--surface); }
  .home-hero-second { display: none; }
  .category-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
  .category-tiles a { font-size: 13px; gap: 6px; overflow-wrap: anywhere; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .item-card-photo { border-radius: 14px; margin-bottom: 8px; }
  .type-tag { top: 8px; left: 8px; font-size: 11px; padding: 3px 10px; }
  .item-card-title { font-size: 14px; line-height: 1.35; }
  .item-card-shop, .item-card-price, .item-card-note { font-size: 13px; }
  .item-card-price { margin-top: 2px; font-size: 14px; }
  .home-maker { padding: 24px; gap: 20px; border-radius: 18px; }
  .home-maker-photo { flex-basis: 100%; height: 200px; }
  .home-maker h2 { font-size: 28px; }
  .home-maker-text > p:not(.eyebrow) { margin: 12px 0 20px; font-size: 16px; }
  .home-how { gap: 12px; }
  .home-how > div { padding: 20px; }
  .home-sell { padding: 24px; border-radius: 18px; gap: 16px; }
  .home-sell h2 { font-size: 24px; }
  .home-sell p { font-size: 15px; margin-top: 8px; }
  .footer-columns { gap: 24px 40px; padding-top: 28px; }
}
