/* ============================================================
   KOKI TAKAMATSU — exact 1:1 reproduction of Artboard_1
   Source of truth: the rendered PDF. Every element is placed at
   its exact PDF/artboard coordinate (top-left origin, points),
   scaled by --k. Fonts, sizes and colours are taken from the PDF.
   ============================================================ */

/* display = ITC Avant Garde Gothic (extracted from the PDF), URW Gothic fallback */
@font-face{font-family:"AvantGarde";src:url("../assets/fonts/avantgarde-book.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"AvantGarde";src:url("../assets/fonts/avantgarde-demi.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Gothic";src:url("../assets/fonts/urwgothic-book.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Gothic";src:url("../assets/fonts/urwgothic-demi.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
/* body = Nunito Sans ExtraLight (Google Fonts, the full Latin set: the subset extracted from the PDF drew
   only the letters the PDF used. Same metrics and widths. Licence: assets/fonts/OFL-NunitoSans.txt) */
@font-face{font-family:"Nunito Sans";src:url("../assets/fonts/nunitosans-extralight.woff2") format("woff2");font-weight:200;font-style:normal;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url("../assets/fonts/nunitosans-extralight-italic.woff2") format("woff2");font-weight:200;font-style:italic;font-display:swap}

:root{
  /* design scale: px per artboard point. Fluid fallback (fills the viewport
     width); the head script overrides it with a fixed px value so browser zoom
     scales the artboard instead of re-fitting. */
  --k:calc(100vw / 460.807);
  --paper:#fffefc;
  --band:#f2f1ef;
  --ink:#434343;
  --ph:#b3b1b1;                                                   /* placeholder grey (the file's) */
  --red:#f20000;
  --disp:"AvantGarde","Gothic","Century Gothic",sans-serif;
  --text:"Nunito Sans",system-ui,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{background:var(--paper)}
/* (a touch screen: the type stays the size it is set, also on a phone turned on its side, which would enlarge it;
   and a tap shows no grey box of the browser's own over a link — the page answers it) */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
a,button{-webkit-tap-highlight-color:transparent}
/* position:relative so the full-width background bands (direct children of body)
   are positioned in document space, scrolling with the page. */
body{position:relative;font-family:var(--text);-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}
img{display:block;width:100%;height:100%;object-fit:cover}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:-1px}
/* keyboard focus: a plain ink ring, square, no halo. The browser's own ring has a white halo
   and round corners, which the cursor's square folds into dark lines (CLAUDE.md). The menu
   button and labels, a work, the zoom's buttons and the colour test panel draw their own. */
:focus-visible{outline:max(1px,calc(.4 * var(--k))) solid #434343;outline-offset:calc(1 * var(--k))}

/* the artboard: 460.807 x 1036.66 pt. Width is the design size (460.807pt * --k)
   so it fills the viewport at default zoom and grows/shrinks with browser zoom;
   margin auto centres it when zoomed out (narrower than the viewport). */
.stage{
  position:relative;z-index:1;width:calc(460.807 * var(--k));margin:0 auto;
  aspect-ratio:460.807 / 1036.66;background:transparent;overflow:hidden;
  container-type:inline-size;font-family:var(--text);
}

/* placement primitive: --x --y (--w --h) in artboard points */
.a{position:absolute;left:calc(var(--x) * var(--k));top:calc(var(--y) * var(--k));width:calc(var(--w,0) * var(--k))}
/* the page's sections: nothing on the artboard (each element is placed by its own points); a column of
   their own on a narrow screen (css/narrow.css) */
.sec{display:contents}
/* (a heading's box a little wider on the left, moved back as much: its letters stay where they are, but a letter
   overhanging its box — the A's foot — lies inside it. A heading rises on a layer of its own, and Safari trims a
   layer to its box: the A was cut off there) */
.h{padding-left:.1em;margin-left:-.1em}
.a.h{width:calc(var(--w,0) * var(--k) + .1em)}
.wh{height:calc(var(--h) * var(--k))}

/* background bands (the grey section backgrounds — BACK GROUND, CALLIGRAPHY).
   Direct children of <body>, so width:100% spans the whole viewport and they sit
   BEHIND the transparent stage (z-index:0 < stage's 1). The stage's overflow:hidden
   no longer clips them, so the grey fills the window edge-to-edge even when a
   wide/short viewport centres the stage; the content rides on top in the stage. */
.band{position:absolute;left:0;width:100%;z-index:0;
   height:calc(259.2 * var(--k));background:var(--band)}

/* image placeholders / photos */
.box{background:var(--c,#d1d1d1);overflow:hidden}
.ph{overflow:visible}

/* type ---------------------------------------------------- */
.h{font-family:var(--disp);font-weight:700;color:#404040;text-transform:uppercase;
   line-height:1;white-space:nowrap;font-size:calc(var(--fs) * var(--k));letter-spacing:-.025em;
   top:calc((var(--y) + var(--fs)/12 + .25) * var(--k))}
.copy{font-family:var(--text);font-weight:200;color:#000;
   font-size:calc(var(--fs,4) * var(--k));line-height:1.2;letter-spacing:-.008em;
   top:calc((var(--y) + var(--fs,4)/12 + .25) * var(--k))}
.copy p{margin:0 0 calc(4.8 * var(--k))}
.copy p:last-child{margin-bottom:0}
/* a link in the copy (the address): the copy's own ink, underlined; never the browser's blue */
.copy a{color:inherit;text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:max(1px,.05em)}
/* body copy is left-aligned (ragged right) in the source, not justified */

.brand,.nav{font-family:var(--disp);font-weight:400;color:#434343;line-height:1;
   font-size:calc(var(--fs) * var(--k));white-space:nowrap;letter-spacing:-.008em;
   top:calc((var(--y) + var(--fs)/12 + .25) * var(--k))}
.nav{text-decoration:none}
.cap{font-family:"Gothic",var(--disp);font-weight:400;color:#403f3f;line-height:1;
   font-size:calc(3 * var(--k));white-space:nowrap;top:calc((var(--y) + .5) * var(--k))}
/* a caption the owner can rewrite (data-caption-for): it ends where its box does (the picture's
   right edge), so a longer one grows to the left, then wraps onto a second line */
.cap-r{white-space:normal;text-align:right}

/* "+" — on a photo that opens in the zoom: css/zoom.css (the same on both pages) */

/* link with corner-tick frame */
.tag{font-family:var(--text);font-weight:200;color:#000;line-height:1;
   font-size:calc(5 * var(--k));white-space:nowrap;padding:calc(1.2 * var(--k)) calc(2.4 * var(--k))}
.tag>i{position:absolute;width:calc(3 * var(--k));height:calc(3 * var(--k));--b:max(.75px,calc(.5 * var(--k)))}
.tag>i.tl{top:0;left:0;border-top:var(--b) solid #000;border-left:var(--b) solid #000}
.tag>i.br{bottom:0;right:0;border-bottom:var(--b) solid #000;border-right:var(--b) solid #000}

/* squares */
.sq{background:#f20000}
.sqg{background:#b3b1b1}

/* corner crop-ticks on the two photos */
.fr>i{position:absolute;width:calc(3 * var(--k));height:calc(3 * var(--k));--b:max(1px,calc(1.25 * var(--k)));z-index:2}
.fr>i.tl{top:calc(-3 * var(--k));left:calc(-3 * var(--k));border-top:var(--b) solid #ccc9c9;border-left:var(--b) solid #ccc9c9}
.fr>i.tr{top:calc(-3 * var(--k));right:calc(-3 * var(--k));border-top:var(--b) solid #ccc9c9;border-right:var(--b) solid #ccc9c9}
.fr>i.bl{bottom:calc(-3 * var(--k));left:calc(-3 * var(--k));border-bottom:var(--b) solid #ccc9c9;border-left:var(--b) solid #ccc9c9}
.fr>i.br{bottom:calc(-3 * var(--k));right:calc(-3 * var(--k));border-bottom:var(--b) solid #ccc9c9;border-right:var(--b) solid #ccc9c9}
/* Every 「 mark in whole pixels: its size and its line. The browser snaps each edge of a box to the pixel
   grid, so a box 8.58px square drew one arm 9px and the other 8 (measured; 18 and 16 at 2x), uneven
   from mark to mark. Whole, both edges move together: both arms are exactly its size, wherever it sits.
   (A browser without round() keeps the lines above.) */
.fr>i{--s:round(calc(3 * var(--k)), 1px);width:var(--s);height:var(--s);--b:max(1px,round(calc(1.25 * var(--k)), 1px))}
.fr>i.tl,.fr>i.tr{top:calc(-1 * var(--s))}
.fr>i.bl,.fr>i.br{bottom:calc(-1 * var(--s))}
.fr>i.tl,.fr>i.bl{left:calc(-1 * var(--s))}
.fr>i.tr,.fr>i.br{right:calc(-1 * var(--s))}

/* link corner-tick frame marks (positioned independently in artboard space) */
.ltick{position:absolute;left:calc(var(--x) * var(--k));top:calc(var(--y) * var(--k));
   width:calc(2.75 * var(--k));height:calc(2.75 * var(--k));--b:max(1px,calc(1 * var(--k)))}
.ltick.tl{border-top:var(--b) solid #ccc9c9;border-left:var(--b) solid #ccc9c9}
.ltick.br{border-bottom:var(--b) solid #ccc9c9;border-right:var(--b) solid #ccc9c9}
/* (in whole pixels, as the photos' marks above: both arms of each mark exactly as long, every mark alike) */
.ltick{width:round(calc(2.75 * var(--k)), 1px);height:round(calc(2.75 * var(--k)), 1px);--b:max(1px,round(calc(1 * var(--k)), 1px))}

/* a word in brackets (Details, Kickstarter, Steam; the contact page's links): one box, --x / --y / --w / --h
   in points, its 「 」 marks on its corners and the word centred in it on its ink, the same space left and right,
   above and below (js/brackets.js reads the letters' own extents from the font and nudges the word onto them).
   (No --w: the box is as wide as the word, with --px of space on either side.) */
.bx{display:flex;align-items:center;justify-content:center;height:calc(var(--h,7.2) * var(--k));top:calc(var(--y) * var(--k));
   line-height:1;white-space:nowrap;color:#000;text-decoration:none}
.bx>span{display:block;position:relative}   /* (nudged onto its ink's centre: js/brackets.js) */
.bx:not([style*="--w"]){width:auto;padding:0 calc(var(--px,4.75) * var(--k))}
.bx::before,.bx::after{content:"";position:absolute;width:round(calc(2.75 * var(--k)), 1px);height:round(calc(2.75 * var(--k)), 1px);
   --b:max(1px,round(calc(1 * var(--k)), 1px))}
.bx::before{left:0;top:0;border-top:var(--b) solid #ccc9c9;border-left:var(--b) solid #ccc9c9}
.bx::after{right:0;bottom:0;border-bottom:var(--b) solid #ccc9c9;border-right:var(--b) solid #ccc9c9}

/* triangle accent (right angle at top-right, hypotenuse to lower-left) */
.tri{position:absolute;left:calc(var(--x) * var(--k));top:calc(var(--y) * var(--k));
   width:calc(12 * var(--k));height:calc(12 * var(--k));
   background:#ccc9c9;clip-path:polygon(100% 0,100% 100%,0 0)}
/* The triangles and squares grow into place (js/anim.js). Moved, a shape is drawn exactly where it is, its
   edges between pixels; at rest the browser sets it on whole pixels. So they rest on whole pixels already,
   and the moment the motion lets go of one nothing moves (measured: a triangle hopped 0.7px as it ended). */
.tri,.sq{left:round(calc(var(--x) * var(--k)), 1px);top:round(calc(var(--y) * var(--k)), 1px)}
.tri{width:round(calc(12 * var(--k)), 1px);height:round(calc(12 * var(--k)), 1px)}
.sq{width:round(calc(var(--w,0) * var(--k)), 1px);height:round(calc(var(--h) * var(--k)), 1px)}
