/* airdigest.app: the app's ink and one yellow on a lighter ground of turned paper sheets (marketing/BRIEF.md, "The look
   of the kit and the site"), the device's own fonts, no gradients, glows or shadows. No script: all motion is CSS. */
:root { --ground: #FBFBFA; --sheet: #FFFFFF; --sheet2: #F6F6F7; --hair: rgba(28, 28, 30, .06); --line: rgba(28, 28, 30, .12);
  --ink: #1C1C1E; --grey: #555555; --marker: #EDD27E; --frame: #1C1C1E; --frame-edge: #1C1C1E;
  --swipe: url("/assets/accents/swipe.svg"); --circle: url("/assets/accents/circle.svg"); --arrow: url("/assets/accents/arrow.svg");
  --serif: ui-serif, "New York", Georgia, "Hiragino Mincho ProN", "Apple SD Gothic Neo", "Songti SC", serif; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --ground: #1C1C1E; --sheet: #232325; --sheet2: #2C2C2E; --hair: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .14); --ink: #FFFFFF; --grey: #AEAEB2; --marker: #645738; --frame-edge: rgba(255, 255, 255, .16);
  --swipe: url("/assets/accents/swipe-night.svg"); --circle: url("/assets/accents/circle-night.svg"); --arrow: url("/assets/accents/arrow-night.svg"); } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.55 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", "PingFang SC", sans-serif; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); margin: 0 0 12px; }
h1:lang(ja), h1:lang(ko), h2:lang(ja), h2:lang(ko), .h-cap .h:lang(ja), .h-cap:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 4px; }
p { margin: 0 0 12px; }
a { color: inherit; text-underline-offset: 3px; }
/* The marker: a round-nib swipe under the key phrase (website/assets/accents, drawn with Tools/ink/icon.py's brush) */
em { font-style: normal; padding: 0 .12em; margin: 0 -.06em; background: var(--swipe) 0 80% / 100% .7em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }
.read { max-width: 40rem; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; margin-right: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .94rem; }
.top nav a { text-decoration: none; padding: 8px 0; }
.top nav a:hover { text-decoration: underline; }
@media (max-width: 560px) { .top nav { order: 1; width: 100%; } }
.soon { font-size: .86rem; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; white-space: nowrap; background: var(--sheet); }
.kicker { color: var(--grey); font-size: .94rem; margin-bottom: 8px; }
.lead { font-size: 1.2rem; max-width: 34rem; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 0; margin: 0; color: var(--grey); font-size: .94rem; }
.meta { color: var(--grey); font-size: .9rem; }

/* Paper: in each section a white sheet under the content and a grey one peeking out from behind it, both turned and cut
   by the section's edges; the content always sits wholly on the front sheet */
