/* RFRMD Word Labs — shared styles for every page. */
/* Instrument Serif (SIL Open Font License), the face MarkSchrift ships; display sizes only. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
             src: url(fonts/instrument-serif-normal-latin.woff2) format("woff2"); }
:root {
  --bg: #faf8f4; --ink: #1c1a17; --muted: #6b665e; --card: #ffffff;
  --line: #e6e1d8; --accent: #b8571e; --flame: #fd8008;
  --shadow: 0 1px 2px rgba(28,26,23,.06), 0 10px 30px rgba(28,26,23,.08);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #171512; --ink: #ece8e1; --muted: #a39d92; --card: #211e1a;
          --line: #35312a; --accent: #e8621a;
          --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 34px rgba(0,0,0,.35); }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── Top bar: transparent over the hero, solid once scrolled ── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 56px;
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
  color: #fff;
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.bar .brand { font-family: var(--serif); font-size: 23px; color: inherit; letter-spacing: .3px;
              display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.bar .brand img { width: 24px; }
.bar .brand b { color: var(--flame); font-weight: 400; }
.bar nav { display: flex; gap: 22px; font-size: 15px; }
.bar nav a { color: inherit; opacity: .85; }
.bar nav a:hover { opacity: 1; }
.bar.solid, .bar.page {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line); color: var(--ink);
}
.bar.solid .brand b, .bar.page .brand b { color: var(--accent); }
@media (max-width: 640px) { .bar nav a.opt { display: none; } .bar nav { gap: 14px; font-size: 14.5px; } .bar .brand { font-size: 20px; gap: 7px; } .bar .brand img { width: 20px; } }

/* ── Hero: John's landscapes, crossfading ── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1000px;
        overflow: hidden; color: #fff; background: #1b1916; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero .slide.on { opacity: 1; }
.hero .slide.on img { animation: drift 12s ease-out forwards; }
@keyframes drift { from { transform: scale(1.04) translate(0,0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.08) 32%, rgba(0,0,0,.18) 60%, rgba(0,0,0,.66) 100%); }
.hero .in { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: 12vh; text-align: center; }
.hero .emblem { width: 92px; margin: 0 auto 16px; filter: drop-shadow(0 4px 18px rgba(0,0,0,.45)); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8.4vw, 92px);
           letter-spacing: .5px; line-height: 1.05; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero h1 b { color: var(--flame); font-weight: 400; }
.hero .lede { max-width: 700px; margin: 18px auto 0; font-size: clamp(17px, 2.1vw, 20px);
              color: rgba(255,255,255,.92); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero .words { display: inline-block; color: #fff;
               border-bottom: 2px solid var(--flame); }
.hero .credit { position: absolute; right: 18px; bottom: 14px; z-index: 3; font-size: 12.5px;
                color: rgba(255,255,255,.78); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero .credit a { color: inherit; }
.hero .credit a:hover { color: #fff; }
.hero .cue { position: absolute; left: 50%; bottom: 18px; z-index: 3; width: 22px; height: 34px;
             margin-left: -11px; border: 2px solid rgba(255,255,255,.7); border-radius: 12px; }
.hero .cue::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px;
                    margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@media (max-width: 640px) { .hero .credit { right: 12px; left: 12px; text-align: center; bottom: 10px; font-size: 11.5px; }
  .hero .cue { display: none; } .hero .in { padding-bottom: 72px; } .hero h1 { font-size: 46px; } }

/* ── Section scaffolding ── */
.sec { padding: 104px 0 24px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
          color: var(--accent); margin-bottom: 10px; }
.sec h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 54px);
          line-height: 1.15; margin-bottom: 14px; }
.sec .intro { color: var(--muted); max-width: 640px; font-size: 18px; }
p { color: var(--muted); }
p strong, p b { color: var(--ink); font-weight: 600; }

/* ── App features: picture and words, alternating ── */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center;
           margin-top: 88px; }
.feature.flip { grid-template-columns: 1fr 1.15fr; }
.feature.flip .pic { order: 2; }
.feature .head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.feature .head img { width: 60px; height: 60px; border-radius: 14px;
                     box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgba(0,0,0,.12); }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; }
