/* Carnets de fabrication — one page per film, each in the film's own palette and manner.
   The pages are paper: one deliberate light look. Colours come from the film (set on <body style="--bg…">). */
:root { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg, #f3efe6); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 19px/1.6 'Newsreader', Georgia, 'Times New Roman', serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; overflow-x: clip;
  --display: 'Gloock', 'Newsreader', Georgia, serif; --type: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif; --hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive; --gut: max(18px, min(5vw, 72px)); --rule: color-mix(in srgb, var(--ink) 22%, transparent); --soft: color-mix(in srgb, var(--ink) 66%, var(--bg)); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.lab { font: 600 12px/1.4 var(--type); letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin: 0; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--rule); font: 500 12px/1.3 var(--type); letter-spacing: .12em; text-transform: uppercase; }
.top a { text-decoration: none; }
.top a:hover { color: var(--acc); }
.top .ep { color: var(--soft); white-space: nowrap; }

/* opening */
.open { padding-block: clamp(36px, 7vw, 96px) 0; }
.open h1 { margin: 14px 0 0; font: 400 clamp(46px, 9vw, 132px)/.95 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.open .log { margin: clamp(18px, 2.4vw, 30px) 0 0; max-width: 26em; font: italic 400 clamp(21px, 2.4vw, 30px)/1.3 'Newsreader', Georgia, serif; text-wrap: balance; }
.meta { margin: clamp(20px, 3vw, 34px) 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 26px; font: 500 13px/1.5 var(--type); letter-spacing: .06em; color: var(--soft); }
.meta b { font-weight: 600; color: var(--ink); }
.hero { position: relative; margin: clamp(30px, 5vw, 64px) 0 0; }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero figcaption, .pl figcaption { font: 400 14px/1.45 var(--type); color: var(--soft); margin-top: 10px; max-width: 46em; }
.hand { font: 500 24px/1.1 var(--hand); color: var(--acc); }
.hero .hand { position: absolute; right: clamp(8px, 3vw, 40px); bottom: clamp(34px, 6vw, 70px); max-width: 11em; transform: rotate(-4deg); background: var(--bg); padding: 6px 12px 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }

/* sections */
section { padding-block: clamp(48px, 8vw, 110px) 0; }
.sec-h { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: clamp(22px, 3vw, 40px); }
.sec-h h2 { margin: 0; font: 400 clamp(32px, 4.6vw, 62px)/1 var(--display); letter-spacing: -.01em; }
.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(26px, 5vw, 80px); align-items: start; }
.story p { margin: 0 0 1em; max-width: 34em; }
.story p:first-child::first-letter { font: 400 3.4em/.8 var(--display); float: left; margin: .08em .1em 0 0; color: var(--acc); }
.quote { margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--acc); }
.quote p { margin: 0; font: italic 400 clamp(24px, 2.6vw, 34px)/1.25 'Newsreader', Georgia, serif; text-wrap: balance; }
.quote cite { display: block; margin-top: 12px; font: 500 12px/1.4 var(--type); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--soft); }

.qs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(22px, 3vw, 44px); counter-reset: q; }
.qs li { counter-increment: q; border-top: 1px solid var(--ink); padding-top: 14px; }
.qs li::before { content: counter(q, decimal-leading-zero); font: 600 12px/1 var(--type); letter-spacing: .14em; color: var(--acc); }
.qs h3 { margin: 10px 0 8px; font: 400 clamp(22px, 2.2vw, 28px)/1.2 var(--display); text-wrap: balance; }
.qs p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--soft); }

