

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Merriweather Sans', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  background: var(--surfaceBase);
  color: var(--inkStrong);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--inkStrong);
  margin: 0 0 var(--stepSm);
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.05rem); line-height: 1.12; font-weight: 900; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.1rem); line-height: 1.2; }
h3 { font-size: clamp(1.15rem, 1.02rem + 0.55vw, 1.4rem); line-height: 1.32; }
h4 { font-size: 1.05rem; line-height: 1.4; }

p { font-size: 1rem; line-height: 1.7; margin: 0 0 var(--stepSm); color: var(--inkBody); }

a { color: var(--accentDeep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accentDeepHi); }

ul, ol { margin: 0 0 var(--stepSm); padding-left: 1.15rem; color: var(--inkBody); }
li { margin-bottom: var(--stepXs); }

strong, b { color: var(--inkStrong); font-weight: 700; }

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

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

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--hairline); }
th { font-family: 'Merriweather', Georgia, serif; font-size: 0.9rem; color: var(--inkStrong); }
td { color: var(--inkBody); font-size: 0.95rem; }

:focus-visible {
  outline: 2px solid var(--accentMetal);
  outline-offset: 3px;
}

::selection { background: var(--accentMetalLight); color: #0D1117; }
