/* ==========================================================================
   More Adventures Online - Base Styles
   ========================================================================== */

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #2d6a4f;
  --color-primary-light: #40916c;
  --color-primary-dark: #1b4332;
  --color-accent: #d4a373;
  --color-bg: #fefae0;
  --color-bg-alt: #faedcd;
  --color-text: #333;
  --color-text-light: #666;
  --color-border: #ddd;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --max-width: 48rem;
  --spacing: 1.5rem;
}

html {
  font-size: 100%;
  line-height: 1.7;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-dark);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  padding: var(--spacing) 0;
  border-bottom: 2px solid var(--color-primary);
  background-color: var(--color-primary-dark);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-bg);
  text-decoration: none;
  font-weight: bold;
}

.site-title:hover {
  color: var(--color-accent);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--color-bg-alt);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-accent);
}

/* Main Content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--spacing);
  min-height: 60vh;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 2px solid var(--color-primary);
  background-color: var(--color-primary-dark);
  color: var(--color-bg-alt);
  text-align: center;
  font-size: 0.875rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

/* Post Styles */
.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  margin-top: 0;
}

.post-header time {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.post-tags {
  margin-top: 0.5rem;
}

.tag {
  display: inline-block;
  background-color: var(--color-bg-alt);
  color: var(--color-primary-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-right: 0.25rem;
}

/* Post List */
.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.post-list h2 a {
  text-decoration: none;
}

.post-list time {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.post-list .excerpt {
  margin-top: 0.5rem;
  color: var(--color-text-light);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  font-size: 2.5rem;
  margin-top: 0;
  color: var(--color-primary-dark);
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 36rem;
  margin: 0 auto;
}

/* Utility */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Responsive */
@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    text-align: center;
  }

  .site-nav ul {
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
}