.feature h3 a { color: inherit; }
.feature .host { display: block; font-family: var(--sans); font-size: 14px; color: var(--accent); margin-top: 3px; }
.feature p { margin: 10px 0; font-size: 17.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; padding: 0; list-style: none; }
.chips li { display: flex; }
.chips li.soon, .chips a { font-size: 13.5px; padding: 5px 12px; border-radius: 99px;
         border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.chips a { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); font-weight: 600; }
.chips li.soon { color: var(--muted); border-style: dashed; background: transparent; }
.chips .new::before { content: "New · "; color: var(--accent); font-weight: 600; }
.go { display: inline-block; margin-top: 14px; font-weight: 600; }
.go::after { content: " →"; transition: margin .2s ease; }
.go:hover::after { margin-left: 4px; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 30px; margin-top: 72px; }
  .feature.flip .pic { order: 0; }
}

/* Devices, drawn in CSS so the screenshots stay plain. */
.device { position: relative; margin: 0 auto; background: #0e0e10; box-shadow: var(--shadow), 0 30px 60px -20px rgba(0,0,0,.35); }
.device img { width: 100%; height: auto; }
.device.pro { padding: 2.1%; border-radius: 4.2% / 5.6%; }
.device.pro img { border-radius: 2.4% / 3.2%; }
.device.mini { max-width: 400px; padding: 4.4%; border-radius: 7.5% / 5%; }
.device.mini img { border-radius: 3.6% / 2.4%; }
.device::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
                  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14); }
.pic .tilt { transition: transform .6s cubic-bezier(.2,.7,.2,1); }

/* pctrs: a small wall of John's own photographs */
.wall { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 74px; gap: 10px; }
.wall a { position: relative; overflow: hidden; border-radius: 10px; background: var(--line); box-shadow: var(--shadow); }
.wall img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.wall a:hover img { transform: scale(1.06); }
.wall a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: 12.5px; color: #fff;
               background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .3s ease; }
.wall a:hover span { opacity: 1; }
.wall .w1 { grid-column: 1 / 5; grid-row: 1 / 4; }
.wall .w2 { grid-column: 5 / 7; grid-row: 1 / 3; }
.wall .w3 { grid-column: 5 / 7; grid-row: 3 / 5; }
.wall .w4 { grid-column: 1 / 3; grid-row: 4 / 6; }
.wall .w5 { grid-column: 3 / 5; grid-row: 4 / 6; }
.wall .w6 { grid-column: 5 / 7; grid-row: 5 / 6; }
@media (max-width: 560px) { .wall { grid-auto-rows: 52px; gap: 7px; } }

/* ── Books: a shelf that drifts ── */
.books { padding-bottom: 40px; }
.shelfrun { position: relative; margin-top: 40px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.shelfrun .track { display: flex; gap: 22px; width: max-content; padding: 14px 0 26px;
                   animation: shelf 70s linear infinite; }
.shelfrun:hover .track { animation-play-state: paused; }
.shelfrun a { flex: none; width: 150px; transition: transform .35s ease; }
.shelfrun a:hover { transform: translateY(-8px) rotate(-1deg); }
.shelfrun img { width: 150px; aspect-ratio: 1074 / 1600; object-fit: cover; border-radius: 3px 6px 6px 3px;
                box-shadow: inset 4px 0 6px rgba(0,0,0,.2), 0 4px 10px rgba(0,0,0,.25), 0 18px 30px -12px rgba(0,0,0,.4); }
@keyframes shelf { to { transform: translateX(calc(-50% - 11px)); } }
@media (max-width: 560px) { .shelfrun a, .shelfrun img { width: 112px; } .shelfrun .track { gap: 16px; } }
.center { text-align: center; }
.center .intro { margin: 0 auto; }

/* ── Ministry: words over a landscape ── */
.band { position: relative; margin-top: 96px; padding: 120px 0; color: #fff; overflow: hidden; }
.band .bg { position: absolute; inset: -18% 0; background-size: cover; background-position: center;
            will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,12,10,.82), rgba(14,12,10,.45)); }
