/* Scriptorium — a manuscript page: vellum and ink, red rubrics, gold rules. */
:root {
  --vellum: #F5EEDF; --leaf: #FBF7EE; --ink: #2B2219; --faded: #6B5D4C; --rule: #DDCFB4;
  --rubric: #A5321D; --gold: #A9853A; --lapis: #1E3263;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --measure: 34rem;
}
@media (prefers-color-scheme: dark) {
  :root { --vellum: #0F1626; --leaf: #151F35; --ink: #ECE4D2; --faded: #A79C88; --rule: #2C3852;
    --rubric: #E27A55; --gold: #D6B261; --lapis: #A9BCE3; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--vellum); color: var(--ink); font: 19px/1.62 var(--serif);
  font-feature-settings: "kern", "liga", "onum"; }
a { color: var(--rubric); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.sc { font-variant: small-caps; letter-spacing: .06em; text-transform: lowercase; }

/* Header: a running head, as at the top of a manuscript leaf */
.head { max-width: 1080px; margin: 0 auto; padding: 22px 24px 14px; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-size: 22px; letter-spacing: .02em; }
.head nav { display: flex; gap: 22px; font-size: 15px; font-variant: small-caps; letter-spacing: .08em; text-transform: lowercase; }
.head nav a { color: var(--faded); text-decoration: none; }
.head nav a:hover { color: var(--rubric); }

/* The page */
.page { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Hero: centred title, lead and pills, then the app itself */
.hero { text-align: center; padding: 64px 0 0; }
.kicker { font-size: 14px; font-variant: small-caps; letter-spacing: .14em; text-transform: lowercase; color: var(--rubric); }
.hero h1 { font-weight: 400; font-size: clamp(38px, 6vw, 64px); line-height: 1.06; letter-spacing: -.01em; margin: 14px auto 18px; max-width: 22ch; }
.hero .lead { font-size: clamp(19px, 2.3vw, 22px); line-height: 1.5; color: var(--faded); max-width: 38rem; margin: 0 auto; }
.pills { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 26px 0 0; }
.pill { font-size: 15px; padding: 5px 15px; border-radius: 999px; border: 1px solid var(--rule); background: var(--leaf); color: var(--ink); }
.pill.on { background: var(--rubric); border-color: var(--rubric); color: var(--vellum); }

.frame { padding: 8px; background: var(--leaf); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 30px 70px -34px rgba(43,34,25,.55); }
.frame img { border-radius: 8px; }
.shot { margin: 48px 0 0; }

.devices { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 1fr); gap: 28px; align-items: end; margin: 28px 0 0; }
.device { margin: 0; }
.device.iphone .frame { border-radius: 26px; padding: 7px; }
.device.iphone img { border-radius: 20px; }
.device figcaption { margin-top: 12px; font-size: 15px; color: var(--faded); text-align: center; }
.device figcaption b { font-weight: 400; color: var(--rubric); font-variant: small-caps; letter-spacing: .08em; text-transform: lowercase; }

.pull { margin: 72px auto 0; max-width: 40rem; text-align: center; }
.pull p { font-size: clamp(22px, 2.8vw, 27px); line-height: 1.4; font-style: italic; margin: 0; }
.pull cite { display: block; margin-top: 12px; font-style: normal; font-size: 13px; font-variant: small-caps; letter-spacing: .12em; text-transform: lowercase; color: var(--gold); }

/* Fleuron divider between sections */
.fleuron { display: flex; align-items: center; gap: 18px; color: var(--gold);
  margin: 72px 0 0; font-size: 20px; }
.fleuron::before, .fleuron::after { content: ""; flex: 1; border-top: 1px solid var(--rule);
  box-shadow: 0 3px 0 -2px var(--rule); height: 4px; }

/* Sections */
.part { padding-top: 56px; }
.part h2 { font-weight: 400; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 8px 0 12px; max-width: 24ch; }
.part > p.intro { font-size: 20px; color: var(--faded); max-width: var(--measure); margin: 0 0 36px; }

/* Capitula: the features as a numbered table of contents */
.capitula { list-style: none; margin: 0; padding: 0; columns: 2 22rem; column-gap: 56px; }
.capitula li { break-inside: avoid; display: grid; grid-template-columns: 2.6rem 1fr; padding: 0 0 26px; }
.capitula .n { color: var(--rubric); font-size: 17px; letter-spacing: .04em; padding-top: 2px; }
.capitula h3 { margin: 0 0 4px; font-weight: 400; font-size: 18px; font-variant: small-caps; letter-spacing: .07em; text-transform: lowercase; }
.capitula p { margin: 0; font-size: 17.5px; line-height: 1.55; color: var(--faded); }

/* Privacy: four paragraphs set off with pilcrows */
.paras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap: 8px 48px;
  padding: 30px 0 0; border-top: 1px solid var(--rule); }
.paras p { margin: 0 0 22px; font-size: 17.5px; line-height: 1.55; color: var(--faded); }
.paras p b { font-weight: 400; color: var(--ink); }
.paras p b::before { content: "¶ "; color: var(--rubric); }

/* Closing: availability, with a red initial */
.closing { max-width: 40rem; margin: 0 auto; text-align: center; padding-top: 56px; }
.closing h2 { font-weight: 400; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.2; margin: 8px 0 14px; }
.closing p { color: var(--faded); margin: 0; }

.explicit { text-align: center; margin: 72px 0 0; }
.explicit .gk { font-size: clamp(21px, 2.6vw, 25px); }
.explicit .en { font-style: italic; color: var(--faded); font-size: 17px; margin-top: 4px; }
.explicit .ref { font-size: 13px; font-variant: small-caps; letter-spacing: .12em; text-transform: lowercase; color: var(--gold); margin-top: 8px; }

/* Colophon (footer) */
footer { max-width: 1080px; margin: 72px auto 0; padding: 22px 24px 44px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--faded); }
footer a { color: var(--faded); text-decoration: none; }
footer a:hover { color: var(--rubric); }
footer .grow { flex: 1 1 0%; }

/* Documents: privacy policy and terms */
.doc { max-width: 40rem; margin: 0 auto; padding: 48px 24px 0; }
.doc h1 { font-weight: 400; font-size: clamp(38px, 5vw, 50px); line-height: 1.1; margin: 10px 0 6px; }
.doc h2 { font-weight: 400; font-size: 18px; font-variant: small-caps; letter-spacing: .08em; text-transform: lowercase;
  color: var(--rubric); margin: 36px 0 6px; }
.doc .small { font-size: 15px; color: var(--faded); margin-top: 0; }
.doc p, .doc li { font-size: 18px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--gold); }
.doc .card { margin: 26px 0; padding: 20px 24px 8px; background: var(--leaf); border: 1px solid var(--rule); border-left: 3px solid var(--gold); }
.doc .card h2 { margin-top: 0; }

@media (max-width: 700px) {
  .devices { grid-template-columns: 1fr; }
  .device.iphone { max-width: 260px; margin: 0 auto; }
  .hero { padding-top: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .head { padding: 16px 16px 12px; }
  .page, footer { padding-left: 16px; padding-right: 16px; }
  .doc { padding: 32px 16px 0; }
  .fleuron { margin-top: 56px; }
}

h1, h2, .lead { text-wrap: balance; }
.shot .credit { margin-top: 10px; font-size: 12.5px; color: var(--faded); text-align: center; }
