/* zōsho · une app nozomu. papier et encre, un seul sceau vermillon, beaucoup d'air. */
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-ext.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-italic.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-italic-ext.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-400-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-500-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #ffffff; --ink: #0d0d0d; --gray: #85857f; --faint: #cfcfca; --line: #eaeae7; --soft: #f4f4f1;
  --hanko: #e2452f; --on-hanko: #ffffff;
  --grot: "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --px: max(clamp(24px, 5vw, 90px), env(safe-area-inset-left, 0px));
  --seal-x: 72%; --seal-y: 42%;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #08080c; --ink: #f4f4f2; --gray: #85857f; --faint: #2a2a2e; --line: #1d1d22; --soft: #111116; --hanko: #ef5236; color-scheme: dark; } }
:root[data-theme="dark"] { --paper: #08080c; --ink: #f4f4f2; --gray: #85857f; --faint: #2a2a2e; --line: #1d1d22; --soft: #111116; --hanko: #ef5236; color-scheme: dark; }

* { margin: 0; box-sizing: border-box; }
::selection { background: var(--ink); color: var(--paper); }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--grot); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .7s var(--ease), color .7s var(--ease); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 1.5px solid var(--hanko); outline-offset: 4px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .01em; color: var(--gray); }
.frame { padding-left: var(--px); padding-right: max(clamp(24px, 5vw, 90px), env(safe-area-inset-right, 0px)); }

/* le sceau, signature de hondana */
.mark { display: block; width: 24px; height: 24px; border-radius: 6px; flex: none; }

/* en-tête */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: clamp(26px, 4vw, 56px) 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.05rem; letter-spacing: -.02em; }
.top nav { display: flex; align-items: center; gap: 2px; }
.nl { position: relative; overflow: hidden; height: 1.5em; padding: 0 12px; font-size: .84rem; color: var(--gray); }
.nl > span { display: block; line-height: 1.5em; transition: transform .45s var(--ease); }
.nl > span::after { content: attr(data-t); display: block; line-height: 1.5em; color: var(--ink); }
.nl:hover > span, .nl[aria-current] > span { transform: translateY(-1.5em); }
.tg { width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--gray); background: none; border: 0; cursor: pointer; margin-left: 6px; transition: all .3s var(--ease); }
.tg:hover { color: var(--ink); background: var(--soft); }
.tg svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.tg:hover svg { transform: rotate(-18deg); }
@media (max-width: 680px) { .nl.opt { display: none; } .nl { padding: 0 8px; font-size: .82rem; } }

/* petits éléments partagés */
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .68rem; color: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; }
.chip .dot { width: 10px; height: 3px; border-radius: 2px; background: var(--hanko); animation: pulse 3s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.7); } }
.btn { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; padding: 13px 24px; border-radius: 999px; border: 1px solid var(--line); transition: all .35s var(--ease); }
.btn .ar { transition: transform .35s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { transform: translateY(-2px); }
.btn-line .ar { color: var(--hanko); }
.btn-line:hover { background: var(--soft); }
.idx { font-family: var(--mono); font-size: .78rem; color: var(--hanko); }
.it { font-style: italic; font-weight: 300; }
.li { font-weight: 300; color: var(--gray); }

/* apparition au chargement */
.rv { animation: rise .8s var(--ease) both; }
.rv:nth-child(2) { animation-delay: .08s; } .rv:nth-child(3) { animation-delay: .16s; } .rv:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .rv, .chip .dot { animation: none; } }

