/* The Homebody PDF website, in the extension's look: a desk with a sheet of paper on it. Graphite text,
   ballpoint-blue links and buttons; fire-engine red only in the icon. Atkinson Hyperlegible Next is
   served from /fonts (SIL Open Font License, fonts/OFL.txt). Follows the computer's light or dark. */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --desk: light-dark(#e8eaee, #1d2027);
  --paper: light-dark(#ffffff, #252830);
  --line: light-dark(#d3d7de, #3a3f4a);
  --ink: light-dark(#23262d, #e8eaef);
  --ink-soft: light-dark(#5d636e, #a5abb7);
  --ballpoint: light-dark(#1e3e9a, #9db1ff);
  --button: light-dark(#1e3e9a, #3a57c9);
  --button-hover: light-dark(#16307a, #4664d8);
  --edge: light-dark(rgb(20 24 33 / 0.1), rgb(0 0 0 / 0.4));
  --shadow: light-dark(rgb(20 24 33 / 0.16), rgb(0 0 0 / 0.5));
  font: 400 17px/1.6 'Atkinson Hyperlegible Next', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--desk); color: var(--ink); font: inherit; }
a { color: var(--ballpoint); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ballpoint); outline-offset: 2px; }

/* Every page is one sheet of paper, with square corners like the pages in the extension. */
.sheet {
  max-width: 46rem;
  margin: 48px auto;
  padding: 56px 64px 40px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--edge), 0 2px 10px var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }

h1 { margin: 0 0 16px; font-size: 40px; line-height: 1.15; letter-spacing: -0.015em; }
.prose h1 { font-size: 32px; }
h2 { margin: 40px 0 8px; font-size: 22px; line-height: 1.3; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 1.2em; }
li { margin: 8px 0; }
.lede { margin-bottom: 28px; color: var(--ink-soft); font-size: 20px; }
.updated { color: var(--ink-soft); font-size: 15px; }

.button {
  display: inline-block;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--button);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--button-hover); color: #ffffff; }

.fine { color: var(--ink-soft); font-size: 15px; }
.links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 56px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.links li { margin: 0; }

/* The unlock code on the purchase page: long, so it's set in a monospace face to check by eye. */
textarea {
  width: 100%;
  margin: 4px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--desk);
  color: var(--ink);
  font: 13px/1.45 ui-monospace, Menlo, Consolas, monospace;
  resize: vertical;
}

@media (max-width: 720px) {
  .sheet { min-height: 100dvh; margin: 0; padding: 32px 20px; box-shadow: none; }
  h1 { font-size: 32px; }
}
