/* Plotborn. One stylesheet, one face: Literata, the app's own reading face,
   self-hosted so a visitor's browser asks nobody but this site for anything.
   The dark palette is the app's brand as the server holds it (ground, ink,
   accent); the light one is the app's default "day" page. */

@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-400Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-400Regular_Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-600SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #f4efe6;
  --ground-2: #ebe4d8;
  --ink: #17161a;
  --ink-soft: #57524b;
  --rule: #d8cfc1;
  --accent: #9a4533;
  --accent-ground: #b2543f;
  --on-accent: #f4efe6;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #17161a;
    --ground-2: #201e23;
    --ink: #f4efe6;
    --ink-soft: #b3aca1;
    --rule: #34313a;
    --accent: #d77a64;
    --accent-ground: #b2543f;
    --on-accent: #f4efe6;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-size: 1.1875rem; /* 19px, the app's own default */
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
}

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

.page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* -- masthead ------------------------------------------------------------ */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.masthead nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}
.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--ink);
}

/* -- the home page is set as a chapter opening --------------------------- */

.opening {
  padding: 4.5rem 0 3rem;
}
.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.opening h1 {
  margin: 0 0 2rem;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.6rem, 9vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lede {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
}
.lede::first-letter {
  float: left;
  font-weight: 600;
  font-size: 3.6em;
  line-height: 0.82;
  margin: 0.06em 0.08em 0 0;
  color: var(--accent);
}

.ornament {
  margin: 3rem 0;
  text-align: center;
  color: var(--ink-soft);
  letter-spacing: 0.6em;
  user-select: none;
}

.points {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.points h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.points p {
  margin: 0;
  color: var(--ink-soft);
}

.status {
  margin: 3.5rem 0 0;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--ground-2);
  border-radius: 6px;
}
.status h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.status p {
  margin: 0;
}
.status p + p {
  margin-top: 0.75rem;
}

/* -- documents: the privacy policy and the deletion page ----------------- */

.document {
  padding: 3.5rem 0 1rem;
}
.document h1 {
  margin: 0 0 0.5rem;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.1;
  text-wrap: balance;
}
.document .dated {
  margin: 0 0 2.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.document h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-wrap: balance;
}
.document h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}
.document p,
.document li {
  hyphens: auto;
}
.document ul,
.document ol {
  padding-left: 1.25rem;
}
.document li + li {
  margin-top: 0.4rem;
}
.document .short {
  font-size: 1.2rem;
  line-height: 1.6;
}

.ask {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent-ground);
  background: var(--ground-2);
}
.ask p {
  margin: 0;
}
.ask p + p {
  margin-top: 0.6rem;
}

/* -- footer ---------------------------------------------------------------- */

.colophon {
  margin-top: 5rem;
  padding: 1.75rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.colophon nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.colophon a {
  color: var(--ink-soft);
}
.colophon a:hover {
  color: var(--ink);
}

@media (max-width: 30rem) {
  body {
    font-size: 1.0625rem;
  }
  .opening {
    padding-top: 3rem;
  }
  .masthead nav {
    gap: 0.9rem;
  }
}
