:root {
  --bg: #f7f5f1;
  --text: #17191c;
  --muted: #5c636b;
  --line: #d9d4cb;
  --accent: #1d4738;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.wrap {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
}

.site-header {
  padding: 48px 0 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #111315;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}

h2 {
  margin: 54px 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

h3 {
  margin: 28px 0 10px;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.lead {
  margin: 22px 0 0;
  font-size: 1.12rem;
  color: #2a2f35;
}

.notice {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.hero-image,
.inline-image {
  margin: 30px 0 12px;
}

.hero-image img,
.inline-image img {
  border-radius: 14px;
}

article p {
  margin: 16px 0;
  font-size: 1.04rem;
}

article ul,
article ol {
  padding-left: 1.25rem;
}

article li {
  margin: 0.35rem 0;
}

.toc {
  margin: 34px 0 10px;
}

.toc h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.toc ol {
  margin: 0;
}

.toc a {
  color: var(--accent);
  text-decoration: none;
}

.toc a:hover,
.toc a:focus {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 18px;
}

caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  margin-bottom: 10px;
  color: #23282d;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

thead th {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
}

strong {
  color: #101316;
}

.site-footer {
  padding: 42px 0 56px;
  color: var(--muted);
  font-size: 0.96rem;
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 34px;
  }

  .wrap {
    width: min(100% - 24px, 920px);
  }

  article p,
  th,
  td {
    font-size: 0.98rem;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

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

  tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  td {
    border: 0;
    padding: 7px 0;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 3px;
  }
}
