/* Mehndi Queen — an editorial frame for the real admin catalogue. */
:root {
  color-scheme: light;
  --paper: #faf6f0;
  --surface: #fffdf9;
  --ink: #35242b;
  --muted: #78656b;
  --wine: #672b41;
  --berry: #9c315b;
  --rose: #f4e5e8;
  --gold: #b38344;
  --line: #e8dcd5;
  --radius: 16px;
  --shadow: 0 14px 42px rgb(68 35 41 / 7%);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; min-width: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button, input, select { max-width: 100%; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--berry); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.17; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.45rem, 4.7vw, 4.5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); letter-spacing: -.035em; }
h3 { font-size: 1.4rem; letter-spacing: -.018em; }
p { margin-bottom: 1.1em; }
::selection { background: #edccd7; color: var(--wine); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 5px; }
#maincontent:focus { outline: none; }
.sr-only, .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: 48px; }
.section + .section { padding-top: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.section-head > :first-child { min-width: 0; }
.section-head h1, .section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--muted); margin-bottom: 0; max-width: 640px; }
.section-head > a, .section-head > .button { flex-shrink: 0; }
.eyebrow { display: block; color: var(--berry); font-size: .69rem; font-weight: 650; letter-spacing: .17em; line-height: 1.6; text-transform: uppercase; margin-bottom: 15px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; color: white; background: var(--wine); border-radius: 8px; }
.skip-link:focus { top: 12px; color: white; }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 30; background: rgb(250 246 240 / 95%); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 92px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; flex-shrink: 1; color: var(--wine); }
.brand-monogram { flex-shrink: 0; }
.brand-copy { display: grid; gap: 1px; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.27rem; line-height: 1.25; letter-spacing: -.03em; overflow-wrap: anywhere; }
.brand-subtitle { color: var(--muted); font-size: .58rem; letter-spacing: .035em; line-height: 1.5; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; min-width: 0; gap: 8px 24px; }
.site-nav a { position: relative; padding-block: 12px; font-size: .79rem; font-weight: 550; color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 1px; background: var(--wine); transform: scaleX(0); transition: transform .18s ease; }
.site-nav a:hover, .site-nav a.active, .site-nav a[aria-current="page"] { color: var(--wine); }
.site-nav a:hover::after, .site-nav a.active::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-saved { display: inline-flex; align-items: center; gap: 6px; }
.saved-count { display: inline-flex; min-width: 20px; min-height: 20px; justify-content: center; align-items: center; padding: 1px 5px; background: var(--rose); color: var(--wine); border-radius: 50px; font-size: .62rem; line-height: 1.2; }
.menu-toggle { display: none; align-items: center; gap: 8px; flex-shrink: 0; color: var(--wine); border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 9px 12px; min-height: 44px; font-size: .77rem; }
.header-app-link { flex-shrink: 0; }
.header-app-link.button { min-height: 42px; padding-inline: 17px; font-size: .76rem; }

