/* Mininotes - the site. No fonts, scripts or anything else from elsewhere: the system's own type. */
:root {
  --ground: #285646;
  --ground-deep: #1f463a;
  --paper: #f5f1e6;
  --card: #fbf9f3;
  --ink: #1d2721;
  --quiet: #5b665f;
  --line: #e2dccd;
  --rule: #d9e3dc;
  --accent: #285646;
  --on-ground: #f5f1e6;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151b18;
    --card: #1c2420;
    --ink: #ece8dc;
    --quiet: #a3ada6;
    --line: #2c3731;
    --rule: #25302a;
    --accent: #8cc5ad;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* The bar */
.bar { background: var(--ground); color: var(--on-ground); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-ground); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.bar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.bar nav a { color: var(--on-ground); text-decoration: none; opacity: .88; font-size: 15px; }
.bar nav a:hover { opacity: 1; text-decoration: underline; }

/* The first thing seen */
.hero { background: var(--ground); color: var(--on-ground); padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.5px; }
.hero p.lead { font-size: 19px; margin: 0 0 28px; opacity: .92; max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: #f5f1e6; color: #1d2721; border: 1px solid transparent;
}
.button:hover { background: #fff; text-decoration: none; }
.button.plain { background: transparent; color: var(--on-ground); border-color: rgba(245,241,230,.45); }
.button.plain:hover { border-color: var(--on-ground); background: rgba(245,241,230,.08); }
.small { font-size: 14px; opacity: .8; margin-top: 14px; }

/* The ruled page, drawn: what the app looks like, without a screenshot */
.pad {
  background: #fbf9f3; color: #1d2721; border-radius: var(--radius); padding: 22px 26px 30px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.pad h3 { margin: 0 0 12px; font-size: 20px; }
.pad ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d9e3dc;
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, #d9e3dc 35px 36px); }
.pad li { line-height: 36px; font-size: 17px; }
.pad li s { color: #7c857f; }
.pad .who { font-size: 13px; color: #5b665f; margin: -6px 0 10px; }

/* Sections */
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.3px; }
.sub { color: var(--quiet); margin: 0 0 28px; max-width: 42em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); 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(--quiet); font-size: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 16px 44px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ground); color: var(--on-ground); font-weight: 700; font-size: 15px; display: grid; place-items: center;
}
code, .address {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace; font-size: 14px;
}
.address {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  word-break: break-all; user-select: all; margin: 10px 0;
}
.contact { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.qr { background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--line); width: 220px; }
.note { color: var(--quiet); font-size: 15px; }

footer { background: var(--ground); color: var(--on-ground); padding: 28px 0; font-size: 15px; }
footer a { color: var(--on-ground); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero { padding: 36px 0 48px; }
  .hero .wrap, .two, .contact { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .bar nav { gap: 14px; }
  .qr { width: 180px; }
}

/* A link inside the green: in the paper colour, underlined, so it reads as a link without shouting. */
a.onground { color: var(--on-ground); text-decoration: underline; text-decoration-color: rgba(245,241,230,.55); }
a.onground:hover { text-decoration-color: var(--on-ground); }

/* A download button on the paper: filled green, the one thing to press in its card. */
.button.solid { background: var(--ground); color: #f5f1e6; }
.button.solid:hover { background: #1f463a; color: #fff; }

/* One quiet line, centred under the cards. */
.center { text-align: center; margin-top: 22px; }

/* Privacy in key words: short phrases in pills, read at a glance. */
.keys { display: flex; flex-wrap: wrap; gap: 10px; }
.keys span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; }
.keys span::before { content: "\2713\00a0\00a0"; color: var(--accent); font-weight: 700; }

/* The download code, for a visitor on a computer: shown only where there is a mouse, never on a phone. */
.scan { display: none; align-items: center; gap: 16px; margin-top: 22px; }
.scan img { width: 116px; height: 116px; background: #fff; padding: 8px; border-radius: 10px; }
.scan p { margin: 0; font-size: 14px; opacity: .9; }
@media (hover: hover) and (pointer: fine) { .scan { display: flex; } }
