/* Reset & sizing */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; }

/* Notepad wrapper with dot grid */
.notepad {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: 2rem 110px 4rem 140px; /* left/right padding with red line margin */
  background-color: #cbbc79;
  color: #222;
  font-family: 'Inter', sans-serif;
  line-height: 28px; /* matches dot grid spacing */
  overflow-x: hidden;
  z-index: 1;

  /* Engineering notebook dot grid */
  background-image: radial-gradient(circle, #c0c0c0 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Red margin line */
.notepad::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 110px;
  width: 3px;
  background: rgba(231, 109, 109, 0.8);
  pointer-events: none;
  z-index: 0;
}

/* Headings (all levels) — extra spacing above sections */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Courier Prime', monospace;
  color: #ffffff;
  font-weight: 400;
  margin-top: 56px;   /* more spacing above headings */
  margin-bottom: 28px; /* spacing below heading */
  padding: 0;
  border: none;
  border-bottom: none;
  box-shadow: none;
  background: none;
  line-height: 28px; /* aligns with dot grid */
}

/* Paragraphs — normal spacing aligned to dot grid */
p {
  margin-top: 0;
  margin-bottom: 28px;
  line-height: 28px;   /* matches dot grid */
}

/* Lists — tighter spacing between bullet points */
ul, ol {
  margin-top: 0;
  margin-bottom: 28px; /* spacing after the list */
  padding-left: 1.5em;
}

li {
  margin-top: 0;
  margin-bottom: 14px; /* tighter spacing between bullets */
  line-height: 28px;   /* aligns with dot grid */
}

/* Code blocks and inline code */
code, pre {
  font-family: 'Courier Prime', monospace;
  background: #dfcd7f;
  border: 1px solid #e5d17f;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  display: inline-block;
  line-height: 28px; /* aligns with dots */
}

/* Media responsiveness */
img, table { max-width: 100%; }

/* Red top border under title/contact info */
.notepad h1:first-of-type::after {
  content: "";
  display: block;
  margin-top: 1rem;      /* space between title and red line */
  margin-bottom: 2rem;   /* space after red line before sections */
  height: 3px;            /* thickness of the red line */
  width: 100%;            /* full width of content area */
  background: rgba(190, 93, 93, 0.8);
}