:root {
  color-scheme: dark;
  --ground: #08131d;
  --light: #f3f3ee;
  --mist: #abbcc5;
  --azure: #8fe2ff;
  --line: #ffffff30;
  --ui: "Segoe UI", Arial, sans-serif;
  --display: Cambria, "Times New Roman", serif;
  --caption: "Cascadia Code", Consolas, monospace;
  --rail: 64px;
  font-family: var(--ui);
  color: var(--light);
  background: var(--ground);
  scroll-padding-top: calc(var(--rail) + 15px);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
img, video { display: block; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, video:focus-visible {
  outline: 2px solid var(--azure); outline-offset: 4px;
}
.skip { position: absolute; top: -100px; left: 1em; z-index: 20; background: var(--light); color: var(--ground); padding: 12px; }
.skip:focus { top: 8px; }
.wrap { width: min(91%, 1512px); margin-inline: auto; }
.mast { position: sticky; top: 0; z-index: 5; height: var(--rail); background: #071827f5; backdrop-filter: blur(14px); }
.nav { display: flex; height: 100%; align-items: center; border-bottom: 1px solid var(--line); gap: 25px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 680; letter-spacing: -.055em; }
.brand img { object-fit: contain; }
.edition { font: 11px var(--caption); letter-spacing: .04em; color: #bed0da; padding-left: 19px; border-left: 1px solid var(--line); }
.edition span { color: var(--azure); }
.nav nav { margin-left: auto; display: flex; gap: 32px; font-size: 14px; }
.nav nav a, footer a { padding-block: 9px; }
.nav nav a:hover, footer a:hover { color: var(--azure); }
.hero {
  --travel: max(240px, 36svh);
  height: calc(100svh - var(--rail) + var(--travel));
  min-height: 740px;
  position: relative;
  isolation: isolate;
  background: var(--ground);
}
.hero-frame {
  --phase: 0;
  --reveal: 0;
  position: sticky; top: var(--rail);
  height: max(530px, calc(100svh - var(--rail)));
  overflow: clip;
  background:
    radial-gradient(ellipse at 12% 12%, #28618f80, transparent 53%),
    linear-gradient(127deg, #063e76 0%, #07578c 46%, #02496e 67%, #063851 100%);
}
.hero-frame::before {
  content: ""; position: absolute; inset: 0; opacity: .36;
  background: url(media/ink-wall.webp) center / cover;
  mix-blend-mode: soft-light; pointer-events: none;
}
.hero-frame::after {
  content: ""; position: absolute; inset: auto 0 0; height: 42%; pointer-events: none;
  background: linear-gradient(transparent,var(--ground)); opacity: calc(.9 + .1 * var(--phase));
}
.cover { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr); align-items: center; gap: clamp(24px,5vw,100px); padding: 3.4vh 0 7vh; z-index: 1; }
.cover-copy { padding-left: 2vw; transform: translateY(calc(-16px * var(--phase))); }
.lettering { position: relative; transform: rotate(-3deg); isolation: isolate; margin: 0 0 clamp(20px,4vh,43px) -5%; width: min(108%, 610px, 67svh); }
.lettering h1 { line-height: 0; margin: 0; }
.lettering h1 img { width: 100%; height: auto; filter: drop-shadow(0 13px 14px #00193277); }
.ink { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; transform: rotate(3deg); transform-origin: 50% 41.626%; pointer-events: none; }
.cover-title { margin: 0; font: 500 clamp(33px, 4.3vw, 80px)/1.05 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.cover-title em { color: #a4e4ff; font-weight: normal; }
.cover-link { display: inline-flex; align-items: center; gap: 21px; font-size: 14px; margin-top: clamp(19px,3.2vh,36px); padding: 9px 0; border-bottom: 1px solid #a6dcf6; }
.cover-link span { color: var(--azure); transition: transform .2s ease; }
.cover-link:hover span { transform: translateY(3px); }
.print { width: min(100%, 71svh, 740px); margin: 0 auto; transform: rotate(calc(-2.2deg + 2.2deg * var(--phase))) scale(calc(.97 + .03 * var(--phase))); transform-origin: 50% 52%; }
.paper { padding: clamp(8px,1.05vw,17px); padding-bottom: 0; background: #e8e6da; color: #171a19; box-shadow: 0 22px 38px -12px #00111cac; }
.proof {
  --cut: calc(20.0602% * (1 - var(--reveal)));
  position: relative; isolation: isolate; width: 100%; aspect-ratio: 997/896;
  background: repeating-linear-gradient(125deg,#bec3bc 0,#bec3bc 1px,#d7d8ce 1px,#d7d8ce 8px);
}
.proof img { position: absolute; top: 0; height: 100%; object-fit: fill; }
.original { width: 59.8796%; left: 20.0602%; }
.expanded { width: 100%; left: 0; clip-path: inset(0 var(--cut)); }
.crop-marks { position: absolute; inset: 0 var(--cut); outline: 1px solid #ffffffac; pointer-events: none; }
.crop-marks i { position: absolute; width: 12px; height: 12px; border: solid #fff; filter: drop-shadow(0 1px 2px #4448); }
.crop-marks i:nth-child(1) { top: 0; left: 0; border-width: 3px 0 0 3px; }
.crop-marks i:nth-child(2) { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.crop-marks i:nth-child(3) { top: 0; right: 0; border-width: 3px 3px 0 0; }
.crop-marks i:nth-child(4) { bottom: 0; right: 0; border-width: 0 3px 3px 0; }
.paper figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 14px; }
.paper figcaption a { font: italic clamp(17px,1.9vw,31px)/1.1 var(--display); }
.paper figcaption a span { font-family: var(--ui); font-style: normal; font-size: 60%; }
.paper figcaption a:hover { text-decoration: underline; }
.paper figcaption > span { font: 11px var(--caption); white-space: nowrap; }
.paper figcaption b { padding-inline: 4px; font-weight: normal; }
.proof-control { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 13px; font: 11px var(--caption); color: #e0eff6; }
.proof-control input { width: min(48%, 220px); accent-color: var(--azure); height: 22px; cursor: ew-resize; }
.tools { padding-bottom: 8vh; }
.sectionhead { display: grid; grid-template-columns: 1fr minmax(210px,390px); align-items: end; gap: 20px; padding: clamp(40px,7vw,104px) 0 clamp(25px,4vw,56px); border-bottom: 1px solid var(--line); }
.sectionhead h2 { font: normal clamp(52px,8.4vw,151px)/1.04 var(--display); margin: 0; letter-spacing: -.07em; }
.sectionhead h2 em { font-weight: normal; color: var(--azure); }
.sectionhead p, .desc { margin: 0; line-height: 1.55; font-size: clamp(15px,1.13vw,19px); color: var(--mist); }
.sectionhead p { max-width: 30ch; justify-self: end; }
.tour { display: grid; grid-template-columns: minmax(168px,20%) minmax(0,1fr); gap: min(6vw,105px); }
.side { position: sticky; top: calc(var(--rail) + 24px); padding-top: 16px; }
.side label { font: 12px var(--caption); color: var(--mist); }
.side select { display: none; }
.side nav { display: grid; margin-top: 12px; }
.side nav a { display: flex; align-items: baseline; gap: 13px; font-size: 15px; color: var(--mist); padding: 11px 0; border-top: 1px solid #ffffff1d; }
.side nav span { color: #92a5b0; font: 11px var(--caption); min-width: 2ch; }
.side nav a:hover, .side nav a[aria-current], .side nav a[aria-current] span { color: var(--azure); }
.chapter { position: relative; padding: clamp(44px,5vw,82px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 0; }
.chapter:first-child { padding-top: 34px; }
.chapter-head { display: grid; grid-template-columns: 1fr minmax(180px,39%); gap: 24px; align-items: end; margin-bottom: 26px; }
.toolname { display: flex; align-items: center; gap: 12px; color: var(--azure); font: 13px var(--caption); letter-spacing: .02em; margin: 0 0 10px; }
.toolname::before { content: ""; width: 25px; height: 1px; background: var(--azure); }
.chapter h3 { font: 500 clamp(31px,3.5vw,62px)/1.09 var(--display); letter-spacing: -.04em; margin: 0; max-width: 18ch; }
.desc { font-size: clamp(14px,1.02vw,17px); }
.media { margin: 0; }
.media video { width: 100%; aspect-ratio: 1920/1030; background: #19242d; }
.caption { display: flex; flex-wrap: wrap; gap: 7px 20px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.caption-label, .step { font: 11px var(--caption); color: var(--mist); }
.examples { display: flex; flex-wrap: wrap; gap: 3px 18px; }
.examples button { background: transparent; border: 0; color: var(--mist); display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 0; font-size: 14px; cursor: pointer; }

.examples button:hover, .examples button[aria-pressed=true] { color: var(--light); }

.steps { display: flex; flex-wrap: wrap; list-style: none; gap: 8px 20px; margin: 16px 0 0; padding: 0; color: var(--mist); }
.steps li { font-size: 13px; }
.step { margin-right: 5px; color: var(--azure); }
.workspace { padding-bottom: 7vw; background: #102435; }
.workspace .sectionhead { border: 0; }
.screen { display: block; }
.screen img { width: 100%; height: auto; }
.screen span { display: inline-block; margin-top: 12px; font-size: 13px; }
.screen:hover span { color: var(--azure); }
footer { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 14px; }
@media (max-width: 860px) {
  :root { --rail: 55px; }
  .cover { gap: 18px; }
  .cover-copy { padding-left: 0; }
  .sectionhead { grid-template-columns: 1fr 32%; }
  .tour { grid-template-columns: 145px minmax(0,1fr); gap: 25px; }
  .chapter-head { display: block; }
  .desc { margin-top: 9px; }
  .nav { gap: 12px; }
  .edition { padding-left: 12px; }
}
@media (max-width: 650px) {
  :root { scroll-padding-top: calc(var(--rail) + 56px); }
  .nav nav { gap: 15px; font-size: 12px; }
  .edition { display: none; }
  .brand { font-size: 19px; }
  .hero { min-height: 0; height: auto; }
  .hero-frame { position: relative; top: auto; height: auto; }
  .cover { display: flex; flex-direction: column; gap: 26px; padding: 28px 0 19px; }
  .cover-copy { align-self: stretch; display: grid; grid-template-columns: 48% 1fr; align-items: center; column-gap: 4%; }
  .lettering { grid-row: span 2; margin: 0 0 14px -5%; width: 108%; }
  .cover-title { align-self: end; font-size: clamp(23px,5.9vw,36px); line-height: 1.1; }
  .cover-link { align-self: start; justify-self: start; gap: 7px; font-size: 11px; margin-top: 9px; padding: 4px 0; }
  .print { width: 92%; max-width: 425px; }
  .paper { padding: 7px 7px 0; }
  .paper figcaption { padding: 9px 1px 11px; }
  .paper figcaption > span { font-size: 9px; }
  .proof-control { margin-top: 9px; }
  .sectionhead { display: block; padding: 35px 0 22px; }
  .sectionhead h2 { font-size: clamp(48px,13vw,74px); }
  .sectionhead p { margin-top: 10px; max-width: 35ch; font-size: 14px; }
  .tour { display: block; }
  .tour aside { position: sticky; top: var(--rail); z-index: 3; background: var(--ground); border-bottom: 1px solid var(--line); }
  .side { display: flex; align-items: center; position: static; gap: 12px; padding: 9px 0; }
  .side nav { display: none; }
  .side select { display: block; flex: 1; min-width: 0; background: #142634; color: var(--light); border: 1px solid #486071; padding: 6px 8px; }
  .chapter, .chapter:first-child { padding: 26px 0 33px; }
  .chapter-head { margin-bottom: 16px; }
  .chapter h3 { font-size: clamp(30px,7.8vw,43px); max-width: none; }
  .toolname { font-size: 11px; }
  .media { margin-inline: -1.6%; }
  .caption { gap: 3px 10px; }
  .caption-label { display: none; }
  .examples { gap: 1px 14px; }
  .examples button { min-height: 35px; align-items: center; font-size: 13px; }
  .steps { gap: 5px 12px; margin-top: 10px; }
  .steps li { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; min-height: auto; }
  .hero-frame { position: relative; top: auto; }
  .print { transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.contact-strip { display: flex; gap: 12px; padding: 16px 0; }
.contact-strip[hidden] { display: none; }
.contact-strip button { padding: 0; background: none; border: 0; text-align: left; color: var(--mist); cursor: zoom-in; width: min(30%,155px); }
.contact-strip img { width: 100%; aspect-ratio: 3/2; object-fit: contain; background: #17252f; }
.contact-strip span { display: block; font-size: 12px; margin-top: 4px; }
.contact-strip button:hover span { color: var(--azure); }
.lightbox { color: var(--light); background: #101c25; padding: 18px; width: fit-content; max-width: 92vw; border: 1px solid var(--line); }
.lightbox::backdrop { background: #03080ee8; }
.lightbox h2 { font: 500 16px var(--ui); margin: 0 72px 14px 0; }
.lightbox button { position: absolute; top: 10px; right: 12px; color: var(--light); background: transparent; border: 1px solid var(--line); padding: 6px 9px; cursor: pointer; }
.lightbox img { max-width: 80vw; max-height: 77svh; object-fit: contain; }

/* The album sits on the same blue desk as the cover. */
.nav nav { gap: 9px; }
.nav nav a, .cover-link, footer a:last-child, .screen span, .lightbox button {
  border-radius: 999px; padding: 9px 18px; font-weight: 600;
}
.nav nav a { border: 1px solid #fff9; color: white; background: transparent; }
.nav nav a:first-child, .cover-link { background: white; color: #12191d; border: 1px solid white; }
.nav nav a:first-child:hover, .cover-link:hover { background: #e9f5fa; color: #12191d; }
.nav nav a:last-child:hover { background: #ffffff14; color: white; }
.cover-link { position: relative; padding: 12px 21px; margin-bottom: 29px; }
.cover-link .scroll-cue {
  position: absolute; top: calc(100% + 7px); left: 50%; width: 1.5px; height: 20px;
  background: #fff; animation: point-down 1.8s ease-in-out infinite;
}
.scroll-cue::after { content:""; position:absolute; bottom:0; left:-3.6px; width:8px; height:8px; border:solid white; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
@keyframes point-down { 0%,100% { transform:translateY(0); } 55% { transform:translateY(5px); } }
.tools {
  width:100%; padding:0 max(4.5%,calc((100% - 1512px)/2)) 4vh;
  background:linear-gradient(180deg,var(--ground),#102939 22rem,#102939 calc(100% - 18rem),#102435);
}
.tools .sectionhead { border:0; }
.tour { grid-template-columns:clamp(160px,17vw,245px) minmax(0,1fr); gap:clamp(25px,5vw,86px); }
.side { padding:0; top:calc(var(--rail) + 25px); }
.side label { font:italic 20px var(--display); color:#d9e1dc; }
.side nav { margin-top:17px; gap:1px; }
.side nav a { font-size:15px; color:#abbec5; border:0; border-left:2px solid transparent; padding:8px 0 8px 13px; gap:9px; }
.side nav span { font:italic 16px var(--display); color:inherit; min-width:2ch; }
.side nav a[aria-current] { border-color:#a2e4fa; font-weight:650; color:#fff; }
.chapter, .chapter:first-child {
  padding:0 0 clamp(32px,6vh,76px); margin:0; border:0;
  min-height:calc(100svh - var(--rail) - 15px);
}
.chapter-head { gap:24px; margin-bottom:clamp(12px,2vh,23px); }
.chapter h3 { font-size:clamp(28px,3.15vw,55px); text-wrap:balance; }
.toolname { color:#bbe1ed; margin-bottom:7px; }
.media {
  width:100%;
  margin:0;
}
.projection { display:block; width:100%; border:0; border-radius:0; padding:0; cursor:pointer; background:#0a141a; }
.media video { pointer-events:none; background:#0a141a; }
.caption { border: 0; align-items: center; padding: 16px 0 0; gap: 10px 16px; }
.caption-label { color: #3e4d50; font: italic 18px var(--display); }
.examples { gap: 6px 18px; }
.examples button {
  display:grid; grid-template-columns:60px auto; align-items:center; gap:8px;
  padding:4px 0; min-height:44px; text-align:left; background:transparent;
  font:italic 17px/1.15 var(--display); color:#485657; cursor:pointer;
  border:0; border-bottom:2px solid transparent; border-radius:0;
}
.examples button img { width:60px; height:40px; border-radius:0; object-fit:cover; }
.examples button:hover, .examples button:focus-visible { color:#123748; }
.examples button:focus-visible { outline-color:#245b73; }
.examples button[aria-pressed=true] { color:#102d39; border-bottom-color:#245b73; }
.example-note { flex:0 0 100%; margin:0; font-size:14px; line-height:1.45; color:#344247; }
.example-note strong { color:#132c35; }
.steps { gap: 0; border-top: 1px solid #b4e5f635; margin: 17px 0 0; padding-top: 15px; }
.steps li { display: inline-flex; align-items: center; color: #ecf7fb; font-weight: 500; font-size: 14px; line-height: 1.3; }
.steps li:not(:last-child)::after { content: "→"; color: #a0dcf1; font-size: 17px; margin-inline: clamp(8px,1.2vw,22px); }
.step { display: inline-grid; place-items: center; width: 27px; height: 27px; flex-shrink: 0; margin-right: 7px; background: #254e64; color: #e0f8ff; border: 1px solid #a2d5e76b; border-radius: 50%; font: 650 12px var(--ui); }
.media .caption { padding:9px 12px 11px; background:#e9e7dc; color:#1a292d; }
.steps { border:0; padding:0; margin-top:14px; }
@media(max-width:850px){
 .tour { grid-template-columns:150px minmax(0,1fr); gap:21px; }
 .side nav a {font-size:13px;}
 .media {width:100%;}
}
@media(max-width:650px){
 .tools {padding-inline:4.5%;}
 .tour {display:block;}
 .tour aside {padding:0; background:#102939; border-bottom:1px solid #98b6bf44;}
 .side {padding:7px 0;}
 .side label {font-size:16px;}
 .side select {background:#102939;color:white;border:0;font-weight:600;font-size:14px;}
 .nav nav a {padding:7px 11px;}
 .cover-link { padding:8px 12px; margin-bottom:26px; }
 .cover-link .scroll-cue {height:15px;}
 .chapter,.chapter:first-child {padding:12px 0 30px;min-height:calc(100svh - var(--rail) - 55px);}
 .media {margin:0;}
 .examples {display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr));width:100%;gap:10px;}
 .examples button {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;padding:2px 0 5px;font-size:14px;}
 .examples button img {width:60px;height:36px;}
 .steps {display:grid;grid-template-columns:1fr 1fr 1fr;}
 .steps li {display:flex;align-items:start;flex-direction:column;position:relative;gap:5px;padding-right:7px;font-size:12px;}
 .steps li:not(:last-child)::after {position:absolute;left:45%;top:2px;margin:0;}
}
@media(prefers-reduced-motion:reduce){.cover-link .scroll-cue{animation:none;}}
.story-progress { display:flex; flex:0 0 100%; gap:5px; margin:0 0 2px; }
.story-progress span { flex:1; height:3px; border-radius:5px; overflow:hidden; background:#324c5633; }
.story-progress i { display:block; height:100%; background:#297490; transform:scaleX(0); transform-origin:left; }
.side { max-height:calc(100svh - var(--rail) - 36px); overflow:auto; scrollbar-width:thin; }
@media(max-width:650px){.side {overflow:visible;} }
.language-picker { position:relative; flex:none; color:var(--light); }
.language-picker summary { display:flex; align-items:center; gap:8px; cursor:pointer; list-style:none; font:600 14px var(--ui); padding:9px 13px; border:1px solid #ffffff79; border-radius:999px; }
.language-picker summary::-webkit-details-marker { display:none; }
.language-picker summary::after { content:""; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(45deg); }
.language-picker[open] summary::after { transform:translateY(2px) rotate(225deg); }
.language-picker summary:hover,.language-picker[open] summary { background:#ffffff15; }
.language-picker summary:focus-visible { outline:2px solid var(--azure); outline-offset:3px; }
.language-code { display:none; }
.language-list { position:absolute; z-index:1; right:0; top:calc(100% + 10px); width:174px; padding:10px; color:#172e37; background:#eeeae1; border:1px solid #d5d5ca; box-shadow:0 9px 22px #0004; }
.language-title { display:block; padding:1px 9px 8px; margin-bottom:3px; border-bottom:1px solid #20354030; color:#465959; font:italic 17px var(--display); }
.language-list button { border:0; background:transparent; width:100%; text-align:left; padding:9px; font:500 14px var(--ui); color:inherit; cursor:pointer; }
.language-list button:hover,.language-list button:focus-visible { outline:none; background:#d6e2e0; }
.language-list button[aria-pressed=true] { font-weight:700; }
.language-list button[aria-pressed=true]::after { content:"✓"; float:right; color:#12617a; }
.language-globe { width:16px; height:16px; line-height:0; flex:none; }
.language-globe svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.5; }

.chapter-link-name { font-weight:inherit; }
.paper figcaption a span[data-i18n] { font:inherit; }
.mode-guide { margin:0 0 14px; border-block:1px solid #a1c6d84a; }
.mode-guide summary { padding:10px 0; color:#d0ebf7; cursor:pointer; font-size:14px; }
.mode-guide table { width:100%; border-collapse:collapse; margin-bottom:12px; font:14px/1.45 var(--ui); color:#e9f3f8; }
.mode-guide th, .mode-guide td { padding:8px 12px 8px 0; border-top:1px solid #7b9ca84d; text-align:left; vertical-align:top; }
.mode-guide thead th { color:var(--azure); }
.mode-guide th[scope=row] { width:17%; }
.mode-guide .cell-label { display:none; }
.mode-guide + figure { margin-top: 6px; }
@media(max-width:650px){
  .nav { gap:7px; }
  .nav nav { gap:5px; }
  .nav nav a { padding:7px 8px; font-size:11px; }
  .language-picker summary { gap:6px; padding:7px 9px; font-size:12px; }
  .language-name { display:none; } .language-code { display:inline; }

  .mode-guide table,.mode-guide tbody,.mode-guide tr,.mode-guide td,.mode-guide th[scope=row] { display:block; }
  .mode-guide thead { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); }
  .mode-guide th[scope=row] { width:auto; padding-top:12px; }
  .mode-guide td { border:0; padding-block:3px 8px; }
  .mode-guide .cell-label { display:block; font-size:12px; color:var(--azure); }
  .examples:has(> :nth-child(5)) { display:flex; flex-wrap:nowrap; overflow-x:auto; padding:1px 0 5px; scrollbar-width:thin; scrollbar-color:#8ab3c4 transparent; }
  .examples:has(> :nth-child(5)) button { flex:0 0 clamp(72px,22vw,102px); }
}
@media(max-width:370px){
  .nav .brand { font-size:16px; gap:4px; }
  .nav .brand img { width:21px; height:21px; }

}
@media(max-width:370px) {
  .language-picker { min-width:0; }

  .nav { gap:4px; }
  .nav nav { gap:3px; }
  .nav nav a { padding-inline:5px; }
}
.cover-link span[data-i18n] { color:inherit; transform:none; }
:lang(zh-Hans) .sectionhead h2, :lang(ja) .sectionhead h2 { word-spacing:-.16em; }

/* The wipe always clips the source in place, so both images share one scale. */
.compare-modes, .compare-files {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px 18px;
}
.compare-modes { margin-bottom:9px; }
.compare-modes button {
  padding:7px 0; border:0; border-bottom:2px solid transparent;
  background:transparent; color:var(--mist); cursor:pointer;
}
.compare-modes button[aria-pressed="true"] { color:var(--light); border-color:var(--azure); }
.projection[hidden], .compare-panel[hidden] { display:none; }
.compare-frame {
  --split:50%; position:relative; isolation:isolate; overflow:hidden; background:#0a141a;
}
.compare-frame img { position:absolute; inset:0; width:100%; height:100%; }
.compare-before { clip-path:inset(0 calc(100% - var(--split)) 0 0); }
.compare-frame input {
  position:absolute; inset:0; width:100%; height:100%; margin:0;
  opacity:0; cursor:ew-resize; touch-action:pan-y;
}
.compare-frame:focus-within { outline:3px solid var(--azure); outline-offset:2px; }
.compare-divider {
  position:absolute; inset:0 auto 0 var(--split); width:2px; background:#fff;
  transform:translateX(-50%); box-shadow:0 0 3px #000;
}
.compare-divider::after {
  content:"‹ ›"; white-space:pre; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  padding:4px 8px 6px; font:600 18px/1 var(--ui); color:#173540; background:#f4f2e8;
  border:1px solid #3348; box-shadow:0 2px 8px #0004;
}
.compare-files { justify-content:space-between; padding:8px 12px; background:#e9e7dc; color:#20373f; border-bottom:1px solid #abb5b2; }
.compare-files a { font:italic 16px var(--display); }
.compare-files a:hover { text-decoration:underline; }
.compare-files small { display:block; font:11px var(--caption); margin-top:2px; }
.contact-strip:has(> :nth-child(4)) { flex-wrap:wrap; }
.compare-modes[hidden] { display:none; }
