@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-wght-normal.62981321.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-wght-italic.48bc8861.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #1c1e21;
  --card: #24272b;
  --rule: #2f3236;
  --heading: #f1eee7;
  --lead: #cfcbc3;
  --body: #a9a59d;
  --accent: #8fa89a;
  --label: #9a9d94;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f2ed;
    --card: #ebe7df;
    --rule: #dedad1;
    --heading: #1f1e1c;
    --lead: #3a3934;
    --body: #4a4842;
    --accent: #4f6b5c;
    --label: #66635b;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 620px;
  margin: 0 auto;
  padding-block: 96px 64px;
  padding-inline: 16px;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.name {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--heading);
}
.title { margin: 6px 0 28px; font-size: 16px; font-style: italic; color: var(--accent); }
.lead { font-size: 18px; color: var(--lead); margin-bottom: 18px; }
.sub { color: var(--body); margin-bottom: 20px; }
.contact, .toolbox, .footer { font-family: var(--sans); font-size: 13.5px; }

.section { margin-top: 64px; }
.label {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

.themes { display: grid; gap: 18px; }
.theme h3, .card h3 { font-weight: 400; color: var(--heading); }
.theme h3 { font-size: 17px; }
.theme p { font-size: 15px; line-height: 1.65; }

.cards { display: grid; gap: 10px; }
.card { background: var(--card); border-radius: 8px; padding: 18px 20px; }
.card h3 { font-size: 16.5px; margin-bottom: 4px; }
.card p { font-size: 14.5px; line-height: 1.6; }

.how { line-height: 1.75; }
.toolbox { margin-top: 40px; color: var(--label); line-height: 1.7; }

.footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

@media (max-width: 480px) {
  .page { padding-block: 56px 48px; }
  .name { font-size: 29px; }
  .lead { font-size: 17px; }
  .card { padding: 16px; }
}
