/* postrinch.jkbase.app. One sheet for every page. Colours come from the app
   icon (design/logo/icon.svg): the accent blue, its navy outline and the pale
   blue of the plane. System fonts only: the site loads nothing from anyone
   else. */

:root {
  --accent: #2456b8;
  --accent-ink: #ffffff;
  --navy: #0f2a5e;
  --pale: #bcd4f6;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #16213a;
  --muted: #55627d;
  --line: #dde4ef;
  --code-bg: #eef2f8;
  --warn-bg: #fff6e0;
  --warn-line: #ecd28c;
  --shadow: 0 1px 2px rgba(15, 42, 94, .06), 0 8px 28px rgba(15, 42, 94, .10);
  --radius: 12px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #5b8ce6;
    --accent-ink: #08142c;
    --bg: #0b1324;
    --surface: #121d33;
    --ink: #e6ecf7;
    --muted: #9aa8c2;
    --line: #22304c;
    --code-bg: #18253f;
    --warn-bg: #2a2412;
    --warn-line: #5d4c1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

code, pre, kbd {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: .88em;
}
code { background: var(--code-bg); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
pre code { overflow-wrap: normal; }
pre {
  background: var(--code-bg);
  padding: 14px 16px;
  border-radius: 10px;
  overflow-x: auto;
  line-height: 1.5;
}
pre code { background: none; padding: 0; }

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--surface); padding: 6px 10px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px;
}
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-quiet:hover { border-color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 10px; }
.fineprint { color: var(--muted); font-size: 14px; margin: 0; }

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px); line-height: 1.1; letter-spacing: -.02em;
  margin: 0 auto 18px; max-width: 16em;
}
.hero .lede { font-size: 19px; color: var(--muted); max-width: 40em; margin: 0 auto; }
.hero .actions { justify-content: center; }
.badge {
  display: inline-block; margin-bottom: 18px; padding: 3px 12px; border-radius: 999px;
  background: var(--code-bg); color: var(--muted); font-size: 14px; font-weight: 600;
}

/* Screenshots */
.shot {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.shot picture, .shot img { display: block; width: 100%; height: auto; }
.shot-hero { margin: 44px auto 0; max-width: 1080px; }
.shot figcaption { padding: 8px 14px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }

/* Sections */
section.band { padding: 64px 0; }
section.band + section.band { border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.band .intro { color: var(--muted); font-size: 18px; max-width: 42em; margin: 0 0 36px; }

/* Features: text beside a screenshot, alternating sides */
.feature {
  display: grid; grid-template-columns: 5fr 7fr; gap: 44px; align-items: center;
  margin: 0 0 64px;
}
.feature:last-child { margin-bottom: 0; }
/* Grid items may shrink below their content (a long <pre>), or the page scrolls sideways. */
.feature > *, .download > * { min-width: 0; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature h3 { font-size: 24px; margin: 0 0 10px; line-height: 1.25; }
.feature p { margin: 0 0 12px; color: var(--muted); }
.feature ul { margin: 0; padding-left: 20px; color: var(--muted); }
.feature li { margin: 4px 0; }
/* A wide feature: its text in two columns above a full-width screenshot. */
.feature-wide { grid-template-columns: 1fr; gap: 28px; }
.feature.feature-wide .feature-text { order: 0; }
.feature-wide .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 44px; }
.feature-wide .cols ul { padding-left: 20px; }

/* Small feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tag {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; vertical-align: 2px;
  background: var(--pale); color: var(--navy);
}

/* Download */
.download {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start;
}
.dl-boxes { display: grid; gap: 18px; }
.dl-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.dl-box h3 { margin: 0 0 4px; font-size: 20px; }
.dl-version { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
.dl-files { list-style: none; padding: 0; margin: 14px 0 0; font-size: 15px; }
.dl-files li { margin: 6px 0; }
.dl-files .size { color: var(--muted); }
.dl-req { margin-top: 16px; }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin: 0 0 14px; }

.note {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px;
  padding: 14px 18px; margin: 24px 0 0; font-size: 15.5px;
}
.note strong { display: block; margin-bottom: 2px; }

/* Long-form pages (privacy, terms) */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; }
.doc ol > li, .doc ul > li { margin: 6px 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14.5px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.site-foot nav { display: flex; gap: 18px; }

@media (max-width: 860px) {
  .feature, .download { grid-template-columns: 1fr; gap: 22px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature-wide .cols { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  section.band { padding: 48px 0; }
}

@media (max-width: 520px) {
  .site-nav { gap: 14px; }
  .site-nav a.hide-narrow { display: none; }
  .cards { grid-template-columns: 1fr; }
}
