/* Tulipacs showcase site. Layout: quiet gallery. Large light type, wide whitespace, products as cut-out wood pieces floating over soft tinted panels at different scroll speeds */
:root {
  --bg: #f8f7f4;
  --fg: #151413;
  --muted: #6d6a64;
  --line: #e4e0d8;
  --accent: #c4281c;          /* from RED_DARK, lifted */
  --indigo: #1d2b5e;          /* INDIGO */
  --t-pine: #e5ebe4;          /* panel tints */
  --t-ink: #e5e8f1;
  --t-sand: #f0eadf;
  --t-rose: #f3e5e1;
  --btn-bg: #151413; --btn-fg: #f8f7f4;
  --shadow: 0 18px 30px -14px rgba(40, 28, 10, .35);

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --wrap: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1012; --fg: #f1eee8; --muted: #9b978f; --line: #25262a; --accent: #ff6f57;
    --t-pine: #151c17; --t-ink: #151a29; --t-sand: #1c1915; --t-rose: #1f1615;
    --btn-bg: #f1eee8; --btn-fg: #0f1012; --shadow: 0 22px 36px -14px rgba(0,0,0,.7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1012; --fg: #f1eee8; --muted: #9b978f; --line: #25262a; --accent: #ff6f57;
  --t-pine: #151c17; --t-ink: #151a29; --t-sand: #1c1915; --t-rose: #1f1615;
  --btn-bg: #f1eee8; --btn-fg: #0f1012; --shadow: 0 22px 36px -14px rgba(0,0,0,.7); color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 1.02rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 300; margin: 0; text-wrap: balance; letter-spacing: -.025em; line-height: 1.02; }
p { margin: 0; }
.label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; letter-spacing: .1em; }
.top nav:not(.lang) { display: flex; gap: 26px; margin-left: auto; font-size: .92rem; }
.top nav:not(.lang) a { text-decoration: none; color: var(--muted); transition: color .15s; }
.top nav:not(.lang) a:hover { color: var(--fg); }
.lang { font-family: var(--f-mono); font-size: .74rem; display: flex; gap: 2px; }
.lang a { padding: 4px 7px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--fg); }
.lang a[aria-current="page"] { color: var(--fg); background: var(--line); }
@media (max-width: 760px) { .top nav:not(.lang) { display: none; } .lang { margin-left: auto; } }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 40ch; margin-top: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-size: .94rem; font-weight: 500; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: var(--btn-bg); color: var(--btn-fg); }
.btn.line { border: 1px solid var(--line); }
.btn.line:hover { border-color: var(--fg); }
.art { position: relative; aspect-ratio: 1 / 1; max-width: 100%; }
.art::before { content: ""; position: absolute; inset: 12% 8% 6% 10%; border-radius: 50%; background: var(--t-rose); }
.float { position: absolute; will-change: transform; transform: translate3d(0, var(--ty, 0px), 0) rotate(var(--r, 0deg)); filter: drop-shadow(var(--shadow)); }
.float img { width: 100%; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .art { aspect-ratio: 5 / 4; } }

