/* Refrain's support and privacy pages: the app's Paper page, and Night after dark. */

@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-500.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --ground: #f6f1e7;
  --raised: #eee7d8;
  --ink: #1f1b16;
  --ink-mid: #4b443a;
  --ink-faint: #675f53;
  --line: #ddd4c2;
  --gold: #7a5710;
  --rubric: #a3392a;
  --fill: rgba(222, 178, 64, 0.42);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #12110f;
    --raised: #1b1a17;
    --ink: #ece6d9;
    --ink-mid: #b3ac9f;
    --ink-faint: #9a9387;
    --line: #2c2a25;
    --gold: #c9a14a;
    --rubric: #d76a56;
    --fill: rgba(201, 161, 74, 0.30);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

main {
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.brand span {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 26px;
}

.label {
  margin: 40px 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

h1,
h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  margin: 0 0 16px;
  font-size: 40px;
  letter-spacing: -0.3px;
}

h2 {
  margin: 40px 0 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 25px;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.lead {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-mid);
}

.short {
  padding: 18px 20px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
}

.short p:last-child {
  margin-bottom: 0;
}

.quiet {
  font-size: 15px;
  color: var(--ink-faint);
}

a {
  color: var(--gold);
  font-weight: 600;
  text-underline-offset: 3px;
}

strong {
  font-weight: 600;
}

/* Something still to fill in before these pages go online. */
.fill {
  padding: 0 4px;
  background: var(--fill);
  color: inherit;
  border-radius: 2px;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-faint);
}

footer a {
  margin-right: 16px;
}
