:root {
  --ink: #2b2722;
  --muted: #6f675d;
  --paper: #f4efe6;
  --panel: #fffaf2;
  --line: #d9cfbf;
  --accent: #8a5a35;
  --accent-dark: #6d4325;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
}

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

.site-header {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff7ea;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

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

main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  flex: 1;
}

.hero {
  padding: 86px 0 64px;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.lead {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.12rem;
}

.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff8ed;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--accent-dark);
  color: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 56px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.note,
.page {
  padding: 36px 0 64px;
  max-width: 760px;
}

.note {
  border-top: 1px solid var(--line);
}

.note ol,
.note ul,
.page ul {
  padding-left: 1.25em;
}

.page p,
.page li {
  color: var(--muted);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 56px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