/* Small, purposeful actions */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; max-width: 100%; border: 1px solid transparent; border-radius: 9px; padding: 11px 20px; text-align: center; text-decoration: none; font-size: .82rem; font-weight: 600; line-height: 1.5; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button-primary { color: white; background: var(--wine); border-color: var(--wine); }
.button-primary:hover { color: white; background: #4e1f31; border-color: #4e1f31; box-shadow: 0 4px 14px rgb(103 43 65 / 15%); }
.button-secondary { color: var(--wine); background: var(--surface); border-color: #d9c3c6; }
.button-secondary:hover { color: var(--wine); background: #f5e9e8; border-color: #c5a7ae; }
.button-quiet { color: var(--wine); background: transparent; border-color: transparent; padding-inline: 4px; }
.button-quiet:hover { color: var(--berry); text-decoration: underline; text-underline-offset: 5px; }
.button svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

/* Image-led opening spread */
.hero { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: 68px; padding-block: 55px 44px; }
.hero-copy { min-width: 0; padding-block: 15px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hero .eyebrow::before { content: ""; width: 23px; height: 1px; background: var(--gold); }
.hero-title { font-size: clamp(2.7rem, 4.5vw, 4.85rem); line-height: 1.06; letter-spacing: -.05em; margin-bottom: 23px; }
.hero-title em, .hero-title span { color: var(--berry); font-weight: 400; }
.hero-copy > p { color: var(--muted); max-width: 440px; font-size: .95rem; line-height: 1.8; }
.hero-mosaic { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; grid-template-rows: 1fr 1fr; gap: 13px; min-width: 0; padding: 15px 0 23px; }
.hero-photo { position: relative; display: block; min-width: 0; aspect-ratio: 1.08; overflow: hidden; background: #eee4dc; border-radius: 12px; }
.hero-photo:first-child { grid-row: span 2; aspect-ratio: auto; border-radius: 110px 12px 12px 12px; }
.hero-photo:nth-child(2) { margin-top: 17px; }
.hero-photo:nth-child(3) { margin-bottom: 17px; }
.hero-photo img, img.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-photo img { transition: transform .5s ease; }
a.hero-photo:hover img { transform: scale(1.035); }
.hero-note { position: absolute; left: 22px; bottom: 7px; z-index: 1; max-width: calc(100% - 44px); padding: 12px 18px; border: 1px solid rgb(255 253 249 / 75%); border-radius: 9px; color: var(--wine); background: rgb(255 253 249 / 94%); box-shadow: var(--shadow); font-size: .75rem; line-height: 1.6; }
.hero-note strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.06rem; }
.hero-note small { color: var(--muted); font-size: .7rem; }
.hero-copy .hero-note { position: static; display: flex; align-items: center; gap: 8px; margin-top: 23px; max-width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--muted); font-size: .67rem; }
.hero-copy .hero-note svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold); }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero-photo > span { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 32px 14px 13px; color: white; font-size: .72rem; line-height: 1.5; background: linear-gradient(transparent, rgb(31 18 22 / 74%)); }
.hero-photo > span svg { width: 17px; height: 17px; flex-shrink: 0; }
.metric-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 56px; padding: 22px 24px; border-block: 1px solid var(--line); color: var(--muted); font-size: .77rem; }
.metric-strip > * { display: flex; align-items: baseline; gap: 9px; margin: 0; }
.metric-strip strong { color: var(--wine); font-family: var(--serif); font-size: 1.42rem; font-weight: 400; }

