← back to Wallco Ai
public/css/site.css
1124 lines
/* wallco.ai — site CSS
* Dark/Light toggle standard (feedback_dark_light_toggle_standard.md)
* Only --bg, --ink, --ink-soft, --ink-faint, --line, --card-bg, --header-bg flip.
* Accents (--accent, --ai-badge-bg) stay constant.
*/
/* ── LIGHT MODE (default) */
:root {
--bg: #faf7f2;
--ink: #1a1714;
--ink-soft: #5a5048;
--ink-faint: #9a8e82;
--line: #d8cec0;
--card-bg: #ffffff;
--header-bg: #faf7f2;
/* Accents stay constant across themes */
--accent: #0d0d0d;
--accent-soft: #3a3633;
--gold: #c9a14b;
--ai-badge-bg: #0d0d0d;
--ai-badge-ink: #f5f0e8;
--serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
--sans: 'Inter', -apple-system, system-ui, sans-serif;
/* ── Eyebrow type token — small tracked uppercase label.
* Per four-horsemen Paper-horseman v1 review: studio was using
* ad-hoc 11px/.06em/.08em variants in 15+ places. This is the
* canonical version. Use class="eyebrow" or var(--eyebrow-*).
*/
--eyebrow-size: 11px;
--eyebrow-track: 0.08em;
--eyebrow-weight: 500;
--eyebrow-color: var(--ink-faint);
--hero-h: clamp(560px, 72vh, 900px);
--cols: 4;
}
.eyebrow {
font: var(--eyebrow-weight) var(--eyebrow-size) var(--sans);
letter-spacing: var(--eyebrow-track);
text-transform: uppercase;
color: var(--eyebrow-color);
}
/* ── DARK MODE */
[data-theme="dark"] {
--bg: #0d0c0a;
--ink: #f0ebe3;
--ink-soft: #c8beb2;
--ink-faint: #7a706a;
--line: #2a2620;
--card-bg: #1a1714;
--header-bg: #111008;
}
/* ── RESET */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font: 15px/1.6 var(--sans);
color: var(--ink);
background: var(--bg);
transition: background 0.25s, color 0.25s;
}
a { color: var(--ink); }
img { max-width: 100%; display: block; }
/* ── A11Y: SKIP-TO-MAIN LINK (WCAG 2.4.1 bypass blocks) */
.skip-link {
position: fixed;
top: 8px;
left: 8px;
z-index: 9999;
background: var(--ink);
color: var(--bg);
padding: 10px 16px;
font: 13px/1 var(--sans);
text-decoration: none;
border-radius: 4px;
transform: translateY(-200%);
transition: transform 160ms ease;
}
.skip-link:focus,
.skip-link:focus-visible {
transform: translateY(0);
outline: 2px solid var(--accent, var(--ink));
outline-offset: 2px;
}
/* The injected anchor target — scrolled past header on focus jump. */
#main-content {
display: block;
scroll-margin-top: 80px;
outline: none;
}
/* ── HEADER */
/* Top nav bar: pinned to viewport on every page, never scrolls.
Hero sections are designed to sit *under* this translucent header
(backdrop-blur reveal) — do NOT add body padding-top to compensate. */
.site-header {
position: fixed;
top: 0; left: 0; right: 0;
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
padding: 18px 32px;
background: var(--header-bg);
border-bottom: 1px solid var(--line);
backdrop-filter: blur(12px) saturate(140%);
-webkit-backdrop-filter: blur(12px) saturate(140%);
}
.brand {
font-family: var(--serif);
font-size: 44px;
font-weight: 300;
letter-spacing: 0.02em;
color: var(--ink);
text-decoration: none;
line-height: 1;
}
@media (max-width: 720px) {
.brand { font-size: 32px; }
}
/* ── HAMBURGER (always visible, per standing rule) */
.hamburger {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 5px;
width: 44px;
height: 44px;
border: none;
border-radius: 50%;
background: rgba(0,0,0,0.08);
cursor: pointer;
padding: 0;
backdrop-filter: blur(8px);
}
[data-theme="dark"] .hamburger {
background: rgba(255,255,255,0.10);
}
.hamburger span {
display: block;
width: 20px;
height: 2px;
background: var(--ink);
border-radius: 2px;
transition: all 0.22s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* ── NAV PANEL */
.nav-panel {
position: fixed;
top: 73px; right: 0;
z-index: 199;
width: 260px;
background: var(--card-bg);
border-left: 1px solid var(--line);
border-bottom: 1px solid var(--line);
padding: 16px 0;
box-shadow: -4px 8px 32px rgba(0,0,0,0.12);
}
.nav-panel[hidden] { display: none; }
.nav-panel a {
display: block;
padding: 10px 28px;
font-size: 14px;
text-decoration: none;
color: var(--ink-soft);
letter-spacing: 0.06em;
text-transform: uppercase;
font-size: 12px;
}
.nav-panel a:hover, .nav-panel a.active { color: var(--ink); }
.nav-panel a.active { border-left: 2px solid var(--gold); }
/* Theme toggle in nav */
.theme-toggle {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 28px;
background: none;
border: none;
cursor: pointer;
color: var(--ink-faint);
font-family: var(--sans);
font-size: 12px;
letter-spacing: 0.06em;
text-transform: uppercase;
width: 100%;
}
.theme-toggle:hover { color: var(--ink); }
[data-theme="light"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
/* ── MAIN OFFSET for fixed header */
main { padding-top: 81px; } /* matches .site-header actual height (44px brand + 18+18 padding + 1px border). Was 73px which caused the admin-toolbar to overlap with the fixed header by ~8px — Steve 2026-05-30 'fix overlapping ui' screenshot. */
/* ── HERO */
.hero-section {
position: relative;
width: 100%;
height: var(--hero-h);
overflow: hidden;
background: var(--accent);
}
.hero-track {
position: absolute; inset: 0;
}
.hero-slide {
position: absolute; inset: 0;
background: no-repeat center / cover;
opacity: 0;
/* Stacked slides crossfade via opacity. Without this, every slide stays
click-receptive and the topmost (last in DOM = the 6th design) captures
ALL clicks regardless of which is visible — so the hero click never landed
on the displayed design. Only the visible (.active) slide is clickable. */
pointer-events: none;
transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
/* Slides are click-through links to their design's PDP */
.hero-slide { cursor: pointer; }
.hero-slide:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
/* Room slides — source PNG is 2048² (Lanczos-upscaled from upstream 1024²;
scripts/upscale-room-heroes.py). On a wide hero strip 'contain' leaves big
frame bars on either side and a tiny center image. Steve 2026-05-28 round
2: "where are the hero room images?" — they were boxed in the middle. Switch
to 'cover' with center-30%-from-top focus so the wall + furniture band fills
the strip (the upstream renderer centers the wallpaper wall at ~30-45% from
the top, ceiling above + floor below get cropped — which is what you want
on a wide hero anyway). The 2048² source carries the resolution; cover at
648px tall ≈ 1.4× downscale = crisp. */
.hero-slide.is-room {
background-size: cover;
background-position: center 35%;
}
.hero-controls {
position: absolute;
bottom: 20px; left: 50%;
transform: translateX(-50%);
display: flex; gap: 8px;
}
.hero-dot {
width: 8px; height: 8px;
border-radius: 50%;
background: rgba(255,255,255,0.4);
border: none; cursor: pointer; padding: 0;
transition: background 0.2s;
}
.hero-dot.active { background: #fff; }
/* ── WORDMARK BELOW HERO (Gucci anatomy) */
.hero-wordmark-below {
text-align: center;
padding: 40px 24px 24px;
border-bottom: 1px solid var(--line);
}
.wordmark {
font-family: var(--serif);
font-size: clamp(36px, 6vw, 80px);
font-weight: 600;
letter-spacing: 0.06em;
color: var(--ink);
margin: 0 0 12px;
}
.tagline {
font-family: var(--serif);
font-style: italic;
font-size: clamp(14px, 1.8vw, 20px);
color: var(--ink-soft);
margin: 0;
}
/* ── HERO QUICK-NAV (pinned Murals + Browse-all chips, Steve 2026-06-03) */
.hero-quicknav {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
margin: 22px 0 0;
}
.quicknav-chip {
font-family: var(--sans, system-ui);
font-size: 13px;
letter-spacing: 0.04em;
text-decoration: none;
color: var(--ink-soft);
border: 1px solid var(--line);
border-radius: 999px;
padding: 9px 20px;
transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.quicknav-chip:hover { color: var(--ink); border-color: var(--ink); }
.quicknav-chip-primary {
background: var(--ink, #0d0d0d);
color: var(--bg, #fff);
border-color: var(--ink, #0d0d0d);
font-weight: 500;
}
.quicknav-chip-primary:hover { color: var(--bg, #fff); opacity: 0.88; }
/* ── FEATURED MURALS RAIL (Steve 2026-06-03 — surface murals above the feed) */
.mural-feature {
background: linear-gradient(180deg, rgba(120, 92, 64, 0.06), transparent 70%);
border-bottom: 1px solid var(--line);
}
.mural-eyebrow {
display: block;
font-family: var(--sans, system-ui);
font-size: 11px;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--ink-faint, #999);
margin: 0 0 4px;
}
.mural-see-all { font-weight: 500; color: var(--ink); }
/* ── SECTION HEADERS */
.section-header {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 40px 40px 0;
flex-wrap: wrap;
gap: 8px;
}
.section-header h2 {
font-family: var(--serif);
font-size: 28px;
font-weight: 300;
letter-spacing: 0.03em;
margin: 0;
}
.see-all {
font-size: 13px;
color: var(--ink-soft);
text-decoration: none;
}
.see-all:hover { color: var(--ink); text-decoration: underline; }
/* ── DESIGN GRID */
.design-grid {
display: grid;
grid-template-columns: repeat(var(--cols, 6), 1fr);
gap: var(--grid-gap, 2px);
padding: 24px 12px 40px; /* tight side gutters — cards stretch wider */
}
.featured-grid { --cols: 4; }
.catalog-grid { --cols: 6; } /* default 6-up; density slider sets --cols 1–12 inline */
/* card-link inherits the link role; the .design-card wrapper is the grid item */
.card-link {
display: block;
text-decoration: none;
color: inherit;
outline: none;
}
/* Visible focus ring when navigating by keyboard. Uses :focus-visible so a
mouse click on a card doesn't paint a ring — only keyboard Tab does.
The ring sits on the wrapper so it surrounds the whole card (image + meta)
and contrasts against any pattern via the white inner shadow + accent outline. */
.design-card:focus-within {
outline: 3px solid var(--accent, #c9a14b);
outline-offset: 2px;
border-radius: 1px;
z-index: 3;
}
.design-card:hover:not(:focus-within) { outline: none; }
/* Mouse-click focus shouldn't paint the ring. :has(:focus-visible) scopes it
to true keyboard focus only (Safari ≥15.4, Chrome 105+, FF 121+; falls
back to :focus-within above for older browsers). */
@supports selector(:has(*)) {
.design-card:focus-within:not(:has(:focus-visible)) { outline: none; }
}
.design-card {
display: block;
text-decoration: none;
background: var(--card-bg);
overflow: hidden;
position: relative;
transition: transform 0.18s;
/* Skip rendering off-screen cards entirely until they scroll near viewport.
contain-intrinsic-size reserves space so the scroll position stays stable
(otherwise off-screen cards collapse to 0 and the page lurches). The
220px square is tuned for the default 6-col grid at ~1280px width;
browsers replace it with the real size once the card renders. */
content-visibility: auto;
contain-intrinsic-size: 220px 220px;
}
.design-card:hover { z-index: 2; transform: scale(1.02); }
.card-img {
aspect-ratio: 1;
background: var(--line) no-repeat center / cover;
position: relative;
overflow: hidden;
}
/* Hover-preview: residential mockup fades in over the pattern thumbnail. */
.card-room {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 360ms ease;
pointer-events: none;
will-change: opacity;
}
.design-card.has-room:hover .card-room,
.design-card.has-room:focus-visible .card-room { opacity: 1; }
/* Universal hover preview — for cards that DON'T have a room mockup file
(≈93% of catalog), show the same image tiled at 25% size on hover. This
reveals the seamless-repeat structure of the design — a "2nd image" that
exists FOR FREE on every card without an extra fetch. The room-mockup
path above takes precedence (.has-room cards win); this ::after layer
sits underneath and only fades in when neither room nor user motion-
preferences-reduced is active. */
.design-card:not(.has-room) .card-img::after {
content: "";
position: absolute;
inset: 0;
background-image: var(--card-bg, none);
background-repeat: repeat;
background-size: 33.33% 33.33%; /* 3×3 tile zoom-out → shows the repeat */
background-position: center;
opacity: 0;
transition: opacity 360ms ease;
pointer-events: none;
will-change: opacity;
}
.design-card:not(.has-room):hover .card-img::after,
.design-card:not(.has-room):focus-visible .card-img::after { opacity: 1; }
.card-room-badge {
position: absolute;
top: 8px; left: 8px;
padding: 3px 7px;
font-size: 9px;
letter-spacing: 0.10em;
background: rgba(15, 14, 12, 0.75);
color: #f0ead7;
border-radius: 2px;
pointer-events: none;
z-index: 1;
opacity: 0.9;
transition: opacity 240ms ease;
text-transform: uppercase;
font-family: var(--sans);
}
.design-card.has-room:hover .card-room-badge,
.design-card.has-room:focus-visible .card-room-badge { opacity: 0; }
/* ── A11Y: prefers-reduced-motion sweep (WCAG 2.3.3, vestibular)
Shotgun-neutralizes every transition + keyframe animation across the site
for users who've set their OS to reduce motion (iOS Settings → Accessibility
→ Motion, macOS System Settings → Accessibility → Display → Reduce Motion,
GNOME, etc.). Long crossfades (hero rotation 1.2s, room overlay 360ms,
chat thinking-dot bounce) are the highest-impact triggers — this collapses
them to 1ms instantly. Per-component opt-OUT via `transition-duration:
inherit; @media (prefers-reduced-motion: no-preference) { ... }` if any
future motion is genuinely essential. */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
.card-room { transition: none; }
/* Skip-link slide-in too — it should pop into view, not glide. */
.skip-link { transition: none !important; }
}
/* Steve's rule (2026-05-13): resting card is pattern-only. Title / SKU /
color / tags surface as a smoke-gradient overlay on hover/focus, so
the grid reads as pure pattern until the visitor commits attention.
:focus-within preserves keyboard a11y. Review-card flyout (admin
review mode) opts out — see .review-card .card-meta below. */
.card-meta {
position: absolute; left: 0; right: 0; bottom: 0;
display: flex;
flex-direction: column;
align-items: stretch;
gap: 3px;
padding: 10px 12px 12px;
background: linear-gradient(to top, rgba(20,16,8,0.94) 0%, rgba(20,16,8,0.78) 55%, rgba(20,16,8,0) 100%);
color: #f4ecd9;
opacity: 0; pointer-events: none;
transform: translateY(6px);
transition: opacity .18s ease, transform .18s ease;
border-top: 0;
}
.design-card:hover .card-meta,
.design-card:focus-within .card-meta { opacity: 1; pointer-events: auto; transform: none; }
/* Review-card has its own flyout — don't double-overlay. */
.review-card .card-meta {
position: static;
opacity: 1; pointer-events: auto; transform: none;
background: transparent; color: var(--ink);
border-top: 1px solid var(--line);
padding: 8px 10px 10px;
}
.card-title {
font-family: var(--serif);
font-size: 13px;
color: #fff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.2;
}
.review-card .card-title { color: var(--ink); }
.card-sku {
font: 9px/1 ui-monospace, Menlo, monospace;
letter-spacing: 0.06em;
color: rgba(244,236,217,0.62);
text-transform: uppercase;
}
.review-card .card-sku { color: var(--ink-faint); }
.card-colorname {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 10px;
color: #e3d6b2;
text-transform: capitalize;
line-height: 1.2;
}
.review-card .card-colorname { color: var(--ink-soft, #555); }
.card-hex {
font: 9px/1 ui-monospace, Menlo, monospace;
color: rgba(244,236,217,0.62);
letter-spacing: 0.04em;
}
.review-card .card-hex { color: var(--ink-faint); }
.card-tags {
display: inline-flex;
align-items: center;
gap: 5px;
flex-wrap: wrap;
margin-top: 2px;
}
.card-ai-badge {
display: inline-block;
font: 600 8.5px/1 var(--sans, system-ui);
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--accent, #0d0d0d);
background: var(--gold, #c9a14b);
padding: 3px 6px 2px;
border-radius: 3px;
}
.card-style {
font: 9px/1 var(--sans, system-ui);
letter-spacing: 0.07em;
text-transform: uppercase;
color: var(--ink-faint);
padding: 3px 6px 2px;
border: 1px solid var(--line);
border-radius: 3px;
}
.card-cat {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--ink-faint);
}
.color-dot {
width: 9px; height: 9px;
border-radius: 50%;
flex-shrink: 0;
border: 1px solid var(--line);
display: inline-block;
vertical-align: middle;
}
/* ── CTA BAND */
.cta-band {
text-align: center;
padding: 80px 40px;
background: var(--card-bg);
border-top: 1px solid var(--line);
}
.cta-band h2 {
font-family: var(--serif);
font-size: clamp(24px, 4vw, 42px);
font-weight: 300;
margin: 0 0 12px;
}
.cta-band p {
color: var(--ink-soft);
max-width: 540px;
margin: 0 auto 28px;
font-size: 16px;
}
/* ── BUTTONS */
.btn-primary {
display: inline-block;
padding: 14px 36px;
background: var(--ink);
color: var(--bg);
font-family: var(--sans);
font-size: 13px;
font-weight: 500;
letter-spacing: 0.08em;
text-transform: uppercase;
text-decoration: none;
border: 2px solid var(--ink);
border-radius: 0;
cursor: pointer;
transition: background 0.18s, color 0.18s;
}
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-outline {
display: inline-block;
padding: 14px 36px;
background: transparent;
color: var(--ink);
font-family: var(--sans);
font-size: 13px;
font-weight: 500;
letter-spacing: 0.08em;
text-transform: uppercase;
text-decoration: none;
border: 2px solid var(--ink);
border-radius: 0;
margin-left: 12px;
cursor: pointer;
transition: background 0.18s, color 0.18s;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }
/* ── ADMIN BUTTON TIERS (2026-05-24 graphic-designer + ui-ux-designer agents)
Every admin button used to render as .btn-outline → no visual hierarchy
between Spoonflower (dry-run) and Settlement Violation (irreversible).
Three tiers: outline = safe/read-only, primary = productive/publish,
danger = irreversible destructive. */
.btn-admin-primary {
display:inline-block; padding:10px 22px;
background:#1f1808; color:#f4ece0;
font:600 12px var(--sans); letter-spacing:.08em; text-transform:uppercase;
text-decoration:none; border:2px solid #1f1808; border-radius:0;
cursor:pointer; transition:background .18s, color .18s;
}
.btn-admin-primary:hover { background:#3a2d10; border-color:#3a2d10; }
.btn-admin-danger {
display:inline-block; padding:10px 22px;
background:#b00020; color:#fff;
font:700 12px var(--sans); letter-spacing:.08em; text-transform:uppercase;
text-decoration:none; border:2px solid #b00020; border-radius:0;
cursor:pointer; transition:background .18s, border-color .18s;
}
.btn-admin-danger:hover { background:#7a0017; border-color:#7a0017; }
.btn-admin-danger::before { content:'⚠ '; font-weight:700; }
/* ── Admin accordion (2026-05-24 per ui-ux-designer + graphic-designer agents)
Collapses dense admin tool sections into named groups so triage scanning
doesn't require re-reading a 3,000px column. */
details.admin-accordion {
margin:14px 0; padding:0;
border:1px solid var(--line, #d8d0c0); border-radius:8px;
background:#fcfaf4; overflow:hidden;
}
details.admin-accordion > summary {
list-style:none; cursor:pointer; user-select:none;
padding:10px 16px;
font:600 11px var(--sans, system-ui); letter-spacing:.14em;
text-transform:uppercase; color:var(--ink, #1f1808);
display:flex; align-items:center; gap:10px;
border-bottom:1px solid transparent;
transition:background .15s, border-color .15s;
}
details.admin-accordion > summary::-webkit-details-marker { display:none; }
details.admin-accordion > summary::before {
content:'▸'; display:inline-block; transition:transform .15s;
color:var(--gold, #c9a14b); font-size:12px; line-height:1;
}
details.admin-accordion[open] > summary::before { transform:rotate(90deg); }
details.admin-accordion[open] > summary {
background:#f7f1e1; border-bottom-color:var(--line, #d8d0c0);
}
details.admin-accordion > summary:hover { background:#f7f1e1; }
details.admin-accordion .acc-body { padding:14px 16px; }
details.admin-accordion .acc-badge {
margin-left:auto; font:600 10px var(--sans, system-ui); letter-spacing:.08em;
color:var(--faint, #7a6e5a); background:#fff; padding:2px 7px;
border:1px solid var(--line, #d8d0c0); border-radius:10px;
}
/* ── CATALOG TOOLBAR */
.catalog-section { min-height: 60vh; }
.catalog-toolbar {
padding: 32px 40px 0;
border-bottom: 1px solid var(--line);
margin-bottom: 0;
}
.filter-form {}
.toolbar-row {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
padding-bottom: 16px;
}
.search-input {
flex: 1;
min-width: 160px;
padding: 9px 14px;
border: 1px solid var(--line);
background: var(--bg);
color: var(--ink);
font: 14px var(--sans);
border-radius: 2px;
}
.filter-select {
padding: 9px 14px;
border: 1px solid var(--line);
background: var(--bg);
color: var(--ink);
font: 14px var(--sans);
border-radius: 2px;
}
.sort-label, .density-label {
font-size: 12px;
color: var(--ink-faint);
text-transform: uppercase;
letter-spacing: 0.07em;
display: flex;
align-items: center;
gap: 8px;
}
.density-range { width: 90px; accent-color: var(--gold); }
.result-count {
font-size: 12px;
color: var(--ink-faint);
margin: 0 0 12px;
}
/* ── PAGER */
.pager {
display: flex;
justify-content: center;
gap: 6px;
padding: 32px;
}
.pager-link {
padding: 6px 12px;
border: 1px solid var(--line);
text-decoration: none;
color: var(--ink-soft);
font-size: 13px;
}
.pager-link.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* ── DETAIL PAGE */
.detail-main { min-height: 80vh; }
.detail-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0;
max-width: 1200px;
margin: 0 auto;
padding: 48px 40px;
gap: 48px;
}
@media (max-width: 768px) {
.detail-layout { grid-template-columns: 1fr; padding: 24px 20px; }
}
.detail-img-wrap {
position: sticky;
top: 88px;
}
.detail-img {
width: 100%;
border-radius: 2px;
background: var(--line);
}
/* Mural pan UI — only active when data-mural="1" on the wrap.
Zooms the image to 180% inside the container so dragging actually reveals
detail, with overflow:hidden + transform-based pan + HUD arrow buttons.
Non-mural designs use the default .detail-img-wrap layout above. */
.detail-img-wrap[data-mural="1"] {
overflow: hidden;
cursor: grab;
user-select: none;
-webkit-user-select: none;
touch-action: none;
aspect-ratio: 1;
}
.detail-img-wrap[data-mural="1"]:active { cursor: grabbing; }
.detail-img-wrap[data-mural="1"] .detail-img {
position: absolute;
width: 180%;
height: auto;
max-width: none;
left: 0; top: 0;
transform: translate(var(--pan-x, -22%), var(--pan-y, -22%));
transition: transform .12s ease-out;
pointer-events: none;
user-select: none;
-webkit-user-select: none;
}
.mural-pan-hud {
position: absolute;
inset: 8px;
pointer-events: none;
z-index: 2;
}
.mural-arrow {
position: absolute;
pointer-events: auto;
background: rgba(20,16,8,.62);
color: #fff;
border: 1px solid rgba(255,255,255,.18);
border-radius: 999px;
width: 38px; height: 38px;
font-size: 17px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
transition: background .12s ease, transform .12s ease;
}
.mural-arrow:hover { background: rgba(20,16,8,.85); }
.mural-arrow:active { transform: scale(.92); }
.mural-arrow.mp-up { top: 8px; left: 50%; transform: translateX(-50%); }
.mural-arrow.mp-down { bottom: 8px; left: 50%; transform: translateX(-50%); }
.mural-arrow.mp-left { left: 8px; top: 50%; transform: translateY(-50%); }
.mural-arrow.mp-right { right: 8px; top: 50%; transform: translateY(-50%); }
.mural-arrow.mp-reset { right: 8px; bottom: 8px; width: 30px; height: 30px; font-size: 14px; opacity:.7; }
.mural-arrow.mp-reset:hover { opacity: 1; }
.mural-arrow.mp-up:hover { transform: translateX(-50%) translateY(-2px); }
.mural-arrow.mp-down:hover { transform: translateX(-50%) translateY(2px); }
.mural-arrow.mp-left:hover { transform: translateY(-50%) translateX(-2px); }
.mural-arrow.mp-right:hover { transform: translateY(-50%) translateX(2px); }
.tiled-preview {
margin-top: 12px;
position: relative;
}
.tile-grid {
width: 100%;
aspect-ratio: 3/2;
background-image: var(--tile);
background-repeat: repeat;
background-size: 33.33% auto;
border: 1px solid var(--line);
border-radius: 2px;
}
.tile-label {
display: block;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--ink-faint);
margin-top: 4px;
text-align: center;
}
.detail-breadcrumb {
font-size: 12px;
color: var(--ink-faint);
text-transform: uppercase;
letter-spacing: 0.07em;
margin: 0 0 12px;
}
.detail-breadcrumb a { color: inherit; text-decoration: underline; }
.detail-title {
font-family: var(--serif);
font-size: clamp(28px, 3vw, 42px);
font-weight: 300;
letter-spacing: 0.03em;
margin: 0 0 16px;
color: var(--ink);
}
.provenance-badge {
font-size: 12px;
color: var(--ink-faint);
text-transform: uppercase;
letter-spacing: 0.07em;
margin-bottom: 20px;
}
.ai-badge {
display: inline-block;
padding: 3px 10px;
background: var(--ink);
color: var(--bg);
font-size: 10px;
letter-spacing: 0.12em;
margin-right: 8px;
border-radius: 2px;
}
.detail-palette {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
}
.swatch-main {
width: 36px; height: 36px;
border-radius: 50%;
border: 2px solid var(--line);
display: inline-block;
flex-shrink: 0;
}
.hex-label { font-size: 13px; color: var(--ink-soft); font-family: monospace; }
.detail-spec-panel {
border: 1px solid var(--line);
border-radius: 2px;
margin-bottom: 24px;
overflow: hidden;
}
.spec-row {
display: flex;
padding: 10px 16px;
border-bottom: 1px solid var(--line);
gap: 12px;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { flex: 0 0 110px; font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.07em; }
.spec-val { font-size: 13px; color: var(--ink); }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.cta-sample {}
.cta-share {
display: inline-flex;
align-items: center;
gap: 7px;
font-family: var(--sans);
cursor: pointer;
transition: background-color 160ms ease, color 160ms ease;
}
.cta-share .cta-share-icon {
font-size: 14px;
line-height: 1;
transform: translateY(-1px);
}
.cta-share:focus-visible {
outline: 2px solid var(--ink);
outline-offset: 2px;
}
.provenance-note {
font-size: 13px;
color: var(--ink-faint);
background: var(--card-bg);
border: 1px solid var(--line);
border-radius: 2px;
padding: 14px 16px;
margin-bottom: 24px;
line-height: 1.6;
}
.detail-nav {
display: flex;
justify-content: space-between;
padding-top: 24px;
border-top: 1px solid var(--line);
}
.detail-nav-link {
font-size: 13px;
color: var(--ink-soft);
text-decoration: none;
}
.detail-nav-link:hover { color: var(--ink); }
/* ── PROSE / ABOUT */
.prose-main { padding: 60px 40px 80px; max-width: 800px; margin: 0 auto; }
.prose h1 {
font-family: var(--serif);
font-size: 40px;
font-weight: 300;
margin: 0 0 32px;
}
.prose h2 {
font-family: var(--serif);
font-size: 24px;
font-weight: 400;
margin: 32px 0 12px;
}
.prose p { color: var(--ink-soft); margin: 0 0 16px; }
/* ── SAMPLE FORM */
.sample-form-wrap {
max-width: 560px;
margin: 0 auto;
padding: 60px 24px 80px;
}
.sample-form-wrap h1 {
font-family: var(--serif);
font-size: 36px;
font-weight: 300;
margin: 0 0 8px;
}
.sample-preview {
display: flex;
align-items: center;
gap: 16px;
padding: 16px;
background: var(--card-bg);
border: 1px solid var(--line);
border-radius: 4px;
margin: 20px 0;
}
.sample-form label {
display: block;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.07em;
color: var(--ink-faint);
margin-bottom: 16px;
}
.sample-form input[type="text"],
.sample-form input[type="email"],
.sample-form input[type="tel"],
.sample-form select,
.sample-form textarea {
display: block;
width: 100%;
margin-top: 4px;
padding: 10px 14px;
border: 1px solid var(--line);
background: var(--bg);
color: var(--ink);
font: 14px var(--sans);
border-radius: 2px;
}
.sample-form textarea { resize: vertical; min-height: 80px; }
/* ── FEATURED SECTION */
.featured-section { margin-bottom: 0; }
/* ── FOOTER */
.site-footer {
padding: 48px 40px;
border-top: 1px solid var(--line);
background: var(--card-bg);
text-align: center;
}
.site-footer p {
font-size: 13px;
color: var(--ink-faint);
margin: 0 0 6px;
}
.site-footer a { color: var(--ink-soft); }
.site-footer .footer-address {
font-size: 13px;
font-style: normal;
color: var(--ink-faint);
margin: 0 0 6px;
letter-spacing: 0.02em;
}
.site-footer .footer-contact span { padding: 0 8px; color: var(--ink-faint); opacity: .55; }
.site-footer .footer-legal {
margin-top: 14px;
padding-top: 14px;
border-top: 1px solid var(--line);
font-size: 11px;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--ink-faint);
display: inline-block;
}
/* ── EMPTY STATE */
.empty-state { padding: 60px; text-align: center; color: var(--ink-faint); }
/* ── RESPONSIVE */
@media (max-width: 900px) {
.design-grid { --cols: 3; }
.featured-grid { --cols: 3; }
.section-header, .catalog-toolbar { padding-left: 20px; padding-right: 20px; }
.design-grid { padding: 16px 20px 32px; }
}
@media (max-width: 600px) {
.site-header { padding: 16px 20px; }
.design-grid { --cols: 2; }
.featured-grid { --cols: 2; }
.cta-band { padding: 48px 20px; }
.hero-wordmark-below { padding: 28px 20px 18px; }
.btn-outline { margin-left: 0; margin-top: 8px; }
/* Toolbar chip-rows scroll horizontally on phones instead of wrapping to
5+ lines. Cuts the toolbar height from ~420px to ~180px on iPhone SE,
so the grid actually surfaces above the fold. The leading label
(HUE / MOTIF / PREVIEW) stays pinned via sticky positioning. */
.hue-swatches,
.motif-chips {
flex-wrap: nowrap;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
scroll-snap-type: x proximity;
padding-bottom: 4px; /* room for any iOS scrollbar */
/* Hide scrollbar visually on touch — the swipe gesture is the affordance. */
scrollbar-width: none;
}
.hue-swatches::-webkit-scrollbar,
.motif-chips::-webkit-scrollbar { display: none; }
.hue-swatches > *,
.motif-chips > * { flex-shrink: 0; scroll-snap-align: start; }
/* Soft fade on the right edge to hint at scrollable content. */
.hue-swatches,
.motif-chips {
mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
}
}