/* Draft 10: EPHEMER in black and white. The owner's text of 6 Dec 2026, word for word and in its order; no picture.
   One idea: the name loses its ink letter by letter, like a brush running dry. Everything else is quiet.
   Two colours and two greys. The form stands on the other ground. Nothing in this draft is sent. */
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #fff;
  --ink: #000;
  --grey: #6b6b6b;
  --hair: #dcdcdc;
  --text: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --ja: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif;
  --gutter: clamp(20px, 5vw, 72px);
  color-scheme: light;
}
/* The same page on black (the switch in the draft bar), and the form's ground: always the other one. */
:root[data-ground="black"], .register { --paper: #000; --ink: #fff; --grey: #9c9c9c; --hair: #333; color-scheme: dark; }
:root[data-ground="black"] .register { --paper: #fff; --ink: #000; --grey: #6b6b6b; --hair: #dcdcdc; color-scheme: light; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); overflow-x: clip; }
body { color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-text-size-adjust: 100%; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
[lang="ja"] { font-family: var(--ja); font-weight: 400; }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1280px; margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* The draft bar: a tool for looking, not part of the design. */
.draftbar { background: #000; color: #fff; border-bottom: 1px solid #333; font: 11.5px/1.4 ui-monospace, Menlo, monospace; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; padding: 5px max(var(--gutter), env(safe-area-inset-right, 0px)) 5px max(var(--gutter), env(safe-area-inset-left, 0px)); }
.draftbar button { font: inherit; color: inherit; background: none; border: 1px solid #777; padding: 4px 9px; cursor: pointer; }
.draftbar :focus-visible { outline-color: #fff; }
@media (max-width: 559px) { .draftbar .wide { display: none; } }

/* The first screen: empty space, then the name, then what, when and the way in. */
.first { display: flex; min-height: calc(100vh - var(--bar, 0px)); min-height: calc(100svh - var(--bar, 0px)); }
.first .wrap { width: 100%; display: flex; flex-direction: column; padding-top: calc(24px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(24px, 5vh, 52px); }
.by { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.by span:last-child { margin-right: -.26em; }

.first h1 { margin: auto 0 0; padding-top: 56px; font: inherit; }
/* Seven letters over the whole width; each one holds less ink than the one before. */
.mark { display: flex; justify-content: space-between; margin: 0 -.03em 0 -.065em; font-weight: 500; font-size: clamp(44px, 12.4vw, 204px); line-height: .76; cursor: default; }
.mark span { opacity: var(--o); }
.mark span:nth-child(1) { --o: 1; --i: 1; }
.mark span:nth-child(2) { --o: .8; --i: 2; }
.mark span:nth-child(3) { --o: .62; --i: 3; }
.mark span:nth-child(4) { --o: .46; --i: 4; }
.mark span:nth-child(5) { --o: .31; --i: 5; }
.mark span:nth-child(6) { --o: .18; --i: 6; }
.mark span:nth-child(7) { --o: .08; --i: 7; }
/* «For a second, the whole room returns»: under the pointer or a finger the name is whole again, then thins. */
.mark:active span { opacity: 1; }
@media (hover: hover) { .mark:hover span { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  /* The one moment of the page: the name arrives whole and thins to where it rests, the far end first. */
  .mark span { transition: opacity 2.6s cubic-bezier(.3, 0, .2, 1); animation: thin 3.4s cubic-bezier(.3, 0, .2, 1) calc(.5s + (7 - var(--i)) * .11s) backwards; }
  .mark:active span { transition-duration: .3s; }
  @media (hover: hover) { .mark:hover span { transition-duration: .3s; } }
  html { scroll-behavior: smooth; }
}
@keyframes thin { from { opacity: 1; } }

.what { margin-top: clamp(22px, 4vh, 40px); max-width: 27ch; font-size: clamp(20px, 2.3vw, 32px); font-weight: 300; line-height: 1.22; letter-spacing: -.015em; text-wrap: balance; }
/* Narrowest phones: when and how, one under the other; from 360 px side by side, each as wide as its words. */
.facts { margin-top: clamp(36px, 8vh, 88px); display: grid; gap: 12px 20px; align-items: end; font-size: 15px; line-height: 1.45; }
.facts .button { margin-top: 10px; text-align: center; }
@media (min-width: 360px) {
  .facts { grid-template-columns: auto auto; justify-content: space-between; }
  .facts .button { grid-column: 1 / -1; }
}

.button { display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 17px 30px; font: 500 16px/1.2 var(--text); text-decoration: none; cursor: pointer; border-radius: 0; }
@media (hover: hover) { .button:hover { background: transparent; color: var(--ink); } }

/* The idea: the first paragraph large and light, the second at reading size. */
.story { padding-top: clamp(72px, 16vh, 180px); display: grid; gap: 28px; }
.story .lead { max-width: 25ch; font-size: clamp(26px, 3.5vw, 48px); font-weight: 300; line-height: 1.16; letter-spacing: -.024em; text-wrap: balance; }
.story p + p { max-width: 48ch; font-size: 18px; }

/* Every part after it: its name on the left, its content on the right (stacked on a phone). No rules between
   the parts, only space; thin lines separate the rows inside one. */
.part { padding-top: clamp(72px, 15vh, 168px); display: grid; gap: 26px; }
.part h2 { margin: 0; font-size: clamp(28px, 3.1vw, 42px); font-weight: 300; line-height: 1.08; letter-spacing: -.025em; }
.part h3, .faq dt { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; }
.part h3 + p, .part p + p, .faq dd { margin: 4px 0 0; max-width: 40ch; }
@media (min-width: 880px) {
  .story, .part { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; }
  .story .lead { grid-column: 1 / -1; }
  .story p + p { grid-column: 2; }
  .part h2 { padding-top: 11px; }
}

.rows { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 48px; }
.rows > * { border-top: 1px solid var(--hair); padding-block: 18px 26px; }
@media (min-width: 600px) { .rows.pairs { grid-template-columns: 1fr 1fr; } }

.steps { counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: clamp(44px, 7vw, 96px) 1fr; }
.steps > li::before { content: counter(step); font-size: clamp(30px, 3.1vw, 42px); font-weight: 300; line-height: .95; letter-spacing: -.02em; }

/* What is still to be written stands as the owner's own note, in grey. */
.hole { color: var(--grey); }

/* The form: on the other ground, at the end of the page, as in the owner's text. Today's fields. */
.register { margin-top: clamp(88px, 16vh, 180px); background: var(--paper); color: var(--ink); }
.register .part { padding-block: clamp(64px, 12vh, 132px) clamp(56px, 10vh, 112px); }
.register .note { margin-top: 18px; max-width: 34ch; font-size: 14px; color: var(--grey); }
form { display: grid; gap: 24px; min-width: 0; }
.row { display: grid; gap: 24px; }
.row.plz { grid-template-columns: 104px 1fr; }
@media (min-width: 560px) { .row.two { grid-template-columns: 1fr 1fr; } .row.plz { grid-template-columns: 130px 1fr; } }
.field { display: grid; gap: 2px; min-width: 0; align-content: start; }
label { font-size: 14px; color: var(--grey); }
input[type=text], input[type=email], input[type=tel] { width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 6px 0 9px; font: inherit; font-size: 20px; color: var(--ink); }
input::placeholder { color: var(--grey); opacity: 1; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16px; color: var(--ink); cursor: pointer; }
/* The box is drawn here, so it is the same two colours on either ground. */
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid var(--ink); border-radius: 0; background: transparent; display: grid; place-content: center; cursor: pointer; }
.check input::before { content: ""; width: 12px; height: 12px; background: var(--paper); clip-path: polygon(12% 46%, 0 62%, 40% 100%, 100% 18%, 86% 6%, 38% 70%); }
.check input:checked { background: var(--ink); }
form .button { justify-self: start; margin-top: 8px; }
/* The line under the button is always there, so its words never move anything. */
.sent { min-height: 1.55em; font-size: 15px; }

.foot { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; border-top: 1px solid var(--hair); padding-block: 20px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--grey); }

@media (min-width: 760px) {
  .facts { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); column-gap: 48px; justify-content: normal; }
  .facts .button { grid-column: auto; justify-self: end; margin-top: 0; }
}
