/* Ink. — the site wears the app's paper: the same ground, ink, small corner words and type (served from here, nothing from Google) */
@import url(fonts/fonts.css?v=11201700);
:root { --paper: #efeeea; --ink: #1c1c1b; --dim: rgba(28, 28, 27, .4); --line: rgba(28, 28, 27, .1); --m: clamp(18px, 2.4vw, 36px);
  --type: "neue-haas-grotesk-text", "dnp-shuei-gothic-gin-std", "Inter", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif; color-scheme: light; }
/* dark: everything the other way round — the paper is ink, the ink is paper (set on <html> by the page's first script, or by the switch beside the language) */
html.dark { --paper: #1c1c1b; --ink: #efeeea; --dim: rgba(239, 238, 234, .45); --line: rgba(239, 238, 234, .12); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 400 15px/1.85 var(--type); letter-spacing: .02em; -webkit-font-smoothing: antialiased; min-height: 100svh; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
.corner { position: fixed; z-index: 2; font-size: 11px; line-height: 1.7; letter-spacing: .04em; color: var(--dim); display: flex; gap: 18px; }
.corner a { color: var(--dim); transition: color .2s ease; }
.corner a:hover, .corner a[aria-current] { color: var(--ink); }
.tl { top: var(--m); left: var(--m); } .tr { top: var(--m); right: var(--m); }
.bl { bottom: var(--m); left: var(--m); } .br { bottom: var(--m); right: var(--m); }

/* the top page: the mark first, a whole screen of paper; the pictures below */
.hero { position: relative; height: 100svh; display: grid; place-items: center; }
#mark { width: min(46vw, 440px); aspect-ratio: 900 / 446; touch-action: pan-y; cursor: grab; }
#mark.held { cursor: grabbing; }
.line { position: absolute; left: 0; right: 0; bottom: calc(var(--m) + 56px); margin: 0; text-align: center; font-size: 12px; color: var(--dim); letter-spacing: .08em; }

.photos { padding: 0 0 calc(var(--m) + 96px); overflow: hidden; }
#reel { display: block; width: 100%; cursor: grab; touch-action: pan-y; }
#reel.held { cursor: grabbing; }

/* the policy: one quiet column, as the sheet's own writing */
.page { width: min(34em, calc(100vw - 2 * var(--m))); margin: 0 auto; padding: calc(var(--m) + 96px) 0 calc(var(--m) + 96px); }
.page .mark { display: block; width: 56px; aspect-ratio: 360 / 179; background: var(--ink); -webkit-mask: url(ink-logo.png) left center / contain no-repeat; mask: url(ink-logo.png) left center / contain no-repeat; margin-bottom: 44px; }
.page h1 { font-size: 15px; font-weight: 500; letter-spacing: .06em; margin: 0 0 6px; }
.page .date { font-size: 11px; color: var(--dim); margin: 0 0 40px; }
.page h2 { font-size: 11px; font-weight: 500; color: var(--dim); letter-spacing: .08em; margin: 36px 0 6px; }
.page p { margin: 0 0 10px; text-wrap: pretty; }
.page hr { border: 0; border-top: 1px solid var(--line); margin: 64px 0; }
.page .lang { font-size: 11px; color: var(--dim); }
/* on the top page the corner words belong to the first screen, not over the pictures */
body:has(.hero) .corner.bl, body:has(.hero) .corner.br { position: absolute; bottom: auto; top: calc(100svh - var(--m) - 19px); margin: 0; }

/* the same paper grain as the app, over the whole page (the sheet's own is turned off there, so the two read as one) */
body::after { z-index: 3; content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
html.dark body::after { mix-blend-mode: screen; opacity: .18; }

/* a two-finger sideways swipe belongs to the pictures, not to the browser's back and forward */
html, body { overscroll-behavior-x: none; }
html { overflow-anchor: none; }