/* notebook */
.entry { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 76px); align-items: start; padding-block: clamp(30px, 5vw, 64px); border-top: 1px solid var(--rule); }
.entry:nth-of-type(even) .e-text { order: 2; }
.e-text { position: sticky; top: 24px; }
.e-text h3 { margin: 6px 0 14px; font: 400 clamp(26px, 3vw, 40px)/1.05 var(--display); }
.e-text p { margin: 0 0 1em; max-width: 30em; }
.e-text .hand { display: inline-block; margin-top: 8px; transform: rotate(-2deg); font-size: 26px; }
.e-pics { display: grid; gap: clamp(22px, 3.4vw, 46px); }
.pl { margin: 0; position: relative; }
.pl img { width: 100%; background: #fff; }
.pl .tag { position: absolute; left: 10px; top: 10px; font: 600 10px/1 var(--type); letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px; background: var(--bg); color: var(--ink); }
.pl .hand { display: block; margin-top: 4px; font-size: 22px; transform: rotate(-1.5deg); transform-origin: 0 50%; }
.e-pics .pl:nth-child(2) { width: 82%; justify-self: end; }
.entry:nth-of-type(even) .e-pics .pl:nth-child(2) { justify-self: start; }

/* sheet */
.sheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin: 0; }
.sheet div { padding: 18px 16px 18px 0; }
.sheet dt { font: 600 11px/1.3 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.sheet dd { margin: 6px 0 0; font: 400 22px/1.2 var(--display); }

/* footer */
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-block: clamp(40px, 6vw, 80px); }
.next a { text-decoration: none; display: block; padding-top: 14px; border-top: 1px solid var(--ink); }
.next a:last-child { text-align: right; }
.next small { display: block; font: 600 11px/1.3 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.next span { display: block; margin-top: 6px; font: 400 clamp(22px, 3vw, 38px)/1.1 var(--display); }
.next a:hover span { color: var(--acc); }
.foot { border-top: 1px solid var(--rule); padding-block: 26px calc(34px + env(safe-area-inset-bottom, 0px)); font: 400 12px/1.6 var(--type); color: var(--soft); text-align: center; }
.foot a { text-decoration: none; border-bottom: 1px solid var(--rule); }

/* ---------- manners ---------- */
/* ink: black and white, heavy rules, one blue disc */
.st-ink { --rule: var(--ink); }
.st-ink .top { border-bottom-width: 3px; }
.st-ink .open h1 { text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(40px, 8vw, 116px); }
.st-ink .hero img, .st-ink .pl img { border: 3px solid var(--ink); }
.st-ink .qs li, .st-ink .sheet, .st-ink .next a { border-top-width: 3px; }
.st-ink .sheet { border-bottom-width: 3px; }
.st-ink .lab::before { content: ''; display: inline-block; width: .9em; height: .9em; border-radius: 50%; background: var(--acc); margin-right: .7em; vertical-align: -.08em; }
.st-ink .pl .tag { background: var(--ink); color: var(--bg); }
/* gouache: thick paper, pictures pinned slightly askew, a wash of colour behind the titles */
.st-gouache .hero img, .st-gouache .pl img { border: 10px solid #fffdf7; box-shadow: 0 10px 30px rgba(40, 25, 10, .18), 0 1px 0 rgba(0, 0, 0, .06); }
.st-gouache .e-pics .pl:nth-child(odd) { transform: rotate(-.7deg); }
.st-gouache .e-pics .pl:nth-child(even) { transform: rotate(.9deg); }
.st-gouache .sec-h h2 { display: inline; width: fit-content; background: linear-gradient(transparent 58%, color-mix(in srgb, var(--acc) 26%, transparent) 58%); padding: 0 .12em; }
.st-gouache .pl .tag { left: 20px; top: 20px; }
/* pen: a lot of white, hairlines, small and light */
.st-pen { font-size: 18px; }
.st-pen .open h1 { font: 400 clamp(40px, 7.4vw, 104px)/1 var(--display); letter-spacing: -.01em; }
.st-pen .hero img, .st-pen .pl img { border: 1px solid var(--ink); padding: 8px; background: #fff; }
.st-pen .sec-h h2 { font-size: clamp(28px, 3.8vw, 50px); }
.st-pen .quote { border-left-width: 1px; }
.st-pen .hand { color: var(--ink); opacity: .8; }
.st-pen .pl .tag { border: 1px solid var(--ink); left: 18px; top: 18px; }
/* pastel: flat bands of colour, a fine even line, geometry */
.st-pastel .hero img, .st-pastel .pl img { border: 1.5px solid var(--ink); }
.st-pastel .open { position: relative; }
.st-pastel .open::before { content: ''; position: absolute; right: -8vw; top: clamp(20px, 5vw, 60px); width: clamp(120px, 24vw, 320px); aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--acc) 30%, var(--bg)); z-index: -1; }
.st-pastel .ques { background: var(--linen); border-block: 1.5px solid var(--ink); padding-bottom: clamp(48px, 8vw, 110px); margin-top: clamp(48px, 8vw, 110px); }
.st-pastel .e-pics .pl:nth-child(2) img { box-shadow: 12px 12px 0 color-mix(in srgb, var(--acc) 34%, var(--bg)); }
.st-pastel .pl .tag { border: 1.5px solid var(--ink); }

@media (max-width: 820px) {
  body { font-size: 18px; }
  .cols, .entry { grid-template-columns: minmax(0, 1fr); }
  .entry:nth-of-type(even) .e-text { order: 0; }
  .e-text { position: static; }
  .e-pics .pl:nth-child(2) { width: 100%; }
  .hero .hand { position: static; display: inline-block; margin-top: 10px; transform: rotate(-2deg); box-shadow: none; padding: 0; background: none; }
  .next { grid-template-columns: 1fr; } .next a:last-child { text-align: left; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .pl, .qs li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
  }
}

/* language picker and small helpers */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top-r { display: flex; align-items: center; gap: 16px; }
.lg select { font: 500 12px/1 var(--type); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 0; padding: 7px 8px; }
:lang(ja) body, :lang(zh) body { --display: 'Gloock', 'Noto Serif JP', 'Noto Serif SC', serif; }
:lang(ja) .hand, :lang(zh) .hand { font-family: 'Newsreader', 'Noto Serif JP', 'Noto Serif SC', serif; font-style: italic; font-size: 18px; }
:lang(ja) .open h1, :lang(zh) .open h1 { font-size: clamp(38px, 7vw, 96px); line-height: 1.1; }
@media (max-width: 520px) { .top .ep { display: none; } }
html { overflow-x: clip; }

/* watch the film */
.cta { margin: clamp(22px, 3vw, 34px) 0 0; }
.cta-end { padding-top: clamp(40px, 6vw, 80px); text-align: center; }
.btn-w { display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: .6em 1.3em; background: var(--acc); color: #fff; text-decoration: none; font: 600 13px/1.1 var(--type); letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid var(--acc); }
.btn-w::before { content: ''; border-left: .7em solid currentColor; border-block: .45em solid transparent; }
.btn-w:hover, .btn-w:focus-visible { background: transparent; color: var(--acc); }
.st-ink .btn-w { background: var(--ink); border-color: var(--ink); } .st-ink .btn-w:hover { color: var(--ink); background: transparent; }
