@font-face { font-family: "Bricolage Grotesque"; src: url(bricolage-latin.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
:root {
  --ground: #121a15;
  --surface: #1f2b23;
  --raised: #2d3d32;
  --ink: #f5f1ea;
  --soft: #bdc8bd;
  --accent: #efb4a2;
  --on-accent: #2a120c;
  --whatsapp: #25d366;
  --margin: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
body { background: var(--ground); color: var(--ink); font: 400 17px/1.55 "Bricolage Grotesque", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
section[id] { scroll-margin-top: 72px; }

.wrap { width: min(1160px, calc(100% - 2 * var(--margin))); margin-inline: auto; }
h1, h2, h3, .big { font-weight: 600; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 32px; }
h3 { font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.2; letter-spacing: -.015em; margin-top: 14px; overflow-wrap: anywhere; }
p + p { margin-top: 12px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 28px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s;
}
.button:hover { transform: scale(1.03); }
.button:active { transform: scale(.97); }
.button.line, .button.plain { background: rgb(255 255 255 / .12); color: var(--ink); }
.button.line:hover, .button.plain:hover { background: rgb(255 255 255 / .2); }
.button.small { min-height: 44px; padding: 8px 20px; font-size: .95rem; }
.button.whatsapp { background: var(--whatsapp); color: #06240f; }
.button:disabled { opacity: .6; cursor: wait; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

.nav {
  position: fixed; z-index: 20; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1160px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 999px; background: rgb(18 26 21 / .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav a { text-decoration: none; }
.wordmark { font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.nav nav { display: flex; gap: 28px; margin-left: auto; margin-right: 16px; color: var(--soft); }

.hero { position: relative; min-height: 640px; min-height: max(640px, 100svh); display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.hero-image { position: absolute; z-index: -1; top: 0; right: 0; width: 50%; height: 100%; object-position: center 40%; animation: settle 2.4s var(--ease) both; }
.hero-copy > * { max-width: min(30rem, 46%); animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .24s; }
h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); }
.lead { margin-block: 24px 32px; font-size: 1.25rem; color: var(--soft); }
@keyframes settle { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.section { padding-block: clamp(80px, 12vh, 136px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
#filters { margin-bottom: 32px; }
#filters button { min-height: 44px; padding: 8px 20px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; }
#filters button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.products { display: grid; gap: 48px 20px; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.products li { display: flex; flex-direction: column; }
.frame { aspect-ratio: 4 / 5; background: var(--surface); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; color: var(--soft); }
.zoom { width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.zoom img { height: 100%; transition: transform .7s var(--ease); }
.zoom:focus-visible { outline-offset: -4px; }
.products li:hover .zoom img { transform: scale(1.05); }
.products p { color: var(--soft); overflow-wrap: anywhere; margin-top: 4px; }
.products .price { color: var(--accent); font-weight: 600; }
.ask { align-self: flex-start; margin-top: auto; min-height: 44px; padding: 8px 22px; border: 0; border-radius: 999px; background: var(--raised); color: var(--ink); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.products li > :nth-last-child(2) { margin-bottom: 14px; }
.ask:hover { background: var(--accent); color: var(--on-accent); }
.ask:active { transform: scale(.96); }
.empty { background: var(--surface); border-radius: var(--radius); padding: clamp(32px, 7vw, 72px); display: grid; gap: 28px; justify-items: start; font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
.empty p { max-width: 30ch; }

.order { display: grid; gap: 40px 72px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.order img { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.order p { color: var(--soft); font-size: 1.15rem; max-width: 40ch; }
.order .button { margin-top: 32px; }

.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.wait:not(.in) { opacity: 0; transform: translateY(28px); }

footer { padding-block: 72px 48px; }
.big { font-size: clamp(2.4rem, 10vw, 8rem); margin-bottom: 32px; }
footer a { text-underline-offset: 4px; }
.dock.button { display: none; }

/* Photo viewer and request sheet */
dialog { margin: auto; padding: 20px; border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); width: min(640px, calc(100% - 24px)); max-height: calc(100% - 24px); overscroll-behavior: contain; }
dialog::backdrop { background: rgb(0 0 0 / .78); }
dialog[open] { animation: rise .45s var(--ease) both; }
#viewer { text-align: center; }
#viewer img { max-height: 64vh; max-height: 64svh; object-fit: contain; }
#viewer p { margin-block: 12px; font-weight: 600; }
#viewer .row { justify-content: center; }
.sheet { width: min(500px, calc(100% - 24px)); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.sheet h2 { font-size: 1.8rem; margin: 0; }
.close { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--raised); color: var(--ink); font-size: 1rem; cursor: pointer; }
.picked { display: flex; align-items: center; gap: 14px; padding: 10px; margin-bottom: 20px; border-radius: 16px; background: var(--ground); font-weight: 600; }
.picked img { width: 64px; height: 64px; flex: none; border-radius: 10px; }
.sheet .button { width: 100%; }
fieldset { border: 0; }
legend { font-weight: 600; margin-bottom: 8px; }
.chips label { display: block; position: relative; font-weight: 400; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label span { display: flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--raised); }
.chips input:checked + span { background: var(--ink); color: var(--ground); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hint { font-size: .9rem; color: var(--soft); }
.hint:empty { display: none; }
.bubble { display: block; justify-self: end; max-width: 92%; padding: 14px 16px; border-radius: 16px 16px 4px 16px; background: #d9fdd3; color: #10231a; font-size: .95rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Edit page and legal page */
.narrow { max-width: 620px; margin-inline: auto; padding: 32px 20px 96px; }
.narrow h1 { font-size: 2.4rem; margin-bottom: 24px; }
.narrow h2 { font-size: 1.8rem; margin-block: 48px 16px; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; }
label.check { display: flex; align-items: center; gap: 12px; }
input, textarea, select { font: inherit; color: var(--ink); background: var(--ground); border: 2px solid #46584a; border-radius: 12px; padding: 12px; width: 100%; min-width: 0; }
input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--accent); }
#editor-list { list-style: none; display: grid; gap: 12px; }
#editor-list button { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; width: 100%; padding: 12px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
#editor-list .thumb { width: 72px; height: 72px; border-radius: 10px; background: var(--raised); }
#message { font-weight: 600; min-height: 1.6em; margin-block: 16px; color: var(--accent); }
#preview { max-width: 240px; aspect-ratio: 4 / 5; border-radius: var(--radius); }

@media (max-width: 760px) {
  .nav nav { display: none; }
  .hero { align-items: flex-end; }
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  /* photo on top, text below it, so the piece is never covered */
  .hero-image { position: static; width: 100%; height: 64vh; height: 64svh; min-height: 320px; flex: none; object-position: center; }
  .hero-copy { padding-block: 20px 28px; }
  .hero-copy > * { max-width: none; }
  .hero-copy .row { flex-wrap: nowrap; gap: 8px; }
  .hero-copy .button { flex: 1 1 auto; padding-inline: 12px; font-size: .95rem; }
  h1 { font-size: clamp(1.8rem, 8.4vw, 3rem); }
  .lead { margin-block: 10px 18px; font-size: 1.02rem; }
  .products { grid-template-columns: 1fr 1fr; gap: 36px 12px; }
  .products p { font-size: .92rem; }
  .ask { align-self: stretch; }
  .order img { aspect-ratio: 4 / 3; }
  footer { padding-bottom: 120px; }
  .past-hero .nav .button { visibility: hidden; }
  .dock.button { display: flex; position: fixed; z-index: 30; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateY(160%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
  .past-hero .dock.button { transform: none; visibility: visible; }
  .sheet { width: 100%; max-width: 100%; margin-bottom: 0; max-height: 94%; border-radius: 24px 24px 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.wait:not(.in) { opacity: 1; transform: none; }
}
