/* wrenmoney.com. The app's look (app/src/lib/theme.ts): a warm paper ground,
   brown-black ink, bark brown for the brand, forest green for links. Fonts are served
   from here rather than a font service, so visitors' addresses go nowhere else. */

@font-face {
  font-family: "Newsreader";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Newsreader_400Regular.b1d919187d56.ttf") format("truetype");
}

@font-face {
  font-family: "Newsreader";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/Newsreader_500Medium.df89e83cfd4e.ttf") format("truetype");
}

@font-face {
  font-family: "Libre Franklin";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/LibreFranklin_400Regular.e3e5bacc0cf3.ttf") format("truetype");
}

@font-face {
  font-family: "Libre Franklin";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/LibreFranklin_600SemiBold.59de984aa234.ttf") format("truetype");
}

:root {
  --background: #f7f3ec;
  --text: #2a211a;
  --muted: #6a655a;
  --line: #d6d1c3;
  --accent: #35573f;
  --bark: #6b4a33;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1c1712;
    --text: #ece5da;
    --muted: #a89b8c;
    --line: #352b23;
    --accent: #8db794;
    --bark: #c49a74;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Libre Franklin", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 22px;
}

header {
  padding: 32px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  width: 40px;
  height: auto;
  fill: var(--bark);
}

.brand span {
  font-family: "Newsreader", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

main {
  padding: 24px 0 48px;
}

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: 40px;
  margin: 24px 0 20px;
}

h2 {
  font-size: 24px;
  margin: 40px 0 8px;
}

.lead {
  font-size: 20px;
}

.updated {
  color: var(--muted);
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

footer p {
  margin: 4px 0;
}

@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 18px;
  }
}
