/* Inkwell's site uses the app's own Charcoal theme (Resources/web/style.css):
   Besley on paper, monochrome text, amber only where you'd use a highlighter.
   Light and dark follow the visitor's system setting, like the app. */

@font-face {
  font-family: "Besley";
  src: url("assets/fonts/Besley-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Besley";
  src: url("assets/fonts/Besley-Italic-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #fcfcfb;
  --fg: #262624;
  --heading: #141413;
  --muted: #6b6a66;
  --rule: #e2e1dc;
  --underline: #d9a514;
  --mark: #fbe7a1;
  --focus: #b8860b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a19;
    --fg: #e2e0da;
    --heading: #f4f2ec;
    --muted: #9e9c95;
    --rule: #33322f;
    --underline: #c99a22;
    --mark: #5a4614;
    --focus: #e0b23a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 18px/1.65 "Besley", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(56px, 12vh, 120px) 24px 64px;
}

header { margin-bottom: 36px; }

.icon { display: block; width: 64px; height: 64px; margin-bottom: 20px; }

h1 {
  margin: 0;
  color: var(--heading);
  font-size: 40px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sub { margin: 6px 0 0; color: var(--muted); }

p { margin: 0 0 20px; }

mark {
  background: var(--mark);
  color: inherit;
  padding: 0 0.1em;
  border-radius: 2px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

figure { margin: 36px -24px 36px; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
}
@media (min-width: 760px) {
  /* The screenshot is the one thing allowed wider than the text. */
  figure { margin-left: -80px; margin-right: -80px; }
}

ul { margin: 0 0 32px; padding-left: 1.2em; }
li + li { margin-top: 6px; }
li::marker { color: var(--muted); }

.download { margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.55; }

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
