/* Edgelle — site vitrine. Same paper-cut look as the trailer: kraft board,
   torn paper strips in Kalam, photo prints held by tape, stationery palette. */

@font-face { font-family: "Kalam"; src: url(fonts/kalam-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kalam"; src: url(fonts/kalam-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --citron: #f3de6e;
  --abricot: #f6b07a;
  --sauge: #bfd9a8;
  --glacier: #b9dceb;
  --pivoine: #f2b3c6;
  --kraft: #d8c2a0;
  --ink: #2b2a28;
  --ink-soft: #4a3f33;
  --paper: #fbf8f0;
  --brass: #b89b6a;
  --board: #c49f72;
  --shadow: 5px 9px 0 rgb(60 35 12 / 0.28);
  --shadow-sm: 3px 6px 0 rgb(60 35 12 / 0.28);
  --hand: "Kalam", "Segoe Print", cursive;
  --sans: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --wrap: min(1180px, 100% - 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font: 400 18px/1.6 var(--sans);
  color: var(--ink);
  background-color: var(--board);
  background-image:
    radial-gradient(120% 80% at 30% 0%, rgb(255 236 200 / 0.28), rgb(255 236 200 / 0) 60%),
    url("img/kraft.webp");
  background-size: auto, 512px 512px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #2f6feb; outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- paper strip */
.strip {
  position: relative;
  display: inline-block;
  padding: 0.14em 0.55em 0.24em;
  font: 700 1em/1.12 var(--hand);
  color: var(--ink);
  background: var(--c, var(--citron));
  box-shadow: var(--shadow-sm);
  clip-path: polygon(0 5%, 3% 0, 6% 6%, 10% 1%, 14% 7%, 20% 0, 30% 5%, 40% 0, 55% 4%, 70% 0, 82% 6%, 90% 1%, 96% 5%, 100% 0, 99% 30%, 100% 55%, 98% 80%, 100% 100%, 94% 95%, 86% 100%, 74% 94%, 60% 100%, 45% 95%, 30% 100%, 18% 94%, 8% 100%, 0 95%, 2% 70%, 0 40%);
  rotate: var(--r, -2deg);
}
.strip::before { content: ""; position: absolute; inset: 0; background: url("img/grain.png"); background-size: 128px; opacity: 0.12; mix-blend-mode: multiply; pointer-events: none; }
.strip.thin { font-weight: 400; }
.c-citron { --c: var(--citron); } .c-abricot { --c: var(--abricot); } .c-sauge { --c: var(--sauge); }
.c-glacier { --c: var(--glacier); } .c-pivoine { --c: var(--pivoine); } .c-kraft { --c: var(--kraft); }

/* ---------------------------------------------------------------- print & tape */
.print {
  position: relative;
  padding: 12px;
  background: #f7f2e8;
  box-shadow: 0 2px 2px rgb(50 30 10 / 0.3), var(--shadow);
  rotate: var(--r, -1deg);
}
.print img, .print video { width: 100%; height: auto; background: #d9ccb6; }
.print figcaption { margin: 10px 4px 0; font: 400 20px/1.2 var(--hand); color: var(--ink-soft); text-align: center; }
.tape {
  position: absolute; width: 120px; height: 34px; background: rgb(250 246 236 / 0.72); box-shadow: 0 1px 2px rgb(60 35 12 / 0.15); z-index: 2;
  clip-path: polygon(0 10%, 5% 0, 10% 8%, 15% 0, 85% 2%, 90% 10%, 95% 0, 100% 8%, 98% 50%, 100% 92%, 95% 100%, 90% 90%, 85% 100%, 15% 98%, 10% 90%, 5% 100%, 0 92%, 2% 50%);
}
.tape.tl { left: -38px; top: -10px; rotate: -32deg; }
.tape.br { right: -34px; bottom: -8px; rotate: -28deg; }
.tape.tr { right: -36px; top: -8px; rotate: 30deg; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 20; background: rgb(196 159 114 / 0.9); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgb(60 35 12 / 0.15); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 30px/1 var(--hand); }
.brand .logo { width: 42px; height: 42px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 16px; }
.nav a { text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; transition: transform 0.15s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 52px; width: auto; }
.top .store-badge img { height: 40px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 28px; font-size: clamp(38px, 5vw, 64px); display: grid; gap: 14px; justify-items: start; }
.hero h1 .strip:nth-child(2) { margin-left: 1.2em; --r: 1.5deg; }
.hero .lead { max-width: 30em; margin: 0 0 28px; font-size: 20px; color: var(--ink-soft); }
.hero .lead b { color: var(--ink); }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero .meta { font: 400 18px var(--hand); color: var(--ink-soft); }
.hero-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; font: 700 54px/1 var(--hand); }
.hero-logo .logo { width: 96px; height: 96px; filter: drop-shadow(3px 6px 0 rgb(60 35 12 / 0.28)); }
.video-print { --r: 1.2deg; }
.video-print .play {
  position: absolute; inset: 12px 12px 42px; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: rgb(43 42 40 / 0.08); transition: background 0.2s;
}
.video-print .play:hover { background: rgb(43 42 40 / 0.02); }
.video-print .play span {
  display: flex; align-items: center; gap: 12px; padding: 14px 26px 16px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 700 22px/1 var(--hand); box-shadow: var(--shadow-sm);
}
.video-print .play svg { width: 26px; height: 26px; }
.video-print.playing .play { display: none; }
@media (max-width: 600px) { .video-print .play span { font-size: 18px; padding: 10px 18px 12px 14px; } .video-print .play svg { width: 20px; height: 20px; } }
.cast { position: relative; display: flex; align-items: flex-end; gap: 0; }
.cast img { width: 120px; height: auto; }
.bubble {
  position: absolute; left: 30px; bottom: calc(100% - 8px); padding: 8px 18px 11px; border-radius: 20px; background: var(--paper);
  font: 700 22px/1.1 var(--hand); white-space: nowrap; box-shadow: var(--shadow-sm); rotate: -2deg;
}
.bubble::after { content: ""; position: absolute; left: 30px; bottom: -15px; border: 9px solid transparent; border-top: 14px solid var(--paper); }
.hero-cast { position: absolute; left: -12px; bottom: -34px; }
.hero-right { position: relative; }

/* ---------------------------------------------------------------- sections */
section { padding: 70px 0; }
.sec-title { margin: 0 0 16px; font-size: clamp(32px, 4vw, 50px); }
.sec-lead { max-width: 40em; margin: 18px 0 44px; font-size: 20px; color: var(--ink-soft); }
.feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; margin: 0 0 90px; }
.feature:nth-of-type(even) { grid-template-columns: 1.2fr 0.8fr; }
.feature:nth-of-type(even) .text { order: 2; }
.feature h3 { margin: 0 0 18px; font-size: clamp(28px, 3vw, 38px); }
.feature p { margin: 0 0 14px; font-size: 19px; color: var(--ink-soft); }
.feature .keys { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font: 700 20px var(--hand); }
kbd { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 8px; background: var(--paper);
  box-shadow: inset 0 -4px 0 #d8cfbe, 0 3px 6px rgb(40 30 10 / 0.3); font: 600 16px var(--sans); color: var(--ink); }
.step { display: inline-block; margin-bottom: 14px; font: 700 20px var(--hand); color: var(--ink-soft); }

/* ---------------------------------------------------------------- reminders */
.sheet { position: relative; padding: 48px; background: var(--paper); box-shadow: 0 2px 2px rgb(50 30 10 / 0.3), var(--shadow); rotate: -0.6deg; }
.sheet::after { content: ""; position: absolute; inset: 0; background: url("img/grain.png"); background-size: 140px; opacity: 0.06; mix-blend-mode: multiply; pointer-events: none; }
.rem { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; }
.picker { padding: 18px; border-radius: 16px; background: #f8f5ee; box-shadow: 0 14px 34px rgb(40 30 10 / 0.22), 0 1px 3px rgb(40 30 10 / 0.14); font-family: "Segoe UI Variable Text", "Segoe UI", var(--sans); }
.picker h4 { margin: 2px 8px 12px; font-size: 18px; }
.picker .label { margin: 0 8px 8px; font-size: 14px; font-weight: 600; color: #57534b; }
.picker ul { list-style: none; margin: 0; padding: 5px; border-radius: 10px; background: #fffdf8; box-shadow: inset 0 0 0 1.5px #d8cfbe; }
.picker li { padding: 11px 14px; border-radius: 8px; font-size: 16px; cursor: default; transition: background 0.15s; }
.picker li.on { background: #efe5d2; font-weight: 600; box-shadow: inset 4px 0 0 #7d6641; }
.examples { display: grid; gap: 12px; padding-top: 62px; justify-items: start; }
.examples .strip { font-size: 22px; font-weight: 400; opacity: 0.35; transition: opacity 0.25s, transform 0.25s; }
.examples .strip.on { opacity: 1; transform: translateX(6px); }
.rem-foot { margin: 34px 0 0; font: 400 22px var(--hand); }

/* ---------------------------------------------------------------- and also (note) */
.note {
  position: relative; background: var(--citron); box-shadow: 0 1px 2px rgb(40 30 10 / 0.16), 0 12px 28px rgb(40 30 10 / 0.14), var(--shadow);
  border-radius: 4px; rotate: -1deg;
}
.note::before { content: ""; position: absolute; inset: 0; background: url("img/grain.png"); background-size: 128px; opacity: 0.06; mix-blend-mode: multiply; pointer-events: none; border-radius: inherit; }
.note .band { height: 30px; border-radius: 4px 4px 0 0; background: linear-gradient(to bottom, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0) 60%), color-mix(in srgb, var(--citron) 92%, #000); }
.note h3 { margin: 0; padding: 26px 36px 10px; font: 700 34px/1.2 "Segoe UI Variable Display", "Segoe UI", var(--sans); }
.checks { list-style: none; margin: 0; padding: 0 36px 34px; columns: 2; column-gap: 40px; font: 400 24px/1.3 var(--hand); }
.checks li { display: flex; gap: 14px; align-items: flex-start; break-inside: avoid; padding: 9px 0; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 4px; border-radius: 5px; box-shadow: inset 0 0 0 2.5px rgb(43 42 40 / 0.7);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M3.5 11.5 L8.5 16 L18 3.5' fill='none' stroke='%232b2a28' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px no-repeat; }

/* ---------------------------------------------------------------- privacy, gallery, final */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { padding: 28px 28px 30px; background: var(--c); box-shadow: var(--shadow); rotate: var(--r, -1deg); }
.card h3 { margin: 0 0 10px; font: 700 28px/1.15 var(--hand); }
.card p { margin: 0; color: var(--ink-soft); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.gallery button { all: unset; cursor: zoom-in; display: block; }
.gallery .print { padding: 8px; transition: transform 0.2s; }
.gallery button:hover .print, .gallery button:focus-visible .print { transform: translateY(-4px) rotate(0deg); }
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 30px; background: rgb(30 22 12 / 0.82); }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; width: auto; box-shadow: 0 20px 60px rgb(0 0 0 / 0.5); }
.lightbox button { position: absolute; top: 18px; right: 22px; border: 0; background: var(--paper); border-radius: 999px; padding: 8px 18px; font: 700 20px var(--hand); cursor: pointer; }
.final { padding: 90px 0 110px; }
.final .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.tag {
  position: relative; width: min(460px, 100%); padding: 36px 30px 36px 96px; background: #d9b98c; box-shadow: var(--shadow); rotate: -5deg;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 16% 100%, 0 70%, 0 30%);
}
.tag::before { content: ""; position: absolute; left: 30px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--board); box-shadow: inset 0 0 0 5px #efe2c8; }
.tag b { display: block; font: 700 52px/1 var(--hand); }
.tag span { font: 400 22px var(--hand); color: var(--ink-soft); }
.sig { display: flex; align-items: center; gap: 16px; margin: 38px 0 20px; font: 700 76px/1 var(--hand); }
.sig .logo { width: 110px; height: 110px; filter: drop-shadow(3px 6px 0 rgb(60 35 12 / 0.28)); }
.sig small { display: block; font: 400 26px/1.2 var(--hand); color: var(--ink-soft); }
footer { padding: 26px 0 40px; font-size: 15px; color: var(--ink-soft); border-top: 1px solid rgb(60 35 12 / 0.18); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }

/* ---------------------------------------------------------------- legal page */
.legal { padding: 60px 0 90px; }
.legal .sheet { max-width: 860px; margin: 0 auto; rotate: 0deg; }
.legal h1 { margin: 0 0 8px; font: 700 44px/1.1 var(--hand); }
.legal h2 { margin: 34px 0 8px; font: 700 28px/1.2 var(--hand); }
.legal p, .legal li { color: var(--ink-soft); }

/* ---------------------------------------------------------------- landing motion */
.land { opacity: 0; transform: translateY(18px) scale(1.04); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.land.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .land { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero .wrap, .feature, .feature:nth-of-type(even), .rem, .final .wrap { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .text { order: 0; }
  .trio { grid-template-columns: 1fr; }
  .checks { columns: 1; }
  .hero-cast { position: relative; left: 0; bottom: 0; margin-top: 40px; }
  .examples { padding-top: 0; }
  .sheet { padding: 28px 20px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .top .store-badge { display: none; }
  .hero { padding-top: 36px; }
  .sig { font-size: 56px; }
  .sig .logo { width: 80px; height: 80px; }
}