/* accueil */
.hero { display: flex; align-items: center; gap: clamp(28px, 4.2vw, 64px); min-height: min(78svh, 760px); padding-block: 40px; }
.lead { flex: 1.2; min-width: 0; }
.lead .chip { margin-bottom: 2rem; }
h1 { font-weight: 400; font-size: clamp(2.7rem, 7.6vw, 6.6rem); line-height: .94; letter-spacing: -.045em; text-wrap: balance; }
.sub { margin-top: 2rem; max-width: 46ch; font-size: clamp(.98rem, 1.3vw, 1.16rem); line-height: 1.6; color: var(--gray); }
.sub b { color: var(--ink); font-weight: 400; }
.acts { margin-top: 2.4rem; display: flex; gap: 14px; flex-wrap: wrap; }
.sealbox { flex: .8; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; transition: transform .5s var(--ease); }
.bigseal { width: clamp(150px, 24vw, 330px); aspect-ratio: 1; border-radius: 22.5%; padding: 0; overflow: hidden; background: #0a0a0e; display: block; border: 0; cursor: pointer; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .55); animation: breathe 7s ease-in-out infinite; }
.bigseal img { width: 100%; height: 100%; display: block; }
.bigseal:hover { animation: heartbeat 1.4s var(--ease) infinite; }
.bigseal.thud { animation: thud .55s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes heartbeat { 0%, 24%, 50%, 100% { transform: scale(1); } 12% { transform: scale(1.06); } 36% { transform: scale(1.035); } }
@keyframes thud { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bigseal, .bigseal:hover { animation: none; } }
.sealcap { font-family: var(--mono); font-size: .66rem; color: var(--gray); text-align: center; }
.sealcap b { color: var(--ink); font-weight: 500; }
@media (max-width: 820px) {
  .hero { flex-direction: column-reverse; align-items: flex-start; min-height: 0; padding-block: 48px 24px; }
  /* Sur mobile, le logo du menu suffit : pas de second logo au milieu de l'accueil. */
  .sealbox { display: none; }
  .acts { flex-direction: column; width: 100%; }
  .acts .btn { justify-content: space-between; }
}

/* sections */
.block { padding-block: clamp(70px, 11vw, 150px) 0; }
.phead { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.statement { font-weight: 300; font-size: clamp(1.7rem, 3.9vw, 3.2rem); line-height: 1.14; letter-spacing: -.035em; max-width: 24em; text-wrap: pretty; }
.statement b { font-weight: 400; }
.statement .li { color: var(--gray); }
.sign { margin-top: 2rem; display: inline-flex; align-items: center; gap: .6em; }

/* le rituel : une ligne par étape, comme une liste de réalisations */
.steps { border-top: 1px solid var(--line); }
.step { padding-block: clamp(2.4rem, 6vw, 4.6rem); border-bottom: 1px solid var(--line); }
.step .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.step .no { font-family: var(--mono); font-size: .74rem; color: var(--hanko); }
.step h2 { font-weight: 300; font-size: clamp(2.2rem, 5.6vw, 4.2rem); letter-spacing: -.045em; line-height: 1; margin: .5rem 0 1rem; }
.step p { color: var(--gray); max-width: 36ch; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.step .meta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.stage { position: relative; overflow: hidden; border-radius: 18px; background: var(--soft); padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px) 0; display: flex; justify-content: center; gap: clamp(10px, 2.4vw, 26px); height: clamp(340px, 42vw, 520px); }
.stage::before { content: ""; position: absolute; top: 9%; right: 8%; width: min(26%, 150px); height: 12px; border-radius: 6px; background: var(--hanko); }
.shot { position: relative; width: min(46%, 230px); flex: none; align-self: flex-start; border-radius: 26px 26px 0 0; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5), 0 10px 28px -14px rgba(0, 0, 0, .25); }
.shot:nth-child(2) { margin-top: clamp(24px, 4vw, 48px); }
.shot img { width: 100%; height: auto; }
.reread { margin-top: clamp(2.4rem, 5vw, 3.6rem); display: flex; gap: 18px; align-items: baseline; }
.reread p { font-weight: 300; font-size: clamp(1.25rem, 2.4vw, 1.9rem); line-height: 1.25; letter-spacing: -.025em; max-width: 30em; }
.reread p .li { color: var(--gray); }
@media (max-width: 820px) { .step .row { grid-template-columns: minmax(0, 1fr); } .stage { height: 380px; } }

/* le prix */
.price h2 { font-weight: 400; font-size: clamp(2.6rem, 7vw, 5.8rem); line-height: .96; letter-spacing: -.045em; }
.price .sub { margin-top: 1.6rem; }
.terms { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); max-width: 720px; }
.terms div { display: flex; justify-content: space-between; gap: 20px; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.terms dt { color: var(--gray); }
.terms dd { font-family: var(--mono); font-size: .86rem; text-align: right; }
.terms dd b { font-family: var(--grot); font-weight: 500; font-size: 1.15rem; letter-spacing: -.02em; }
.price .acts { margin-top: 2.4rem; }

.closing { padding-block: clamp(80px, 12vw, 160px) clamp(40px, 6vw, 80px); }
.closing p { font-weight: 400; font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -.045em; }

/* pied de page */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 14px 28px; flex-wrap: wrap; padding-block: 28px max(36px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); margin-top: 40px; }
.foot .l { display: inline-flex; align-items: center; gap: .6em; }
.foot .l:hover .mark { animation: heartbeat2 1.4s var(--ease) infinite; }
@keyframes heartbeat2 { 0%, 24%, 50%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 36% { transform: scale(1.06); } }
.foot .r { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a:hover { color: var(--ink); }

/* pages de texte */
.doc { max-width: 760px; padding-block: clamp(48px, 8vw, 96px) 0; }
.doc h1 { font-weight: 300; font-size: clamp(2.6rem, 7vw, 4.8rem); letter-spacing: -.05em; line-height: .95; margin: 0 0 1.4rem; }
.doc .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--gray); font-weight: 300; max-width: 44ch; }
.doc h2 { font-weight: 400; font-size: 1.35rem; letter-spacing: -.02em; margin: 3rem 0 .6rem; }
.doc h3 { font-weight: 500; font-size: 1.02rem; margin: 0 0 .3rem; }
.doc p, .doc li { color: var(--gray); }
.doc p + p { margin-top: .8rem; }
.doc ul { padding-left: 1.2em; margin: .6rem 0; }
.doc a { border-bottom: 1px solid var(--line); color: var(--ink); transition: border-color .3s var(--ease); }
.doc a:hover { border-color: var(--hanko); }
.doc strong { color: var(--ink); font-weight: 500; }
.doc .card { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.doc .card:first-of-type { border-top: 1px solid var(--line); margin-top: 1rem; }
.doc .card p { margin: 0; }
.lang { border-top: 1px solid var(--line); margin-top: 4.5rem; padding-top: 2.4rem; }
.lang h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.facts { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 0; margin: 1rem 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--gray); font-size: .92rem; }
.facts dd { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts dt { border-bottom: 0; padding-bottom: 0; } }
mark.todo { background: none; color: var(--hanko); border-bottom: 1px dashed var(--hanko); }