.band .wrap { position: relative; z-index: 2; }
.band .kicker { color: var(--flame); }
.band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 54px); line-height: 1.15; }
.band p { color: rgba(255,255,255,.86); max-width: 600px; font-size: 18px; margin-top: 12px; }
.band p strong { color: #fff; }
.pair { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
.glass { display: block; padding: 24px 24px 22px; border-radius: 16px; color: #fff;
         background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2);
         -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
         transition: background .25s ease, transform .25s ease; }
.glass:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.glass b { display: block; font-size: 26px; font-family: var(--serif); font-weight: 400; }
.glass .host { color: var(--flame); font-size: 14px; }
.glass span.d { display: block; margin-top: 8px; color: rgba(255,255,255,.82); font-size: 15.5px; }
.band .credit { position: absolute; right: 18px; bottom: 12px; z-index: 2; font-size: 12.5px; color: rgba(255,255,255,.65); }
.band .credit a { color: inherit; }
@media (max-width: 720px) { .band { padding: 90px 0; } }

/* ── Company + roadmap ── */
.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 30px; align-items: stretch; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-bottom: 8px; }
.panel p { margin: 10px 0; }
a.panel { display: block; color: inherit; } a.panel .go { color: var(--accent); } a.panel { transition: transform .25s ease, border-color .25s ease; }
a.panel:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.btn { display: inline-block; margin-top: 10px; padding: 10px 20px; border-radius: 99px; font-weight: 600;
       background: var(--accent); color: #fff; }
.btn:hover { filter: brightness(1.08); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ── Footer ── */
.foot { margin-top: 96px; padding: 34px 0 40px; border-top: 1px solid var(--line);
        color: var(--muted); font-size: 14.5px; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.foot .ver { opacity: .7; }

/* ── Arrivals ── */
.rise { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.rise.seen { opacity: 1; transform: none; }
.rise.d1 { transition-delay: .12s; } .rise.d2 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .slide.on img, .shelfrun .track, .hero .cue::after { animation: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  .band .bg { transform: none !important; }
}

/* ── Inner pages (books, roadmap) ── */
.pagehead { padding: 120px 0 10px; text-align: center; }
.pagehead h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 62px); line-height: 1.05; }
.pagehead .intro { color: var(--muted); max-width: 600px; margin: 14px auto 0; font-size: 18px; }
.prose { margin-top: 18px; }
.prose p { margin: 12px 0; font-size: 17.5px; }
.prose a { font-weight: 600; }

/* Books page: each edition a card with its cover */
.bookgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
        padding: 18px; color: inherit; box-shadow: var(--shadow);
        transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card.bk { display: flex; gap: 18px; align-items: flex-start; }
.card.bk .cover { width: 112px; flex: none; border-radius: 3px 5px 5px 3px; background: var(--line);
                  box-shadow: inset 3px 0 5px rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.22); transition: transform .3s ease; }
.card.bk:hover .cover { transform: rotate(-1.5deg) translateY(-2px); }
.card b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; color: var(--ink); }
.card .host { display: block; font-family: var(--sans); color: var(--accent); font-size: 13.5px; margin-top: 4px; }
.card span.d { display: block; color: var(--muted); font-size: 15px; margin-top: 8px; }
@media (max-width: 820px) { .bookgrid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .card.bk .cover { width: 82px; } .card.bk { gap: 14px; padding: 14px; } }

/* Roadmap page */
.road { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 18px; }
.roadsec { margin-top: 56px; }
.roadsec h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; }
.roadsec h2 img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); }
.item h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 6px; }
.item p { margin: 0; font-size: 15.5px; }
.support { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
           border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.support p { margin: 0 0 10px; }
.support p:last-child { margin: 0; }
.support a { font-weight: 600; }
.foot .permit { font-size: 13px; margin-bottom: 6px; }
.roadsec h2 a { color: inherit; display: inline-flex; align-items: center; gap: 12px; }
.roadsec h2 a:hover { color: var(--accent); }

/* Roadmap: the invitation to give */
.give { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
        padding: 40px 44px; border-radius: 22px; border: 1px solid var(--line);
        background:
          radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--flame) 16%, transparent), transparent 60%),
          var(--card);
        box-shadow: var(--shadow); }
