/* The Perfect Library, the public pages. Drawn from The Perfect Day itself: its white page (#FBFAF7), its navy night
   panel with fine stars, a moon and a falling star; the script of the day's name; wide-spaced capitals in a pale
   band, like the date; numbered rows between hairlines, like the day's tasks; Cormorant italic for reflections. */
@font-face { font-family: 'Jost'; src: url('fonts/Jost.woff2') format('woff2'); font-weight: 300 500; font-display: swap }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/CormorantGaramondItalic.woff2') format('woff2'); font-style: italic; font-display: swap }
@font-face { font-family: 'Mrs Saint Delafield'; src: url('fonts/MrsSaintDelafield.woff2') format('woff2'); font-display: swap }

:root {
  --page: #FBFAF7;
  --band: #EDEAE4;
  --band-2: #F3F1EC;
  --rule: #DDD7CE;
  --ink: #22324F;
  --soft: rgba(34, 50, 79, .7);
  --night: #29365A;
  --night-deep: #1D2743;
  --moon: #EFE9DC;
  --moon-soft: rgba(239, 233, 220, .78);
  --gilt: #D9C8A4;
  --gold: #B08A3E;
  --script: 'Mrs Saint Delafield', 'Snell Roundhand', cursive;
  --display: 'Cormorant Garamond', 'Hoefler Text', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='24' cy='46' r='.9' opacity='.75'/%3E%3Ccircle cx='108' cy='20' r='.6' opacity='.5'/%3E%3Ccircle cx='190' cy='72' r='1' opacity='.65'/%3E%3Ccircle cx='286' cy='34' r='.6' opacity='.45'/%3E%3Ccircle cx='372' cy='96' r='.9' opacity='.7'/%3E%3Ccircle cx='66' cy='158' r='.6' opacity='.45'/%3E%3Ccircle cx='160' cy='214' r='.9' opacity='.6'/%3E%3Ccircle cx='258' cy='168' r='.6' opacity='.45'/%3E%3Ccircle cx='344' cy='240' r='.8' opacity='.6'/%3E%3Ccircle cx='38' cy='300' r='.8' opacity='.55'/%3E%3Ccircle cx='128' cy='346' r='.6' opacity='.4'/%3E%3Ccircle cx='226' cy='392' r='.9' opacity='.6'/%3E%3Ccircle cx='310' cy='330' r='.6' opacity='.45'/%3E%3Ccircle cx='402' cy='398' r='.7' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } *, *::before, *::after { transition: none !important; animation: none !important } }
body { margin: 0; background: var(--page); color: var(--ink); font: 300 18px/1.75 var(--sans); letter-spacing: .2px; overflow-x: hidden; -webkit-font-smoothing: antialiased }
img { display: block; max-width: 100%; height: auto }
a { color: inherit }
p { margin: 0 0 1.1em; overflow-wrap: break-word }
h1, h2, h3 { margin: 0; font-weight: 400 }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--page); padding: 8px 14px; z-index: 100 }
.skip:focus { left: 8px }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px }
.center { text-align: center }
.measure { max-width: 620px; margin-left: auto; margin-right: auto }
.wide { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) }

/* ---------- The type, used the way The Perfect Day uses it ---------- */
.script { font-family: var(--script); font-weight: 400; line-height: 1; letter-spacing: 0 }
.caps { font: 400 12px/1.6 var(--sans); letter-spacing: 4px; text-transform: uppercase }
/* The pale band behind wide capitals, as under the date. */
.band { display: inline-block; padding: 7px 18px 6px 22px; background: var(--band); font: 400 12px/1.4 var(--sans); letter-spacing: 4px; text-transform: uppercase; color: var(--ink) }
.reflection { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.3vw, 27px); line-height: 1.55; letter-spacing: .2px }
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.85; color: var(--soft) }
/* A star, drawn as the app draws it. */
.spark { display: inline-block; width: 10px; height: 10px; background: currentColor; clip-path: path('M5 0Q5.3 4.7 10 5 5.3 5.3 5 10 4.7 5.3 0 5 4.7 4.7 5 0Z') }
.divider { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--gold); margin: 0 auto }
.divider::before, .divider::after { content: ''; width: 64px; height: 1px; background: currentColor; opacity: .55 }

/* ---------- Buttons: quiet, square, in capitals ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; border-radius: 0; font: 400 12px/1 var(--sans); letter-spacing: 3.5px; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .3s ease, color .3s ease, border-color .3s ease }
.btn-night { background: var(--night); color: var(--moon) }
.btn-night:hover { background: var(--night-deep) }
.btn-moon { background: var(--moon); color: var(--night) }
.btn-moon:hover { background: #FFFDF8 }
.btn-line { border-color: rgba(239, 233, 220, .45); color: var(--moon) }
.btn-line:hover { border-color: var(--moon) }
.btn-ink-line { border-color: rgba(34, 50, 79, .35); color: var(--ink) }
.btn-ink-line:hover { border-color: var(--ink) }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px }

/* ---------- The night sky ---------- */
.sky { position: relative; color: var(--moon); background: var(--stars) 0 0 / 420px repeat, linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%); overflow: hidden; isolation: isolate }
.sky .moon { position: absolute; z-index: -1; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 60% 40%, transparent 0 38%, transparent 38%), #F1ECE0; box-shadow: 0 0 46px 12px rgba(241, 236, 224, .14); -webkit-mask: radial-gradient(circle at 72% 34%, transparent 0 46%, #000 47%); mask: radial-gradient(circle at 72% 34%, transparent 0 46%, #000 47%) }
.sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none }
/* Once the sky moves, its falling stars are drawn live rather than as still lines. */
.sky.alive .falling { display: none }
.sky .falling { position: absolute; z-index: -1; width: 180px; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55)); transform: rotate(-26deg) }

