/* Plumelys — vitrine (static). The app's design language: cream paper, ink brown, sage, gold, the night-blue
   library at dusk, Newsreader + Mulish, and the bookmark ribbons of the library lists (the one bold element). */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../fonts/mulish-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
    --paper: #FBF8F2;
    --surface: #FFFEFB;
    --ink: #2E2620;
    --ink-muted: #6B5F54;
    --line: #EBE3D6;
    --sage: #5A7864;
    --sage-deep: #48614F;
    --gold: #B8955E;
    --gold-text: #8A6A34;
    --night: #0E1522;
    --night-surface: #152031;
    --night-line: #25344B;
    --cream: #EEE8DC;
    --cream-muted: #B9B2A6;
    --sage-light: #8FC2AB;
    --gold-light: #C9A86E;
    --error: #F2A49B;
    /* the cloths of the library lists, as in the app */
    --cloth-green: #5A7864;
    --cloth-navy: #2E3F5C;
    --cloth-bordeaux: #6B2A2C;
    --cloth-ochre: #7A5A1E;
    --cloth-gold: #B8955E;

    --display: "Newsreader", Georgia, serif;
    --text: "Mulish", system-ui, sans-serif;
    --measure: 36rem;
    --page: min(72rem, 100% - 2 * var(--gutter));
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --radius: .5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: var(--page); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: .5rem 1rem; }

/* ── Header ── */
.site-head { position: sticky; top: 0; z-index: 20; background: rgb(251 248 242 / .92); -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgb(235 227 214 / .9); }
/* Anchors land under the sticky header, not behind it. */
html { scroll-padding-top: 5.5rem; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.wordmark { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.75rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.wordmark img { width: 2rem; height: 2rem; flex: none; }
.site-nav { display: flex; gap: 1.5rem; font-size: .95rem; font-weight: 600; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--sage-deep); text-decoration: underline; }
.site-nav .nav-short { display: none; }
@media (max-width: 40rem) { .site-nav .nav-app, .site-nav .nav-long { display: none; } .site-nav .nav-short { display: inline; } .site-nav { gap: 1.25rem; } }

/* ── Hero: the list ribbons hang from the top edge of the page ── */
.hero { position: relative; padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 52rem) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero__text { position: relative; z-index: 2; max-width: var(--measure); }
.hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 400; letter-spacing: -.025em; line-height: .98; }
.hero h1 em { font-style: italic; }
.hero__lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; color: var(--ink-muted); max-width: 32rem; }
.launch { margin-top: 2rem; font-family: var(--display); font-size: 1.35rem; }
.launch time { font-weight: 600; }
.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.store { display: inline-flex; align-items: center; gap: .7rem; min-height: 3.4rem; padding: .45rem 1.1rem .45rem .9rem; border-radius: .6rem; background: #000; color: #fff; text-decoration: none; }
.store svg { flex: none; width: 1.7rem; height: 1.7rem; fill: currentColor; }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: .7rem; font-weight: 600; opacity: .85; }
.store strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.store[aria-disabled="true"] { cursor: default; }
.hero__partners { margin-top: 1.75rem; font-size: .95rem; color: var(--ink-muted); }

.ribbons { position: absolute; inset: 0 0 auto auto; width: min(44%, 30rem); height: 100%; pointer-events: none; z-index: 1; }
.ribbon { position: absolute; top: -1px; width: clamp(2.2rem, 3.4vw, 3rem); height: var(--len); background: var(--cloth);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 1.6rem), 0 100%);
    filter: drop-shadow(0 6px 8px rgb(46 38 32 / .18)); }
.ribbon::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .18) 0 8%, transparent 8% 92%, rgb(0 0 0 / .18) 92%); }
.ribbon span { position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%); writing-mode: vertical-rl; font-family: var(--display); font-style: italic; font-size: 1.05rem; color: rgb(255 253 248 / .92); white-space: nowrap; }
.ribbon:nth-child(1) { right: 78%; --cloth: var(--cloth-green); --len: 15rem; }
.ribbon:nth-child(2) { right: 61%; --cloth: var(--cloth-navy); --len: 21rem; }
.ribbon:nth-child(3) { right: 44%; --cloth: var(--cloth-bordeaux); --len: 12.5rem; }
.ribbon:nth-child(4) { right: 27%; --cloth: var(--cloth-ochre); --len: 18rem; }
.ribbon:nth-child(5) { right: 10%; --cloth: var(--cloth-gold); --len: 9.5rem; }
@media (prefers-reduced-motion: no-preference) {
    .ribbon { animation: unfurl .9s cubic-bezier(.2, .7, .2, 1) both; transform-origin: top; }
    .ribbon:nth-child(2) { animation-delay: .08s; } .ribbon:nth-child(3) { animation-delay: .16s; }
    .ribbon:nth-child(4) { animation-delay: .24s; } .ribbon:nth-child(5) { animation-delay: .32s; }
    @keyframes unfurl { from { transform: scaleY(.15); } to { transform: none; } }
}
.hero__phone { position: relative; z-index: 2; justify-self: center; margin-top: clamp(4rem, 10vw, 8rem); }
@media (max-width: 52rem) {
    .ribbons { width: 62%; }
    .ribbon { --len: calc(var(--l, 1) * 4.2rem) !important; }
    .ribbon span { display: none; }
    .ribbon:nth-child(1) { --l: 1.2; } .ribbon:nth-child(2) { --l: 1.7; } .ribbon:nth-child(3) { --l: 1; } .ribbon:nth-child(4) { --l: 1.45; } .ribbon:nth-child(5) { --l: .8; }
    .hero h1 { margin-top: 6.5rem; }
    .hero__phone { margin-top: 1rem; }
}

