/* The guides (tools/build.mjs): the landing page's own pieces, still. Its black and white, the
   yellow of a flash for what you can press, its cloth, paper and velvet, the island, the long cat
   and Miso's card. No script but the analytics. */
.guide{background:#000}
.guide main{display:block}

/* ── The notch: Winky's eyes, home ── */
.g-notch{position:absolute;left:50%;top:0;translate:-50% 0;z-index:5}
.g-notch a{display:flex;align-items:center;gap:9px;height:40px;padding:0 22px 2px 18px;background:#000;border-radius:0 0 20px 20px;box-shadow:0 0 0 1px rgb(255 255 255/.16);font:700 15px/1 -apple-system,BlinkMacSystemFont,system-ui,sans-serif;transition:color .15s}
.g-notch .eyes{width:27px;height:18px;fill:currentColor;overflow:visible}
@media(hover:hover){.g-notch a:hover{color:var(--hi)}.g-notch a:hover .eyes path{transform:scaleY(.14)}}

/* ── Cloth behind each part, fading into its own black or white, as on the landing page ── */
.g-cover,.g-sec{isolation:isolate}
.g-cover:before,.g-sec:before{content:"";position:absolute;inset:0;z-index:-1;background:var(--cloth) center/cover;-webkit-mask:linear-gradient(#0000,#000 14%,#000 86%,#0000);mask:linear-gradient(#0000,#000 14%,#000 86%,#0000);pointer-events:none}
.g-cover,.g-sec.dusk{--cloth:url(assets/velvet.webp)}.g-sec.dusk:nth-of-type(4n):before{transform:scaleX(-1)}
.g-sec.linen{--cloth:url(assets/linen.webp)}.g-sec.paper{--cloth:url(assets/paper.webp)}

/* ── Cover: the answer first, the picture beside it ── */
.g-cover{min-height:min(100vh,980px);display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:center;gap:56px 5vw;padding:120px 5vw 88px}
.g-crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:15px;font-weight:600;color:#98989d;margin-bottom:26px}
.g-crumbs a{text-decoration:underline;text-decoration-color:rgb(255 255 255/.3);text-underline-offset:3px;transition:color .15s,text-decoration-color .15s}
@media(hover:hover){.g-crumbs a:hover{color:#fff;text-decoration-color:currentColor}}
.g-cover h1{font-size:clamp(44px,7.2vw,120px);font-weight:900;line-height:.9;letter-spacing:-.045em;text-wrap:balance}
.g-cover h1 span{display:block}
.g-answer{margin-top:34px;max-width:33ch;font-size:clamp(19px,1.7vw,26px);font-weight:600;line-height:1.36;letter-spacing:-.01em;color:#c7c7cc;text-wrap:pretty}
.g-answer p:first-child{color:#fff}.g-answer p+p{margin-top:.75em}
.g-acts{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;margin-top:38px;font-size:14px;font-weight:600;color:#8e8e93}
.g-acts .get{font-size:clamp(17px,1.4vw,20px)}
.g-cover-art{display:grid;place-items:center;min-width:0}

/* Words set in the page: keys, folders and links */
:is(.g-answer,.g-words) kbd{font:700 .74em/1 ui-rounded,-apple-system,system-ui;min-width:1.7em;height:1.6em;padding:0 .38em;border-radius:.32em;box-shadow:inset 0 0 0 1.5px currentColor;opacity:1;vertical-align:.12em;white-space:nowrap}
:is(.g-answer,.g-words) code{font:600 .86em/1 ui-monospace,SFMono-Regular,Menlo,monospace;padding:.16em .38em;border-radius:.32em;background:rgb(127 127 127/.18);overflow-wrap:anywhere}
.g-words a{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;text-decoration-color:rgb(127 127 127/.6);transition:color .15s,text-decoration-color .15s}
@media(hover:hover){.g-words a:hover{text-decoration-color:currentColor;color:var(--ink)}}

/* ── Parts: a big title on the left, the words on the right ── */
.g-sec{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start;gap:40px 6vw;padding:clamp(88px,11vw,170px) 5vw}
.g-sec.wide{grid-template-columns:minmax(0,1fr)}.g-sec.wide .g-words{max-width:1180px}
.g-sec h2{font-size:clamp(40px,5.2vw,86px);line-height:.92;color:var(--ink)}
.g-run{display:inline-grid;place-items:center;min-width:42px;height:26px;padding:0 10px;margin-bottom:22px;border-radius:99px;box-shadow:inset 0 0 0 1.5px var(--ink);color:var(--ink);font-size:13px;font-weight:800;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.g-sec .g-art{margin-top:clamp(34px,4vw,60px)}
.g-words{font-size:clamp(17px,1.35vw,20px);line-height:1.5;color:#d1d1d6;max-width:40em;text-wrap:pretty}.day .g-words{color:#3a3a3c}
.g-words>*+*{margin-top:1.15em}
.g-words b{color:var(--ink)}
.dots,.steps,.needs,.slip ol{list-style:none;padding:0}
.dots li{position:relative;padding-left:1.5em}.dots li+li{margin-top:.55em}
.dots li:before{content:"";position:absolute;left:.1em;top:.52em;width:.58em;height:.58em;border-radius:99px;background:var(--hi);box-shadow:0 0 0 1.5px var(--ink)}
/* Steps wear the editor's own step numbers */
.steps{counter-reset:s}.steps li{counter-increment:s;position:relative;padding:.15em 0 0 3em;min-height:2.2em;color:var(--ink);font-weight:600}.steps li+li{margin-top:1em}
.steps li:before{content:counter(s);position:absolute;left:0;top:0;width:2.05em;height:2.05em;border-radius:99px;display:grid;place-items:center;background:#ff3b30;color:#fff;font-weight:800;font-size:.95em;box-shadow:0 4px 12px rgb(255 59 48/.3)}
.needs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:14px}
.needs li{display:grid;gap:6px;padding:22px 24px;border-radius:22px;background:rgb(127 127 127/.14)}
.needs b{font-size:1.4em;font-weight:900;letter-spacing:-.03em;line-height:1.1}

/* ── Side by side: Winky, and Apple's words ── */
.cmp table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:clamp(15px,1.15vw,17px);line-height:1.45}
.cmp thead td{width:24%}.cmp thead th{width:38%;text-align:left;padding:0 18px 16px;font-size:15px;font-weight:800;color:var(--ink);vertical-align:bottom}
.cmp thead th:first-of-type span,.cmp thead th:first-of-type{color:var(--ink)}
.cmp thead th:first-of-type:before{content:"";display:inline-block;width:.62em;height:.62em;border-radius:99px;background:var(--hi);box-shadow:0 0 0 1.5px var(--ink);margin-right:.5em;vertical-align:.02em}
.cmp tbody tr{border-top:1.5px solid rgb(127 127 127/.32)}
.cmp tbody th{text-align:left;padding:18px 18px 18px 0;font-weight:800;color:var(--ink);vertical-align:top}
.cmp td{padding:18px;vertical-align:top}
.cmp td.w{color:var(--ink);font-weight:600}
.cmp q{display:block;color:var(--ink);font-weight:500}
.cmp cite{display:block;margin-top:7px;font-style:normal;font-size:13px;font-weight:600}
.cmp cite a{color:#8e8e93;text-decoration-color:rgb(142 142 147/.5)}
.cmp td.unsaid{color:#8e8e93;font-weight:600}

/* ── Questions and sources ── */
.qa+.qa{margin-top:1.5em;padding-top:1.5em;border-top:1.5px solid rgb(127 127 127/.28)}
.qa h3{font-size:clamp(20px,1.7vw,26px);font-weight:800;line-height:1.2;letter-spacing:-.02em;color:var(--ink);text-wrap:balance}
.qa p{margin-top:.45em}
.slip{position:relative;padding:30px 32px}
.slip>i{position:absolute;width:26px;height:26px;border:4px solid var(--ink)}
.slip>i:nth-of-type(1){left:-6px;top:-6px;border-right:0;border-bottom:0}.slip>i:nth-of-type(2){right:-6px;top:-6px;border-left:0;border-bottom:0}.slip>i:nth-of-type(3){left:-6px;bottom:-6px;border-right:0;border-top:0}.slip>i:nth-of-type(4){right:-6px;bottom:-6px;border-left:0;border-top:0}
.slip li+li{margin-top:16px}
.slip a,.slip b{font-weight:800;color:var(--ink)}
.slip span{display:block;font-size:.85em;color:#8e8e93;margin-top:2px}

/* ── Night night ── */
.g-bye{min-height:min(100vh,860px)}
.g-owls{position:absolute;left:0;bottom:0;width:100%;height:max(42.88vw,380px);object-fit:cover;object-position:67.5% 50%}
.g-bye-in{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px 40px;padding:10vh 5vw 0}
.g-bye h2{font-size:clamp(48px,min(8vw,12vh),140px);line-height:1.06;letter-spacing:-.01em}
.g-bye .get{font-size:clamp(17px,1.5vw,22px)}
.g-more{flex-basis:100%;font-size:16px;font-weight:600;color:#c7c7cc}
.g-more a{color:#fff;text-decoration:underline;text-decoration-color:rgb(255 255 255/.35);text-underline-offset:3px;transition:color .15s,text-decoration-color .15s}
@media(hover:hover){.g-more a:hover{color:var(--hi);text-decoration-color:currentColor}.cmp cite a:hover{color:var(--ink)}.slip a:hover{text-decoration-color:currentColor}}

/* ── The pictures: still frames of the landing page's scenes ── */
.isl{background:#000;color:#fff;border-radius:0 0 34px 34px;box-shadow:0 0 0 1px rgb(255 255 255/.16),0 26px 44px rgb(0 0 0/.45);font:600 13px/1 -apple-system,BlinkMacSystemFont,system-ui,sans-serif;width:min(100%,540px)}
.isl svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.isl .eyes{width:24px;height:16px;fill:#fff;stroke:none}
.isl-row{display:flex;gap:6px}
.isl-row>span{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 11px;border-radius:99px;background:rgb(255 255 255/.11);white-space:nowrap}
.isl-row .o{width:32px;padding:0}
.isl-shelf{width:min(100%,620px);padding:22px 24px 26px}
.isl-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}
.isl-tiles img{width:100%;aspect-ratio:134/86;object-fit:cover;object-position:50% 30%;border-radius:10px;box-shadow:0 0 0 1px rgb(255 255 255/.12)}
.isl-saved{width:min(100%,440px);padding:16px 22px 22px}
.isl-title{display:flex;align-items:center;gap:10px;font-size:14px;margin-bottom:14px}
.isl-saved>img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px}
.isl-saved .isl-row{margin-top:14px}.isl-saved .isl-row>span{flex:1}
.long{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(18px,3vw,40px);width:min(100%,560px);height:min(76vh,700px);padding-top:84px}
.isl-scroll{position:absolute;left:50%;top:0;translate:-50% 0;width:max-content;max-width:100%;display:flex;align-items:center;gap:18px;padding:12px 14px 14px 18px;border-radius:0 0 26px 26px}
.isl-scroll p{display:grid;grid-template-columns:auto auto;align-items:center;gap:4px 10px}.isl-scroll p .eyes{grid-row:span 2}
.isl-scroll p span{color:#98989d;font-weight:400;font-size:12px}
.isl-scroll .done{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:99px;background:rgb(255 255 255/.11)}
.isl kbd{font-size:10.5px}
.long-frame{position:relative;min-height:0}
.long-frame img{width:100%;height:100%;object-fit:cover;object-position:50% 0}
.long-frame>i{position:absolute;width:26px;height:26px;border:4px solid #fff}
.long-frame>i:nth-of-type(1){left:-8px;top:-8px;border-right:0;border-bottom:0}.long-frame>i:nth-of-type(2){right:-8px;top:-8px;border-left:0;border-bottom:0}.long-frame>i:nth-of-type(3){left:-8px;bottom:-8px;border-right:0;border-top:0}.long-frame>i:nth-of-type(4){right:-8px;bottom:-8px;border-left:0;border-top:0}
.long-strip{height:100%;aspect-ratio:.16;border-radius:4px;overflow:hidden;box-shadow:0 0 0 2px #fff}
.long-strip img{width:100%;height:100%}
.desk{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;width:min(100%,600px);padding:16px 18px;border-radius:24px;background:#111113;box-shadow:0 0 0 1px rgb(255 255 255/.1),0 26px 44px rgb(0 0 0/.4)}
.desk-tools{display:grid;gap:4px}
.desk-tools span{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#fff}
.desk-tools span.on{background:#fff;color:#000}
.desk svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.desk-pic{position:relative}
.desk-pic img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}
.desk-pic svg{position:absolute;inset:0;width:100%;height:100%;stroke-width:5}
.desk-pic .box{stroke:#ffd60a}.desk-pic .arrow{stroke:#ff3b30;stroke-width:6}
.desk-pic .step{fill:#ff3b30;stroke:#fff;stroke-width:2.5}
.desk-pic text{fill:#fff;stroke:none;font:800 17px/1 -apple-system,system-ui;text-anchor:middle}
.desk-inks{display:grid;gap:12px}
.desk-inks i{width:24px;height:24px;border-radius:99px;background:var(--c);box-shadow:inset 0 0 0 1px rgb(255 255 255/.25)}
.desk-inks i:first-child{box-shadow:0 0 0 3px #111113,0 0 0 5px #fff}
.miso{width:max-content;max-width:100%;padding:clamp(20px,2.4vw,34px) clamp(22px,2.8vw,40px);border-radius:20px;background:#fff;color:#000;rotate:-1.5deg;box-shadow:0 0 0 1px rgb(0 0 0/.08),0 22px 44px rgb(0 0 0/.28)}
.miso p{font-size:clamp(24px,3.3vw,50px);font-weight:900;line-height:1.24;letter-spacing:-.045em;white-space:nowrap}
.miso span{position:relative;display:inline-block}
.miso p:nth-child(2) span:after{content:"";position:absolute;inset:3% -1.2% 0;background:#000;border-radius:.08em}
.miso p:nth-child(3) span:before{content:"";position:absolute;inset:3% -1.2% 0;border:3px dashed #ff9f0a;border-radius:.08em}

@media(max-width:900px){
  .g-cover{grid-template-columns:minmax(0,1fr);padding-top:96px;min-height:0}
  .g-sec{grid-template-columns:minmax(0,1fr)}
  .long{height:min(64vh,560px)}
  /* the table becomes one card per row, each cell saying whose it is */
  .cmp table,.cmp tbody,.cmp tr,.cmp th,.cmp td{display:block;width:auto}
  .cmp thead{display:none}
  .cmp tbody tr{padding:18px 0}
  .cmp tbody th{padding:0 0 10px}
  .cmp td{padding:8px 0 0}
  .cmp td:before{content:attr(data-who);display:block;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#8e8e93;margin-bottom:3px}
  .slip{padding:24px 22px}
  /* the owls follow the words, rather than waiting under a tall empty night */
  .g-bye{min-height:0;display:flex;flex-direction:column}.g-bye-in{padding-top:88px}.g-owls{position:relative;order:1;margin-top:48px}
}
@media(max-width:480px){
  .isl-row>span{padding:0 9px;gap:5px}.isl-row kbd{display:none}
  .desk{gap:10px;padding:12px}.desk-tools span{width:32px;height:32px;border-radius:9px}.desk-tools svg{width:17px;height:17px}.desk-inks i{width:18px;height:18px}
}
