/* ohm.software: a wall of boxes, one per project. Each box brings its own colours (written by build.py from site.json as
   .c-<id>{--bg;--fg}) and its own drawing (src/templates/art/<id>.svg). No inline styles: the Worker's CSP forbids them. */
/* Match the Latin cap height to the native Japanese headings without changing either face's proportions. */
@font-face{font-family:"Source Sans 3";src:url(/assets/fonts/source-sans.ae35266f2a.woff2) format("woff2");font-display:swap;font-weight:700;size-adjust:108%;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:"Source Sans 3";src:url(/assets/fonts/source-sans.6a9fd74275.woff2) format("woff2");font-display:swap;font-weight:700;size-adjust:108%;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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:"Source Sans 3";src:url(/assets/fonts/source-sans.1c484c7583.woff2) format("woff2");font-display:swap;font-weight:700;size-adjust:108%;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Source Sans 3";src:url(/assets/fonts/source-sans.16b08bc821.woff2) format("woff2");font-display:swap;font-weight:700;size-adjust:108%;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
:root{
  --page:#ecebf0;--ink:#131318;--soft:#4c4b57;--line:#cfcdd8;--panel:#f7f6fa;
  --cobalt:#2f4bff;--lime:#c9f23d;--focus:#2f4bff;
  --m-tile:#131318;--m-stroke:#fff;
  --jp:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic","BIZ UDPGothic",Meiryo,"Noto Sans JP","Noto Sans CJK JP";
  --display:"Source Sans 3",var(--jp),system-ui,sans-serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",var(--jp),Roboto,sans-serif;
  --r:28px;
}
@media (prefers-color-scheme:dark){
  .card{box-shadow:inset 0 0 0 1.5px rgb(255 255 255/.1)}
  :root{--page:#0e0e12;--ink:#f4f3f8;--soft:#b4b3c2;--line:#30303a;--panel:#17171d;--focus:#c9f23d;--m-tile:#f4f3f8;--m-stroke:#131318}
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:16px}
body{margin:0;background:var(--page);color:var(--ink);font:16px/1.55 var(--sans);-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
body:lang(ja){line-height:1.75}
h1,h2,h3,h4,p,ul,fieldset{margin:0;padding:0}
ul{list-style:none}
fieldset{border:0;min-width:0}
img,svg{display:block;max-width:100%}
a{color:inherit}
h1,h2,.title,.steps h3{font-family:var(--display);font-weight:700;letter-spacing:0;font-synthesis:none}
/* Japanese in a heading, on either page (on the English page each Japanese name is a span with lang="ja") */
:is(h1,h2,.title,.steps h3):lang(ja),:is(h1,h2,.title,.steps h3) :lang(ja){font-feature-settings:"palt";letter-spacing:.03em;line-break:strict}
/* Japanese in controls and labels: taller lines than Latin needs, the same on both pages */
:is(.chip span,.go,.more,.lang,.pill,.tag,.meta,.tagline,.support a,.steps a,.nav a):lang(ja){line-height:1.45}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
.wrap{max-width:1400px;margin-inline:auto;padding-inline:clamp(14px,3.4vw,40px)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:12px;top:-80px;z-index:10;background:var(--ink);color:var(--page);padding:12px 18px;border-radius:999px;font-weight:700;text-decoration:none}
.skip:focus{top:12px}

/* Masthead: the OHM tiles, the one-line pitch, the way to the other language */
.mast{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:14px 20px;padding-top:18px;padding-bottom:6px}
.brand{display:inline-flex;flex-direction:column;align-items:stretch;gap:6px;text-decoration:none;border-radius:14px}
.wordmark{height:44px;width:auto;flex:none}
.wm-tile{fill:var(--cobalt)}
.wm-stroke{fill:none;stroke:#fff;stroke-width:13;stroke-linecap:round;stroke-linejoin:round}
.wm-h .wm-tile{fill:var(--lime)}
.wm-h .wm-stroke{stroke:#131318}
.wm-m .wm-tile{fill:var(--m-tile)}
.wm-m .wm-stroke{stroke:var(--m-stroke)}
.brand-sub{font-family:var(--display);font-size:9.5px;line-height:1;letter-spacing:.5em;margin-right:-.5em;text-transform:uppercase;white-space:nowrap;font-weight:700}
.nav{justify-self:end;display:flex;align-items:center;gap:4px;font-weight:650;font-size:15px}
.nav a{text-decoration:none;padding:11px 12px;border-radius:999px}
.nav a:not(.lang){display:none}
.nav a:hover{background:var(--panel)}
.lang{display:inline-block;white-space:nowrap;border:2px solid currentColor;border-radius:999px;padding:9px 16px;font-weight:700;font-size:15px;text-decoration:none;line-height:1.3}
.nav .lang{padding:9px 16px}
.intro{grid-column:1/-1}
h1{font-size:clamp(20px,5.6vw,34px);line-height:1.22;max-width:21em;text-wrap:balance}
:lang(ja) h1{line-height:1.4;word-break:keep-all;line-break:strict}
.lead{margin-top:8px;color:var(--soft);max-width:44em;font-size:15.5px;text-wrap:pretty}

/* Filters: radio buttons, so they work without scripts and with the arrow keys */
.gallery{padding-top:10px;position:relative}
.filters{display:flex;flex-wrap:wrap;gap:8px;padding-block:8px 14px}
@media (max-width:699px){
  .filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(-1*clamp(14px,3.4vw,40px));padding:8px clamp(14px,3.4vw,40px) 14px;scroll-padding-inline:14px}
  .filters::-webkit-scrollbar{display:none}
  .chip{flex:none}
}
.chip{position:relative;cursor:pointer}
.chip input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.chip span{display:block;padding:10px 16px;border-radius:999px;border:2px solid var(--line);font-weight:700;font-size:15px;line-height:1.3;transition:background-color .2s,border-color .2s,color .2s}
.chip:hover span{border-color:var(--ink)}
.chip input:checked+span{background:var(--ink);border-color:var(--ink);color:var(--page)}
.chip input:focus-visible+span{outline:3px solid var(--focus);outline-offset:3px}

/* The boxes: one size for every project. Two across on a phone (compact), two on a tablet, four on a desktop. */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.boxes{display:contents}
.card{position:relative;display:flex;flex-direction:column;min-width:0;background:var(--bg);color:var(--fg);border-radius:var(--r);overflow:hidden;--quiet:color-mix(in srgb,var(--fg) 84%,var(--bg));--edge:color-mix(in srgb,var(--fg) 22%,var(--bg))}
.anchor{position:absolute;top:-16px}
.art{aspect-ratio:4/3;display:grid;place-items:center;min-height:0}
.art-svg{width:100%;height:100%}
.art-svg text{font-family:var(--sans);font-weight:700}
.art-svg .td{font-family:var(--display);font-weight:700}
.art-svg .td:lang(ja){font-weight:800;font-synthesis:none}
.art-icon{width:44%;height:auto;border-radius:22.5%;box-shadow:0 18px 40px -18px rgb(0 0 0/.45)}
.art-letter{font-family:var(--display);font-size:120px;line-height:1;font-weight:700}
.body{display:flex;flex-direction:column;flex:1;gap:5px;padding:2px 12px 12px}
.id{display:flex;align-items:center;gap:8px;min-height:34px}
.icon{width:34px;height:34px;flex:none;border-radius:8px}
.icon-letter{display:grid;place-items:center;background:var(--fg);color:var(--bg);font-family:var(--display);font-size:17px;font-weight:700}
.meta{font-size:11.5px;font-weight:650;line-height:1.3;color:var(--quiet)}
.card-heading{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:inherit;overflow-wrap:anywhere}
.platform-link{position:relative;z-index:2;color:inherit;text-underline-offset:3px}
.title{font-size:17px;line-height:1.28}
.title:lang(ja),.title:has([lang=ja]){line-height:1.4}
.title a{text-decoration:none;outline:0}
.main::after{content:"";position:absolute;inset:0;z-index:1;border-radius:var(--r)}
.main:focus-visible::after{outline:4px solid var(--fg);outline-offset:-8px}
.card:has(.main:focus-visible){outline:3px solid var(--focus);outline-offset:3px}
.name{display:block;font-size:12.5px;line-height:1.3;color:var(--quiet);margin-bottom:2px}
.name:lang(ja){line-height:1.45;margin-bottom:0}
.call{display:block}
.call:lang(ja){word-break:keep-all;line-break:strict}
.tagline{font-weight:750;font-size:13px;line-height:1.42}
.use{display:none;font-size:15px;color:var(--quiet);text-wrap:pretty}
.links{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:10px;margin-top:auto;padding-top:10px}
.go{display:inline-flex;align-items:center;gap:5px;background:var(--fg);color:var(--bg);border-radius:999px;padding:8px 12px;font-weight:750;font-size:13px;line-height:1.3}
.arrow{display:inline-block;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.more{position:relative;z-index:2;font-weight:700;font-size:13px;line-height:1.3;padding:12px 2px;text-underline-offset:4px;border-radius:8px}
.more:has(.store-badge){display:inline-flex;align-items:center;padding:2px 0;min-height:44px;border-radius:6px}
.store-badge{display:block;height:40px;width:auto;max-width:none}
.more:focus-visible{outline-color:var(--fg)}

/* Start here: a box in the same wall, in the studio's lime */
.guide{grid-column:1/-1;background:var(--lime);color:#131318;border-radius:var(--r);padding:22px 20px 14px;--soft:#33371c}
.guide-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 16px;margin-bottom:12px}
h2{font-size:24px;line-height:1.25}
h2:lang(ja){line-height:1.45}
.guide-head p{color:var(--soft)}
.steps{display:grid;grid-template-columns:minmax(0,1fr);gap:14px 28px}
.steps h3{font-size:16.5px;line-height:1.35}
.steps h3:lang(ja){line-height:1.55}
.steps p{font-size:14.5px;color:var(--soft);margin-top:4px}
.steps ul{margin-top:2px;display:flex;flex-wrap:wrap;gap:0 18px}
.steps a{display:inline-block;padding:9px 0;font-weight:700;text-underline-offset:4px}
.guide a:focus-visible{outline-color:#131318}
.tag{font-size:12px;font-weight:700;color:var(--soft);border:1.5px solid currentColor;border-radius:6px;padding:1px 6px;white-space:nowrap}
.closing{display:grid;grid-template-columns:minmax(0,1fr);gap:36px;margin-top:52px}
.closing p{margin-top:10px;max-width:40em}
.closing h3{font-size:14px;font-weight:700;color:var(--soft);margin-top:20px}
.closing a{font-weight:700;text-underline-offset:4px}
.support{display:flex;flex-wrap:wrap;gap:0 18px;margin-top:2px}
.support a{display:inline-block;padding:9px 0}
.foot{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:center;margin-top:56px;padding-top:22px;padding-bottom:40px;border-top:2px solid var(--line);font-size:13.5px;color:var(--soft)}
.foot-brand{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--ink)}
.foot-brand span{display:block}
/* The publisher lockup (the same drawing as /assets/ohm-software.svg), following the page's colour scheme */
.lockup{width:auto;height:26px;flex:none}
.lk-tile{fill:var(--cobalt)}
.lk-stroke{fill:none;stroke:#fff;stroke-width:13;stroke-linecap:round;stroke-linejoin:round}
.lk-h{fill:var(--lime)}
.lk-hs{stroke:#131318}
.lk-m,.lk-caption{fill:var(--m-tile)}
.lk-ms{stroke:var(--m-stroke)}
.foot .lang{color:var(--ink)}

/* 404 */
.lost{padding-block:8vh 14vh;max-width:760px}
.lost-box{display:inline-block;font-family:var(--display);font-size:clamp(64px,22vw,150px);line-height:1;background:var(--lime);color:#131318;border-radius:var(--r);padding:.12em .28em;rotate:-4deg;margin-bottom:28px;font-weight:700}
.lost h1{margin-bottom:10px}
.lost p{margin-top:10px}
.lost div{margin-top:36px}
.pill{display:inline-block;background:var(--ink);color:var(--page);border-radius:999px;padding:11px 20px;font-weight:700;text-decoration:none}

@supports (word-break:auto-phrase){
  :lang(ja) :is(.card:not(.feat) .title,.tagline,.meta,.steps h3,.lead){word-break:auto-phrase}
}
@media (max-width:699px){
  .lead{display:none}
  :root{--r:22px}
}
@media (max-width:359px){
  .title{font-size:16px}
  .body{padding-inline:10px}
  .go{font-size:12px;padding:8px 10px;white-space:nowrap}
  .go .arrow{display:none}
}
@media (min-width:360px){
  .call span{display:inline-block}
}
@media (min-width:700px){
  .wordmark{height:60px}
  .brand-sub{font-size:12.8px;letter-spacing:.52em;margin-right:-.52em}
  .brand{gap:8px}
  .nav a:not(.lang){display:block}
  .nav{gap:2px}
  .nav .lang{margin-left:8px}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .guide{grid-column:span 2}
  .gallery:has(#show-all:not(:checked)) .guide{grid-column:1/-1}
  .body{gap:6px;padding:2px 16px 16px}
  .id{gap:10px;min-height:44px}
  .icon{width:44px;height:44px;border-radius:10px}
  .icon-letter{font-size:22px}
  .meta{font-size:13.5px}
  .title{font-size:20px;line-height:1.25}
  .name{font-size:14px}
  .tagline{font-size:14.5px}
  .go{padding:10px 15px;font-size:14.5px}
  .more{font-size:14.5px;padding:11px 3px}
  .guide{padding:26px 28px 18px}
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .closing{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foot{grid-template-columns:auto 1fr auto;gap:28px}
}
/* Tablet: the Japanese heading is two lines here; a smaller size keeps the first row's buttons on the first screen */
@media (min-width:700px) and (max-width:1119px){
  :lang(ja) h1{font-size:28px}
}
@media (min-width:900px){
  .title{font-size:22px}
  .tagline{font-size:15.5px}
  .body{padding:4px 20px 20px}
}
@media (min-width:1120px){
  .mast{grid-template-columns:auto minmax(0,1fr) auto;gap:10px 36px;padding-top:20px}
  .brand{gap:8px}
  .wordmark{height:70px}
  .brand-sub{font-size:14.8px;letter-spacing:.53em;margin-right:-.53em}
  .intro{grid-column:2;grid-row:1;align-self:center}
  .nav{grid-column:3}
  h1{font-size:clamp(25px,2.2vw,31px)}
  .filters{padding-block:6px 14px}
  .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .body{padding:2px 18px 18px;gap:6px}
  .title{font-size:21px}
  .tagline{font-size:15px}
  .use{display:block;font-size:14.5px}
  .go{padding:10px 14px;white-space:nowrap}
  .more{white-space:nowrap}
}
@media (min-width:1360px){
  .title{font-size:23px}
  .go,.more{font-size:15px}
  .body{padding:2px 20px 20px}
}

/* On narrow cards the download badge sits above the website link. Both actions
   share a single line as soon as the card itself has room. */
@media (min-width:1020px) and (max-width:1119px), (min-width:1340px){
  .links{flex-direction:row;align-items:flex-end;justify-content:space-between;min-height:54px}
}
/* Share the vertical tracks within each desktop row, including when a filter
   changes the set of neighbours or a translated heading needs another line. */
@supports (grid-template-rows:subgrid){
  @media (min-width:1120px){
    .card,.guide{grid-row:span 5}
    .card{display:grid;grid-template-rows:subgrid;row-gap:0}
    .body{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:6px}
    .card-heading{gap:6px}
    .links{align-self:end}
  }
}

/* Hover, for pointers that can */
@media (hover:hover){
  .card{transition:box-shadow .3s}
  .card:hover{box-shadow:0 22px 40px -22px rgb(0 0 0/.5),inset 0 0 0 1.5px rgb(255 255 255/.1)}
  .card:hover .arrow{transform:translateX(5px)}
  .closing a:hover,.steps a:hover,.more:hover{text-decoration-thickness:3px}
}

/* Motion. Without it every drawing simply rests in its finished state.
   The lettering and the first row of boxes play once on load (one box on a phone's first screen... the first two there,
   two on a tablet, four on a desktop). Every other drawing is tied to scrolling: it assembles as its box comes up the
   screen, and holds still when you do. On hover any drawing plays again. */
.s0{--s:0}.s1{--s:1}.s2{--s:2}.s3{--s:3}.s4{--s:4}.s5{--s:5}
.a{--dx:0px;--dy:0px}
.from-l{--dx:-46px}.from-r{--dx:46px}.from-t{--dy:-46px}.from-b{--dy:46px}
.a-pop,.wm{transform-box:fill-box;transform-origin:center}
.a-shrink{transform-box:fill-box;transform-origin:left center}
@keyframes draw{0%{stroke-dashoffset:1;opacity:0}2%{opacity:1}to{stroke-dashoffset:0}}
@keyframes pop{0%{transform:scale(0);opacity:0}45%{opacity:1}to{transform:none}}
@keyframes slide{0%{transform:translate(var(--dx),var(--dy));opacity:0}to{transform:none;opacity:1}}
@keyframes fade{0%{opacity:0}}
@keyframes shrink{0%{transform:scaleX(2.17)}}
@keyframes draw2{0%{stroke-dashoffset:1;opacity:0}2%{opacity:1}to{stroke-dashoffset:0}}
@keyframes pop2{0%{transform:scale(0);opacity:0}45%{opacity:1}to{transform:none}}
@keyframes slide2{0%{transform:translate(var(--dx),var(--dy));opacity:0}to{transform:none;opacity:1}}
@keyframes fade2{0%{opacity:0}}
@keyframes shrink2{0%{transform:scaleX(2.17)}}

@media (prefers-reduced-motion:no-preference){
  .a-draw,.wm-stroke{stroke-dasharray:1}
  .wm{animation:pop .5s cubic-bezier(.2,.9,.3,1.25) both}
  .wm-h{animation-delay:.08s}
  .wm-m{animation-delay:.16s}
  .wm-stroke{animation:draw .45s ease-in-out both;animation-delay:.3s}
  .wm-h .wm-stroke{animation-delay:.42s}
  .wm-h .wm-s1{animation-delay:.56s}
  .wm-h .wm-s2{animation-delay:.7s}
  .wm-m .wm-stroke{animation-delay:.72s;animation-duration:.6s}

  .a-draw{animation-name:draw}
  .a-pop{animation-name:pop}
  .a-slide{animation-name:slide}
  .a-fade{animation-name:fade}
  .a-shrink{animation-name:shrink}
  /* on load: every drawing by default, so browsers without scroll timelines still get one performance */
  .a{animation-duration:.5s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.2,.9,.3,1.2);animation-delay:calc(.5s + var(--s)*.34s)}
  .a-draw{animation-timing-function:ease-in-out}

  @supports (animation-timeline:view()){
    .card{view-timeline:--box block}
    /* tied to scrolling: the boxes below the first row (two across on a phone, three on a tablet, four on a desktop) */
    .card:nth-child(n+3) .a{animation-timing-function:linear;animation-duration:auto;animation-delay:0s;animation-timeline:--box;animation-range:entry calc(2% + var(--s)*7%) entry calc(26% + var(--s)*7%)}
    @media (min-width:700px){
      .card:nth-child(3) .a{animation-timing-function:cubic-bezier(.2,.9,.3,1.2);animation-duration:.5s;animation-delay:calc(.5s + var(--s)*.34s);animation-timeline:auto;animation-range:normal}
      .card:nth-child(3) .a-draw{animation-timing-function:ease-in-out}
    }
    @media (min-width:1120px){
      .card:nth-child(4) .a{animation-timing-function:cubic-bezier(.2,.9,.3,1.2);animation-duration:.5s;animation-delay:calc(.5s + var(--s)*.34s);animation-timeline:auto;animation-range:normal}
      .card:nth-child(4) .a-draw{animation-timing-function:ease-in-out}
    }
  }

  @media (hover:hover){
    .card:hover .a{animation-duration:.5s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.2,.9,.3,1.2);animation-delay:calc(var(--s)*.2s);animation-timeline:auto;animation-range:normal}
    .card:hover .a-draw{animation-name:draw2;animation-timing-function:ease-in-out}
    .card:hover .a-pop{animation-name:pop2}
    .card:hover .a-slide{animation-name:slide2}
    .card:hover .a-fade{animation-name:fade2}
    .card:hover .a-shrink{animation-name:shrink2;animation-duration:.9s}
  }
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
}
@media print{.filters,.skip,.nav{display:none}}

.language-list{grid-column:1/-1;min-width:0;border-top:1px solid var(--line);padding-block-start:20px}
.language-list h2{font-size:17px;margin-block-end:8px}
.language-list ul{display:flex;flex-wrap:wrap;gap:2px 16px}
.language-list a{display:inline-block;padding-block:8px;text-decoration:none}
.language-list a:is(:hover,[aria-current]){text-decoration:underline;text-underline-offset:4px}
html:lang(ar){--jp:"Geeza Pro","Noto Sans Arabic",sans-serif}
html:lang(th){--jp:"Thonburi","Leelawadee UI","Noto Sans Thai",sans-serif}
html:lang(ko){--jp:"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif}
html:lang(zh-Hans){--jp:"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif}
html:lang(zh-Hant){--jp:"PingFang TC","Microsoft JhengHei","Noto Sans TC",sans-serif}
[lang="ja"]:is(span,text){--jp:"Hiragino Sans","Yu Gothic","Noto Sans JP",sans-serif}
html:lang(ar) :is(h1,h2,.title,.steps h3,.tagline),html:lang(th) :is(h1,h2,.title,.steps h3,.tagline){line-height:1.55}
[dir=rtl] .brand,[dir=rtl] .foot-brand,[dir=rtl] .art{direction:ltr}
[dir=rtl] .go .arrow{scale:-1 1}
.call span{max-width:100%}
.nav,.meta,.links,.go{min-width:0}
.links .go{white-space:normal;overflow-wrap:anywhere}
.more:has(.store-badge){max-width:100%}
.store-badge{max-width:100%;object-fit:contain}

.c-sumi{--bg:#17130f;--fg:#f6efe2}
.c-seeno{--bg:#ffc82e;--fg:#26140a}
.c-tripalbums{--bg:#9fd8c8;--fg:#0f2433}
.c-blackoutcamera{--bg:#0d0d12;--fg:#f4f1ea}
.c-wankotecho{--bg:#ffdfd3;--fg:#4d1a16}
.c-atoiku{--bg:#124ac4;--fg:#ffffff}
.c-imanokimi{--bg:#f6dde0;--fg:#45242f}
.c-kazokunonote{--bg:#ffeed6;--fg:#3a2a1c}
.c-kurashimainte{--bg:#d9efe9;--fg:#0c3835}
.c-goencho{--bg:#101c38;--fg:#f5edda}
.c-salonote{--bg:#ead7f6;--fg:#3a1f4f}
.c-portline{--bg:#0a1222;--fg:#e9f1ff}
.gallery:has(#show-learn:checked) .card:not(.g-learn){display:none}
.gallery:has(#show-photos:checked) .card:not(.g-photos){display:none}
.gallery:has(#show-family:checked) .card:not(.g-family){display:none}
.gallery:has(#show-home:checked) .card:not(.g-home){display:none}
.gallery:has(#show-work:checked) .card:not(.g-work){display:none}

/* Optional analytics (added by build.py only when analytics.json has a measurement ID): the first-visit question, and the
   privacy section with the same two buttons. Both buttons of a pair look the same, so neither answer is pushed. */
.consent[hidden],.consent-actions[hidden]{display:none}
.consent{position:fixed;z-index:20;left:50%;translate:-50% 0;bottom:max(12px,env(safe-area-inset-bottom));width:min(760px,calc(100% - 24px));
  display:grid;grid-template-columns:minmax(0,1fr);gap:12px 24px;align-items:center;
  background:var(--ink);color:var(--page);border-radius:var(--r);padding:18px 22px;box-shadow:0 12px 40px rgb(0 0 0/.28);font-size:14.5px;line-height:1.5}
.consent:lang(ja){line-height:1.7}
.consent h2{font-size:17px;line-height:1.3}
.consent h2:lang(ja){line-height:1.5}
.consent p{margin-top:4px}
.consent a{font-weight:700;text-underline-offset:4px;white-space:nowrap}
.consent-actions{display:flex;flex-wrap:wrap;gap:8px}
.consent .consent-actions{margin-top:0}
.consent-actions button{appearance:none;font:inherit;font-weight:700;font-size:15px;line-height:1.3;color:inherit;background:transparent;
  border:2px solid currentColor;border-radius:999px;padding:10px 18px;min-height:44px;cursor:pointer;white-space:nowrap;
  transition:background-color .2s,color .2s}
.consent-actions button:lang(ja){line-height:1.45}
.consent :focus-visible{outline-color:var(--page);border-radius:999px}
.consent a:focus-visible{border-radius:6px}
html:has(.consent:not([hidden])){scroll-padding-bottom:240px}
.privacy{grid-column:1/-1;border-top:2px solid var(--line);padding-top:28px;scroll-margin-top:16px}
.privacy p,.privacy .sent{max-width:46em;font-size:14.5px}
.privacy p{color:var(--soft)}
.privacy .sent{list-style:disc;padding-inline-start:1.3em;margin-top:6px;color:var(--soft)}
.privacy .sent li{margin-top:3px}
.privacy .choice{margin-top:18px;display:grid;gap:10px}
.privacy .choice-status{margin-top:0;color:var(--ink);font-weight:700;font-size:15px}
.privacy .consent-actions{margin-top:0}
.privacy .consent-actions button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--page)}
.foot-notes a{font-weight:700;text-underline-offset:4px;display:inline-block;padding:9px 0}
@media (hover:hover){
  .consent-actions button:hover{background:var(--page);color:var(--ink);border-color:var(--page)}
  .privacy .consent-actions button:hover{background:var(--ink);color:var(--page);border-color:var(--ink)}
}
@media (min-width:700px){
  .consent{grid-template-columns:minmax(0,1fr) auto;padding:20px 26px}
}
@media (prefers-reduced-motion:reduce){
  .consent-actions button{transition:none}
}
@media (forced-colors:active){
  .consent{border:2px solid CanvasText}
}