.hero, .band { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.band::before, .band::after, .h-shot::before, .h-shot::after { content: ""; position: absolute; z-index: -1; border: 1px solid var(--hair); }
.band { padding: 48px 0; }
@media (min-width: 800px) { .band { padding: 64px 0; } }
.band::before { background: var(--sheet2); top: 6px; bottom: 44px; left: 46%; right: -4%; transform: rotate(3deg); }
.band::after { background: var(--sheet); top: 26px; bottom: 22px; left: max(-12px, calc(50% - 560px)); right: max(-12px, calc(50% - 560px)); transform: rotate(-1.5deg); }
.band:nth-of-type(even)::before { left: -4%; right: 50%; top: 40px; bottom: 6px; transform: rotate(-2.5deg); }
.band:nth-of-type(even)::after { transform: rotate(1.2deg); }

/* The phone: a flat ink frame with the island, the real capture inside */
.phone { position: relative; padding: 7px; border-radius: 16% / 7.4%; background: var(--frame); border: 1px solid var(--frame-edge); }
.phone::before { content: ""; position: absolute; z-index: 1; left: 50%; top: calc(7px + 1.3%); width: 30%; aspect-ratio: 3.4; transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone img { display: block; width: 100%; height: auto; border-radius: 13% / 6%; background: var(--sheet2); }
.two { display: grid; gap: 32px; align-items: center; }
.two > .phone { width: min(290px, 76vw); margin-inline: auto; }
@media (min-width: 800px) {
  .two:has(.phone) { grid-template-columns: minmax(0, 1fr) 290px; gap: 64px; }
  .two.flip { grid-template-columns: 290px minmax(0, 1fr); }
  .two.flip > .phone { order: -1; }
}
.two > div:only-child { max-width: 40rem; }

/* Hero: Watashi's camera (tokyotranslates/website/style.css) in paper and ink. One 33.6 s loop of six 5.6 s scenes in
   CSS alone; scene n runs (n - 6) × 5.6 s into the loop, so the page at rest, and with Reduce Motion, is scene 1. */
.hero { --scene: 5.6s; --cycle: 33.6s; --ease: cubic-bezier(.65, 0, .35, 1); padding: 16px 0 40px; }
.h-grid { display: grid; gap: 24px; align-items: center; }
.h-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.h-copy > * { margin: 0; }
.h-copy > .lead { max-width: 28rem; }
.hero h1 { font-size: clamp(2.4rem, 8.4vw, 3.75rem); line-height: 1.08; }
@media (min-width: 960px) {
  .hero { padding: 24px 0 64px; }
  .h-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .hero::before { content: ""; position: absolute; z-index: -1; border: 1px solid var(--hair); background: var(--sheet2); inset: 74% 66% -60px -10%; transform: rotate(2deg); }
  .h-copy::after { content: ""; position: absolute; right: -8px; top: 52%; width: 72px; height: 50px; background: var(--arrow) center / contain no-repeat; }
}
.h-stage { position: relative; width: 100%; max-width: 540px; margin: 0 auto; min-width: 0; }
.h-shot { position: relative; isolation: isolate; height: clamp(440px, 118vw, 600px); perspective: 1300px; perspective-origin: 50% 30%; overflow: hidden; }
.h-shot::before { background: var(--sheet); inset: 24px 10% -20px 10%; transform: rotate(-3deg); }
.h-shot::after { background: var(--sheet2); inset: 64px 2% -40px 22%; transform: rotate(2.5deg); }
.h-phone { position: absolute; left: 50%; top: 36px; width: clamp(236px, 62vw, 290px); margin-left: calc(clamp(236px, 62vw, 290px) / -2);
  transform: rotateX(6deg) rotateY(-12deg) rotateZ(2deg) scale(.94); will-change: transform; }
.h-screens { position: relative; aspect-ratio: 780 / 1696; border-radius: 13% / 6%; overflow: hidden; background: var(--sheet2); }
.h-screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
/* Lines lifted off the screen: plain paper cards */
.h-lift { position: absolute; z-index: 3; margin: 0; max-width: min(250px, 46%); padding: 10px 14px; border-radius: 12px; background: var(--sheet);
  border: 1px solid var(--line); font-weight: 600; line-height: 1.35; transform: rotate(var(--tilt)); pointer-events: none; }
.l-tl { left: 0; top: 20%; --tilt: -2deg; } .l-tr { right: 0; top: 26%; --tilt: 2deg; } .l-bl { left: 0; top: 58%; --tilt: 1.5deg; } .l-br { right: 0; top: 62%; --tilt: -2deg; }
@media (max-width: 559px) { .h-lift { display: none; } }
/* Each scene's caption, stacked in one grid cell so the tallest sets the height, and one quiet rule per scene */
.h-cap { display: grid; margin-top: 12px; text-align: center; }
.h-cap p { grid-area: 1 / 1; margin: 0; }
.h-cap .h { display: block; font: 600 clamp(1.35rem, 4.2vw, 1.75rem)/1.2 var(--serif); text-wrap: balance; }
.h-cap .s { display: block; margin: 6px auto 0; max-width: 34ch; color: var(--grey); }
.h-bars { list-style: none; margin: 16px auto 0; padding: 0; max-width: 360px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.h-bars li { position: relative; height: 2px; background: var(--line); overflow: hidden; }
.h-bars li::after { content: ""; position: absolute; inset: 0; background: var(--grey); transform: scaleX(0); transform-origin: 0 50%; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.n0 { --n: 0; } .n1 { --n: 1; } .n2 { --n: 2; } .n3 { --n: 3; } .n4 { --n: 4; } .n5 { --n: 5; }
.sc { --d: calc((var(--n) - 6) * var(--scene)); }
.h-screens .sc, .h-cap .sc, .h-lift { opacity: 0; }
.h-screens .sc:first-child, .h-cap .sc:first-child, .h-lift.n0 { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .h-phone { animation: h-camera var(--cycle) var(--ease) infinite; }
  .h-screens .sc, .h-cap .sc { animation: h-scene var(--cycle) var(--d) infinite both; }
  .h-lift { animation: h-lift var(--cycle) calc((var(--n) - 6) * var(--scene)) infinite both; }
  .h-bars li::after { animation: h-track var(--cycle) var(--d) infinite linear both; }
}
@media (prefers-reduced-motion: reduce) { .h-bars { display: none; } }
/* Six scenes of 16.67 %: at rest, push in slowly on the detail, hold, pull out and swing to the next */
@keyframes h-camera {
  0%, 1.67% { transform-origin: 50% 40%; transform: rotateX(6deg) rotateY(-12deg) rotateZ(2deg) scale(.94); }
  7.5% { transform-origin: 50% 34%; transform: rotateX(12deg) rotateY(-5deg) rotateZ(-3deg) scale(1.32); }
  13.33% { transform-origin: 50% 34%; transform: rotateX(10deg) rotateY(-2deg) rotateZ(-2deg) scale(1.38); }
  16.67%, 18.33% { transform-origin: 50% 40%; transform: rotateX(5deg) rotateY(11deg) rotateZ(-2deg) scale(.94); }
  24.17% { transform-origin: 46% 48%; transform: rotateX(10deg) rotateY(5deg) rotateZ(3deg) scale(1.3); }
  30% { transform-origin: 46% 48%; transform: rotateX(8deg) rotateY(3deg) rotateZ(2deg) scale(1.35); }
  33.33%, 35% { transform-origin: 50% 40%; transform: rotateX(8deg) rotateY(-8deg) rotateZ(2deg) scale(.94); }
  40.83% { transform-origin: 50% 72%; transform: rotateX(10deg) rotateY(-3deg) rotateZ(-2deg) scale(1.2); }
  46.67% { transform-origin: 50% 72%; transform: rotateX(9deg) rotateY(-1deg) rotateZ(-1deg) scale(1.24); }
  50%, 51.67% { transform-origin: 50% 40%; transform: rotateX(4deg) rotateY(9deg) rotateZ(-2deg) scale(.94); }
  57.5% { transform-origin: 48% 40%; transform: rotateX(12deg) rotateY(2deg) rotateZ(-3deg) scale(1.3); }
  63.33% { transform-origin: 48% 40%; transform: rotateX(10deg) rotateY(1deg) rotateZ(-2deg) scale(1.35); }
  66.67%, 68.33% { transform-origin: 50% 40%; transform: rotateX(7deg) rotateY(-9deg) rotateZ(2deg) scale(.94); }
  74.17% { transform-origin: 50% 50%; transform: rotateX(8deg) rotateY(-4deg) rotateZ(3deg) scale(1.22); }
  80% { transform-origin: 50% 50%; transform: rotateX(7deg) rotateY(-2deg) rotateZ(2deg) scale(1.26); }
  83.33%, 85% { transform-origin: 50% 40%; transform: rotateX(5deg) rotateY(10deg) rotateZ(-2deg) scale(.94); }
  90.83% { transform-origin: 50% 30%; transform: rotateX(9deg) rotateY(5deg) rotateZ(3deg) scale(1.28); }
  96.67% { transform-origin: 50% 30%; transform: rotateX(8deg) rotateY(3deg) rotateZ(2deg) scale(1.32); }
  100% { transform-origin: 50% 40%; transform: rotateX(6deg) rotateY(-12deg) rotateZ(2deg) scale(.94); }
}
@keyframes h-scene { 0%, 14.67% { opacity: 1; transform: none; } 16.67%, 98% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
@keyframes h-lift { 0%, 5.33% { opacity: 0; transform: translateY(18px) rotate(var(--tilt)) scale(.94); } 8%, 13.33% { opacity: 1; transform: rotate(var(--tilt)); } 15.33%, 100% { opacity: 0; transform: translateY(-8px) rotate(var(--tilt)) scale(.98); } }
@keyframes h-track { 0% { transform: scaleX(0); } 16.67% { transform: scaleX(1); } 16.68%, 100% { transform: scaleX(0); } }

/* Sections rise in as they scroll into view, where the browser can tie an animation to scrolling; otherwise they stand */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band > .wrap { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* How it works: large serif numerals joined by a hairline; the second, the paste, circled */
.steps { display: grid; gap: 24px; padding: 0; margin: 24px 0 0; list-style: none; counter-reset: s; }
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 2rem; left: 5.6rem; right: -24px; border-top: 1px solid var(--line); }
}
.steps li { position: relative; counter-increment: s; }
.steps li::before { content: counter(s); display: block; width: 1.5em; font: 600 3.2rem/1.25 var(--serif); text-align: center; margin: 0 0 8px -.2em; }
.steps li:nth-child(2)::before { background: var(--circle) center / 100% 100% no-repeat; }
.passes { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.passes li { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; max-width: 28rem; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.more { padding-left: 20px; }
.faq dt { font-weight: 600; margin-top: 20px; }
.faq dd { margin: 4px 0 0; }
.doc { padding: 24px 0 48px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.doc h2 { font-size: 1.4rem; margin-top: 32px; }
.doc ul { padding-left: 20px; margin: 0 0 12px; }
.doc li { margin-bottom: 6px; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; font-size: .94rem; }
.langs a { text-decoration: none; padding: 4px 0; }
.langs a[aria-current="true"] { font-weight: 600; text-decoration: underline; }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.band > .read { margin-inline: max(16px, calc(50% - 520px)) auto; }