.give .kicker { margin-bottom: 8px; }
.give h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.8vw, 42px); line-height: 1.15; margin-bottom: 10px; display: block; }
.give p { margin: 10px 0 0; max-width: 620px; }
.give-act { justify-self: end; }
.give .btn { margin: 0; padding: 13px 28px; font-size: 16.5px; white-space: nowrap;
             box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
@media (max-width: 720px) {
  .give { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px; text-align: center; }
  .give p { margin-left: auto; margin-right: auto; }
  .give-act { justify-self: center; }
}

/* Ministry band: rfrmd.com on a phone, its screens taking turns */
.bandgrid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.phone { position: relative; width: min(100%, 330px); margin: 0 auto; aspect-ratio: 1320 / 2868;
         box-sizing: content-box; padding: 12px; border-radius: 54px; background: #0b0b0d;
         box-shadow: 0 0 0 2px #3a3833, 0 0 0 4px #1a1917, 0 40px 80px -24px rgba(0,0,0,.7); }
.phone .screen { position: absolute; inset: 12px; border-radius: 42px; overflow: hidden; background: #faf8f4; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
                     opacity: 0; transition: opacity 1.1s ease; }
.phone .screen img.on { opacity: 1; }
.phone::after { content: ""; position: absolute; z-index: 2; top: 23px; left: 50%; width: 31%; height: 3.2%;
                margin-left: -15.5%; border-radius: 99px; background: #000; }
.phone .tag { position: absolute; left: 0; right: 0; bottom: -44px; text-align: center; font-size: 14px;
              color: rgba(255,255,255,.8); transition: opacity .4s ease; }
@media (max-width: 860px) { .bandgrid { grid-template-columns: 1fr; gap: 40px; }
  .phone { width: min(76vw, 300px); padding: 10px; border-radius: 46px; } .phone .screen { inset: 10px; border-radius: 36px; }
  .band { padding-bottom: 130px; } }
.give-act { text-align: center; }
.give .btn { padding: 14px 44px; font-size: 18px; }
.give-alt { margin: 12px 0 0 !important; font-size: 14px; }
.give-alt a { font-weight: 600; }
.bar .brand img, .bar .brand picture { flex: none; }
@media (max-width: 360px) { .bar nav a:not(:first-child) { display: none; } .bar .brand { font-size: 18px; } }
.card .by { display: block; font-size: 14px; color: var(--ink); opacity: .75; margin-top: 2px; }
.card .host { display: block; margin-top: 6px; }
.card .proof { display: block; margin-top: 8px; font-size: 13.5px; font-style: italic; }

.chips a:hover { background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.panel .links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 14px; }
.panel .links .go { margin: 0; }
.panel h3 { line-height: 1.15; }

/* ── markschrift.com: MarkSchrift's own black and blue ── */
:root { --bg: #fbfbfa; --ink: #1d1d1f; --muted: #6e6e73; --line: #e5e5e5; --accent: #0066cc; --flame: #0a84ff; }
@media (prefers-color-scheme: dark) { :root { --bg: #111113; --ink: #f2f2f4; --muted: #a1a1a6; --card: #1c1c1f; --line: #2e2e33; --accent: #4ea1ff; --flame: #4ea1ff; } }
.bar { color: var(--ink); }
.bar.page, .bar.solid { color: var(--ink); }
.bar .brand img { width: 24px; height: 24px; }
/* The app icon, shown as an app icon: rounded, with an edge so the white square reads in light and dark. */
.bar .brand img { border-radius: 6px; box-shadow: 0 0 0 1px var(--line); background: #fff; }

.mshero { padding: 128px 0 40px; }
.mshero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mshero .logo { width: 84px; margin-bottom: 20px; border-radius: 22.5%; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0,0,0,.12); }
.mshero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6.6vw, 82px); line-height: 1; letter-spacing: -.5px; }
.mshero h1 em { font-style: normal; color: var(--accent); }
.mshero .lede { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 520px; }
.mshero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.storebtn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; }
.storebtn svg { width: 17px; height: 21px; }
.mshero .chips { margin-top: 20px; }
@media (max-width: 900px) { .mshero .wrap { grid-template-columns: 1fr; } .mshero { padding-top: 104px; } }

/* The typing editor */
.editor { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow), 0 30px 60px -30px rgba(0,0,0,.25); overflow: hidden; }
.editor .chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.editor .chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: inline-block; }
.editor .chrome span { margin-left: 10px; }
.editor .page { padding: 26px 30px 30px; min-height: 340px; font-size: 16.5px; line-height: 1.65; }
.editor .ln { min-height: 1.65em; }
.editor .raw { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14.5px; color: var(--ink); white-space: pre-wrap; }
.editor .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -.18em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.editor h4 { font-size: 26px; font-weight: 700; margin: 2px 0 6px; letter-spacing: -.2px; }
.editor mark { background: #fff3a3; color: inherit; padding: 0 2px; border-radius: 3px; }
@media (prefers-color-scheme: dark) { .editor mark { background: #6b5a00; } }
.editor .task { display: flex; gap: 10px; align-items: baseline; }
.editor .box { width: 15px; height: 15px; border: 1.6px solid var(--accent); border-radius: 4px; flex: none; transform: translateY(2px); }
.editor .done .box { background: var(--accent); }
.editor .done .tx { color: var(--muted); text-decoration: line-through; }
.editor .due { color: #c4302b; background: rgba(196,48,43,.1); border-radius: 4px; padding: 0 4px; font-size: .9em; }
.editor .proj { color: #23863a; background: rgba(35,134,58,.1); border-radius: 4px; padding: 0 4px; font-size: .9em; }
.editor .ref { color: var(--accent); }
.editor .ln.fresh > * { animation: settle .35s ease; }
@keyframes settle { from { opacity: .3; transform: translateY(2px); } to { opacity: 1; transform: none; } }

/* Showcase */
.show .device.pro { max-width: 980px; }
.show .caption { text-align: center; color: var(--muted); margin-top: 18px; min-height: 1.6em; transition: opacity .3s ease; }
.trio { display: flex; justify-content: center; gap: 26px; margin-top: 60px; }
.trio .phone { margin: 0; width: min(30%, 250px); }
.trio .phone:nth-child(2) { margin-top: 40px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 30px; }
.cards3 .tile { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); }
.cards3 .tile h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; margin-bottom: 6px; }
.cards3 .tile p { margin: 0; font-size: 15.5px; }
.cards3 .tile.sig { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cards3 .tile .flag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: color-mix(in srgb, var(--accent) 8%, var(--card)); padding: 1px 5px; border-radius: 5px; }
.syntax { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15.5px; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.syntax th, .syntax td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.syntax th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.syntax tr:last-child td { border-bottom: 0; }
.every { text-align: center; }
.every .chips { justify-content: center; }
.links3 { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; margin-top: 18px; }
.rot { position: relative; }
.rot img { transition: opacity 1s ease; }
.rot img + img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rot img:not(.on) { opacity: 0; }
.device.pro .rot { border-radius: 2.4% / 3.2%; overflow: hidden; }
/* Inner pages: documents and the books page */
.doc { padding-top: 112px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 58px); line-height: 1.05; margin-bottom: 8px; }
.doc .date { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 38px 0 8px; }
.doc h3 { font-size: 17.5px; margin: 22px 0 4px; }
.doc p, .doc li { color: var(--ink); opacity: .9; margin: 10px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 2px; }
.doc .muted { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc code { font-size: .92em; background: var(--card); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
.doc section { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 6px; }
.doc section:first-of-type { border-top: 0; }
.doc .sub { color: var(--muted); font-size: 18px; max-width: 600px; }
.doc .subtitle { color: var(--muted); margin-bottom: 14px; }
.doc .contact-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); }

/* Outline card: the manifest drops in, changes the numbering, and folds away */
.outl { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .outl { grid-template-columns: 1fr; gap: 30px; } }
.editor .mf { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--muted);
  background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 8px; padding: 6px 10px; margin-bottom: 12px;
  overflow: hidden; transition: max-height .6s ease, opacity .4s ease, padding .4s ease; max-height: 120px; }
.editor .mf .v { color: var(--accent); }
.editor .mf.folded { max-height: 20px; padding: 0 2px; background: transparent; }
.editor .mf .fold { display: none; color: var(--muted); }
.editor .mf.folded .open { display: none; }
.editor .mf.folded .fold { display: block; }
.editor .mf .tri { color: #f5910c; margin-right: 6px; }
.editor .oi { display: flex; gap: 10px; transition: opacity .3s ease; }
.editor .oi .lab { min-width: 2.4em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; transition: opacity .25s ease; }
.editor .oi.l0 { font-weight: 600; margin-top: 4px; }
.editor .oi.l1 { padding-left: 1.8em; }
.editor .oi.l2 { padding-left: 3.6em; }

/* Mac, iPad, phone: one app, three steps */
.step { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 70px 0 22px;
        font-family: var(--serif); font-size: 30px; color: var(--ink); }
.step span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
             background: var(--accent); color: #fff; font-family: var(--sans); font-size: 16px; font-weight: 600; }
.mac { max-width: 1000px; margin: 0 auto; }
.mac-screen { background: #0e0e10; padding: 1.6% 1.6% 2.4%; border-radius: 18px 18px 6px 6px;
              box-shadow: var(--shadow), 0 30px 60px -20px rgba(0,0,0,.35), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.mac-screen img { border-radius: 6px; width: 100%; }
.mac-base { height: 16px; margin: 0 -5%; background: linear-gradient(#d9d9dc, #a9a9ae); border-radius: 0 0 14px 14px;
            box-shadow: 0 10px 20px -8px rgba(0,0,0,.35); position: relative; }
.mac-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; margin-left: -8%;
                    background: #9a9aa0; border-radius: 0 0 8px 8px; }
@media (prefers-color-scheme: dark) { .mac-base { background: linear-gradient(#5a5a60, #3a3a3f); } }

/* An iMac: a 16:9 screen with the app's window on a desktop, a coloured chin and a stand */
.imac { max-width: 940px; margin: 0 auto; }
.imac-screen { background: #121214; padding: 1.8%; border-radius: 16px 16px 0 0;
               box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.08); }
.imac-desk { aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(70% 90% at 15% 20%, #b9d3f5 0%, transparent 60%),
              radial-gradient(60% 80% at 85% 85%, #f3c9b4 0%, transparent 60%),
              linear-gradient(135deg, #cfdcf2, #e8d9ec 55%, #f5e2d3); }
@media (prefers-color-scheme: dark) { .imac-desk { background: radial-gradient(70% 90% at 15% 20%, #2b4a7a 0%, transparent 60%),
  radial-gradient(60% 80% at 85% 85%, #6b3a52 0%, transparent 60%), linear-gradient(135deg, #1d2740, #2d2238 55%, #3a2626); } }
.imac-desk img { height: 88%; width: auto; border-radius: 12px; box-shadow: 0 18px 44px rgba(0,0,0,.32), 0 0 0 .5px rgba(0,0,0,.25); }
.imac-chin { height: 0; padding-top: 7.5%; border-radius: 0 0 16px 16px;
             background: linear-gradient(#d4dbe8, #b9c4d6); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.imac-stand { width: 17%; margin: 0 auto; height: 0; padding-top: 11%;
              background: linear-gradient(90deg, #a9b3c4, #cbd3e0 50%, #a9b3c4); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.imac-foot { width: 28%; margin: 0 auto; height: 9px; border-radius: 0 0 8px 8px; background: linear-gradient(#bcc5d3, #98a2b2);
             box-shadow: 0 12px 20px -8px rgba(0,0,0,.35); }

/* Apple's iMac 24-inch bezel; the screen opening is 16:9 at these exact proportions of the image */
.imac2 { position: relative; max-width: 960px; margin: 0 auto; }
.imac2 .bezel { position: relative; z-index: 2; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 24px 36px rgba(0,0,0,.18)); }
.imac2 .scr { position: absolute; z-index: 1; left: 2.941%; top: 3.704%; width: 94.118%; height: 62.222%; overflow: hidden; }
.imac2 .scr .imac-desk { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }

/* The Android robot rises from the footer's top line, under its tag, then sinks back */
.foot { position: relative; }
.peek { position: absolute; left: 50%; bottom: 100%; width: 78px; height: 48px; margin-left: -39px; overflow: hidden; pointer-events: none; }
.peek img { display: block; width: 78px; height: auto; transform: translateY(105%); animation: droidpeek 9s ease-in-out 1.5s infinite; }
@keyframes droidpeek { 0%, 50% { transform: translateY(105%); } 60%, 84% { transform: translateY(2%); } 94%, 100% { transform: translateY(105%); } }
@media (prefers-reduced-motion: reduce) { .peek { display: none; } }
.foot .small { font-size: 12px; opacity: .8; max-width: 640px; margin: 0 auto 8px; }

/* The outline's body font, set by the manifest: Georgia first, then the system sans-serif */
#outline .oi { font-family: Georgia, "Times New Roman", serif; font-size: 17px; transition: opacity .25s ease; }
#outline.sans .oi { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 16.5px; }

/* Apple's official App Store badge */
.asbadge { display: inline-block; line-height: 0; }
.asbadge img { height: auto; display: block; }
.asbadge:hover { opacity: .85; }

/* Apple's product bezels (Design Resources). The screen sits behind the bezel at the bezel's own
   opening, measured on the full-size PNGs: iPhone 17 Pro Max 1320x2868 in 1470x3000, iPad Pro 13"
   landscape 2752x2064 in 3000x2300, iPad mini portrait 1488x2266 in 1780x2550. */
.bz { position: relative; display: block; margin: 0 auto; }
.bz > .bezel { position: relative; z-index: 2; display: block; width: 100%; height: auto; pointer-events: none;
               filter: drop-shadow(0 22px 32px rgba(0,0,0,.2)); }
.bz > .scr { position: absolute; z-index: 1; overflow: hidden; background: #000; }
.bz > .scr img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bz > .scr.rot img + img { position: absolute; inset: 0; }
.bz-iphone { width: min(100%, 300px); }
.bz-iphone > .scr { left: 5.102%; top: 2.2%; width: 89.796%; height: 95.6%; border-radius: 14.2% / 6.55%; }
.bz-ipad { width: 100%; }
.bz-ipad > .scr { left: 4.133%; top: 5.13%; width: 91.733%; height: 89.739%; border-radius: 2% / 2.66%; }
.bz-mini { width: min(100%, 380px); }
.bz-mini > .scr { left: 8.202%; top: 5.569%; width: 83.596%; height: 88.863%; border-radius: 2.84% / 1.87%; }
.trio .bz-iphone { margin: 0; width: min(30%, 250px); }
.trio .bz-iphone:nth-child(2) { margin-top: 40px; }
.duo-phones .bz-iphone { margin: 0; width: min(46%, 250px); }
.duo-phones .bz-iphone:last-child { margin-top: 60px; }
.feature .bz-iphone { width: min(100%, 280px); }
.stage { position: relative; }
.stage .bz-iphone { position: absolute; right: -10px; bottom: -40px; width: min(31%, 200px); z-index: 4; }
.phonewrap { position: relative; }
.phonewrap .bz-iphone { width: min(100%, 320px); }
.phonewrap .tag { position: static; margin-top: 16px; text-align: center; font-size: 14px; transition: opacity .4s ease; }
@media (max-width: 860px) { .phonewrap .bz-iphone { width: min(72vw, 300px); } }
.trio, .duo-phones { align-items: flex-start; }
