:root {
  color-scheme: light;
  --background: #f7f1e8;
  --surface: #fffaf2;
  --text: #2f2a26;
  --secondary: #746a61;
  --accent: #c96750;
  --border: #e7ddd1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

main {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 48px;
}

header { margin-bottom: 40px; }

.mark {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1.05;
}

.lede {
  margin: 18px 0 0;
  color: var(--secondary);
  font-size: 18px;
}

section {
  margin: 18px 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

h2 { margin: 0 0 10px; font-size: 25px; }
h3 { margin: 24px 0 4px; font-size: 19px; }
p { margin: 8px 0; }
a { color: var(--accent); }

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 4px;
  color: var(--secondary);
  font-size: 14px;
}

@media (max-width: 520px) {
  main { padding-top: 42px; }
  section { padding: 22px; }
  footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
