/* Phayen — darkroom black, ivory ink, one amber safelight. No scripts, no inline styles (CSP). */
@font-face{font-family:"Phayen Serif";src:url(serif.b45952c5eb.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}
:root{color-scheme:dark;--bg:#080807;--ink:#f2f0e6;--muted:#aba79c;--faint:#7a766c;--line:rgba(242,240,230,.11);--panel:#11100d;--amber:#ff9f43;--amber-hi:#ffb667;--serif:"Phayen Serif","Noto Serif SC","Source Han Serif SC","Songti SC",serif;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;--mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;--gutter:clamp(20px,4vw,56px);background:var(--bg);color:var(--ink);font:16px/1.75 var(--sans);-webkit-text-size-adjust:100%}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg)}
a{color:inherit;text-underline-offset:.3em;text-decoration-thickness:1px}
a:hover{color:var(--amber-hi)}
:focus-visible{outline:2px solid var(--amber);outline-offset:4px;border-radius:2px}
.skip{position:absolute;left:12px;top:-80px;z-index:10;background:var(--ink);color:var(--bg);padding:8px 14px;border-radius:6px;text-decoration:none}
.skip:focus{top:12px}
.draft{background:#352617;color:#ffe0bb;padding:8px var(--gutter);text-align:center;font-size:13px}
h1,h2,p{margin-top:0}

/* Frame: one screen, header and footer on the edges */
.stage{min-height:100vh;min-height:100svh;display:grid;grid-template-rows:auto 1fr auto}
.bar{display:flex;align-items:center;justify-content:space-between;gap:12px 28px;padding:clamp(18px,3.4vh,36px) var(--gutter)}
.brand{display:block;line-height:0;padding:6px 0}
.brand img{height:15px;width:auto}
.bar nav{display:flex;flex-wrap:wrap;align-items:center;gap:10px clamp(18px,2.4vw,34px)}
.bar nav a{font-size:13px;letter-spacing:.06em;color:var(--muted);text-decoration:none;transition:color .25s ease}
.bar nav a:hover,.bar nav a[aria-current=page]{color:var(--ink)}
.head .lang{font-family:var(--mono);font-size:12px;letter-spacing:.14em}
.foot{font:12px/1.6 var(--mono);letter-spacing:.04em;color:var(--faint)}
.foot nav a{font-size:12px;letter-spacing:.04em;color:var(--faint)}

/* Home: the sentence on the left, the Φ on the right */
.poster{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:clamp(40px,7vw,140px);width:100%;max-width:1680px;margin:0 auto;padding:0 calc(var(--gutter) + min(6vw,110px)) 0 calc(var(--gutter) + min(5vw,90px))}
.copy{max-width:640px}
.display{font:600 clamp(46px,5.6vw,92px)/1.16 var(--serif);letter-spacing:-.005em;margin:0 0 .42em;font-feature-settings:"palt";font-kerning:normal}
.display .line{display:block;padding:.14em 0 .26em;margin:-.14em 0 -.26em}
.display:lang(en){font-size:clamp(40px,4.5vw,74px);line-height:1.1;letter-spacing:-.018em}
.lede{font-size:clamp(16px,1.3vw,19px);line-height:1.6;color:var(--muted);letter-spacing:.03em;margin:0 0 clamp(28px,5.5vh,56px)}
.soon{display:inline-flex;align-items:center;gap:14px;margin:0;font-size:14px;letter-spacing:.08em;color:var(--ink)}
.soon::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--amber);box-shadow:0 0 0 4px rgba(255,159,67,.13),0 0 18px 3px rgba(255,159,67,.5);animation:breathe 4s ease-in-out infinite}
.store{display:inline-flex;align-items:center;padding:13px 24px;border-radius:999px;background:var(--ink);color:var(--bg);text-decoration:none;font-weight:600;font-size:15px;letter-spacing:.02em}
.store:hover{background:var(--amber-hi);color:var(--bg)}

/* Φ: brand proportions (stem 52 and 138 on a 488 bowl, 764 tall). The bowl is a photograph;
   the stem stays ivory outside it and shows the picture as an orange-masked negative where it crosses. */
.phi{position:relative;margin:0;height:min(74svh,760px);aspect-ratio:488/764;justify-self:center}
.phi>span{position:absolute;display:block}
.phi-stem{left:44.672%;width:10.656%;height:18.063%;background:var(--ink)}
.phi-top{top:0;transform-origin:50% 100%}
.phi-bottom{bottom:0;transform-origin:50% 0}
.phi-lamp,.phi-glow,.phi-halo{left:0;top:18.063%;width:100%;aspect-ratio:1;border-radius:50%}
.phi-lamp{overflow:hidden;background:#17120d;isolation:isolate}
.phi img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.phi .neg{clip-path:inset(-2px 44.672%);filter:invert(1)}
.phi .phi-mask{position:absolute;inset:0;clip-path:inset(-2px 44.672%);background:#ec9a55;mix-blend-mode:multiply}
.phi-halo{transform:scale(1.22);background:radial-gradient(closest-side,rgba(255,122,48,.42) 78%,rgba(255,106,43,.16) 86%,rgba(255,106,43,0))}
.phi-glow{transform:scale(1.5);filter:blur(56px) saturate(1.25);opacity:.55;-webkit-mask-image:radial-gradient(closest-side,#000 45%,transparent);mask-image:radial-gradient(closest-side,#000 45%,transparent)}
/* Safelight: the mark itself, drawn in CSS. Gradient geometry and colours from the icon. */
.phi-safelight .phi-lamp{background:radial-gradient(72.5% 72.5% at 36% 34%,#ffb667 0,#ff9f43 60%,#f38b33 100%)}
.phi-safelight .phi-lamp::after{content:"";position:absolute;inset:0;opacity:.32;mix-blend-mode:overlay;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E")}
.phi-cut{position:absolute;top:-1px;bottom:-1px;left:44.672%;width:10.656%;background:var(--bg);z-index:1}
.phi-safelight .phi-glow{transform:scale(2.13);filter:none;opacity:1;-webkit-mask-image:none;mask-image:none;background:radial-gradient(closest-side,rgba(255,159,67,.24),rgba(255,159,67,.07) 50%,rgba(255,159,67,0))}
.phi-safelight .phi-halo{background:radial-gradient(closest-side,rgba(255,122,48,.5) 78%,rgba(255,106,43,.22) 86%,rgba(255,106,43,0))}
/* Entrance, once (~3.7 s), as a long exposure, each phase picking up as the previous
   one eases out: a white-hot spark paints the rim and melts into its amber trail; the
   light then floods in from that rim to the centre, warm-white cooling to amber, while
   the halation rises and the trail dissolves into the edge; the stem extends; the
   sentence is printed by a sweep of light; the rest settles in. Only after every fade
   has finished does the glow start breathing, in step with the status dot.
   Reduced motion: the finished frame, nothing moves. */
@property --flood{syntax:"<percentage>";inherits:false;initial-value:-32%}
.phi .phi-orbit,.phi .phi-trace{display:none}
@media (prefers-reduced-motion:no-preference){
  .phi-safelight .phi-orbit,.phi-safelight .phi-trace{display:block;position:absolute;left:0;top:18.063%;width:100%;aspect-ratio:1;pointer-events:none}
  .phi-trace{overflow:visible;transform:rotate(-90deg)}
  .phi-trace circle{fill:none;stroke:#ffc27a;stroke-width:.9;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;filter:drop-shadow(0 0 1.6px #ff9f43) drop-shadow(0 0 5px rgba(255,122,48,.8));animation:trace 1.2s cubic-bezier(.6,0,.3,1) .2s forwards,dissolve 1.1s cubic-bezier(.4,0,.2,1) 1.3s forwards}
  .phi-orbit{animation:orbit 1.2s cubic-bezier(.6,0,.3,1) .2s both}
  .phi-spark{position:absolute;left:50%;top:0;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#fffaf0;box-shadow:0 0 6px 2px #ffe2b8,0 0 18px 6px rgba(255,159,67,.85),0 0 46px 14px rgba(255,106,43,.45);opacity:0;animation:spark 1.2s linear .2s both}
  .phi-safelight .phi-lamp{-webkit-mask-image:radial-gradient(closest-side,transparent var(--flood),#000 calc(var(--flood) + 32%));mask-image:radial-gradient(closest-side,transparent var(--flood),#000 calc(var(--flood) + 32%));animation:flood 1.3s cubic-bezier(.4,0,.3,1) 1.2s both,cool 1.9s cubic-bezier(.3,0,.2,1) 1.2s both}
  .phi-safelight .phi-halo{animation:fade-in 1.6s cubic-bezier(.3,0,.2,1) 1.35s both,glow 4s ease-in-out 4s infinite}
  .phi-safelight .phi-glow{animation:fade-in 2.1s cubic-bezier(.3,0,.2,1) 1.3s both,glow 4s ease-in-out 4s infinite}
  .phi-safelight .phi-stem{animation:stem 1.1s cubic-bezier(.25,.8,.25,1) 1.95s both}
  .home .display .line,.doc .article h1{-webkit-mask-size:250% 100%;mask-size:250% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
  .home .display .line{animation:print 1.5s cubic-bezier(.4,0,.2,1) backwards}
  .home .display .line:nth-child(1){animation-delay:1.5s}
  .home .display .line:nth-child(2){animation-delay:1.7s}
  .home .lede{animation:fade-in 1.1s cubic-bezier(.3,0,.2,1) 2.45s both}
  .home .soon,.home .store{animation:fade-in 1.1s cubic-bezier(.3,0,.2,1) 2.65s both}
  .home .soon::before{animation-delay:4s}
  .home .bar{animation:fade-in 1.2s cubic-bezier(.3,0,.2,1) 2.8s both}
  .doc .article h1{animation:print 1.4s cubic-bezier(.4,0,.2,1) .1s backwards}
  .doc .article>:not(h1){animation:fade-in 1.1s cubic-bezier(.3,0,.2,1) .5s both}
}
@keyframes trace{to{stroke-dashoffset:0}}
@keyframes dissolve{to{opacity:0}}
@keyframes orbit{from{transform:rotate(0)}to{transform:rotate(360deg)}}
@keyframes spark{0%{opacity:0;transform:scale(.4)}9%{opacity:1;transform:none}78%{opacity:1;transform:none}100%{opacity:0;transform:scale(.55)}}
@keyframes flood{from{--flood:100%}to{--flood:-32%}}
@keyframes cool{from{filter:brightness(1.9) saturate(.4)}to{filter:none}}
/* The sweep mask exists only while it runs (fill: backwards), so nothing is masked afterwards;
   the padding below lets it cover ascenders and descenders while it does. */
@keyframes print{from{-webkit-mask-image:linear-gradient(90deg,#000 42%,transparent 58%);mask-image:linear-gradient(90deg,#000 42%,transparent 58%);-webkit-mask-position:100% 0;mask-position:100% 0;color:var(--amber-hi)}to{-webkit-mask-image:linear-gradient(90deg,#000 42%,transparent 58%);mask-image:linear-gradient(90deg,#000 42%,transparent 58%);-webkit-mask-position:0 0;mask-position:0 0;color:var(--ink)}}
@keyframes fade-in{from{opacity:0}}
@keyframes glow{50%{opacity:.62}}
@media (prefers-reduced-motion:no-preference){
  .phi-lamp{animation:develop 2.8s cubic-bezier(.33,0,.2,1) .25s both}
  .phi-glow,.phi-halo{animation:safelight 3.2s ease-out .2s both}
  .phi-stem{animation:stem 1.1s cubic-bezier(.2,.7,.2,1) 1.6s both}
}
@keyframes develop{0%{filter:sepia(1) saturate(1.4) hue-rotate(-14deg) brightness(1.65) contrast(.18)}55%{filter:sepia(.35) saturate(1.15) hue-rotate(-6deg) brightness(1.12) contrast(.75)}100%{filter:none}}
@keyframes safelight{from{opacity:0}}
@keyframes stem{from{transform:scaleY(0)}}
@keyframes breathe{50%{opacity:.5;box-shadow:0 0 0 4px rgba(255,159,67,.05),0 0 10px 1px rgba(255,159,67,.28)}}
@media (prefers-reduced-motion:reduce){.soon::before{animation:none}}

/* Documents: support, privacy, terms */
.article{width:100%;max-width:800px;margin:0 auto;padding:clamp(28px,7vh,80px) var(--gutter) clamp(40px,8vh,88px)}
.article h1{font:600 clamp(34px,4.6vw,56px)/1.2 var(--serif);letter-spacing:-.005em;padding:.14em 0 .26em;margin:-.14em 0 .19em;font-feature-settings:"palt"}
.article h2{font:600 clamp(19px,2vw,23px)/1.45 var(--serif);margin:2.4em 0 .7em;font-feature-settings:"palt"}
.intro{font-size:clamp(17px,1.5vw,19px);line-height:1.8;color:var(--muted);margin:0 0 2.2em}
.article p,.article li{color:var(--muted)}
.article strong{color:var(--ink)}
.article a{overflow-wrap:anywhere}
.article section:first-of-type h2{margin-top:1.6em}
ul{padding-left:1.25rem}
.small{font:12px/1.6 var(--mono);letter-spacing:.04em;color:var(--faint)}
.notice{margin:0 0 2.6em;padding:26px 28px 10px;border-radius:16px;background:var(--panel);border:1px solid var(--line)}
.notice h2{margin-top:0}
.notice p:first-of-type{color:var(--ink);font-size:18px}
details{border-top:1px solid var(--line);padding:18px 0}
details:last-of-type{border-bottom:1px solid var(--line);margin-bottom:2em}
summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:baseline;gap:20px;font-weight:600;color:var(--ink)}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";flex:none;font:400 18px/1 var(--mono);color:var(--amber);transition:transform .2s ease}
details[open] summary::after{transform:rotate(45deg)}
details p{margin:14px 0 4px}
.doc .foot{border-top:1px solid var(--line)}

/* Narrow screens: Φ on top, the sentence under it, still one screen */
@media (max-width:860px){
  .poster{grid-template-columns:1fr;justify-items:center;align-content:center;text-align:center;row-gap:clamp(22px,4.5svh,44px);padding:0 var(--gutter) clamp(8px,2svh,24px)}
  .phi{order:-1;height:min(43svh,440px)}
  .display{font-size:clamp(36px,10.4vw,60px);margin-bottom:.36em}
.display:lang(en){font-size:clamp(32px,8.6vw,52px)}
  .lede{margin-bottom:clamp(20px,3.6svh,36px)}
  .phi-glow{filter:blur(36px) saturate(1.25)}
  .foot{justify-content:center;text-align:center;flex-direction:column;gap:6px}
  .foot nav{justify-content:center;gap:6px 18px}
}
/* Phones held sideways: back to side by side, so it still fits one screen */
@media (max-width:860px) and (max-height:520px) and (orientation:landscape){
  .bar{padding-top:12px;padding-bottom:12px}
  .poster{grid-template-columns:minmax(0,1fr) auto;justify-items:start;text-align:left;column-gap:6vw;padding:0 calc(var(--gutter) + 3vw)}
  .phi{order:0;height:68svh}
  .display{font-size:clamp(28px,5.2vw,44px)}
  .display:lang(en){font-size:clamp(26px,4.4vw,40px)}
  .lede{margin-bottom:16px}
  .foot{flex-direction:row;justify-content:space-between;text-align:left}
}
/* The smallest phones (320 wide): a notch smaller so it still fits one screen */
@media (max-width:360px){
  .phi{height:min(36svh,300px)}
  .display{font-size:34px}
  .display:lang(en){font-size:28px}
  .lede{font-size:15px}
}
@media (max-height:560px) and (min-width:861px){.phi{height:76svh}.display{font-size:clamp(36px,4.6vw,64px)}}
@media print{:root{color-scheme:light;background:#fff;color:#111;--ink:#111;--muted:#333;--faint:#555;--line:#bbb;--panel:#fff}.head,.foot,.draft,.skip{display:none}.article{max-width:none;padding:0}details{break-inside:avoid}}
