/* bokfink.se: colours from the app icon (paper, navy wing, robin orange). No external requests. */
:root {
  --paper: #f6f3ee;
  --ink: #232a3d;
  --muted: #6b7080;
  --faint: #9a9da8;
  --rule: #e2dcd2;
  --robin: #d9692a;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16181d;
    --ink: #ebe7e0;
    --muted: #9da1ac;
    --faint: #6f737e;
    --rule: #2c2f37;
    --robin: #ef9660;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: .2em; }
img { max-width: 100%; height: auto; display: block; }
b, strong { font-weight: 600; }
p { margin: 0; }

.page { width: min(920px, 100% - 32px); margin-inline: auto; }
.text { max-width: 36rem; }

h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.25rem); line-height: 1.12; }
h2 { font-size: 1.35rem; line-height: 1.3; }

/* Intro */
.intro { padding: clamp(48px, 10vw, 104px) 0 56px; text-align: center; }
.intro .icon { width: 112px; height: 112px; margin: 0 auto 24px; filter: drop-shadow(0 8px 20px rgb(35 42 61 / 14%)); }
.quote { margin: 28px auto 0; max-width: 40rem; text-wrap: balance; }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.55rem); line-height: 1.4; color: var(--muted); }
.quote blockquote p::before { content: "”"; }
.quote blockquote p::after { content: "”"; }
.quote figcaption { margin-top: 10px; font-size: 14px; color: var(--faint); }
.facts { margin-top: 20px; font-size: 14px; color: var(--faint); }

/* Screenshot, cropped below the content and faded out */
.shot .frame {
  aspect-ratio: 1600 / 780; overflow: hidden; border-radius: 12px 12px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.shot img { border-radius: 12px; box-shadow: 0 0 0 1px rgb(35 42 61 / 10%); }
@media (prefers-color-scheme: dark) { .shot img { box-shadow: 0 0 0 1px rgb(255 255 255 / 10%); } }

/* Sections in the style of a ledger: a name in the margin, hairline rules between rows */
section { padding: 56px 0 0; }
section > h2 { margin-bottom: 18px; }
.ledger { margin: 0; border-top: 1px solid var(--ink); }
.ledger div {
  display: grid; grid-template-columns: 11rem 1fr; gap: 4px 32px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.ledger dt { font-family: var(--serif); font-size: 1.1rem; }
.ledger dd { margin: 0; color: var(--muted); max-width: 36rem; }
.prose { color: var(--muted); }
.prose + .prose { margin-top: 14px; }

footer { padding: 72px 0 56px; font-size: 14px; color: var(--faint); }

/* Download page */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--robin); color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 10px;
}
.button:hover { filter: brightness(1.06); }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .button { color: #1b1208; } }
.download { margin-top: 24px; display: flex; justify-content: center; align-items: center; gap: 10px 20px; flex-wrap: wrap; }
.download small { color: var(--faint); font-size: 14px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 1.1rem; color: var(--faint); }
.steps small { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.notes ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.notes li { padding: 12px 0; border-bottom: 1px solid var(--rule); }

@media (max-width: 640px) {
  .ledger div { grid-template-columns: 1fr; }
  .intro .icon { width: 96px; height: 96px; }
}
