@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

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

body {
  background: #fff;
  color: #111;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2rem 8rem;
}

/* Headings */
h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #111;
}

h2 {
  font-size: 1.15rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #111;
}

h3 {
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

h4 {
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

/* Body */
p {
  margin-bottom: 1rem;
}

strong {
  font-weight: 600;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2.5rem 0;
}

a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.3rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
}

thead th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: #111;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.03em;
}

tbody td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: #f9f9f9;
}

/* Code */
code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: #f4f4f4;
  padding: 0.1em 0.4em;
  border-radius: 2px;
}

/* Blockquote */
blockquote {
  border-left: 3px solid #111;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #555;
  font-style: italic;
}

/* Selection */
::selection {
  background: #111;
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #ccc; }

/* Mobile */
@media (max-width: 600px) {
  body { padding: 2rem 1.2rem 5rem; font-size: 1rem; }
  h1 { font-size: 1.6rem; }
  table { display: block; overflow-x: auto; }
}
