/* mscribe.dev. Young Serif (SIL Open Font License, fonts/OFL.txt) for the
   wordmark and headings; the system's sans-serif for everything else.
   The band is a synthwave sunset from the same palette as the icon: hot
   pink #fa008c lower left to orange #ff9500 upper right, along the icon's
   35° axis. Text on it, the wordmark included, is the icon's pale pink
   #fce2ea. Headings are plum #522061 (the icon gradient's dark end), or
   the band's orange in dark mode. Young Serif is used at its one weight,
   regular, as in the icon: it's a heavy face, and browser-made bold
   distorts it. */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/YoungSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --gradient: linear-gradient(55deg, #fa008c, #ff9500);
  --on-band: #fce2ea;
  --wordmark: #fce2ea;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --bg: #fdfbfc;
  --rule: #e4d8df;
  --heading: #522061;
  --link: #b50067;
  --serif: "Young Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2eef0;
    --muted: #a59ca2;
    --bg: #17131a;
    --rule: #3a2f3d;
    --heading: #ff9500;
    --link: #ff76c4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--heading); line-height: 1.2; }
h1 { font-size: 2.4rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.5rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.25rem; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }

/* The band across the top, in the icon's gradient. */
.band { background: var(--gradient); color: var(--on-band); }
.band a { color: var(--on-band); }
.band .wordmark { color: var(--wordmark); }
.band nav { display: flex; align-items: baseline; gap: 1.5rem; padding: 1.1rem 0; font-size: 0.95rem; }
.band nav .home { margin-right: auto; font-family: var(--serif); font-size: 1.35rem; }
.band nav a:hover { text-decoration: none; opacity: 0.8; }

.wordmark { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

/* Home page: the icon and wordmark, large. */
.hero { text-align: center; padding: 1rem 0 4.5rem; }
.hero img { width: 200px; height: 200px; }
.hero h1 { color: var(--wordmark); font-size: clamp(3.2rem, 11vw, 5.5rem); margin: 1.25rem 0 0.25rem; }
.hero p { font-size: 1.25rem; margin: 0; }
.hero .store { display: inline-block; margin-top: 2rem; padding: 0.6rem 1.4rem; border: 1px solid rgba(252, 226, 234, 0.6); border-radius: 999px; font-size: 0.95rem; }

main.wrap { padding-top: 2.5rem; padding-bottom: 4rem; }
.lead { font-size: 1.2rem; color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); font-size: 0.9rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0.5rem 2.5rem; }
.features h3 { margin-top: 1.25rem; }
.features p { margin: 0; }

footer { border-top: 1px solid var(--rule); padding: 1.5rem 0 3rem; }
footer a { color: var(--muted); }