/* ── Phone frame around the real app screenshots ── */
.phone { width: min(18.5rem, 78vw); padding: .55rem; border-radius: 2.6rem; background: #1F1A16; box-shadow: 0 1px 0 rgb(255 255 255 / .08) inset, 0 30px 60px -20px rgb(46 38 32 / .45), 0 12px 24px -12px rgb(46 38 32 / .3); }
.phone img { border-radius: 2.1rem; width: 100%; background: var(--paper); }
.phone--sm { width: min(15.5rem, 70vw); }

/* ── Sections ── */
.section { padding-block: clamp(4rem, 10vw, 7rem); }
.section__head { max-width: 40rem; }
.section h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 400; letter-spacing: -.02em; }
.section__lead { margin-top: 1rem; font-size: 1.15rem; color: var(--ink-muted); max-width: var(--measure); }

.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 3.5rem; align-items: start; }
@media (max-width: 52rem) { .screens { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.screen { display: grid; gap: 1.5rem; justify-items: center; }
.screen:nth-child(2) { margin-top: 3rem; } @media (max-width: 52rem) { .screen:nth-child(2) { margin-top: 0; } }
.screen figcaption { max-width: 19rem; }
.screen h3, .duo h3 { font-size: 1.55rem; }
.screen p, .duo p { margin-top: .5rem; color: var(--ink-muted); }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); margin-top: clamp(4rem, 9vw, 6rem); align-items: center; }
@media (max-width: 52rem) { .duo { grid-template-columns: minmax(0, 1fr); } }
.duo__item { display: grid; gap: 1.5rem; }
.duo__text { max-width: 26rem; } .duo__text h3 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.duo__item--card img { padding: 1.25rem; background: var(--surface); border-radius: 1rem; border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgb(46 38 32 / .35); }

/* ── Partners: the night-blue library at dusk ── */
.partners { background: var(--night); color: var(--cream); }
.partners a { color: var(--sage-light); }
.partners a:hover { color: var(--cream); }
.partners .section__lead { color: var(--cream-muted); }
.partners__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); margin-top: 3.5rem; align-items: start; }
@media (max-width: 52rem) { .partners__grid { grid-template-columns: minmax(0, 1fr); } }
.partners figure { margin: 0; }
.partners figure img { border-radius: 1rem; box-shadow: 0 30px 60px -25px rgb(0 0 0 / .7); }
.partners figcaption { margin-top: 1rem; font-size: .95rem; color: var(--cream-muted); max-width: 30rem; }
.partners h3 { font-size: 1.6rem; color: var(--cream); }
.moments { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1.1rem; }
.moments li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: 1rem; }
.moments li::before { content: ""; width: 1rem; height: 1.5rem; margin-top: .2rem; background: var(--cloth, var(--gold-light)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); }
.moments strong { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 500; color: var(--cream); }
.moments span { color: var(--cream-muted); }
.moments .m-wish { --cloth: #9C4A4C; } .moments .m-scan { --cloth: var(--sage-light); } .moments .m-new { --cloth: #6F86AE; }
.moments .m-pick { --cloth: var(--gold-light); } .moments .m-order { --cloth: #A8823E; }

.pledges { margin-top: clamp(3.5rem, 8vw, 5rem); padding-top: 2.5rem; border-top: 1px solid var(--night-line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 5rem); }
@media (max-width: 52rem) { .pledges { grid-template-columns: minmax(0, 1fr); } }
.pledges ul { margin: 1rem 0 0; padding-left: 1.1rem; display: grid; gap: .6rem; color: var(--cream-muted); }
.pledges li::marker { color: var(--gold-light); }
.pledges li strong { color: var(--cream); font-weight: 700; }

.calendar { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1.25rem; position: relative; }
.calendar li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.calendar time { white-space: nowrap; font-family: var(--display); font-size: 1.3rem; color: var(--gold-light); }
.calendar span { color: var(--cream-muted); }
@media (max-width: 30rem) { .calendar li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* « Travaillons ensemble »: the intro on the night, the form as a cream correspondence card with its bookmark. */
.contact { margin-top: clamp(3.5rem, 8vw, 5rem); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 52rem) { .contact { grid-template-columns: minmax(0, 1fr); } }
.contact h3 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.contact__intro > p { margin-top: .9rem; color: var(--cream-muted); max-width: 30rem; }
.contact__who { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .7rem; }
.contact__who li { display: flex; align-items: center; gap: .75rem; font-family: var(--display); font-size: 1.2rem; color: var(--cream); }
.contact__who li::before { content: ""; flex: none; width: .7rem; height: 1.05rem; background: var(--gold-light); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); }
.contact .contact__direct { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--night-line); font-size: .95rem; line-height: 1.7; }
.contact__direct a { font-weight: 700; }

.letter { position: relative; display: grid; gap: 1.6rem; padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.25rem, 3.5vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
    border: 1px solid var(--night-line); border-radius: .75rem; background: linear-gradient(180deg, rgb(255 255 255 / .035), rgb(255 255 255 / .01)); color: var(--cream); }
.letter__ribbon { position: absolute; top: -1px; right: clamp(1.25rem, 3.5vw, 2.5rem); width: 1.35rem; height: 3.6rem; background: var(--cloth-bordeaux);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - .85rem), 0 100%); filter: drop-shadow(0 4px 4px rgb(0 0 0 / .35)); }
.letter a { color: var(--sage-light); }
.letter a:hover { color: var(--cream); }
.letter__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem 1.5rem; }
@media (max-width: 40rem) { .letter__row { grid-template-columns: minmax(0, 1fr); } }