/* changement de page : le sceau couvre l'écran, puis se retire */
#wipe { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
#wipe i { position: absolute; left: var(--seal-x); top: var(--seal-y); width: 300vmax; aspect-ratio: 1; border-radius: 22.5%; background: #0a0a0e; transform: translate(-50%, -50%) scale(0); transition: transform .62s var(--ease); }
#wipe b { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s ease; }
#wipe b img { width: clamp(160px, 26vw, 300px); height: auto; }
#wipe.on i { transform: translate(-50%, -50%) scale(1); }
#wipe.on b { opacity: 1; transition-delay: .2s; }
#wipe.hold i { transition: none; }
@media (prefers-reduced-motion: reduce) { #wipe { display: none; } }

/* le mur de l'accueil : les jaquettes des dernières sorties, en trois colonnes qui défilent, posées un peu de travers */
.hwall { position: relative; flex: .95; min-width: 0; height: min(76svh, 640px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
.hwall .col { display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 18px); animation: wall-up 70s linear infinite; }
.hwall .col:nth-child(2) { animation-name: wall-down; animation-duration: 84s; }
.hwall .col:nth-child(3) { animation-duration: 62s; }
.hwall img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: var(--soft); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .45); transition: transform .45s var(--ease); }
.hwall img:nth-child(6n+1) { transform: rotate(-2.2deg) scale(.95); } .hwall img:nth-child(6n+2) { transform: rotate(1.6deg) scale(.9); }
.hwall img:nth-child(6n+3) { transform: rotate(-1deg) scale(.93); } .hwall img:nth-child(6n+4) { transform: rotate(1.3deg) scale(.92); }
.hwall img:nth-child(6n+5) { transform: rotate(-1.6deg) scale(.89); } .hwall img:nth-child(6n) { transform: rotate(2deg) scale(.94); }
.hwall:hover .col { animation-play-state: paused; }
.hwall img:hover { transform: none; }
@keyframes wall-up { to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hwall .col { animation: none; } }
.hcap { margin-top: .8rem; text-align: right; }
@media (max-width: 820px) {
  .hero { flex-direction: column; }
  .hwall { flex: none; width: 100%; height: 340px; order: 2; }
}
.release { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.release ul { margin: .8rem 0 0; padding-left: 1.1em; display: grid; gap: .45rem; }
.release li { color: var(--ink); }

/* les widgets : un écran d'accueil en papier, les widgets clairs ou sombres selon le thème */
.widgets .board { margin-top: clamp(36px, 5vw, 64px); border-radius: 28px; background: var(--soft); padding: clamp(16px, 3vw, 40px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); }
.widgets .board .w { display: block; }
.widgets .board .w.m { grid-column: span 2; }
.widgets .board img { width: 100%; height: auto; display: block; }
.widgets .board .dk { display: none; }
:root[data-theme="dark"] .widgets .board .lt { display: none; }
:root[data-theme="dark"] .widgets .board .dk { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .widgets .board .lt { display: none; } :root:not([data-theme="light"]) .widgets .board .dk { display: block; } }
.widgets .locks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(10px, 2vw, 20px); padding-top: clamp(6px, 1.4vw, 16px); }
.widgets .locks img { width: auto; height: clamp(52px, 6vw, 72px); }
.widgets .list { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
@media (max-width: 680px) { .widgets .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