/* ---------- Navigation, over the sky ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: var(--moon) }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 400 12.5px/1 var(--sans); letter-spacing: 5px; text-transform: uppercase; white-space: nowrap }
.brand .spark { color: var(--gilt) }
.nav-links { display: flex; align-items: center; gap: 36px }
.nav-links a { font: 400 11.5px var(--sans); letter-spacing: 3px; text-transform: uppercase; text-decoration: none; color: var(--moon-soft); transition: color .2s ease }
.nav-links a:hover { color: #fff }
.nav-links .try { color: var(--moon); padding: 12px 18px; border: 1px solid rgba(239, 233, 220, .4) }
.nav-links .try:hover { border-color: var(--moon) }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer }
/* On the white inner pages the bar sits on white. */
.nav.on-page { position: relative; color: var(--ink); border-bottom: 1px solid var(--rule) }
.nav.on-page .nav-links a { color: var(--soft) }
.nav.on-page .nav-links a:hover { color: var(--ink) }
.nav.on-page .nav-links .try { color: var(--ink); border-color: rgba(34, 50, 79, .35) }
.nav.on-page .brand .spark { color: var(--gold) }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center }
  .nav-links { position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 28px; background: var(--night-deep); display: none }
  .nav.on-page .nav-links { background: var(--page); border-bottom: 1px solid var(--rule) }
  .nav.open .nav-links { display: flex }
  .nav-links a { padding: 18px 0; border-bottom: 1px solid rgba(239, 233, 220, .14); font-size: 12px }
  .nav.on-page .nav-links a { border-color: var(--rule) }
  .nav-links .try { margin-top: 22px; text-align: center; border-bottom: 1px solid rgba(239, 233, 220, .4) }
}
@media (max-width: 420px) { .brand { letter-spacing: 3.5px; font-size: 11.5px } }

/* ---------- Hero ---------- */
.hero { padding: 112px var(--gutter) 0; text-align: center }
.hero .moon { top: 118px; right: 11% }
.hero .falling.one { top: 210px; left: 4% }
.hero .falling.two { top: 58%; right: -2%; width: 140px; opacity: .6 }
.hero .band { background: rgba(239, 233, 220, .1); color: var(--moon) }
.hero h1 { margin: 24px auto 0; max-width: 980px }
.hero h1 .line { display: block; font-family: var(--display); font-style: italic; font-size: clamp(40px, 5.4vw, 70px); line-height: 1.1; color: #F6F1E6 }
.hero h1 .script { display: block; margin-top: 4px; font-size: clamp(64px, 9.5vw, 132px); line-height: 1.05; color: var(--gilt) }
.hero .lede { color: var(--moon-soft); max-width: 560px; margin: 20px auto 28px }
.hero .note { margin-top: 18px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: rgba(239, 233, 220, .6) }
.hero .note .spark { color: var(--gilt); width: 8px; height: 8px; margin-right: 10px; vertical-align: 1px }
/* The Library itself, on a desk of night: the shelf in a browser, a book open on an iPad in front of it. */
.scene { position: relative; max-width: 920px; margin: clamp(32px, 4vw, 52px) auto 0; aspect-ratio: 1.62 }
.browser { position: absolute; left: 0; top: 0; width: 82%; border-radius: 9px 9px 0 0; overflow: hidden; background: var(--page); box-shadow: 0 -10px 60px -20px rgba(0, 0, 0, .5) }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; background: #E9E5DF }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(34, 50, 79, .16) }
.browser img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top }
.device { position: absolute; background: #15171C; padding: 2.4%; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08) inset }
.device img { width: 100%; object-fit: cover; object-position: top; background: var(--page) }
.ipad { border-radius: 7% / 5% }
.ipad img { aspect-ratio: 834 / 1194; border-radius: 3% / 2.1% }
.phone { border-radius: 16% / 7.5%; padding: 3.4% }
.phone img { aspect-ratio: 390 / 844; border-radius: 12% / 5.6% }
.scene .ipad { right: 0; bottom: -4%; width: 33% }
.hero-foot { height: clamp(20px, 3vw, 40px) }

/* ---------- Sections on the white page ---------- */
.section { padding: clamp(48px, 6vw, 88px) 0 }
.section .band + h2, .section .band + .script { margin-top: 30px }
.title { font-family: var(--display); font-style: italic; font-size: clamp(34px, 3.8vw, 52px); line-height: 1.12; color: var(--ink) }
.title-script { font-family: var(--script); font-size: clamp(60px, 8vw, 104px); line-height: 1.05; color: var(--ink) }
.section .lede { margin-top: 18px }
.hairline { border: 0; height: 1px; background: var(--rule); margin: 0 }

/* The reading experience: one page, large, with a reflection beside it. */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(28px, 3.5vw, 44px) }
.pair .device { position: relative; width: min(100%, 330px); margin: 0 auto }
.pair .words .reflection { color: var(--ink); margin-bottom: 28px }
.pair .words p:not(.reflection) { color: var(--soft) }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr } .pair .words { text-align: center } }

/* Numbered rows between hairlines, as The Perfect Day lists the day's tasks. */
.rows { margin: clamp(28px, 3.5vw, 40px) auto 0; max-width: 760px; border-top: 1px solid var(--ink) }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); text-align: left }
.row .n { font: 400 13px/2.3 var(--sans); letter-spacing: 1.5px; color: var(--soft) }
.row h3 { font: 300 23px/1.35 var(--sans); letter-spacing: .2px; color: var(--ink) }
.row p { margin: 6px 0 0; font-size: 16.5px; line-height: 1.75; color: var(--soft) }
@media (max-width: 520px) { .row { grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px } .row h3 { font-size: 20px } }

/* The live reader, in an iPad under the night sky. */
.live { padding: clamp(52px, 6.5vw, 88px) var(--gutter); text-align: center }
.live .moon { top: 64px; left: 9%; width: 52px; height: 52px }
.live .falling { top: 30%; right: 3% }
.live .title { color: #F6F1E6 }
.live .lede { color: var(--moon-soft) }
.tablet { position: relative; max-width: 780px; margin: clamp(28px, 3.5vw, 40px) auto 0; background: #15171C; border-radius: 32px; padding: 16px; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08) inset; aspect-ratio: 1194 / 834 }
.tablet .screen { position: relative; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; background: var(--page) }
.tablet iframe { position: absolute; top: 0; left: 0; width: 1194px; height: 834px; border: 0; transform-origin: 0 0 }
.tablet .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top }
.tablet .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(29, 39, 67, .28); border: 0; cursor: pointer; transition: background-color .3s ease }
.tablet .play:hover { background: rgba(29, 39, 67, .38) }
.tablet .play span { background: var(--moon); color: var(--night); padding: 18px 30px; font: 400 12px var(--sans); letter-spacing: 3.5px; text-transform: uppercase; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6) }
.live .small { margin-top: 28px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase }
.live .small a { color: var(--gilt); text-decoration: none; border-bottom: 1px solid rgba(217, 200, 164, .4); padding-bottom: 4px }
@media (max-width: 700px) { .tablet { border-radius: 20px; padding: 9px } .tablet .screen { border-radius: 12px } }

