/* Color Palette Variables */
:root {
  --color-parchment: #E8E5D7;
  --color-olive: #B8B794;
  --color-bark: #5A4A3A;
  --color-sand: #D4C4A0;
  --color-sage: #8FA88F;
  --color-olivewood: #2D2B1F;
  --color-text: #333;
  --color-text-light: #666;
  --color-white: #ffffff;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-parchment);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header Styles */
.site-header {
  background-color: var(--color-olivewood);
  color: var(--color-white);
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100%;
  position: relative;
  z-index: 1000;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.nav-brand a {
  color: var(--color-parchment);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: var(--color-sand);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-parchment);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-sand);
  margin: 3px 0;
  transition: 0.3s;
  transform-origin: center;
  display: block;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 0;
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* Home Page - Remove top padding and gap */
.home {
  margin-top: -2rem;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
}

/* Home Page Styles */
.hero-section {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 2rem;
  padding: 0;
  overflow: hidden;
  background: var(--color-olivewood);
  min-height: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  max-width: 100vw;
  z-index: 1;
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(45, 43, 31, 0.6) 0%,
    rgba(143, 168, 143, 0.4) 50%,
    rgba(45, 43, 31, 0.7) 100%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--color-white);
  z-index: 2;
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.site-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--color-white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-description {
  font-size: 1.4rem;
  opacity: 0.95;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  font-weight: 300;
  line-height: 1.5;
}

.welcome-content {
  max-width: 900px;
  margin: 0 auto;
}

.next-event,
.mission-section,
.quick-links {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--color-parchment);
  border-left: 4px solid var(--color-sage);
  border-radius: 4px;
}

.next-event h2,
.mission-section h2,
.quick-links h2 {
  color: var(--color-olivewood);
  margin-bottom: 1rem;
}

.event-date {
  font-size: 1.1rem;
  color: var(--color-bark);
  font-weight: 500;
}

.quick-links ul {
  list-style: none;
  padding-left: 0;
}

.quick-links li {
  margin: 0.5rem 0;
}

.quick-links a {
  color: var(--color-bark);
  text-decoration: none;
  font-weight: 500;
}

.quick-links a:hover {
  color: var(--color-sage);
  text-decoration: underline;
}

/* Page Headings */
.page-title {
  font-size: 2.5rem;
  color: var(--color-olivewood);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-sage);
}

/* Working Papers Page */
.working-papers-container {
  margin: 2rem 0;
}

.papers-loading,
.papers-error {
  padding: 2rem;
  text-align: center;
  background-color: var(--color-parchment);
  border-radius: 4px;
  margin: 2rem 0;
}

.papers-error {
  background-color: #ffe6e6;
  color: #cc0000;
}

.papers-list {
  list-style: none;
  padding: 0;
}

.paper-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-olive);
  border-left: 4px solid var(--color-sage);
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 4px;
  transition: box-shadow 0.3s ease;
}

.paper-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.paper-title {
  font-size: 1.25rem;
  color: var(--color-olivewood);
  margin-bottom: 0.5rem;
}

.paper-author {
  color: var(--color-bark);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.paper-abstract {
  color: var(--color-text-light);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.paper-date {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Announcements Timeline */
.announcements-container {
  margin: 3rem 0;
  max-width: 900px;
}

.timeline {
  position: relative;
  padding-left: 0;
  margin: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.announcement-card {
  background-color: var(--color-white);
  padding: 2rem 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(143, 168, 143, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  position: relative;
}

.announcement-card::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-sage);
  border-radius: 8px 0 0 8px;
}

.announcement-date {
  color: var(--color-sage);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.announcement-title {
  font-size: 1.5rem;
  color: var(--color-olivewood);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.announcement-content {
  color: var(--color-text);
  line-height: 1.75;
  margin-top: 0;
  font-size: 1.05rem;
}

.announcement-content p {
  margin: 0;
  color: var(--color-text-light);
}

/* Conference Postings */
.conferences-container {
  margin: 2rem 0;
}

.conference-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-olive);
  border-left: 4px solid var(--color-sage);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: 4px;
}

.conference-title {
  font-size: 1.3rem;
  color: var(--color-olivewood);
  margin-bottom: 0.5rem;
}

.conference-date {
  color: var(--color-bark);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.conference-description {
  color: var(--color-text);
  margin-bottom: 1rem;
}

.conference-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-sage);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.conference-link:hover {
  background-color: var(--color-bark);
}

/* Registration Form */
.registration-container {
  max-width: 600px;
  margin: 2rem auto;
}

.registration-form {
  background-color: var(--color-parchment);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid var(--color-olive);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-olivewood);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-olive);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 2px rgba(143, 168, 143, 0.2);
}

.form-submit {
  background-color: var(--color-sage);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: var(--color-bark);
}

/* About Page */
.about-container {
  max-width: 800px;
  margin: 2rem auto;
}

.about-section {
  margin-bottom: 2rem;
}

.team-member {
  background-color: var(--color-parchment);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  border-left: 4px solid var(--color-sage);
}

.team-member-name {
  font-size: 1.2rem;
  color: var(--color-olivewood);
  margin-bottom: 0.5rem;
}

.team-member-role {
  color: var(--color-bark);
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* Past Conferences */
.past-conferences-list {
  list-style: none;
  padding: 0;
}

.past-conference-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-olive);
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 4px;
  border-left: 4px solid var(--color-sand);
}

.past-conference-item a {
  color: var(--color-olivewood);
  text-decoration: none;
  font-weight: 500;
}

.past-conference-item a:hover {
  color: var(--color-sage);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: var(--color-olivewood);
  color: var(--color-sand);
  padding: 2rem 0;
  margin-top: auto;
  text-align: center;
}

.site-footer a {
  color: var(--color-parchment);
  text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .main-nav {
    padding: 0.5rem 20px;
    position: relative;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    height: calc(100vh - 60px);
    flex-direction: column;
    background-color: var(--color-olivewood);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 10px 27px rgba(0,0,0,0.05);
    padding: 2rem 0;
    gap: 1.5rem;
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
    padding: 0 2rem;
  }

  .nav-menu a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1000;
    position: relative;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero-section {
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 2rem;
    width: 100vw;
    min-height: 300px;
    height: 300px;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .site-title {
    font-size: 2.2rem;
  }

  .site-description {
    font-size: 1.1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .announcements-container {
    margin: 2rem 0;
  }

  .timeline-item {
    margin-bottom: 2rem;
  }

  .announcement-card {
    padding: 1.5rem 1.75rem;
  }

  .announcement-title {
    font-size: 1.25rem;
  }

  .announcement-content {
    font-size: 1rem;
  }
}

