/* Loriini's site. One stylesheet, no framework, no script. The colours are
   the lorikeet's: the icon's navy and blue for text and links, its orange for
   the sun, and its whole run of feathers as the one decorative stripe. */

:root {
  --navy: #0b2a5b;
  --blue: #1a5fd0;
  --blue-deep: #0d3f9e;
  --cyan: #35b6d9;
  --green: #a8d8a0;
  --yellow: #ffd95a;
  --orange: #ff8a1f;
  --red: #e8521a;
  --ink: #16213a;
  --muted: #5b6475;
  --line: #e3e7ef;
  --paper: #ffffff;
  --paper-2: #f5f7fb;
  --notice: #fff4e0;
  --notice-line: #f0b25c;
  --stripe: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--cyan), var(--green), var(--yellow), var(--orange), var(--red));
  --radius: 10px;
  --measure: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #dbe6ff;
    --blue: #7fb0ff;
    --blue-deep: #5a93f0;
    --ink: #e8ecf5;
    --muted: #a5adbf;
    --line: #2a3346;
    --paper: #0f1522;
    --paper-2: #161e2e;
    --notice: #3a2a12;
    --notice-line: #a4742a;
  }
}
:root[data-theme="dark"] {
  --navy: #dbe6ff;
  --blue: #7fb0ff;
  --blue-deep: #5a93f0;
  --ink: #e8ecf5;
  --muted: #a5adbf;
  --line: #2a3346;
  --paper: #0f1522;
  --paper-2: #161e2e;
  --notice: #3a2a12;
  --notice-line: #a4742a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font: .92em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; overflow-x: auto; font-size: .92rem; }
pre code { background: none; padding: 0; }

.stripe { height: 6px; background: var(--stripe); }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--navy); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 36px; height: 36px; image-rendering: pixelated; }
nav.main { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .95rem; }
nav.main a { color: var(--ink); }

.hero { padding: 3rem 0 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.hero .lead { font-size: 1.25rem; color: var(--muted); max-width: 38rem; }
.hero img { width: 220px; height: 220px; image-rendering: pixelated; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero img { width: 140px; height: 140px; order: -1; }
}

.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button {
  display: inline-block; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600;
  border: 2px solid var(--blue); color: var(--blue); background: transparent; text-align: center;
}
.button:hover { text-decoration: none; background: var(--paper-2); }
.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.button.sun { border-color: var(--orange); color: var(--red); }
.button.sun:hover { background: var(--notice); }

.notice {
  background: var(--notice); border: 1px solid var(--notice-line); border-left-width: 6px;
  border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0;
}
.notice strong { color: var(--red); }

section { padding: 3rem 0; border-top: 1px solid var(--line); }
section.alt { background: var(--paper-2); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--orange); font-weight: 700; margin-bottom: .4rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .tag { font-size: .8rem; color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.steps li { position: relative; padding-left: 3rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center;
}

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.price { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.price .amount { font-size: 2.2rem; font-weight: 700; color: var(--navy); }
.price .amount small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price .fine { color: var(--muted); font-size: .92rem; }
.price .button { align-self: flex-start; margin-top: auto; }
.price.featured { border-color: var(--orange); box-shadow: 0 0 0 3px var(--notice); }

.download-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.download-box dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.2rem; margin: 1rem 0 0; font-size: .95rem; }
.download-box dt { color: var(--muted); }
.download-box dd { margin: 0; word-break: break-all; }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .92rem; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
footer a { color: var(--ink); }

/* The legal pages */
.legal { max-width: 46rem; padding: 2rem 0 4rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal ol, .legal ul { padding-left: 1.4rem; }
.legal li { margin-bottom: .4rem; }
.draft { display: inline-block; background: var(--notice); border: 1px solid var(--notice-line); border-radius: 6px; padding: .2rem .6rem; font-size: .85rem; font-weight: 700; color: var(--red); margin-bottom: 1rem; }
