@font-face {
  font-family: Noto Serif;
  src: url(fonts/NotoSerif-Regular.woff) format("woff");
  font-display: swap;
}
@font-face {
  font-family: Noto Serif;
  src: url(fonts/NotoSerif-Italic.woff) format("woff");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Noto Sans;
  src: url(fonts/NotoSans-Regular.woff) format("woff");
  font-display: swap;
}
@font-face {
  font-family: Noto Sans;
  src: url(fonts/NotoSans-Bold.woff) format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #faf6ef;
  --cream: #efe7d9;
  --ink: #322922;
  --muted: #685c51;
  --line: #ded3c4;
  --clay: #8c4c36;
  --clay-dark: #713823;
  --leaf: #354e38;
  --sage: #e8ebdf;
  --serif: "Noto Serif", Georgia, serif;
  --sans: "Noto Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 4px; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); z-index: 20; padding: 10px 16px; background: var(--paper); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 88px, 1280px); margin-inline: auto; }
.narrow { max-width: 730px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.95rem, 3.2vw, 3.15rem); }
h3 { font-size: 1.55rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 77px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.header-inner nav { display: flex; gap: clamp(15px, 3vw, 40px); align-items: center; }
.header-inner nav a, .cart-link { font-size: .88rem; font-weight: 700; }
.header-inner nav a:hover, .footer-inner > a:hover, .back:hover { color: var(--clay); }
.brand { font: 400 clamp(1.25rem, 2.2vw, 1.78rem)/1.1 var(--serif); letter-spacing: -.06em; white-space: nowrap; }
.brand small { display: block; font: 700 .7rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; color: var(--clay); }
.cart-link { justify-self: end; display: flex; gap: 10px; align-items: center; min-height: 44px; }
.bag { position: relative; display: inline-block; width: 15px; height: 14px; border: 1px solid currentColor; border-radius: 2px; margin-top: 3px; }
.bag::before { content: ""; position: absolute; width: 7px; height: 6px; border: 1px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; top: -6px; left: 3px; }
.count { display: grid; place-items: center; min-width: 23px; height: 23px; padding-inline: 5px; background: var(--cream); border-radius: 99px; font-size: .7rem; }
.hero { display: grid; grid-template-columns: 43% 57%; margin-top: 28px; background: #eee5d6; min-height: 450px; overflow: hidden; }
.hero-copy { padding: clamp(32px, 5vw, 77px); padding-right: clamp(20px, 3vw, 50px); align-self: center; }
.eyebrow { color: var(--clay-dark); margin: 0 0 13px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3.2rem, 6.05vw, 6.1rem); line-height: .98; }
.hero h1 em { display: block; color: var(--clay); }
.hero-text { color: var(--muted); margin: 23px 0 25px; max-width: 31ch; font-size: 1rem; }
.hero-photo { width: 100%; height: 100%; min-height: 450px; object-fit: cover; object-position: 50% 50%; }
.button { display: inline-flex; min-height: 46px; gap: 12px; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid transparent; border-radius: 3px; background: var(--clay); color: white; font-weight: 700; font-size: .86rem; line-height: 1.35; text-align: center; }
.button:hover { background: var(--clay-dark); }
.button.secondary { border-color: #9c8979; color: var(--ink); background: transparent; }
.button.secondary:hover { background: var(--cream); }
.button:disabled { opacity: .6; cursor: default; }
.catalog { padding: 51px 0 62px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 23px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: .8rem; }
.filters a:hover { border-color: var(--leaf); }
.filters a.active { background: var(--leaf); border-color: var(--leaf); color: white; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 20px; }
.product-card a { display: block; }
.card-photo { position: relative; overflow: hidden; background: var(--cream); }
.card-photo img { width: 100%; height: auto; aspect-ratio: 1.15; object-fit: cover; transition: transform .24s; }
.product-card a:hover img { transform: scale(1.035); }
.photo-label { position: absolute; top: 13px; left: 13px; padding: 4px 10px; background: var(--paper); color: var(--ink); font-size: .7rem; }
.muted-label { background: var(--cream); }
.product-caption { display: flex; gap: 7px; justify-content: space-between; align-items: end; padding-top: 13px; }
.product-caption p { margin: 0 0 3px; color: var(--muted); font-size: .74rem; }
.product-caption strong { flex-shrink: 0; font-size: .85rem; padding-bottom: 2px; }
.studio { background: var(--sage); padding: clamp(24px, 5vw, 63px); margin-bottom: 58px; }
.studio p { max-width: 62ch; }
.studio h2 { margin-bottom: 15px; }
.studio p:last-child { margin-bottom: 0; }
.site-footer { padding-block: 34px; background: #eee5d6; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-inner p { margin: 4px 0 0; font-size: .77rem; color: var(--muted); }
.footer-inner > a { font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.page { padding: 42px 0 64px; }
.page > h1 { margin-bottom: 23px; }
.back { display: inline-block; margin-bottom: 22px; color: var(--muted); }
.product-detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 6vw, 90px); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 10px; }
.gallery img { width: 100%; border-radius: 2px; }
.gallery img:first-child { grid-column: span 2; }
.detail-copy { padding-top: 20px; }
.detail-price { margin-block: 18px; font-size: 1.32rem; font-weight: 700; }
.description { white-space: pre-line; max-width: 42ch; }
.availability { color: var(--leaf); font-weight: 700; margin-block: 22px 13px; }
.availability.sold { color: var(--muted); }
.purchase, .quantity-label { display: flex; gap: 12px; align-items: center; }
.quantity-label input { width: 68px; min-height: 42px; }
.text-button { display: inline-flex; align-items: center; min-height: 42px; padding: 2px 6px; border: 0; background: transparent; color: var(--clay-dark); text-decoration: underline; text-underline-offset: 3px; font-size: .82rem; }
.inline { display: inline; }
.empty { padding: 22px 0; color: var(--muted); }
.cart-items { margin-bottom: 24px; }
.cart-item { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img, .admin-product img { object-fit: cover; }
.cart-item h2, .admin-product h2, .order-panel h2, .summary h2 { font-size: 1.42rem; }
.cart-item p, .admin-product p { margin: 5px 0; color: var(--muted); font-size: .82rem; }
.cart-item form { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.cart-total { display: flex; justify-content: space-between; gap: 8px; padding-block: 12px; font-size: 1.02rem; }
.cart-total + .button, .below { margin-top: 14px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 30px; align-items: start; }
.summary { padding: 24px; background: #f0e9dd; }
.summary-list { padding-block: 10px; border-bottom: 1px solid var(--line); }
.summary-list li { display: flex; justify-content: space-between; gap: 10px; margin-block: 6px; }
.summary .hint { margin-bottom: 13px; }
.summary .button { width: 100%; }
.with-js { display: none; }
.js .with-js { display: flex; }
.fields, .fields fieldset { display: grid; gap: 14px; align-content: start; }
.fields label { min-width: 0; }
.fields label > input:not([type=checkbox],[type=radio],[type=file]),
.fields label > textarea,
.fields label > select { width: 100%; }
fieldset { min-width: 0; border: 1px solid var(--line); margin: 0; padding: 17px; }
legend { padding-inline: 6px; font: 1.2rem var(--serif); }
label { display: grid; gap: 5px; font-weight: 700; font-size: .85rem; }
input:not([type=checkbox],[type=radio]), select, textarea { max-width: 100%; min-height: 44px; border: 1px solid #aa9786; border-radius: 3px; padding: 8px 10px; background: #fffdf9; color: var(--ink); font-size: 1rem; font-weight: 400; }
input[type=radio], input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--leaf); }
textarea { resize: vertical; }
.radio-card { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; min-height: 48px; border: 1px solid var(--line); padding: 9px; }
.hint { color: var(--muted); margin: 0; font-size: .8rem; font-weight: 400; }
.message { padding: 10px 14px; margin-top: 14px; margin-bottom: 12px; background: var(--cream); border-left: 3px solid var(--clay); }
.message.success { background: var(--sage); border-color: var(--leaf); }
.message.error { background: #f4e3db; color: #612d21; }
.login { max-width: 430px; }
.admin-header { grid-template-columns: 1fr auto; }
.admin-page { max-width: 950px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 25px; }
.metrics > * { display: grid; align-content: start; background: var(--sage); padding: 14px 18px; }
.metrics strong { font: 1.8rem var(--serif); }
.metrics small { color: var(--muted); }
.admin-product { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; padding-block: 13px; border-bottom: 1px solid var(--line); align-items: center; }
.market-sale { display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: 8px; }
.photo-controls, .two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.file-control { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px; background: var(--cream); border: 1px solid #aa9786; border-radius: 3px; text-align: center; cursor: pointer; }
.file-control:hover { background: #e7daca; }
.file-control:focus-within { outline: 2px solid var(--leaf); outline-offset: 3px; }
.file-control input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.preview-strip { display: flex; flex-wrap: wrap; gap: 7px; }
.preview-strip:empty { display: none; }
.preview-strip img { width: 100px; height: 100px; object-fit: cover; }
.preview-filename { max-width: 150px; overflow-wrap: anywhere; font-size: .75rem; }
.ai-box { background: var(--sage); padding: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.check { display: flex; align-items: center; min-height: 44px; gap: 7px; }
.orders { display: grid; gap: 13px; }
.order-panel { border: 1px solid var(--line); padding: 18px; }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.order-head .eyebrow { margin-bottom: 5px; }
.contact { color: var(--muted); margin-block: 12px 0; overflow-wrap: anywhere; }
.order-actions { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: end; margin-top: 15px; }
@media (max-width: 900px) {
  .wrap { width: min(100% - 44px, 1280px); }
  .hero, .hero-photo { min-height: 380px; }
  .section-header { align-items: start; flex-direction: column; gap: 13px; }
  .product-caption { flex-wrap: wrap; align-items: start; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 68px; gap: 0 11px; grid-template-columns: 1fr auto; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; gap: 22px; }
  .header-inner nav a { min-height: 40px; display: flex; align-items: center; }
  .header-inner > .brand { padding-block: 12px; }
  .cart-link { grid-row: 1; grid-column: 2; }
  .hero { display: flex; flex-direction: column; margin-top: 16px; }
  .hero-copy { padding: 25px 22px; align-self: stretch; }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 4rem); }
  .hero h1 em { display: inline; }
  .hero-text { margin-block: 14px 16px; }
  .hero-photo { min-height: 0; height: auto; aspect-ratio: 1.53; }
  .catalog { padding-block: 30px 44px; }
  .section-header { margin-bottom: 15px; }
  .filters { gap: 5px; }
  .filters a { padding: 8px 9px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .photo-label { top: 6px; left: 6px; font-size: .62rem; }
  .product-caption { display: block; }
  .product-caption h3 { font-size: 1.11rem; margin-bottom: 5px; }
  .studio { margin-bottom: 34px; }
  .footer-inner { flex-direction: column; align-items: start; gap: 8px; }
  .page { padding-block: 24px 44px; }
  .product-detail, .checkout { grid-template-columns: 1fr; gap: 16px; }
  .detail-copy { padding-top: 0; }
  .cart-item { gap: 8px; }
  .cart-item img { width: 48px; height: 48px; }
  .cart-item h2 { font-size: 1.16rem; }
  .cart-item > strong { font-size: .8rem; }
  .cart-item form, .cart-item .quantity-label { gap: 4px; }
  .cart-item .quantity-label input { width: 48px; padding-inline: 5px; }
  .admin-product { grid-template-columns: auto 1fr; gap: 8px 12px; }
  .market-sale { grid-column: 1 / -1; justify-content: start; }
  .order-actions { grid-template-columns: 1fr; gap: 6px; }
  .metrics > * { padding: 10px; }
  .metrics span { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
