/* Bläck's website: the app's own look in its dark theme, ink and amber; the screenshots are in its light one. */
:root {
  --bg: #15131a;
  --panel: #1e1b24;
  --text: #ece6da;
  --dim: #a59d90;
  --line: #2f2b36;
  --accent: #e0a54c;
  --accent-ink: #1a1306;
  --error: #e07a68;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 6px; }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.center { text-align: center; }
.lead { font-size: 19px; color: var(--dim); max-width: 46em; }
.center .lead { margin-inline: auto; }

.top { display: flex; align-items: center; gap: 24px; padding: 14px max(16px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--accent); text-decoration: none; font-family: var(--serif); font-weight: 600; letter-spacing: .18em; }
.top nav { display: flex; gap: 20px; flex: 1; flex-wrap: wrap; }
.top nav a, .lang { color: var(--dim); text-decoration: none; }
.top nav a[aria-current] { color: var(--text); }
.top nav a:hover, .lang:hover { color: var(--text); }

main { padding: 0 16px; }
main > section { max-width: 1160px; margin: 0 auto; padding: 56px 0; }
.narrow { max-width: 640px !important; }

.button { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 11px 20px; border-radius: 8px; font-weight: 600; border: 1px solid var(--accent); cursor: pointer; font: inherit; font-weight: 600; }
.button.ghost { background: transparent; color: var(--accent); }
.button:hover { filter: brightness(1.08); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.screen { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); display: block; }

.features > h2 { text-align: center; margin-bottom: 40px; }
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; align-items: center; margin: 0 0 56px; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature.flip > div { order: 2; }
.feature p { color: var(--dim); }
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; margin-top: 24px; }
.more p { color: var(--dim); margin: 0; font-size: 16px; }

.band { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band p { color: var(--dim); }
.sync-teaser { text-align: center; }
.sync-teaser .lead { margin-inline: auto; }

.page-head { padding-bottom: 8px !important; }
.page-head.center .lead { margin-inline: auto; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.steps p { color: var(--dim); font-size: 16px; }
.steps .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; margin-bottom: 10px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 32px !important; margin: 24px auto !important; }
.price { font-family: var(--serif); font-size: 28px; margin: 8px 0 20px; color: var(--dim); }
.price.known { color: var(--text); }
.faq { max-width: 760px !important; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--dim); margin: 8px 0 0; }

.subscribe-steps { padding-left: 1.2em; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.subscribe { display: flex; flex-direction: column; gap: 14px; }
.subscribe label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--dim); }
.subscribe input { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.subscribe .price { margin: 4px 0; font-size: 22px; }
.subscribe button { align-self: flex-start; }
.error { color: var(--error); margin: 0; }

.downloads { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0; }
.button.download span { font-weight: 400; opacity: .8; font-size: 14px; }
.prose p { color: var(--dim); }
.prose h2 { font-size: 22px; margin-top: 32px; }

footer { border-top: 1px solid var(--line); padding: 24px 16px 40px; text-align: center; color: var(--dim); font-size: 14px; }

@media (max-width: 640px) {
  /* The name and the language on one line, the pages under them. */
  .top { gap: 10px 16px; }
  .brand { flex: 1; }
  .top nav { order: 3; flex-basis: 100%; gap: 18px; }
}
@media (max-width: 860px) {
  .hero, .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature.flip > div { order: 0; }
  main > section { padding: 36px 0; }
  .card { padding: 22px !important; }
}

/* The features page: a section per part of Bläck, with a screenshot where there is one. */
.all-features { margin-top: 36px; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 24px; }
.jump a { color: var(--dim); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.jump a:hover { color: var(--text); border-color: var(--dim); }
.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.detail.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.detail.flip > div { order: 2; }
.detail.plain { grid-template-columns: minmax(0, 1fr); max-width: 760px !important; }
.detail.plain > div { order: 0; }
.detail .lead { font-size: 18px; }
.points { margin: 16px 0 0; padding-left: 1.1em; color: var(--dim); }
.points li { margin: 6px 0; }
.points li::marker { color: var(--accent); }
.dev-teaser { margin-top: 56px !important; }
@media (max-width: 860px) {
  .detail, .detail.flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .detail.flip > div { order: 0; }
}
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px 48px; border-top: 1px solid var(--line); }
.detail-card { scroll-margin-top: 16px; }
.detail-card .lead { font-size: 17px; }
.subscribe h2 { font-size: 20px; margin: 0; }
.subscribe-steps .made { margin: 0; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--accent); color: var(--text); }

.button:disabled { opacity: .45; cursor: not-allowed; filter: none; }
