:root {
  --bg: #F5EFE8;
  --bg-warm: #F9F4ED;
  --surface: #FFFFFF;
  --text: #2A1F17;
  --text-secondary: #5A4A3D;
  --accent: #A0462A;
  --accent-soft: #C06846;
  --accent-hover: #8B3B22;
  --border: #E5D9CC;
  --shadow-soft: 0 30px 60px rgba(42, 31, 23, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ── NAVBAR ───────────────────────────────────────── */
header.site {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
header.site .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
header.site .brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variation-settings: 'SOFT' 80;
}
header.site .brand:hover { text-decoration: none; color: var(--text); }
header.site nav { display: flex; gap: 32px; flex-wrap: wrap; }
header.site nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}
header.site nav a:hover { color: var(--accent); text-decoration: none; }
header.site nav a.active {
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}

/* ── MAIN / ARTICLE ───────────────────────────────── */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}
main article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 64px;
  box-shadow: var(--shadow-soft);
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  overflow-wrap: break-word;
  hyphens: auto;
}
h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  color: var(--text);
  font-variation-settings: 'SOFT' 80;
  overflow-wrap: break-word;
  hyphens: auto;
}
h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
  margin: 32px 0 10px;
  color: var(--text);
  font-variation-settings: 'SOFT' 60;
  overflow-wrap: break-word;
  hyphens: auto;
}

p { margin: 0 0 14px; color: var(--text); overflow-wrap: break-word; }
ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 6px; overflow-wrap: break-word; }
strong { font-weight: 600; }
em { font-style: italic; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

blockquote {
  border-left: 3px solid var(--accent);
  margin: 18px 0;
  padding: 6px 18px;
  color: var(--text-secondary);
  background: rgba(160, 70, 42, 0.04);
  border-radius: 0 8px 8px 0;
}
blockquote p { margin-bottom: 8px; }

/* ── TABLES ───────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  background: var(--bg-warm);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
thead {
  background: rgba(160, 70, 42, 0.06);
}
th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  letter-spacing: 0.01em;
}
td {
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.5); }
td strong { font-weight: 600; color: var(--text); }

@media (max-width: 720px) {
  table { font-size: 13px; display: block; overflow-x: auto; }
  th, td { padding: 10px 10px; }
}

/* ── FOOTER ───────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--border);
  padding: 48px 32px 32px;
  text-align: center;
  color: var(--text-secondary);
}
footer.site nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
footer.site nav a {
  color: var(--text-secondary);
  font-size: 14px;
}
footer.site nav a:hover { color: var(--accent); text-decoration: none; }
footer.site .copy {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 720px) {
  body { font-size: 16px; }
  main { padding: 28px 16px 64px; }
  main article { padding: 28px 22px; border-radius: 14px; }
  header.site { padding: 18px 0; }
  header.site .inner { padding: 0 20px; }
  header.site .brand { font-size: 21px; }
  header.site nav { gap: 18px; }
  header.site nav a { font-size: 14px; }
  h1 { font-size: 30px; }
  h2 { font-size: 21px; margin-top: 34px; }
  h3 { font-size: 17px; margin-top: 26px; }
  footer.site { padding: 32px 16px 24px; }
  footer.site nav { gap: 18px; }
}
