:root {
  --pencil-dark: #2c2c2c;
  --pencil-medium: #505050;
  --pencil-light: #707070;
  --pencil-lighter: #a0a0a0;
  --sketch-line: #404040;
  --paper-bg: #f9f7f4;
  --paper-card: #ffffff;
  --highlight: #4a90e2;
  --sketch-shadow: rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Courier New', 'Courier', monospace;
  margin: 0;
  line-height: 1.8;
  color: var(--pencil-dark);
  background: var(--paper-bg);
  min-height: 100vh;
  font-size: 16px;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      rgba(0, 0, 0, 0.02) 31px,
      rgba(0, 0, 0, 0.02) 32px
    );
}

header {
  background: var(--paper-card);
  padding: 1.5rem 2rem;
  border-bottom: 3px solid var(--sketch-line);
  border-bottom-style: dashed;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 0 var(--sketch-shadow);
}

nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--pencil-medium);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem;
  border: 2px dashed transparent;
  position: relative;
}

nav a:hover {
  color: var(--pencil-dark);
  border: 2px dashed var(--sketch-line);
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.02) 3px,
    rgba(0, 0, 0, 0.02) 6px
  );
}

main {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}

h1, h2 {
  line-height: 1.3;
  color: var(--pencil-dark);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 4px double var(--sketch-line);
  padding-bottom: 0.5rem;
  display: inline-block;
}

h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--pencil-dark);
  position: relative;
  padding-bottom: 0.75rem;
  border-bottom: 2px dashed var(--sketch-line);
  display: inline-block;
}

h2::before {
  content: '// ';
  color: var(--pencil-light);
  font-weight: 400;
}

.hero {
  margin-bottom: 4rem;
  padding: 4rem 3rem;
  background: var(--paper-card);
  border: 3px dashed var(--sketch-line);
  position: relative;
  box-shadow:
    3px 3px 0 rgba(0, 0, 0, 0.1),
    -1px -1px 0 rgba(0, 0, 0, 0.02);
}

.hero::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px dotted var(--pencil-lighter);
  pointer-events: none;
}

.hero p {
  font-size: 1.15rem;
  color: var(--pencil-medium);
  margin: 1.25rem 0;
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: var(--paper-card);
  color: var(--pencil-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
  border: 3px solid var(--sketch-line);
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 3px 3px 0 var(--sketch-line);
}

.cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--sketch-line);
  background: repeating-linear-gradient(
    45deg,
    var(--paper-card),
    var(--paper-card) 5px,
    rgba(0, 0, 0, 0.03) 5px,
    rgba(0, 0, 0, 0.03) 10px
  );
}

section {
  margin-bottom: 3rem;
}

section:not(.hero) {
  padding: 2.5rem 3rem;
  background: var(--paper-card);
  border: 2px solid var(--sketch-line);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  position: relative;
}

section:not(.hero)::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px dotted var(--pencil-lighter);
  pointer-events: none;
}

section:not(.hero):hover {
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
  transform: translate(-1px, -1px);
}

main > h2 {
  margin-top: 3.5rem;
}

main > h2 + ul,
main > h2 + p {
  padding: 2.5rem 3rem;
  background: var(--paper-card);
  border: 2px solid var(--sketch-line);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
  margin-bottom: 3rem;
  transition: all 0.2s ease;
  position: relative;
}

main > h2 + ul::before,
main > h2 + p::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px dotted var(--pencil-lighter);
  pointer-events: none;
}

main > h2 + ul:hover,
main > h2 + p:hover {
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
  transform: translate(-1px, -1px);
}

article {
  padding: 2.5rem 3rem;
  background: var(--paper-card);
  border: 2px solid var(--sketch-line);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
  position: relative;
}

article::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px dotted var(--pencil-lighter);
  pointer-events: none;
}

article h1 {
  margin-top: 0;
}

ul {
  padding-left: 1.5rem;
  margin: 0;
  list-style: none;
}

ul li {
  padding: 0.75rem 0;
  color: var(--pencil-medium);
  position: relative;
  line-height: 1.8;
  transition: all 0.15s ease;
}

ul li:hover {
  color: var(--pencil-dark);
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 4px,
    rgba(0, 0, 0, 0.01) 4px,
    rgba(0, 0, 0, 0.01) 8px
  );
  padding-left: 0.5rem;
  border-left: 2px solid var(--sketch-line);
}

ul li::before {
  content: '▸';
  color: var(--sketch-line);
  position: absolute;
  left: -1.5rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

ul li:hover::before {
  content: '▸▸';
  color: var(--pencil-dark);
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.9rem;
  color: var(--pencil-light);
  margin-top: 5rem;
  border-top: 2px dashed var(--sketch-line);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  header {
    padding: 1rem 1rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  nav a {
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
  }

  main {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
    word-break: break-word;
  }

  h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
  }

  .hero {
    padding: 2.5rem 1.5rem;
    margin-bottom: 2.5rem;
  }

  .hero::before {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .cta {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    display: block;
    text-align: center;
  }

  section:not(.hero) {
    padding: 1.5rem 1.5rem;
  }

  section:not(.hero)::before {
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
  }

  main > h2 + ul,
  main > h2 + p {
    padding: 1.5rem 1.5rem;
  }

  main > h2 + ul::before,
  main > h2 + p::before {
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
  }

  article {
    padding: 1.5rem 1.5rem;
  }

  article::before {
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
  }

  ul {
    padding-left: 1.25rem;
  }

  ul li {
    padding: 0.6rem 0;
    font-size: 0.95rem;
  }

  ul li::before {
    left: -1.25rem;
  }

  footer {
    margin-top: 3rem;
    padding: 2rem 1rem;
    font-size: 0.85rem;
  }
}
