/* Base Styles - Shared across all pages */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Iowan Old Style BT", Georgia, serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
}

/* Header / Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 400;
  text-decoration: none;
  color: #111;
  transition: opacity 0.2s ease;
}

nav .logo:hover {
  opacity: 0.6;
}

nav .logo .beta {
  font-size: 0.5rem;
  font-weight: 500;
  vertical-align: super;
  margin-left: 1px;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.6;
}

/* Layout */
main {
  padding-top: 4rem;
}

section {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-bottom: 2rem;
  text-align: center;
  scroll-margin-top: 6rem;
}

section:not(:first-of-type) {
  margin-top: 1.5rem;
}

h1,
h2 {
  margin-bottom: 1rem;
  font-weight: 400;
}

h1 {
  font-size: 2.5rem;
  padding: 2rem 0 0.5rem 0;
}

.tagline {
  font-size: 1.1rem;
  color: #666;
  font-style: italic;
  margin-top: 0.5rem;
  padding: 0;
}

h2 {
  font-size: 1.2rem;
  margin: 0 auto 1rem auto;
  color: #666;
  font-style: italic;
  text-align: left;
  max-width: 600px;
}

section p {
  margin: 0 auto 1.2rem auto;
  max-width: 600px;
  font-size: 0.95rem;
  color: #333;
  text-align: left;
}

section p:last-child {
  margin-bottom: 0;
}

.form-container {
  max-width: 600px;
  margin: 1.2rem auto 0 auto;
}

section a {
  color: #666;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

section a:hover {
  opacity: 0.6;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #666;
  margin-top: 4rem;
}

footer a {
  color: #666;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 0.6;
}

/* Common button styles */
.secondary-btn {
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
  padding: 0.6rem 1.2rem;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.9rem;
}

.secondary-btn:hover {
  background: #fafafa;
  border-color: #333;
  color: #333;
}

/* Shared tag styles */
.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.story-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #e5e5e5;
}

/* No stories message */
.no-stories {
  text-align: center;
  padding: 3rem 0;
  color: #999;
  font-style: italic;
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
  header {
    border-bottom: none;
  }

  nav {
    padding: 0.75rem 1.25rem;
  }

  nav .logo {
    font-size: 1.1rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.25rem 0;
  }

  main {
    padding-top: 3.5rem;
  }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
  nav {
    padding: 0.75rem 1rem;
  }

  nav .logo {
    font-size: 1rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 0.25rem 0;
  }

  main {
    padding-top: 3rem;
  }
}
