:root {
  --bg: #f6f2ea;
  --surface: #fffdf9;
  --text: #171717;
  --muted: #66615a;
  --line: rgba(23, 23, 23, 0.12);
  --accent: #8a6b3d;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8f5ef 0%, #f4efe6 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

.page {
  width: 100%;
}

.article {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.article-header {
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

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

h1,
h2,
h3 {
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 4vw, 2.05rem);
}

h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

p,
ol,ul,
.table-wrap,
figure {
  margin: 0 0 1.2rem;
}

p {
  color: var(--text);
}

strong {
  font-weight: 700;
}

ol,
ul {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.45rem;
}

figure {
  margin: 1.8rem 0 2rem;
}

figure img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap::-webkit-scrollbar {
  height: 8px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: transparent;
}

thead th {
  text-align: left;
  font-size: 0.96rem;
  color: #111;
  font-weight: 700;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

tbody td {
  vertical-align: top;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

tbody td:first-child,
thead th:first-child {
  padding-right: 20px;
  width: 34%;
}

@media (max-width: 768px) {
  body {
    font-size: 17px;
  }

  .article {
    width: min(100% - 24px, var(--max-width));
    padding: 20px 0 48px;
  }

  .article-header {
    margin-bottom: 22px;
    padding-bottom: 18px;
  }

  figure {
    margin: 1.35rem 0 1.6rem;
  }

  figure img {
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .article {
    width: min(100% - 20px, var(--max-width));
  }

  h2 {
    margin-top: 2.1rem;
  }

  thead th,
  tbody td {
    font-size: 0.95rem;
  }
}