/* Your library: the shelf, wide, framed like a page of the app. */
.shelf { max-width: 1040px; margin: clamp(28px, 3.5vw, 44px) auto 0; padding: 0 var(--gutter) }
.shelf figure { margin: 0; border: 1px solid var(--rule); background: var(--page); box-shadow: 0 30px 70px -44px rgba(34, 50, 79, .45) }
.shelf img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top }

/* Wherever you read: devices under the sky. */
.devices { padding: clamp(52px, 6.5vw, 92px) var(--gutter) }
.devices .moon { top: 80px; right: 10% }
.devices .falling { bottom: 22%; left: 2% }
.devices-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center }
.devices .title { color: #F6F1E6 }
.devices .lede { color: var(--moon-soft) }
.devices .band { background: rgba(239, 233, 220, .1); color: var(--moon) }
.devices-art { position: relative; max-width: 400px; width: 100%; margin: 0 auto }
.devices-art .ipad { position: relative; width: 100% }
.devices-art .phone { right: 0; bottom: 0; width: 34% }
.where { margin: 22px 0 28px; padding: 0; list-style: none; border-top: 1px solid rgba(239, 233, 220, .18) }
.where li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(239, 233, 220, .18); font-size: 16px }
.where li span:last-child { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gilt); white-space: nowrap }
.devices .aside { margin-top: 30px; font-size: 15px; color: rgba(239, 233, 220, .62) }
@media (max-width: 900px) { .devices-in { grid-template-columns: 1fr } .devices-in .words { text-align: center } .devices .actions, .devices .actions-left { justify-content: center } }
.actions-left { display: flex; flex-wrap: wrap; gap: 14px }

/* Try it free: centred, with the day's script. */
.free { text-align: center; background: var(--band-2) }
.free .title-script { margin-top: 16px }
.free .lede { max-width: 540px; margin: 18px auto 28px }
.free .fine { margin-top: 18px; font-size: 14.5px; color: var(--soft) }

/* Pricing: the habits table's look: a pale header band, hairline rows. */
.plans { max-width: 900px; margin: clamp(28px, 3.5vw, 44px) auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 0 var(--gutter) }
.plan { background: var(--band-2); text-align: left }
.plan { display: flex; flex-direction: column }
.plan-body { flex: 1; display: flex; flex-direction: column }
.plan .btn { margin-top: auto }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 26px; background: var(--band); font: 400 12px var(--sans); letter-spacing: 4px; text-transform: uppercase }
.plan-head span:last-child { font-size: 10.5px; letter-spacing: 3px; color: var(--gold) }
.plan-body { padding: 24px 26px 26px }
.price { font: italic 400 58px/1 var(--display); color: var(--ink) }
.price small { font: 300 15px var(--sans); letter-spacing: .3px; color: var(--soft); margin-left: 10px; font-style: normal }
.plan .under { margin-top: 10px; font-size: 14.5px; color: var(--soft) }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; border-top: 1px solid var(--rule) }
.plan li { padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.6 }
.plan .btn { width: 100% }
.plans-note { max-width: 900px; margin: 22px auto 0; padding: 0 var(--gutter); font-size: 15px; color: var(--soft); text-align: center }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr } }

/* Footer: the night again. */
.foot { padding: 64px var(--gutter) 36px; text-align: center }
.foot .moon { top: 54px; right: 12%; width: 44px; height: 44px }
.foot .brand { justify-content: center; color: var(--moon) }
.foot .reflection { max-width: 520px; margin: 30px auto 0; color: var(--moon-soft); font-size: 21px }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; margin: 30px auto 0; max-width: 780px }
.foot nav a { font: 400 11.5px var(--sans); letter-spacing: 3px; text-transform: uppercase; text-decoration: none; color: var(--moon-soft) }
.foot nav a:hover { color: #fff }
.foot .fine { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(239, 233, 220, .14); font-size: 12.5px; letter-spacing: .3px; color: rgba(239, 233, 220, .5) }

/* Gentle arrival as sections come into view (skipped when motion is reduced, and without script). */
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .3, 1) }
.js .rise.seen { opacity: 1; transform: none }

/* ---------- Inner pages ---------- */
.page { padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(96px, 12vw, 150px) }
.page .in { max-width: 760px; margin: 0 auto }
.page .head { text-align: center; margin-bottom: clamp(48px, 7vw, 80px) }
.page .head .title-script { margin-top: 26px }
.page .head .lede { margin: 26px auto 0; max-width: 560px }
.page h2 { font-family: var(--display); font-style: italic; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.2; margin: 72px 0 20px; color: var(--ink) }
.page h3 { font: 400 12px var(--sans); letter-spacing: 4px; text-transform: uppercase; margin: 40px 0 12px }
.page p, .page li { font-size: 17.5px; line-height: 1.85 }
.page ul { padding-left: 1.2em }
.notice { background: var(--band-2); border-left: 2px solid var(--gold); padding: 18px 22px; margin: 32px 0; font-size: 16px !important; line-height: 1.75 !important }
.notice b { font-weight: 500 }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px }
.tabs a { padding: 12px 18px; background: var(--band); text-decoration: none; font: 400 11.5px var(--sans); letter-spacing: 3px; text-transform: uppercase }
.tabs a:hover { background: #E4E0DA }
.howto { list-style: none; padding: 0 !important; margin: 26px 0 0; border-top: 1px solid var(--ink); counter-reset: s }
.howto li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); font-size: 17px !important }
.howto li::before { content: '0' counter(s); font: 400 13px var(--sans); letter-spacing: 1.5px; color: var(--soft) }
.howto .ill { display: flex; justify-content: flex-end }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px -3px rgba(34, 50, 79, .3); font: 400 13px var(--sans); letter-spacing: 0; color: #1C1C1E; white-space: nowrap }
.chip svg { color: #0A84FF }
@media (max-width: 640px) { .howto li { grid-template-columns: 40px minmax(0, 1fr) } .howto .ill { grid-column: 2; justify-content: flex-start } }
.link { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(176, 138, 62, .55); padding-bottom: 2px }
.link:hover { border-color: var(--gold) }
.actions-left { align-items: center; gap: 14px 28px }
.btn[disabled] { cursor: default; opacity: .7 }

/* Small screens: the brand may shrink and wrap before the menu button is pushed out; the moon keeps clear of the words. */
.brand { min-width: 0 }
.nav-toggle { flex: none; margin-right: -10px }
@media (max-width: 600px) {
  .hero { padding-top: 112px }
  .hero .moon { top: 88px; right: 5%; width: 46px; height: 46px }
  .band { letter-spacing: 3px; padding: 7px 14px 6px 17px; font-size: 11px }
  .hero h1 .script { font-size: clamp(54px, 16vw, 72px) }
  .btn { padding: 0 22px; letter-spacing: 3px }
}
@media (max-width: 360px) { .brand { letter-spacing: 2.5px; font-size: 10.5px; gap: 9px } }

/* Devices: the words beside the list of places, with no picture repeated from above. */
.devices-in { display: block; max-width: 760px; text-align: center }
.devices .where { text-align: left; max-width: 520px; margin-left: auto; margin-right: auto }
.devices .actions-left { justify-content: center }
/* Neighbouring sections of the same colour share one gap, not two. */
#how { padding-top: 0 }
.live { background: var(--stars) 0 0 / 420px repeat, linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%) }
.live + .devices { padding-top: 0; background: var(--stars) 0 0 / 420px repeat, var(--night-deep) }