.letter__topics { margin: 0; padding: 0; border: 0; min-width: 0; }
.letter__topics legend { padding: 0; margin-bottom: .7rem; font-family: var(--display); font-size: 1.3rem; color: var(--cream); }
.topics { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topic span { display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0 .95rem; border: 1px solid rgb(238 232 220 / .2); border-radius: var(--radius);
    font-size: .93rem; font-weight: 600; color: var(--cream-muted); transition: border-color .15s, background .15s, color .15s; }
.topic:hover span { border-color: rgb(238 232 220 / .45); color: var(--cream); }
.topic input:checked + span { border-color: var(--sage-light); background: rgb(143 194 171 / .14); color: var(--cream); }
.topic input:focus-visible + span { outline: 2px solid var(--sage-light); outline-offset: 2px; }

.letter .field { display: grid; gap: .25rem; align-content: start; }
.letter .field label { font-size: .82rem; font-weight: 700; letter-spacing: .01em; color: var(--cream-muted); }
.letter .field input, .letter .field textarea { width: 100%; box-sizing: border-box; padding: .4rem 0 .5rem; border: 0; border-bottom: 1px solid rgb(238 232 220 / .22); border-radius: 0;
    background: transparent; color: var(--cream); font-family: var(--display); font-size: 1.2rem; line-height: 1.5; transition: border-color .15s; }
.letter .field textarea { min-height: 7.5rem; resize: vertical; }
.letter .field input:hover, .letter .field textarea:hover { border-bottom-color: rgb(238 232 220 / .45); }
.letter .field input:focus, .letter .field textarea:focus { outline: none; border-bottom-color: var(--sage-light); box-shadow: 0 1px 0 var(--sage-light); }
.letter [aria-invalid="true"] { border-bottom-color: #E59A8F !important; }
.letter .field__error { margin: .25rem 0 0; color: #F0A99E; font-size: .88rem; font-weight: 600; }
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.letter__send { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.6rem; border: 0; border-radius: var(--radius);
    background: var(--sage-light); color: var(--night); font: inherit; font-weight: 800; cursor: pointer; transition: background .15s; }
.letter__send:hover { background: var(--cream); }
.letter__send:focus-visible { outline: 2px solid var(--sage-light); outline-offset: 3px; }
.letter__send:disabled { opacity: .6; cursor: progress; }
.letter .contact-form__status { margin: 0; font-weight: 700; color: var(--cream); }
.letter .contact-form__status.is-success { color: var(--sage-light); }
.letter .contact-form__status.is-error { color: #F0A99E; }
.letter .contact-form__notice { margin: 0; font-size: .82rem; line-height: 1.55; color: rgb(238 232 220 / .55); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0 1.5rem; border-radius: var(--radius); background: var(--sage-light); color: var(--night); font-weight: 800; text-decoration: none; white-space: nowrap; }
.partners .button { color: var(--night); }
.button:hover, .partners .button:hover { background: var(--cream); color: var(--night); }

/* ── Footer ── */
.site-foot { padding-block: 3rem; font-size: .92rem; color: var(--ink-muted); }
.site-foot .wrap { display: grid; gap: 1.25rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-foot nav a { color: var(--ink); }
.disclosure { max-width: 46rem; }

/* ── Legal pages ── */
.doc { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4rem, 8vw, 6rem); }
.doc .wrap { max-width: 44rem; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 400; }
.doc .updated { margin-top: .75rem; color: var(--ink-muted); font-size: .95rem; }
.doc h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.doc h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.doc p, .doc ul, .doc dl { margin-top: 1rem; }
.doc ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.doc dl { display: grid; grid-template-columns: minmax(9rem, auto) minmax(0, 1fr); gap: .5rem 1.5rem; }
.doc dt { font-weight: 700; } .doc dd { margin: 0; }
@media (max-width: 30rem) { .doc dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .doc dd { margin-bottom: .6rem; } }
.todo { background: #FFF1C2; padding: 0 .25em; border-radius: 2px; }
