/* ==========================================================
   AO3-Inspired CSS Theme (for educational use)
   Author: Your Name
   ========================================================== */

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

html {
  font-size: 16px;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  background-color: #fff;
  color: #000;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Main Container ---------- */
#wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ---------- Header ---------- */
header {
  background-color: #990000;
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
  border-bottom: 4px solid #660000;
}

header h1 {
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 0.3rem;
}

header h1 a {
  color: #fff;
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: underline;
}

header p {
  font-size: 0.95rem;
  color: #f9f9f9;
}

/* ---------- Navigation Bar ---------- */
nav {
  background-color: #f2f2f2;
  border-bottom: 1px solid #ccc;
  padding: 0.5rem 1rem;
  text-align: center;
}

nav a {
  color: #990000;
  text-decoration: none;
  margin: 0 0.8rem;
  font-weight: bold;
  font-size: 0.95rem;
}

nav a:hover {
  text-decoration: underline;
}

/* ---------- Main Layout ---------- */
main {
  display: flex;
  flex: 1;
  padding: 2rem 1rem;
  gap: 2rem;
}

/* Sidebar */
aside {
  width: 25%;
  min-width: 200px;
  border-right: 1px solid #ddd;
  padding-right: 1rem;
}

aside h3 {
  color: #990000;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

aside ul {
  list-style: none;
}

aside li {
  margin-bottom: 0.5rem;
}

aside a {
  color: #990000;
  text-decoration: none;
}

aside a:hover {
  text-decoration: underline;
}

/* Main Content Area */
.article-content {
  flex: 1;
}

.article-content article {
  margin-bottom: 2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}

.article-content h2 {
  color: #990000;
  font-weight: normal;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-content p {
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
button, .button, input[type="submit"] {
  background-color: #990000;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

button:hover, .button:hover, input[type="submit"]:hover {
  background-color: #770000;
}

/* ---------- Forms ---------- */
form {
  margin-bottom: 1.5rem;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.3rem;
}

input, textarea, select {
  border: 1px solid #ccc;
  padding: 0.4rem;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
footer {
  background-color: #f5f5f5;
  border-top: 4px solid #990000;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #333;
}

footer a {
  color: #990000;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---------- Extra Details ---------- */
blockquote {
  border-left: 4px solid #990000;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #333;
}

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

code {
  background: #f2f2f2;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Courier New", monospace;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  main {
    flex-direction: column;
  }

  aside {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
}