/* The places to read, two by two. */
.devices .where { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; max-width: 640px; border-top: 0 }
.devices .where li { border-top: 1px solid rgba(239, 233, 220, .18); border-bottom: 0 }
.devices .aside { margin-top: 18px }
@media (max-width: 560px) { .devices .where { grid-template-columns: 1fr } }
/* The steps' numbers: an italic numeral in a fine gold ring, with a small star where the ring meets the top. */
.rows { border-top-color: var(--rule) }
.row { grid-template-columns: 76px minmax(0, 1fr); align-items: center; padding: 22px 0 }
.row .n { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px solid rgba(176, 138, 62, .55); border-radius: 50%; font: italic 400 34px/1 var(--display); letter-spacing: 0; color: var(--gold); padding-bottom: 4px }
.row .n::after { content: ''; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; background: var(--gold); clip-path: path('M4.5 0Q4.8 4.2 9 4.5 4.8 4.8 4.5 9 4.2 4.8 0 4.5 4.2 4.2 4.5 0Z'); box-shadow: 0 0 0 3px var(--page) }
.row h3 { font: italic 400 27px/1.25 var(--display) }
@media (max-width: 520px) { .row { grid-template-columns: 56px minmax(0, 1fr); gap: 0 14px } .row .n { width: 46px; height: 46px; font-size: 28px } .row h3 { font-size: 23px } }
/* On wider screens the three steps sit side by side across the full width, each under its own medallion. */
@media (min-width: 860px) {
  .rows { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; margin-top: clamp(32px, 3.5vw, 44px) }
  .row { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px clamp(20px, 3vw, 44px) 4px; border-bottom: 0 }
  .row + .row { border-left: 1px solid var(--rule) }
  .row .n { margin-bottom: 18px }
}
.beta { display: inline-block; margin-right: 12px; padding: 3px 10px 2px 12px; border: 1px solid rgba(217, 200, 164, .5); border-radius: 999px; color: var(--gilt); letter-spacing: 3px }
.beta-line { color: rgba(239, 233, 220, .72) }
.live .beta-line { text-transform: none; letter-spacing: .2px; font-size: 15px; line-height: 1.6 }
/* Add to Home Screen tip, with Safari's Share symbol. */
.share-tip { display: flex; align-items: center; gap: 16px; max-width: 640px; margin: 0 auto 28px; padding: 16px 22px; border: 1px solid rgba(217, 200, 164, .35); border-radius: 14px; background: rgba(239, 233, 220, .05); text-align: left; font-size: 15.5px; line-height: 1.6; color: rgba(239, 233, 220, .82) }
.share-tip svg { flex: none; color: var(--gilt) }
.share-tip b { font-weight: 500; color: var(--moon) }
/* Help page: pick a device, then a row of drawn screens with one short line under each. */
.help .wide-in { max-width: 1120px }
.help .head { margin-bottom: clamp(28px, 4vw, 44px) }
.pick { text-align: center }
.pick input { position: absolute; opacity: 0; pointer-events: none }
.pick label { display: inline-block; margin: 0 4px 8px; padding: 12px 22px; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; font: 400 12px var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--ink); background: var(--page) }
.pick input:checked + label { background: var(--night); border-color: var(--night); color: var(--moon) }
.pick input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px }
.steps { display: none; list-style: none; padding: 0 !important; margin: clamp(28px, 4vw, 44px) 0 0; gap: clamp(16px, 2vw, 28px); text-align: center }
#d-ios:checked ~ .s-ios, #d-mac:checked ~ .s-mac, #d-other:checked ~ .s-other { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) }
.steps li { margin: 0; font-size: 16.5px !important; line-height: 1.5 !important }
.steps p { margin: 18px 0 0; font-size: 16.5px !important; line-height: 1.5 !important; color: var(--ink) }
.steps p b { font-weight: 500 }
.steps .n { display: block; width: 40px; height: 40px; margin: 0 auto 10px; border: 1px solid rgba(176, 138, 62, .55); border-radius: 50%; font: italic 400 24px/37px var(--display); color: var(--gold) }
.shot { position: relative; height: 250px; border-radius: 22px; background: linear-gradient(180deg, #F3F1EC, #E9E5DD); box-shadow: inset 0 0 0 1px rgba(34, 50, 79, .08); overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 18px; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; color: #1C1C1E; text-align: left }
.shot.dark { background: radial-gradient(circle at 30% 20%, #3B4A73, var(--night-deep)) }
.shot img { display: block }
.hit { position: relative; box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgba(176, 138, 62, .18) !important }
.m-safari { position: absolute; inset: 18px 18px auto; display: flex; align-items: center; gap: 10px }
.m-url { flex: 1; padding: 9px 14px; background: #fff; border-radius: 12px; font-size: 12.5px; color: #555; box-shadow: 0 1px 4px rgba(0,0,0,.08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.m-share { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #fff; color: #0A84FF }
.m-page { position: absolute; inset: 74px 18px 0; border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.1) }
.m-page img { width: 100%; height: 100%; object-fit: cover; object-position: top }
.m-sheet { width: 100%; max-width: 250px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px -6px rgba(0,0,0,.2) }
.m-sheet span { display: flex; align-items: center; gap: 12px; padding: 9px 14px; font-size: 13.5px; border-top: 1px solid #EEE }
.m-sheet span:first-child { border-top: 0 }
.m-sheet span.hit { border-radius: 10px; margin: 2px 4px; background: #FFFDF7 }
.m-sheet .g { width: 18px; font-style: normal; text-align: center; color: #555 }
.m-add { width: 100%; max-width: 260px; background: #fff; border-radius: 14px; box-shadow: 0 6px 24px -6px rgba(0,0,0,.2); overflow: hidden }
.m-add-bar { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #EEE; font-size: 12px }
.m-add-bar span { color: #0A84FF; padding: 3px 8px; border-radius: 8px; min-width: 20px }
.m-add-bar b { font-weight: 600 }
.m-add-row { display: flex; align-items: center; gap: 12px; padding: 16px 14px; font-size: 14px }
.m-add-row img { width: 48px; height: 48px; border-radius: 11px }
.m-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 0 14px 14px }
.m-btns span { padding: 5px 14px; border-radius: 7px; font-size: 12.5px; background: #EEE }
.m-btns .fill { background: #0A84FF; color: #fff }
.m-home { display: grid; grid-template-columns: repeat(4, 44px); gap: 16px 18px }
.m-home i, .m-dock i { display: block; width: 44px; height: 44px; border-radius: 11px; background: rgba(239, 233, 220, .16) }
.m-home .hit { display: block; width: 44px; height: 44px; border-radius: 11px; text-align: center }
.m-home .hit img { width: 44px; height: 44px; border-radius: 11px }
.m-home small { display: block; margin-top: 4px; font-size: 10px; color: #fff }
.m-dock { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 10px; padding: 9px 12px; border-radius: 18px; background: rgba(239, 233, 220, .18); backdrop-filter: blur(6px) }
.m-dock .hit { display: block; width: 44px; height: 44px; border-radius: 11px; transform: translateY(-6px) }
.m-dock .hit img { width: 44px; height: 44px; border-radius: 11px }
.m-menu { position: absolute; inset: 0 }
.m-menubar { display: flex; align-items: center; gap: 16px; padding: 7px 14px; background: rgba(255,255,255,.85); font-size: 12.5px; box-shadow: 0 1px 0 rgba(0,0,0,.06) }
.m-menubar b { width: 12px; height: 12px; border-radius: 50%; background: #1C1C1E }
.m-menubar span:nth-child(2) { font-weight: 600 }
.m-menubar .on { background: #0A84FF; color: #fff; padding: 1px 7px; margin: -1px -7px; border-radius: 4px }
.m-drop { position: absolute; top: 30px; left: 72px; width: 170px; padding: 5px; background: rgba(255,255,255,.96); border-radius: 9px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.3); font-size: 12.5px }
.m-drop span { display: block; padding: 4px 9px; border-radius: 5px }
.m-drop .hit { background: #0A84FF; color: #fff }
.m-drop hr { border: 0; border-top: 1px solid #E5E5E5; margin: 4px 6px }
.help-note { margin: clamp(32px, 4vw, 48px) auto 0; max-width: 560px; text-align: center; font-size: 15.5px !important; color: var(--soft) }
.help-more { text-align: center; font-size: 15.5px !important; margin-top: 6px }
@media (max-width: 520px) { .shot { height: 220px } }
.pick { position: relative } .pick input { top: 0; left: 50% }
/* The iPad held sideways, showing the reader's two-page spread. */
.ipad.land { border-radius: 5% / 7% }
.ipad.land img { aspect-ratio: 1600 / 1116; border-radius: 2.2% / 3.2% }
.scene .ipad.land { width: 50%; right: -3%; bottom: -10% }
.pair-land { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) }
.pair-land .device { width: 100%; max-width: 620px }
@media (max-width: 860px) { .pair-land { grid-template-columns: 1fr } .scene .ipad.land { width: 56%; right: 0; bottom: -14% } }
/* Manage or cancel Premium. */
.plan-manage { display: block; margin-top: 14px; font-size: 13.5px; color: var(--soft); text-decoration: underline; text-underline-offset: 3px }
.plan-manage[hidden], [data-portal][hidden] { display: none }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px }
/* The moons sit in the corners of their skies, clear of every word at every width: above the band in the reader and
   devices skies, and above the brand in the footer. Below 560px, where the words fill the width, only the hero and
   footer keep a moon. */
.live .moon { top: 18px }
.devices .moon { top: 6px; right: 5%; width: 48px; height: 48px }
.foot .moon { top: 16px }
@media (max-width: 560px) { .devices .moon { display: none } .foot .moon { right: 6% } }
/* The twinkling stars fade where the words are, so no star sits on a letter. */
.sky-canvas { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 12%, rgba(0, 0, 0, .28) 28%, rgba(0, 0, 0, .28) 72%, #000 88%, #000 100%); mask-image: linear-gradient(90deg, #000 0, #000 12%, rgba(0, 0, 0, .28) 28%, rgba(0, 0, 0, .28) 72%, #000 88%, #000 100%) }
/* Over the night skies a mouse pointer becomes a small star in the sky's own colours; links and buttons keep the pointing hand. The trail of
   sparks behind it is drawn by site.js on this layer, which never takes clicks. */
.spark-layer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none }
@media (hover: hover) and (pointer: fine) {
  .sky { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M8 1Q8.5 7.5 15 8 8.5 8.5 8 15 7.5 8.5 1 8 7.5 7.5 8 1Z' fill='%23F4F0E6' stroke='%2329365A' stroke-width='.6'/%3E%3C/svg%3E") 8 8, auto }
  .sky a, .sky button, .sky label { cursor: pointer }
}
/* The reader and devices skies are one sky: the second tucks 1px under the first, so no hairline of page shows
   between them when the page lands on a fraction of a pixel. */
.live + .devices { margin-top: -1px; position: relative }
/* Headings break into even lines, and no paragraph ends on a single word. */
.title, .title-script, .hero h1, h2, h3 { text-wrap: balance }
p, li { text-wrap: pretty }
/* The headings on the light pages are in the night sky's own blue, a touch heavier. The italic face has a single weight, so
   the extra weight is a hairline outline in the same blue rather than the browser's smudgy imitation bold. */
.section .title, .page .title { color: var(--night); -webkit-text-stroke: .6px var(--night); paint-order: stroke fill }
/* In the night skies every heading, the hero's two lines included, is the glowing gold of The Perfect Day (its --gold, 243 213 140), a shade brighter, with a close glow and a hairline of weight so the letters stay crisp, and the hero's script shares the same glow.
   The glow is a still shadow, so it costs nothing once drawn. */
.sky .title, .hero h1 .line, .hero h1 .script { color: rgb(247, 221, 152); -webkit-text-stroke: .4px rgb(247, 221, 152); paint-order: stroke fill; text-shadow: 0 0 10px rgba(243, 213, 140, .42), 0 0 2px rgba(255, 240, 200, .3) }
/* "Your first book is on us" in the same midnight blue as the other headings on the light pages. */
#pricing .title-script { color: var(--night); -webkit-text-stroke: .5px var(--night); paint-order: stroke fill }
/* Softly rounded corners instead of sharp ones: buttons, the labels above headings, and the price cards. */
.btn, .nav-links .try { border-radius: 6px }
.band { border-radius: 4px }
.plan { border-radius: 10px; overflow: hidden }

/* Small screens: the two hero buttons stack at one shared width, evenly spaced. */
@media (max-width: 560px) {
  .hero .actions { flex-direction: column; align-items: stretch; gap: 14px; max-width: 340px; margin-left: auto; margin-right: auto }
  .hero .actions .btn { padding: 0 18px; letter-spacing: 3px }
}

/* The menu button: its bars turn gold while pressed and while the menu is open; the menu fades in. */
.nav-toggle svg { transition: color .25s ease }
.nav-toggle:active, .nav.open .nav-toggle { color: rgb(247, 221, 152) }
.nav.on-page .nav-toggle:active, .nav.on-page.open .nav-toggle { color: #B8923F }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }
@media (max-width: 960px) { .nav.open .nav-links { animation: menu-in .35s ease both } }
/* A few sparks drift off the menu's lower edge as it opens, then are removed. */
.menu-spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; pointer-events: none; animation: menu-spark 1.1s ease-out forwards }
@keyframes menu-spark { from { opacity: 1; transform: translate(0, 0) scale(1) } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4) } }
@media (prefers-reduced-motion: reduce) { .nav.open .nav-links { animation: none } .menu-spark { display: none } }

/* The phone menu, redone: the bar and the panel become one soft sheet of night that fades in (and out), its links
   arriving one after another; the two bars of the button turn gold and fold into a cross while it is open. */
@media (max-width: 960px) {
  .nav-toggle svg { display: none }
  .nav-toggle { position: relative }
  .nav-toggle::before, .nav-toggle::after { content: ""; position: absolute; left: 12px; right: 12px; height: 1.3px; border-radius: 1px; background: currentColor; transition: transform .4s cubic-bezier(.2, .7, .2, 1), background-color .25s ease }
  .nav-toggle::before { transform: translateY(-3.5px) }
  .nav-toggle::after { transform: translateY(3.5px) }
  .nav.open .nav-toggle::before { transform: rotate(45deg) }
  .nav.open .nav-toggle::after { transform: rotate(-45deg) }
  .nav { transition: background-color .45s ease }
  .nav.open { background: rgb(26, 35, 61); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px) }
  .nav.on-page.open { background: rgb(251, 250, 247) }
  .nav-links, .nav.open .nav-links { display: flex; visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; animation: none;
    background: rgb(26, 35, 61); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-radius: 0 0 14px 14px; box-shadow: 0 24px 40px -18px rgba(8, 12, 26, .55);
    padding: 6px var(--gutter) 30px;
    transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .45s }
  .nav.open .nav-links { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s }
  .nav.on-page .nav-links { background: rgb(251, 250, 247); border-bottom: 0; box-shadow: 0 24px 40px -20px rgba(34, 50, 79, .25) }
  .nav-links a { border-bottom-color: rgba(239, 233, 220, .09); opacity: 0; transform: translateY(-4px); transition: opacity .4s ease, transform .4s ease, color .2s ease }
  .nav.open .nav-links a { opacity: 1; transform: none }
  .nav.open .nav-links a:nth-child(1) { transition-delay: .06s }
  .nav.open .nav-links a:nth-child(2) { transition-delay: .11s }
  .nav.open .nav-links a:nth-child(3) { transition-delay: .16s }
  .nav.open .nav-links a:nth-child(4) { transition-delay: .21s }
  .nav.open .nav-links a:nth-child(5) { transition-delay: .26s }
  .nav-links a:not(.try):active { color: rgb(247, 221, 152) }
  .nav.on-page .nav-links a:not(.try):active { color: #B8923F }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .nav-links, .nav.open .nav-links, .nav-links a, .nav-toggle::before, .nav-toggle::after { transition: none }
}

/* Safari worked out the tablet screen's height from the frame's aspect-ratio wrongly, so the screen spilled past the
   frame. The screen now has its own shape (the reader's 1194 × 834), and the frame simply wraps it. */
.tablet { aspect-ratio: auto }
.tablet .screen { height: auto; aspect-ratio: 1194 / 834 }

/* Wide screens: the hero picture and the live reader use more of the width, so the sky at the sides feels less empty. */
@media (min-width: 1200px) {
  .scene { max-width: 1120px }
  .tablet { max-width: 920px }
  .plans, .plans-note { max-width: 980px }
}

/* Hero: an iPhone in the Midnight colours joins the shelf and the iPad, with a few glints of starlight around them.
   The glints twinkle only while the picture is on screen (site.js adds .twinkle) and stay still for reduced motion. */
.scene .hero-phone { left: -3%; bottom: -12%; width: 15%; z-index: 2 }
.phone img { object-position: center }
.glint { position: absolute; z-index: 3; width: 16px; height: 16px; pointer-events: none; opacity: .85;
  background: radial-gradient(circle, rgba(255, 244, 214, .55) 0 18%, rgba(255, 244, 214, 0) 62%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C8.6 5.6 10.4 7.4 16 8 10.4 8.6 8.6 10.4 8 16 7.4 10.4 5.6 8.6 0 8 5.6 7.4 7.4 5.6 8 0Z' fill='%23F7E6B8'/%3E%3C/svg%3E") center / contain no-repeat }
.glint.g1 { left: -6%; top: 22%; width: 14px; height: 14px }
.glint.g2 { left: 9%; bottom: -16%; width: 10px; height: 10px }
.glint.g3 { right: 47%; bottom: -15%; width: 12px; height: 12px }
.glint.g4 { right: -5%; top: 34%; width: 18px; height: 18px }
.glint.g5 { left: 78%; top: -6%; width: 11px; height: 11px }
@keyframes twinkle { 0%, 100% { opacity: .85; transform: scale(1) } 50% { opacity: .3; transform: scale(.7) } }
.scene.twinkle .glint { animation: twinkle 3.6s ease-in-out infinite }
.scene.twinkle .glint.g2 { animation-delay: -1.1s } .scene.twinkle .glint.g3 { animation-delay: -2.3s }
.scene.twinkle .glint.g4 { animation-delay: -.6s } .scene.twinkle .glint.g5 { animation-delay: -1.8s }
@media (prefers-reduced-motion: reduce) { .scene.twinkle .glint { animation: none } }
@media (max-width: 860px) { .scene .hero-phone { width: 19%; left: -1%; bottom: -16% } .glint.g1, .glint.g5 { display: none } }

/* A page for every hour: the same book in three colours, overlapping like prints on a table, then every paper the
   reader offers, as small pages. */
.hours { margin-top: clamp(72px, 9vw, 120px) }
.hours-title { margin: 0 auto }
.hours .lede { margin-top: 18px; color: var(--soft) }
.collage { position: relative; max-width: 1040px; margin: clamp(36px, 5vw, 60px) auto 0; aspect-ratio: 1040 / 600 }
.collage .device { width: 50% }
.collage .c-day { left: 0; top: 0; rotate: -4deg; z-index: 1 }
.collage .c-charcoal { right: 0; top: 4%; rotate: 4deg; z-index: 1 }
.collage .c-midnight { left: 21%; top: 22%; width: 58%; z-index: 2; box-shadow: 0 50px 90px -30px rgba(15, 27, 51, .7), 0 0 0 1px rgba(255, 255, 255, .08) inset }
.collage .ipad.land img { aspect-ratio: 1600 / 1114 }
@media (max-width: 700px) {
  .collage { aspect-ratio: 360 / 330 }
  .collage .device { width: 74% }
  .collage .c-day { left: -2% } .collage .c-charcoal { right: -2%; top: 10% }
  .collage .c-midnight { left: 6%; top: 38%; width: 88% }
}
.swatches { max-width: 980px; margin: clamp(48px, 6vw, 72px) auto 0 }
.sw-label { font: 400 11px var(--sans); letter-spacing: 3.5px; text-transform: uppercase; color: var(--soft); margin: 0 0 16px }
.sw-row { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 14px }
.sw-row li { width: 58px; text-align: center }
.sw-row i { display: flex; align-items: center; justify-content: center; height: 76px; border-radius: 6px; background: var(--bg); color: var(--ink);
  font: italic 400 24px var(--display); box-shadow: 0 10px 22px -14px rgba(34, 50, 79, .45), 0 0 0 1px rgba(34, 50, 79, .08) inset; transition: transform .3s ease }
.sw-row li:hover i { transform: translateY(-3px) }
.sw-row span { display: block; margin-top: 8px; font: 400 9.5px var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--soft) }
.scene .hero-phone { bottom: 0; width: 15.5%; background: #1E2026; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .16) inset, 0 0 0 4px #15171C inset }
.scene .hero-phone img { outline: 1px solid rgba(255, 255, 255, .06); outline-offset: -1px }
@media (max-width: 860px) { .scene .hero-phone { width: 19%; left: -1%; bottom: -2% } }
/* The paper rows keep whole, even rows: all on one line when there's room, otherwise balanced halves or thirds. */
.swatches { max-width: 1060px }
.sw-row { gap: 18px 12px; margin-left: auto; margin-right: auto }
.sw-row li { width: 56px }
@media (max-width: 1100px) { .sw-row:nth-of-type(1) { max-width: 532px } .sw-row:nth-of-type(2) { max-width: 396px } }
@media (max-width: 480px) { .sw-row:nth-of-type(1) { max-width: 328px } .sw-row:nth-of-type(2) { max-width: 272px } }

/* The papers as one slim ribbon, light to dark, instead of separate tiles. */
.ribbon { display: flex; max-width: 860px; height: 46px; margin: clamp(56px, 7vw, 84px) auto 0; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(34, 50, 79, .5), 0 0 0 1px rgba(34, 50, 79, .08) }
.ribbon-day { display: flex; flex: 15 }
.ribbon-night { display: flex; flex: 11 }
.ribbon i { flex: 1 }
.ribbon-key { display: flex; max-width: 860px; margin: 14px auto 0; font: 400 10.5px var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--soft) }
.ribbon-key span:first-child { flex: 15 } .ribbon-key span:last-child { flex: 11; text-align: right }
/* Print, very close up. */
.prints { margin-top: clamp(80px, 10vw, 130px) }
.prints-title { margin: 0 auto }
.prints .lede { margin-top: 18px; color: var(--soft) }
.print-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 1080px; margin: clamp(36px, 5vw, 56px) auto 0 }
.print-grid figure { margin: 0 }
.print-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 22px 44px -26px rgba(34, 50, 79, .55), 0 0 0 1px rgba(34, 50, 79, .07) }
.print-grid figcaption { margin-top: 12px; font: 400 10.5px var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--soft) }
@media (max-width: 860px) { .print-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 480px) { .ribbon { height: 36px } .ribbon-key { font-size: 9.5px; letter-spacing: 2px } .print-grid { gap: 12px } }
.print-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px }
@media (max-width: 860px) { .print-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 480px) { .ribbon-key { letter-spacing: 1.4px; font-size: 9px } }
/* The ribbon's captions: quiet italic, not capitals. */
.ribbon-key { margin-top: 16px; font: italic 400 19px/1.3 var(--display); letter-spacing: .2px; text-transform: none; color: var(--soft) }
@media (max-width: 480px) { .ribbon-key { font-size: 15px; letter-spacing: 0 } }
.ribbon-key b { font-weight: inherit }
@media (max-width: 480px) { .ribbon-key .rk-long { display: none } }

/* Safari on a Mac draws light text on the night sky a touch heavy; greyscale smoothing keeps it fine and crisp. */
.sky, .nav, .tablet .play span { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale }

/* Beta: Hand to turn. A small line drawing of a book with a raised hand either side, then a few words. */
.hands-beta { padding-top: clamp(24px, 3vw, 40px) }
.hb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 980px; margin: 0 auto; padding: clamp(28px, 4vw, 48px); border-radius: 18px; background: linear-gradient(180deg, rgba(41, 54, 90, .045), rgba(41, 54, 90, .02)); box-shadow: 0 0 0 1px rgba(34, 50, 79, .07) inset; text-align: left }
.hb-art svg { display: block; width: 100%; height: auto; color: var(--night) }
.hb-book { opacity: .55 }
.hb-lines { opacity: .55 }
.hb-left { opacity: .4 }
.hb-arrow { stroke: #B8923F } .hb-arrow.faint { opacity: .45 }
.hb-words .title { color: var(--night) }
.hb-words .lede { margin-top: 16px; color: var(--soft) }
.hb-note { margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: var(--soft) }
.hb-note b { font-weight: 500; color: var(--ink) }
/* The right hand lifts once as the drawing comes into view. */
.js .hb-art.rise .hb-right { transform: translateY(14px); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1) .35s }
.js .hb-art.rise.seen .hb-right { transform: none }
@media (max-width: 760px) { .hb { grid-template-columns: 1fr; text-align: center } .hb-art { max-width: 320px; margin: 0 auto } }
/* The hero iPhone's bezel: percentage padding is taken from the whole picture's width, not the phone's, which made
   the frame far too thick. A slim fixed bezel instead, with the screen's corners matched to the frame's. */
.scene .hero-phone { padding: clamp(4px, .55vw, 7px); border-radius: clamp(16px, 2.2vw, 26px) }
.scene .hero-phone img { border-radius: clamp(12px, 1.8vw, 21px) }

/* Hand to turn, redrawn as a small piece of night sky: gold hands either side of an open book, softly lit. */
.hb.sky { background: var(--stars) 0 0 / 420px repeat, radial-gradient(120% 90% at 30% 50%, #2E3C64 0%, var(--night) 45%, var(--night-deep) 100%); color: var(--moon); border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(15, 27, 51, .6); padding: clamp(32px, 4.5vw, 56px) clamp(28px, 4.5vw, 60px) }
.hb.sky .band { background: rgba(239, 233, 220, .1); color: var(--moon) }
.hb.sky .lede { color: var(--moon-soft) }
.hb.sky .hb-note { color: rgba(239, 233, 220, .62) }
.hb.sky .hb-note b { color: rgb(247, 221, 152); font-weight: 400 }
.hb-art svg { color: inherit; overflow: visible }
.hb-book { opacity: 1 }
.hb-book path { fill: rgba(244, 240, 230, .06); stroke: rgba(244, 240, 230, .5); stroke-width: 1.1; stroke-linejoin: round }
.hb-book .hb-spine { fill: none; stroke: rgba(243, 213, 140, .7) }
.hb-book .hb-lines { fill: none; stroke: rgba(244, 240, 230, .26); stroke-width: 1.4; stroke-linecap: round }
.hb-hand { fill: url(#hbGold) }
.hb-right .hb-hand { filter: drop-shadow(0 0 10px rgba(243, 213, 140, .45)) }
.hb-left { opacity: .32 }
.hb-arrow { fill: none; stroke: rgb(247, 221, 152); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round }
.hb-arrow.faint { opacity: .35 }
.hb.sky .hb-words .title { color: rgb(247, 221, 152) }

/* Hand to turn, on the light card: soft grey ground, cream pages with navy hairlines, a gold hand lit gently. */
.hb { background: linear-gradient(180deg, #F3F2EE, #F7F6F2); box-shadow: 0 0 0 1px rgba(34, 50, 79, .07) inset, 0 30px 60px -44px rgba(34, 50, 79, .35); border-radius: 22px }
.hb .hb-words .title { color: var(--night) }
.hb-book path { fill: #FBF9F3; stroke: rgba(41, 54, 90, .45); stroke-width: 1.1 }
.hb-book .hb-spine { fill: none; stroke: rgba(184, 146, 63, .7) }
.hb-book .hb-lines { fill: none; stroke: rgba(41, 54, 90, .2) }
.hb-right .hb-hand { fill: url(#hbGoldDay); filter: drop-shadow(0 6px 10px rgba(184, 146, 63, .28)) }
.hb-left .hb-hand, .hb-left { fill: #C9CCD4; opacity: 1 }
.hb-arrow { stroke: #B8923F } .hb-arrow.faint { stroke: #B8923F; opacity: .35 }
/* Both paragraphs in the hand card: one size, one line spacing, one gap between them. */
.hb .hb-words .lede, .hb .hb-note { font-size: clamp(15.5px, 1.25vw, 17px); line-height: 1.75; letter-spacing: .1px; color: var(--soft); margin-top: 18px }
.hb .hb-note b { font-weight: 400; color: var(--ink) }

/* The hand turning a page, on a loop while the card is on screen (site.js adds .playing): the right hand rises,
   a page lifts from the right and turns over the spine, then the hand lowers. Still for reduced motion. */
.hb-book .hb-leaf { fill: #FBF9F3; opacity: 0; transform-box: view-box; transform-origin: 180px 135px }
.hb-right { transform-box: view-box }
.js .hb-art.rise .hb-right, .js .hb-art.rise.seen .hb-right { transform: none; transition: none }
@keyframes hb-hand { 0%, 6% { transform: translateY(12px) } 18%, 58% { transform: none } 72%, 100% { transform: translateY(12px) } }
@keyframes hb-leaf {
  0%, 22% { transform: scaleX(1); opacity: 0; fill: #FBF9F3 }
  25% { transform: scaleX(1); opacity: 1 }
  40% { transform: scaleX(.02) skewY(-4deg); fill: #ECE6D8 }
  55% { transform: scaleX(-1); opacity: 1; fill: #FBF9F3 }
  60%, 100% { transform: scaleX(-1); opacity: 0 }
}
.hb.playing .hb-right { animation: hb-hand 4.8s cubic-bezier(.4, 0, .2, 1) infinite }
.hb.playing .hb-leaf { animation: hb-leaf 4.8s ease-in-out infinite }
@media (prefers-reduced-motion: reduce) { .hb.playing .hb-right, .hb.playing .hb-leaf { animation: none } }
