:root {
  color-scheme: light dark;
  --bg-top: #fbf8f3;
  --bg-bottom: #f1ece4;
  --text: #2b2722;
  --muted: #6f665b;
  --accent: #8e714a;
  --rule: rgba(43, 39, 34, 0.12);
  --card-top: #faf6ee;
  --card-bottom: #f0e7d8;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #18191d;
    --bg-bottom: #202027;
    --text: #f3eddd;
    --muted: #a9a297;
    --accent: #d4b577;
    --rule: rgba(243, 237, 221, 0.14);
    --card-top: #232e4c;
    --card-bottom: #161d35;
  }
}

* { box-sizing: border-box; }

html {
  background: var(--bg-bottom);
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) fixed;
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main, header, footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font: 600 20px/1 var(--serif);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  margin-left: 18px;
}

nav a:hover, nav a[aria-current="page"] { color: var(--text); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: 40px; margin: 56px 0 12px; }
h2 { font-size: 24px; margin: 44px 0 8px; }
h3 { font-size: 19px; margin: 28px 0 4px; }

p, li { color: var(--text); }
.lede { font: 21px/1.5 var(--serif); color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); font-size: 15px; }

a { color: var(--accent); }

ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

.card {
  margin: 40px 0;
  padding: 36px 32px 28px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--card-top), var(--card-bottom));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.card blockquote {
  margin: 0;
  font: 26px/1.4 var(--serif);
}

.card cite {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font: 500 14px/1 var(--sans);
  font-style: normal;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.card cite::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.7;
}

.features {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}

.features li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.features strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  display: block;
}

.contact {
  font: 22px/1.4 var(--serif);
}

footer {
  margin-top: 72px;
  padding-top: 20px;
  padding-bottom: 48px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

footer a { color: var(--muted); }

@media (max-width: 520px) {
  h1 { font-size: 32px; margin-top: 40px; }
  .card { padding: 28px 22px 22px; }
  .card blockquote { font-size: 22px; }
  nav a { margin-left: 12px; }
}
