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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #2c363c;
  background-color: #f8f6f5;
  font-size: 16px;
  margin: 0 25%;
  padding: 2rem 0;
}

/* Main container with 30% gutters */
.container {
  max-width: 60%;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Alternative approach using margins */
main {
  margin: 0 60%;
  padding: 2rem 0;
}

/* Add space after paragraph */
p, ul, ol, blockquote {
  margin-bottom: 1.5em;
}

p:last-child,
ul:last-child,
ol:last-child,
blockquote:last-child {
  margin-bottom: 0;
}

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

li {
  margin-bottom: 0.5em;
}

li:last-child {
  margin-bottom: 0;
}

/* Golden ratio typography scale */
h1 { font-size: 2.618em; }  /* 1.618^2 */
h2 { font-size: 1.618em; }  /* 1.618^1 */
h3 { font-size: 1em; text-decoration: underline}      /* 1.618^0 */
h4 { font-size: 1em; }      /* 1.618^0 */
h5 { font-size: 1em; }      /* 1.618^0 */
h6 { font-size: 1em; }      /* 1.618^0 */

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 0.5em;
  margin-top: 1em;
  color: #1a2025;
}

h1 { margin-top: 0; }

/* Monochromatic color variations */
a {
  color: #3d4a52;
  text-decoration: underline;
  transition: all 0.1s;
}

a:hover {
  color: #9c8e87;
  text-decoration: wavy underline;
}

blockquote {
  border-left: 3px solid #8a9299;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #5c6b73;
  font-style: italic;
}

code {
  background-color: #edeae8;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  color: #1a2025;
  font-family: 'Courier New', monospace;
}

pre {
  background-color: #edeae8;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1rem 0;
}

hr {
  border: none;
  border-top: 0.5px solid #c7c1be;
  margin: 2rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    margin: 0;
    padding: 2rem 1rem;
  }

  .container,
  main {
    margin: 0;
    max-width: 100%;
    padding: 2rem 0;
  }

  h1 { font-size: 2.618em; }
  h2 { font-size: 1.618em; }
  h3 { font-size: 1.2em; }
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

/* Optional: center images */
img {
  margin-left: auto;
  margin-right: auto;
}

/* Header container */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

/* Left-aligned title */
header h1 {
  margin: 0;
  font-size: 1.618em;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
}

nav a {
  font-size: 0.9em;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
}

nav a:hover {
  background-color: transparent;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.85em;
  }

  nav a:not(:last-child)::after {
    margin-left: 0.25rem;
  }
}

/* Footer */
footer {
  padding: 1rem 0;
  font-size: 0.75em;
  color: #8a9299;
  text-align: center;
}
