:root {
  --paper: #f3ebdd;
  --ink: #2a2218;
  --copper: #c46b38;
  --gold: #c4944a;
  --card: #fff9f2;
  --line: rgba(42, 34, 24, 0.1);
  --muted: #8a8175;
  --olive: #5e7044;
  --max: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

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

img { max-width: 100%; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.mark {
  width: 36px;
  height: 36px;
  display: block;
}

.brand strong {
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

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

.hero {
  padding: 48px 0 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

h1 { font-size: clamp(40px, 7vw, 64px); margin: 0 0 16px; }
h2 { font-size: 32px; margin: 0 0 12px; }
h3 { font-size: 22px; margin: 0 0 8px; }

.lede {
  max-width: 38em;
  font-size: 19px;
  color: rgba(42, 34, 24, 0.82);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 32px 0 8px;
}

.tab {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 12px 14px;
}

.tab b {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.tab span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.section { padding: 28px 0; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 18px 16px;
}

.card p, .prose p { margin: 0 0 12px; }

.card p:last-child, .prose p:last-child { margin-bottom: 0; }

.note {
  background: rgba(196, 148, 74, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 16px;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer a { color: inherit; }

.prose h2 { margin-top: 32px; }
.prose ul { margin: 0 0 12px; padding-left: 1.2em; }
.prose li { margin: 4px 0; }

@media (max-width: 680px) {
  .tabs, .grid { grid-template-columns: 1fr; }
  header { align-items: flex-start; flex-direction: column; }
}
