/* TendTime's website, drawn as the app's Quiet Notebook (docs/design/README.md). */

@font-face {
  font-family: "Caveat";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/Caveat-Bold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --paper: #FBF6EA;
  --ink: #2B3A55;
  --ink-soft: #56658A;
  --graphite: #6F675E;
  --rule: #C9DAE9;
  --margin: rgba(232, 162, 154, 0.75);
  --system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --margin-line: 58px;
  --content-inset: 72px;
  --trailing-inset: 20px;
}

html {
  font-size: 106.25%;
}

/* Follows the iPhone's text size in Safari, as the app follows Dynamic Type. Touch only: on a Mac the body style
   is 13 px. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html {
    font: -apple-system-body;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    url("/assets/paper-grain.png"),
    radial-gradient(circle at 50% 38%, transparent 58%, rgba(150, 115, 60, 0.11)),
    var(--paper);
  background-blend-mode: multiply, normal, normal;
  color: var(--ink);
  font-family: var(--system);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.page {
  position: relative;
  max-width: 46rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2.5rem var(--trailing-inset) 3rem var(--content-inset);
}

.page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--margin-line);
  width: 7px;
  border-left: 1.5px solid var(--margin);
  border-right: 1px solid var(--margin);
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--ink-soft);
}

.app-icon {
  display: block;
  width: 5rem;
  height: 5rem;
  border-radius: 22.5%;
  margin-bottom: 1rem;
}

h1 {
  margin: 0 0 0.5rem;
  font: 700 3rem/1.05 var(--hand);
}

h2 {
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font: 700 1.5rem/1.3 var(--hand);
}

h3 {
  margin: 1.25rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

p,
ul {
  margin: 0 0 0.75rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.375rem;
}

.lede {
  font-size: 1.0625rem;
}

.updated,
footer {
  color: var(--graphite);
  font-size: 0.765rem;
}

footer {
  margin-top: 3rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}

footer a {
  color: var(--graphite);
  margin-right: 1rem;
}

@media (max-width: 22rem) {
  :root {
    --margin-line: 24px;
    --content-inset: 40px;
  }
}
