/* The original atelier palette, serif headings and hero remain in styles.css. */
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, input, select { -webkit-tap-highlight-color: transparent; }
:is(button, input, select, summary):focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; }
section[id], article[id], #collections-title { scroll-margin-top: 100px; }
.skip-link { position: fixed; top: 10px; left: 12px; transform: translateY(-180%); z-index: 50; padding: 14px 20px; color: var(--paper); background: var(--olive-dark); font: 1rem Arial, sans-serif; }
.skip-link:focus { transform: none; }
.topbar { gap: 18px; }
.nav { gap: 10px 18px; }
.nav a { padding: 10px 0; line-height: 1.4; }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.language-switch { padding: 2px 4px; }
.menu-toggle { display: none; }
.hero-media img { min-height: 100%; }
.browser-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.browser-heading h2 { max-width: 650px; }
.browser-heading > a { flex-shrink: 0; margin: 0 0 4px; padding: 8px 0; }
.collection-index { background: #eef0e7; border-bottom: 1px solid var(--line); }
.collection-index .collection-intro { max-width: 780px; }
.category-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.category-tab { min-height: 134px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; padding: 20px; text-align: left; color: var(--olive-dark); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; font-size: 1.2rem; line-height: 1.25; }
.category-tab[data-group="all"] { grid-column: 1 / -1; min-height: 44px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 10px 16px; width: fit-content; font: 0.85rem Arial, sans-serif; border-radius: 999px; }
.category-number { font-style: italic; font-size: 0.82rem; color: var(--brass); }
.category-count { font: 0.75rem/1.4 Arial, sans-serif; color: var(--muted); }
.category-tab[data-group="all"] .category-count { border-left: 1px solid currentColor; padding-left: 12px; }
.category-tab:hover { border-color: var(--olive); }
.category-tab[aria-pressed="true"] { background: var(--olive-dark); color: var(--paper); border-color: var(--olive-dark); }
.category-tab[aria-pressed="true"] :is(.category-count, .category-number) { color: #e0d4ba; }
.filter-fields { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: end; gap: 16px; padding: 26px 0 18px; }
.filter-fields label { display: grid; gap: 9px; font: 0.85rem Arial, sans-serif; color: var(--olive-dark); min-width: 0; }
.filter-fields :is(input, select) { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #bcb7a8; border-radius: 4px; background: var(--paper); color: var(--ink); font: 1rem Arial, sans-serif; }
.filter-fields input::placeholder { color: var(--muted); opacity: 1; }
.reset-filters { min-height: 48px; padding: 10px 6px; border: 0; background: transparent; color: var(--olive-dark); text-decoration: underline; text-underline-offset: 4px; font: 0.85rem Arial, sans-serif; }
.reset-filters:disabled { opacity: .45; cursor: default; }
.results-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); font: .8rem/1.6 Arial, sans-serif; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.results-summary p { margin: 0; }
#results-status { font-weight: 700; color: var(--olive-dark); }
.collection-directory { margin-top: 20px; }
.collection-directory summary { width: fit-content; padding: 12px 0; cursor: pointer; font: .9rem Arial, sans-serif; color: var(--olive-dark); }
.collection-links { margin-top: 14px; }
.shop-order-note { margin: 18px 0 0; max-width: 820px; color: var(--muted); font: .82rem/1.7 Arial, sans-serif; }
.gallery { align-items: stretch; }
.gallery-card h3 { line-height: 1.2; overflow-wrap: anywhere; }
.gallery-card .card-copy p { font-size: .94rem; line-height: 1.65; }
.product-image-link { overflow: hidden; }
.product-image-link img { transition: transform .25s ease; }
.product-image-link:hover img { transform: scale(1.025); }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px; }
.product-actions .button { flex: 1 1 125px; padding: 11px 12px; font-size: .8rem; }
.product-actions .product-link { margin: 0; width: auto; align-self: stretch; }
.pending-badge { display: block; width: fit-content; margin: 0 0 16px; border: 1px dashed #bcb7a8; border-radius: 3px; padding: 6px 9px; font: .72rem/1.5 Arial, sans-serif; color: var(--muted); }
.placeholder-card { border-style: dashed; box-shadow: none; }
.placeholder-card h3 { color: var(--olive); }
.collection-placeholder { display: grid; justify-items: center; gap: 14px; margin-top: 22px; padding: 34px 24px; border: 1px dashed #bcb7a8; background: var(--cream); text-align: center; }
.collection-placeholder p { margin: 0; max-width: 540px; color: var(--muted); font: .95rem/1.7 Arial, sans-serif; }
.collection-placeholder .pending-badge { margin: 0; }
.empty-results { padding: 64px 24px; text-align: center; background: var(--paper); }
.empty-results h2 { font-size: 2rem; margin: 0; }
.empty-results > p:not(.eyebrow) { font: 1rem/1.7 Arial, sans-serif; color: var(--muted); }
.empty-results .button { margin-top: 12px; }
.product-dialog { position: fixed; width: min(1050px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); overflow-y: auto; }
.product-dialog::backdrop { background: rgba(23, 29, 22, .72); }
body:has(.product-dialog[open]) { overflow: hidden; }
.dialog-close { position: sticky; display: block; top: 12px; z-index: 1; margin: 12px 12px -56px auto; width: 44px; height: 44px; font: 1.6rem Arial, sans-serif; color: var(--olive-dark); background: var(--paper); border: 1px solid var(--line); border-radius: 50%; }
.dialog-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.dialog-art { padding: 24px; background: var(--cream); }
.dialog-art img { width: 100%; max-height: 72dvh; object-fit: contain; }
.dialog-copy { min-width: 0; padding: 64px 32px 36px; }
.dialog-copy h2 { margin: 0 0 20px; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.15; }
.dialog-copy > p:not(.eyebrow) { color: var(--muted); font: .95rem/1.7 Arial, sans-serif; }
.dialog-copy .product-note { font-size: .82rem !important; margin-bottom: 24px; }
.footer { flex-wrap: wrap; line-height: 1.6; }
@media (max-width: 1100px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; padding: 12px clamp(20px, 5vw, 64px); }
  .brand { min-width: 0; }
  .brand strong { overflow-wrap: anywhere; }
  .nav { grid-column: 1 / -1; width: 100%; gap: 10px 24px; justify-content: flex-start; }
  .language-switch { position: static; grid-column: 3; grid-row: 1; }
  .shop-ready .menu-toggle { display: block; grid-column: 2; grid-row: 1; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--olive-dark); background: var(--paper); font: .85rem Arial, sans-serif; }
  .shop-ready .nav { display: none; }
  .shop-ready .menu-open .nav { display: flex; padding-top: 10px; border-top: 1px solid var(--line); }
  section[id], article[id] { scroll-margin-top: 100px; }
  .browser-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
}
@media (min-width: 1101px) {
  .topbar { flex-direction: row; align-items: center; padding-right: clamp(20px, 5vw, 64px); }
  .language-switch { position: static; }
  .nav { width: auto; }
}
@media (max-width: 920px) {
  .hero-media { height: clamp(290px, 60vw, 540px); min-height: 0; }
  .category-tab { padding: 16px; font-size: 1.07rem; }
  .filter-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .reset-filters { grid-column: 1 / -1; justify-self: start; }
  .results-summary { flex-direction: column; gap: 6px; }
}
@media (max-width: 600px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 10px 20px; }
  .brand strong { font-size: .85rem; letter-spacing: .025em; }
  .brand span { font-size: .69rem; }
  .language-switch { grid-column: 1; grid-row: 2; width: fit-content; font-size: .75rem; border: 0; padding: 0; background: transparent; }
  .language-switch button { min-height: 44px; min-width: 44px; }
  section[id], article[id], #collections-title { scroll-margin-top: 125px; }
  .shop-ready .menu-toggle { grid-column: 2; grid-row: 1 / span 2; }
  .nav { grid-row: 3; }
  .shop-ready .menu-open .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { min-height: 44px; }
  .category-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-tab { min-height: 130px; padding: 16px 14px; font-size: 1.12rem; }
  .filter-fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .reset-filters { grid-column: 1; }
  .collection-links { grid-template-columns: minmax(0, 1fr); }
  .dialog-layout { grid-template-columns: minmax(0, 1fr); }
  .product-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .dialog-art { padding: 16px; }
  .dialog-art img { max-height: 48dvh; }
  .dialog-copy { padding: 28px 24px; }
  .dialog-copy .button { width: 100%; }
  .hero-copy { padding-top: 42px; padding-bottom: 42px; }
  .browser-heading > a { white-space: normal; }
  .product-actions { padding: 20px 24px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-image-link img { transition: none; }
  .product-image-link:hover img { transform: none; }
}

/* Compact homepage proportions at normal browser zoom. */
.hero { min-height: 0; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.hero-copy { padding: 32px clamp(22px,5vw,64px); }
.hero h1 { max-width: 560px; font-size: clamp(2.1rem,3.25vw,3.1rem); line-height: 1.06; }
.hero .eyebrow { margin-bottom: 12px; }
.hero .lead { margin-top: 16px; font-size: .96rem; line-height: 1.6; }
.hero .actions { margin-top: 20px; gap: 10px; }
.hero .button { font-size: .83rem; padding: 10px 16px; }
.hero-media { min-height: 0; height: 370px; }
.hero-media img { height: 100%; min-height: 0; object-position: center 52%; }
.home-welcome, .seasonal-feature { padding-top: 34px; padding-bottom: 34px; }
.home-welcome > h2, .seasonal-copy h2 { font-size: clamp(1.65rem,2.35vw,2.1rem); line-height: 1.15; }
.home-intro { max-width: 900px; margin: 16px 0 24px; font-size: .95rem; line-height: 1.7; }
.home-discoveries { gap: 28px; }
.home-discovery-image { background: transparent; border: 0; }
.home-discovery-image img { height: 220px; aspect-ratio: auto; object-fit: contain; }
.home-discovery-copy { padding-top: 16px; }
.home-discovery h3 { font-size: 1.45rem; margin-bottom: 10px; }
.home-discovery p, .home-story p { font-size: .9rem; line-height: 1.7; margin-bottom: 12px; }
.home-story { margin-top: 26px; padding-top: 26px; gap: 44px; }
.home-story h3 { margin-bottom: 12px; font-size: 1.4rem; }
.seasonal-feature { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: 32px; }
.seasonal-image { max-width: 250px; }
.seasonal-copy .collection-intro { font-size: .93rem; margin: 14px 0 18px; }
.seasonal-kicker { font-size: 1rem; margin-bottom: 12px; }
.seasonal-note { margin-bottom: 16px; }
@media (max-width: 920px) {
  .hero-media { height: 340px; }
  .seasonal-feature { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 28px 22px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-media { height: 240px; }
  .home-discoveries { gap: 26px; }
  .home-discovery-image img { height: 210px; }
  .home-story { gap: 24px; }
  .seasonal-feature { grid-template-columns: 1fr; gap: 24px; }
  .seasonal-image { max-width: 220px; }
}

/* Space-efficient collection navigation. */
.collection-index { padding-top: 30px; padding-bottom: 28px; }
.collection-index .browser-heading { gap: 16px; }
.collection-index .eyebrow { margin-bottom: 10px; }
.collection-index h2 { font-size: clamp(1.6rem,2.3vw,2rem); }
.collection-index > .collection-intro { margin: 14px 0 18px; font-size: .93rem; line-height: 1.65; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.category-tab, .category-tab[data-group="all"] { width: auto; min-height: 46px; padding: 10px 15px; flex-direction: row; align-items: center; justify-content: center; gap: 8px; border-radius: 5px; font: .9rem/1.35 Arial,sans-serif; }
.category-number { display: none; }
.category-count { font-size: .73rem; }
.category-tab[data-group="all"] .category-count { padding-left: 8px; }
.filter-fields { padding: 18px 0 12px; gap: 14px; }
.filter-fields label { gap: 6px; }
.filter-fields :is(input,select) { min-height: 44px; padding: 10px 12px; font-size: .93rem; }
.results-summary { padding-bottom: 12px; gap: 8px; }
.collection-directory { margin-top: 6px; }
.collection-directory summary { padding: 10px 0; }
.collection-links { gap: 8px; margin-top: 8px; }
.collection-links a { min-height: 44px; padding: 10px 12px; font-size: .9rem; }
.shop-order-note { margin-top: 10px; }
@media(max-width:1100px) { .collection-index .browser-heading { gap: 10px; } }
@media(max-width:600px) {
  .category-tabs { gap: 7px; }
  .category-tab, .category-tab[data-group="all"] { flex: 1 1 140px; min-height: 46px; padding: 10px 11px; font-size: .84rem; }
  .filter-fields { grid-template-columns: 1fr; gap: 12px; }
  .reset-filters { min-height: 44px; }
}

/* Keep complete artwork visible and align previews with their text. */
.hero-media { background: #eeeae1; }
.hero-media img { object-fit: contain; object-position: center; }
.home-discovery-image img { object-position: left center; }
.home-discoveries { max-width: 1160px; }

/* Centre the complete welcome section on a shared content width. */
.home-welcome { padding-inline: max(24px, calc((100% - 1160px) / 2)); }
.home-discoveries { width: 100%; margin-inline: auto; }

/* Five illustrated categories use the available desktop width. */
.home-welcome { padding-inline: max(24px, calc((100% - 1600px) / 2)); }
.home-discoveries { max-width: none; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 26px; }
.home-discovery-image img { height: 210px; }
.home-discovery h3 { font-size: 1.35rem; line-height: 1.25; }
.home-discovery-copy { display: flex; flex-direction: column; flex: 1; }
.home-discovery { display: flex; flex-direction: column; }
.home-discovery .text-link { margin-top: auto; align-self: flex-start; }
@media(max-width:1100px) { .home-discoveries { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) { .home-discoveries { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .home-discoveries { grid-template-columns: 1fr; } }

/* Give the banner photograph its full column without empty image gutters. */
.hero { max-width: 1440px; margin-inline: auto; }
.hero-copy { padding-inline: 36px; }
.hero-media { height: auto; align-self: stretch; }
.hero-media img { width: 100%; height: auto; min-height: 0; object-fit: contain; }
@media(min-width:701px) {
  .hero-media { display: flex; align-items: center; }
}
@media(max-width:700px) {
  .hero-copy { padding-inline: 22px; }
}
