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

/* === Body === */
body {
  padding: 0 0 20px 0;
  font: 21px/1.7 'EB Garamond', Georgia, 'Times New Roman', serif;
  color: #f0e7d5;
  font-weight: 400;
  background: #252525;
  background: linear-gradient(#2a2a29, #1c1c1c);
  background-attachment: fixed;
  min-height: 100vh;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  color: #e8e8e8;
  margin: 0 0 10px;
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
}

h1 { font-size: 2.6em; }
h2 { font-size: 2em; margin-top: 60px; }
h2:first-child { margin-top: 0; }
h3 { font-size: 1.5em; color: #b6b6b6; }

p, ul, ol, table, pre, dl { margin: 0 0 20px; }

ul, ol {
  padding-left: 1.5em;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #343434;
  border-radius: 4px;
  padding: 20px 20px 10px 3em;
}

li {
  margin-bottom: 10px;
}

#header ul { margin: 0; background: none; border: none; border-radius: 0; padding: 0 20px; }
#header li { margin-bottom: 0; }

a {
  color: #ffcc00;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: #ffeb9b; }

strong { color: #e8e8e8; }

blockquote {
  border-left: 3px solid #ffcc00;
  margin: 0 0 20px 0;
  padding: 0 0 0 20px;
  font-style: italic;
}

code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  color: #efefef;
  font-size: 0.85em;
  margin: 0 4px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #191919;
}

pre {
  padding: 12px 16px;
  background: #191919;
  border-radius: 4px;
  border: 1px solid #121212;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.3);
  overflow-x: auto;
}
pre code {
  margin: 0;
  padding: 0;
  background: none;
}

table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 5px 10px; border-bottom: 1px solid #434343; color: #b6b6b6; font-weight: 600; }
td { text-align: left; padding: 5px 10px; border-bottom: 1px solid #434343; }

hr {
  border: 0;
  outline: none;
  height: 1px;
  background: #434343;
  margin: 0 0 20px;
}

img { max-width: 100%; }

/* === Layout === */
.wrapper {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

/* === Header === */
#header {
  min-height: 50px;
  width: 100%;
  background: #353535;
  border-bottom: 3px solid #434343;
  display: flex;
  align-items: center;
}

#header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

#header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 50px;
  padding: 10px 20px;
}

#header nav a {
  color: #f0e7d5;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
#header nav a:hover {
  color: #ffcc00;
}

/* === Main Content === */
section {
  padding: 30px 0 50px;
  margin-top: 20px;
}

#title {
  text-align: center;
  margin-bottom: 30px;
}

#title h1 {
  font-size: 2.8em;
  margin-bottom: 6px;
}

#title p {
  color: #d7cfbe;
  font-size: 1.25em;
  font-style: italic;
}

#title hr {
  margin-top: 20px;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 20px 0;
  color: #6a6a6a;
  font-size: 0.7em;
}
footer p { margin: 0; }
footer a.muted { color: inherit; }
footer a.muted:hover { color: #ffeb9b; }

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #6a6a6a;
  font-size: 1em;
}
.footer-nav a:hover { color: #ffeb9b; }

/* === Responsive === */
@media (max-width: 480px) {
  body { font-size: 18px; }
  #title h1 { font-size: 2em; }
  section { margin-top: 20px; }
  #header nav ul { gap: 6px 24px; }
  #header nav a { font-size: 12px; }
  .hide-mobile { display: none; }
}
