body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f6 100%);
  color: #2d3748;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14pt;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
}

a {
  color: #3182ce;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #2c5282;
  text-decoration: underline;
}

nav, footer {
  background: #a40000;
  color: #fff;
  padding: 0 20%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav ul, footer ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

nav ul li, footer ul li {
  display: block;
  padding: 0 1em 0 0;
}

nav ul li a, footer ul li a {
  color: inherit;
  display: block;
  padding: 1em 0.5em 1em 0;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 4px;
}

nav ul li a:hover, nav ul li a:focus,
footer ul li a:hover, footer ul li a:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  outline: none;
}

header {
  background: url(logo.svg), linear-gradient(135deg, #1a202c, #2d3748);
  background-position: 22% 45%;
  background-repeat: no-repeat;
  color: #f7fafc;
  font-size: 1.5em;
  min-height: 250px;
  overflow: auto;
  padding: 3em 22%;
  text-shadow: 0.2em 0.2em 0.3em rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header > * {
  padding-left: 220px;
}

header h1 {
  font-size: 2.5em;
  font-weight: 300;
  margin: 0.5em 0;
}

main {
  flex: 1;
  padding: 2em 0;
}

section {
  padding: 0 20% 2em;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2em;
  transition: box-shadow 0.3s ease;
}

section:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

section:not(:last-child) {
  border-bottom: 1px dashed #e2e8f0;
}

section h1 {
  background: linear-gradient(135deg, #2d3748, #1a202c);
  color: #f7fafc;
  font-size: 2.2em;
  margin: 0 -33.33% 1em;
  padding: 1em 33.33%;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section h2, section h3, section h4 {
  font-weight: 400;
  margin: 1.5em 0 1em;
  color: #4a5568;
}

article {
  position: relative;
  margin: 3em 0;
  padding: 1.5em;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

article:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

article aside {
  box-sizing: border-box;
  color: #a0aec0;
  font-size: 0.8em;
  right: -30%;
  top: 0.5em;
  position: absolute;
}

pre {
  border-radius: 8px;
  background: #2d3748;
  color: #e2e8f0;
  margin: 1.5em 0;
  overflow-x: auto;
  padding: 1.5em;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

table {
  border-collapse: collapse;
  font-size: 0.9em;
  margin: 2em auto;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

table td, table th {
  border: 1px solid #e2e8f0;
  padding: 0.8em;
}

table th {
  background-color: #f7fafc;
  color: #4a5568;
}

table tr:nth-child(even) {
  background-color: #f7fafc;
}

table tr:hover {
  background-color: #edf2f7;
}

dl dt {
  margin-bottom: 0.5em;
  margin-top: 1em;
  font-weight: 600;
  color: #4a5568;
}

p > code, li > code, dt > code {
  background: #edf2f7;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  color: #3182ce;
}

/* Collection items styling */
ul li {
  margin: 0.8em 0;
  list-style-type: none;
  position: relative;
}

ul li:before {
  content: "•";
  color: #a40000;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Buttons and form elements */
button, input[type="submit"] {
  background-color: #a40000;
  color: white;
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover, input[type="submit"]:hover {
  background-color: #7e0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

input[type="text"], input[type="password"], textarea {
  padding: 0.6em;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3);
}

@media (max-width: 800px) {
  body {
    font-size: 12pt;
  }
  
  header, section {
    padding-left: 2em;
    padding-right: 2em;
  }
  
  nav, footer {
    padding-left: 0;
    padding-right: 0;
  }
  
  nav ul, footer ul {
    justify-content: center;
  }
  
  nav ul li, footer ul li {
    padding: 0 0.5em;
  }
  
  nav ul li a, footer ul li a {
    padding: 1em 0;
  }
  
  header {
    background-position: 50% 30px, 0 0;
    padding-bottom: 0;
    padding-top: 330px;
    text-align: center;
  }
  
  header > * {
    margin: 0;
    padding-left: 0;
  }
  
  section h1 {
    margin: 0 -0.8em 1.3em;
    padding: 0.5em 0;
    text-align: center;
  }
  
  article aside {
    position: static;
    margin-top: 1em;
  }
  
  article:before {
    left: -2em;
    right: -2em;
  }
}
