:root {
  --ink: #2b2620;
  --muted: #6f675d;
  --paper: #faf6ef;
  --card: #ffffff;
  --accent: #a8551f;
  --line: #e7ddcf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 6vw;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
}

nav a {
  margin-left: 22px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

main {
  max-width: 940px;
  margin: 0 auto;
  padding: 48px 6vw 64px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
}

.button {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 26px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 15px;
}

.button:hover {
  background: #8d461a;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 46px;
}

.grid article,
.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 24px;
}

.grid h2,
.note h2 {
  font-size: 19px;
  margin-top: 26px;
  margin-bottom: 8px;
  color: var(--accent);
}

.grid article h2 {
  margin-top: 0;
}

.note h1 {
  margin-top: 0;
  font-size: 32px;
}

.note {
  margin-top: 40px;
}

main > .note:first-child {
  margin-top: 0;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 20px 6vw;
  font-size: 14px;
  color: var(--muted);
}

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