/* facts strip */
.facts { border-block: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts div { padding-block: 22px; display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; letter-spacing: -.02em; }
.facts span { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .facts .wrap { grid-template-columns: minmax(0, 1fr); } .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* collection */
section { padding-block: clamp(64px, 9vw, 128px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.sec-head p { max-width: 42ch; color: var(--muted); }

.feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 140px); }
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.feature.flip .panel { order: 2; }
.panel { position: relative; aspect-ratio: 16 / 11; border-radius: 28px; max-width: 100%; }
.panel.pine { background: var(--t-pine); }
.panel.ink { background: var(--t-ink); }
.panel.sand { background: var(--t-sand); }
.panel.rose { background: var(--t-rose); }
.info { display: grid; gap: 14px; min-width: 0; }
.info h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.info p { color: var(--muted); max-width: 40ch; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 6px 0 0; font-size: .92rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.links a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 500; transition: border-color .15s, background .15s; }
.links a:first-child { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.links a:hover { border-color: var(--fg); }
.links a::after { content: "↗"; font-size: .85em; opacity: .7; }
.pill { justify-self: start; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.new { color: var(--accent); border-color: currentColor; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .panel { order: 0; }
}

.duo, .trio { display: grid; gap: clamp(20px, 3vw, 32px); }
.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: grid; gap: 14px; align-content: start; min-width: 0; }
.tile .panel { aspect-ratio: 4 / 3.4; }
.tile h3 { font-size: 1.7rem; margin-top: 6px; }
.tile p { color: var(--muted); font-size: .94rem; }
.sub { margin-top: clamp(80px, 11vw, 150px); }
.sub .label { margin-bottom: 22px; display: block; }
@media (max-width: 900px) { .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .duo, .trio { grid-template-columns: minmax(0, 1fr); } }

/* name story */
.story { background: var(--indigo); color: #f4efe6; border-radius: 32px; margin-inline: max(12px, env(safe-area-inset-left, 0px)); }
.story .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story svg.m { width: min(100%, 340px); justify-self: center; }
.story .label { color: #f4b74d; }
.story h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-top: 14px; }
.story h2 em { color: #ff8a73; }
.story p { color: rgba(244, 239, 230, .78); max-width: 52ch; margin-top: 18px; }
@media (max-width: 800px) { .story .wrap { grid-template-columns: minmax(0, 1fr); } .story svg.m { width: 200px; } }

/* where to buy */
.shops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.shop { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 34px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-width: 0; }
.shop + .shop { padding-left: 32px; border-left: 1px solid var(--line); }
.shop h3 { font-size: clamp(2rem, 4vw, 3rem); transition: color .15s; }
.shop p { color: var(--muted); font-size: .94rem; margin-top: 4px; }
.shop .arr { font-size: 1.8rem; transition: transform .2s; }
.shop:hover h3 { color: var(--accent); }
.shop:hover .arr { transform: translate(4px, -4px); }
.note { color: var(--muted); font-size: .94rem; margin-top: 22px; }
@media (max-width: 700px) { .shops { grid-template-columns: minmax(0, 1fr); } .shop + .shop { padding-left: 0; border-left: 0; } }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-block: 36px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .float { transform: rotate(var(--r, 0deg)) !important; } * { transition: none !important; } }

.banner { position: absolute; left: 5%; bottom: -26px; z-index: 3; max-width: 90%; margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.1; padding: 14px 22px 15px;
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 34px -18px rgba(20, 14, 6, .45);
  transform: translate3d(0, var(--ty, 0px), 0); will-change: transform; }
.feature .banner { font-size: clamp(1.6rem, 3vw, 2.5rem); padding: 16px 26px 18px; }
.feature.flip .banner { left: auto; right: 5%; }
.panel { margin-bottom: 26px; }
@media (max-width: 860px) { .feature.flip .banner { right: auto; left: 5%; } }
@media (prefers-reduced-motion: reduce) { .banner { transform: none !important; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* render -> photo: hexagon transition (canvas drawn by the page script) */
.hexfx { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; z-index: 2; pointer-events: none; }
.panel[data-photo] .float { opacity: calc(1 - var(--p, 0) * 1.3); }
.phototag { position: absolute; top: 14px; right: 14px; z-index: 3; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px; color: var(--fg);
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); }

/* gallery: products with photos open full screen on click */
.panel[data-gallery] { cursor: zoom-in; }
.panel[data-gallery]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.panel[data-gallery] .phototag::after { content: " ⤢"; }
.lightbox { padding: 0; border: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0;
  background: rgba(12, 11, 10, .94); color: #f1eee8; }
.lightbox::backdrop { background: rgba(12, 11, 10, .94); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 56px 16px 20px; box-sizing: border-box; }
.lightbox img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 10px; }
.lightbox figcaption { font-family: var(--f-display); font-size: 1.1rem; }
.lightbox .lb-count { font-family: var(--f-mono); font-size: .75rem; color: #b5b0a7; margin-left: 8px; }
.lb-btn { position: absolute; border: 0; cursor: pointer; color: #f1eee8; background: rgba(255, 255, 255, .1);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, .22); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 620px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lightbox figure { padding-bottom: 76px; } }
