:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5f5d57;
  --line: #e2ded4;
  --accent: #8a5a2b;
  --todo-bg: #fff1b8;
  --todo-text: #6b4e00;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.brand {
  font-family: var(--serif); font-size: 20px; color: var(--text);
  text-decoration: none; letter-spacing: 0.02em;
}
.brand span { color: var(--muted); font-size: 14px; font-family: var(--sans); margin-left: 6px; }
nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 15px; }
nav a { color: var(--text); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 13px; }

/* Hero */
.hero { padding-top: 88px; padding-bottom: 64px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15; margin: 0 0 20px; max-width: 18ch;
}
.hero p { font-size: 19px; color: var(--muted); max-width: 56ch; margin: 0 0 28px; }
.button {
  display: inline-block; background: var(--text); color: var(--bg);
  padding: 12px 22px; border-radius: 6px; text-decoration: none; font-size: 15px;
}
.button:hover { background: var(--accent); color: #fff; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 24px; }
h3 { font-size: 17px; margin: 0 0 6px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Legal / prose pages */
.page { padding-top: 56px; padding-bottom: 72px; }
.page h1 { font-family: var(--serif); font-weight: 400; font-size: 38px; margin: 0 0 8px; }
.page .lead { color: var(--muted); margin: 0 0 36px; }
.page h2 { font-size: 22px; margin: 40px 0 12px; }

.details {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 16px;
}
.details th, .details td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.details tr:last-child th, .details tr:last-child td { border-bottom: 0; }
.details th { width: 38%; font-weight: 500; color: var(--muted); }

.todo {
  background: var(--todo-bg); color: var(--todo-text);
  padding: 1px 6px; border-radius: 4px; font-weight: 600;
}

.note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
  .details th, .details td { display: block; width: 100%; }
  .details th { padding-bottom: 0; border-bottom: 0; }
  .hero { padding-top: 56px; padding-bottom: 40px; }
}