/* Collections */
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.category-card { display: block; min-width: 0; color: var(--ink); text-decoration: none; }
.category-image { position: relative; aspect-ratio: 4 / 5; width: 100%; object-fit: cover; overflow: hidden; border-radius: 80px 80px 12px 12px; background: #eee5dc; }
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.category-card:hover .category-image img { transform: scale(1.04); }
.category-card:hover { color: var(--berry); }
.category-meta { padding: 13px 2px 0; min-width: 0; }
.category-meta h2, .category-meta h3, .category-meta .card-title { font-size: 1.17rem; margin-bottom: 4px; }
.category-meta p, .category-meta small, .category-meta .card-meta { display: block; color: var(--muted); margin: 0; font-size: .71rem; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 18px 26px; }
.chip { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 40px; max-width: 100%; padding: 8px 16px; border: 1px solid var(--line); border-radius: 50px; background: var(--surface); color: var(--muted); text-decoration: none; text-align: center; font-size: .74rem; font-weight: 550; line-height: 1.45; transition: background .18s ease, border-color .18s ease; }
.chip:hover { color: var(--wine); border-color: #c9aab5; }
.chip.active, .chip[aria-pressed="true"], .chip[aria-current="true"] { color: white; border-color: var(--wine); background: var(--wine); }

/* Designs and tutorials */
.design-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.design-card { position: relative; min-width: 0; color: var(--ink); }
.design-visual, .video-visual { position: relative; display: block; }
.design-visual > a { display: block; }
a.design-card { display: block; text-decoration: none; }
.design-card > a, .design-card figure > a { display: block; color: inherit; text-decoration: none; }
.design-image { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; overflow: hidden; background: #eee5dc; border-radius: 12px; }
.design-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.design-card:hover .design-image img { transform: scale(1.03); }
.design-info { padding: 14px 2px 0; }
.card-category { display: block; margin: 0 0 6px; color: var(--berry); font-size: .61rem; letter-spacing: .105em; line-height: 1.6; text-transform: uppercase; }
.card-title { margin: 0 0 7px; color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 1.18rem; line-height: 1.4; overflow-wrap: anywhere; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--berry); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.6; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta svg { width: 13px; height: 13px; }
.save-button { position: absolute; right: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; min-height: 42px; padding: 9px; border: 1px solid rgb(255 253 249 / 85%); border-radius: 50px; color: var(--wine); background: rgb(255 253 249 / 94%); box-shadow: 0 2px 9px rgb(68 35 41 / 8%); font-size: .72rem; line-height: 1.2; transition: background .18s ease, color .18s ease; }
.save-button svg { width: 19px; height: 19px; flex-shrink: 0; }
.save-button:hover { background: white; color: var(--berry); }
.save-button.is-saved, .save-button[aria-pressed="true"] { color: white; background: var(--wine); border-color: var(--wine); }
.save-button.is-saved svg, .save-button[aria-pressed="true"] svg { fill: currentColor; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.video-card { display: block; position: relative; color: var(--ink); text-decoration: none; min-width: 0; }
.video-card > a { display: block; color: inherit; text-decoration: none; }
.video-image { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; overflow: hidden; background: #e9ddd6; border-radius: 12px; }
.video-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.video-card:hover .video-image img { transform: scale(1.035); }
.video-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgb(35 19 25 / 20%)); pointer-events: none; }
.play-badge { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--wine); background: rgb(255 253 249 / 94%); box-shadow: 0 4px 18px rgb(35 19 25 / 10%); font-size: 1rem; }
.play-badge svg { width: 20px; height: 20px; }
.video-card .design-info, .video-card .video-info { padding: 14px 2px 0; }

/* Browse controls */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-block: 25px 14px; }
.search-form { display: flex; align-items: center; gap: 10px; flex: 1 1 300px; min-width: 0; max-width: 560px; }
.search-input { width: 100%; min-width: 0; min-height: 48px; padding: 11px 16px; color: var(--ink); background: var(--surface); border: 1px solid #d9c8c3; border-radius: 9px; font-size: .85rem; }
.search-input::placeholder { color: #8c777d; opacity: 1; }
.search-form .button { flex-shrink: 0; min-height: 48px; }
.filter-select { min-width: 150px; min-height: 48px; padding: 10px 34px 10px 14px; color: var(--wine); background: var(--surface); border: 1px solid #d9c8c3; border-radius: 9px; font-size: .79rem; }
.toolbar label { color: var(--muted); font-size: .74rem; }
.toolbar .filter-label { display: grid; align-content: end; gap: 5px; min-width: 0; }
.toolbar { align-items: end; }
.search-form { position: relative; }
.search-form > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-input { padding-inline-start: 43px; }
.page-heading { margin-bottom: 25px; max-width: 790px; }
.page-heading h1 { margin-bottom: 17px; }
.page-heading > p:not(.eyebrow) { color: var(--muted); max-width: 640px; font-size: .94rem; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-block: 18px 24px; color: var(--muted); font-size: .78rem; }
.results-bar p { margin: 0; }
.results-bar strong { color: var(--ink); font-weight: 600; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 42px; color: var(--muted); font-size: .8rem; }
.pagination .button { min-width: 110px; }

/* A closer look */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-block: 26px; color: var(--muted); font-size: .73rem; overflow-wrap: anywhere; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--wine); text-decoration: underline; }
.detail-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 58px; align-items: start; padding-block: 8px 44px; }
.detail-art { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: #f0e9e0; overflow: hidden; }
.detail-art img, img.detail-art { display: block; width: 100%; max-height: 780px; object-fit: contain; }
.detail-copy { min-width: 0; padding-top: 16px; }
.detail-copy h1 { font-size: clamp(2.3rem, 3.8vw, 3.6rem); margin-bottom: 19px; }
.detail-copy > p { color: var(--muted); line-height: 1.85; }
.detail-copy .card-meta { padding-block: 18px; margin-block: 20px; border-block: 1px solid var(--line); font-size: .77rem; }
.detail-copy .save-button { position: static; width: auto; min-height: 46px; border-radius: 9px; padding: 11px 18px; }
.detail-image { display: block; width: 100%; max-height: 780px; object-fit: contain; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 26px 18px; }
.detail-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block: 16px; font-size: .73rem; }
.detail-save.is-saved { background: #4e1f31; border-color: #4e1f31; }
.detail-save.is-saved svg { fill: currentColor; }
.detail-copy .save-note { font-size: .71rem; line-height: 1.7; }
.video-detail { max-width: 1000px; margin-inline: auto; }
.video-detail .detail-copy { padding-top: 32px; max-width: 850px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 20px; }
.tag { display: inline-block; max-width: 100%; padding: 5px 11px; border-radius: 5px; color: var(--muted); background: #efe6df; font-size: .71rem; overflow-wrap: anywhere; }
.video-player { width: 100%; max-height: 78vh; aspect-ratio: 16 / 9; border-radius: 15px; background: #211b1e; object-fit: contain; }
iframe.video-player { border: 0; }
.video-fallback { display: grid; justify-items: center; align-content: center; gap: 14px; min-height: 260px; padding: 28px; background: #eee5dc; border: 1px solid var(--line); border-radius: 15px; text-align: center; color: var(--muted); }
.video-fallback p { margin: 0; max-width: 500px; }

/* The app invitation */
.app-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-block: 36px 48px; padding: 34px 40px; background: var(--rose); border: 1px solid #ead5db; border-radius: 15px; }
.app-banner > :first-child { flex: 1 1 340px; min-width: 0; }
.app-banner h2, .app-banner h3 { margin-bottom: 8px; color: var(--wine); }
.app-banner p { margin-bottom: 0; color: var(--muted); font-size: .85rem; }
.app-banner .eyebrow { margin-bottom: 10px; }

/* Honest loading, errors and local feedback */
.loading-state { padding-block: 70px; }
.loading-state > p { color: var(--muted); }
.skeleton { position: relative; overflow: hidden; min-height: 180px; aspect-ratio: 4 / 5; border-radius: 12px; background: #ede5dd; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgb(255 253 249 / 65%) 48%, transparent 80%); transform: translateX(-100%); animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.empty-state, .error-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 64px 24px; text-align: center; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.empty-state h1, .empty-state h2, .empty-state h3, .error-state h1, .error-state h2, .error-state h3 { margin-bottom: 0; max-width: 700px; }
.empty-state p, .error-state p { margin-bottom: 10px; max-width: 570px; color: var(--muted); font-size: .9rem; }
.empty-state .hero-actions, .error-state .hero-actions { justify-content: center; margin-top: 5px; }
.image-unavailable { display: flex; align-items: center; justify-content: center; padding: 22px; color: var(--muted); text-align: center; font-size: .75rem; line-height: 1.7; }
.hero-image.image-unavailable { min-height: 150px; }
.detail-image.image-unavailable { min-height: 340px; }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px; color: var(--berry); background: var(--rose); border-radius: 50%; }
.empty-icon svg { width: 24px; height: 24px; }
.unavailable-card .button { font-size: .75rem; }
.site-status:empty { display: none; }
.site-status { margin-top: 18px; padding: 12px 16px; border: 1px solid #ead5db; border-radius: 8px; color: var(--wine); background: var(--rose); font-size: .8rem; }
.toast { position: fixed; z-index: 60; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 13px 22px; border: 1px solid #8f5164; border-radius: 10px; background: var(--wine); color: white; box-shadow: var(--shadow); text-align: center; font-size: .8rem; line-height: 1.6; pointer-events: none; }
.toast:empty { display: none; }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: #f2ebe3; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: 46px 40px; }
.footer-copy { flex: 1 1 350px; max-width: 540px; }
.footer-copy h2 { margin-bottom: 13px; font-size: 2.2rem; color: var(--wine); }
.footer-copy p { margin-bottom: 0; font-size: .83rem; color: var(--muted); max-width: 400px; }
.footer-copy .eyebrow { margin-bottom: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 30px; border-top: 1px solid #e1d5cc; padding-block: 22px; font-size: .67rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--wine); text-decoration: underline; }
.footer-links .admin-link { color: #837179; }

@media (min-width: 1440px) {
  .hero { gap: 90px; }
}
@media (max-width: 1120px) {
  .container { width: calc(100% - 56px); }
  .site-nav { gap: 18px; }
  .header-app-link { display: none; }
  .hero { gap: 40px; }
  .hero-title { font-size: clamp(2.7rem, 5vw, 4rem); }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .design-grid { gap: 26px 18px; }
  .detail-layout { gap: 36px; }
}
@media (max-width: 900px) {
  .design-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 30px; }
  .hero-title { font-size: 3rem; }
  .hero-copy > p { font-size: .87rem; }
}
@media (max-width: 759px) {
  html { scroll-padding-top: 88px; }
  .container { width: calc(100% - 40px); }
  .header-inner { position: relative; min-height: 78px; flex-wrap: wrap; gap: 0; padding-block: 14px; }
  .brand-monogram { width: 40px; height: 40px; }
  .brand-name { font-size: 1.15rem; }
  .header-inner .brand { max-width: calc(100% - 95px); }
  .brand-subtitle { font-size: .55rem; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--line); max-height: calc(100dvh - 100px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 10px; font-size: .88rem; border-radius: 6px; white-space: normal; }
  .site-nav a::after { display: none; }
  .site-nav a.active, .site-nav a[aria-current="page"] { background: var(--rose); }
  .site-nav .nav-saved { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-block: 38px 30px; }
  .hero-copy { padding-block: 0; max-width: 580px; }
  .hero-title { max-width: 520px; font-size: clamp(2.6rem, 7.7vw, 4rem); }
  .hero-copy > p { max-width: 490px; font-size: .93rem; }
  .hero-mosaic { width: min(560px, 100%); justify-self: center; padding-top: 0; }
  .hero-photo:first-child { border-top-left-radius: 100px; }
  .hero-actions { margin-top: 24px; }
  .section { padding-block: 38px; }
  .section-head { align-items: start; gap: 15px; }
  .section-head > a, .section-head > .button { flex-shrink: 1; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
  .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 16px; }
  .category-meta h2, .category-meta h3, .category-meta .card-title { font-size: 1.05rem; }
  .card-title { font-size: 1.08rem; }
  .card-category { font-size: .58rem; }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .detail-copy { padding-top: 0; }
  .detail-art img, img.detail-art { max-height: 680px; }
  .detail-image { max-height: 680px; }
  .app-banner { padding: 28px; }
  .metric-strip { gap: 14px 24px; padding: 18px 0; }
  .footer-top { align-items: start; padding-block: 35px; }
  .footer-bottom { align-items: start; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .brand { gap: 8px; }
  .brand-name { font-size: 1.05rem; }
  .brand-subtitle { font-size: .51rem; }
  .menu-toggle { padding-inline: 10px; }
  .menu-toggle span { display: none; }
  .header-inner .brand { max-width: calc(100% - 52px); }
  .hero { padding-top: 30px; }
  .hero-title { font-size: 2.7rem; }
  .hero-copy > p { font-size: .87rem; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { padding-inline: 14px; }
  .hero-mosaic { gap: 9px; }
  .hero-photo:first-child { border-top-left-radius: 75px; }
  .hero-note { left: 12px; max-width: calc(100% - 24px); padding: 9px 13px; }
  .section-head { flex-wrap: wrap; }
  .section-head > :first-child { flex: 1 1 100%; }
  .section-head h1 { font-size: 2.35rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .design-grid { gap: 25px 12px; }
  .design-info { padding-top: 11px; }
  .card-title { font-size: 1.03rem; }
  .card-meta { gap: 4px 8px; font-size: .65rem; }
  .card-category { font-size: .56rem; letter-spacing: .08em; }
  .save-button { right: 8px; top: 8px; min-width: 40px; min-height: 40px; padding: 8px; }
  .video-grid { grid-template-columns: 1fr; gap: 28px; }
  .toolbar { align-items: stretch; }
  .search-form { flex: 1 1 100%; gap: 8px; }
  .search-form .button { padding-inline: 13px; }
  .filter-select { width: 100%; flex: 1 1 auto; }
  .toolbar .filter-label { flex: 1 1 160px; }
  .chip { padding: 8px 13px; font-size: .7rem; }
  .chip-row { gap: 7px; }
  .breadcrumbs { margin-block: 22px; }
  .detail-copy h1 { font-size: 2.4rem; }
  .app-banner { padding: 25px 22px; }
  .app-banner h2 { font-size: 1.85rem; }
  .empty-state, .error-state { padding: 40px 20px; }
  .metric-strip { justify-content: flex-start; gap: 12px 20px; }
  .metric-strip strong { font-size: 1.25rem; }
  .footer-copy h2 { font-size: 2rem; }
  .footer-links { gap: 10px 17px; }
  .toast { bottom: 16px; }
}
@media (max-width: 340px) {
  .hero-title { font-size: 2.4rem; }
  .design-grid { grid-template-columns: 1fr; }
  .hero-actions .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .skeleton::after { display: none; }
}
@media (forced-colors: active) {
  .button, .chip, .save-button, .menu-toggle { border: 1px solid ButtonText; }
  .site-nav a.active, .site-nav a[aria-current="page"], .chip.active, .save-button.is-saved { outline: 2px solid Highlight; outline-offset: 1px; }
}

/* The optional manual banner occupies no space while disabled or unfilled. */
.site-ad[hidden], [data-ad-privacy][hidden] { display: none !important; }
.site-ad { width: 100%; overflow: hidden; margin-block: 0 32px; text-align: center; }
.site-ad > small { display: block; margin-bottom: 8px; font-size: .65rem; letter-spacing: .08em; color: var(--muted); }
.ad-privacy-link { border: 0; padding: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.privacy-page { max-width: 760px; }
.privacy-page h2 { margin-top: 32px; font-size: 1.45rem; }
.privacy-page p { margin-block: 14px; line-height: 1.75; }
.privacy-page a { text-decoration: underline; text-underline-offset: 3px; }
