/* Professional Think-Tank Design for Andrew Gawthorpe */

:root {
  --primary-color: #1a365d;
  --secondary-color: #2c5282;
  --accent-color: #4299e1;
  --text-color: #2d3748;
  --text-light: #4a5568;
  --border-color: #e2e8f0;
  --bg-light: #f7fafc;
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-color);
  background: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.875rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Header */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.site-title:hover {
  text-decoration: none;
  color: var(--secondary-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  text-decoration: none;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: calc(100vh - 200px);
}

/* Footer */
footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 2rem;
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Homepage Three-Column Layout */
.home-feeds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feed-column {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.feed-column h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-color);
}

.feed-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.feed-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.feed-item-date {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.feed-item-title {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.feed-item-outlet {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
}

/* Bio Section */
.bio-section {
  max-width: 800px;
  margin-bottom: 3rem;
}

.bio-section p {
  font-size: 1.125rem;
}

/* Publications List */
.publication-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.publication-item {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--border-color);
}

.publication-item:hover {
  border-left-color: var(--accent-color);
}

.publication-title {
  font-weight: 600;
  font-style: italic;
}

.publication-venue {
  color: var(--text-light);
}

.publication-description {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* Book Page */
.book-cover {
  max-width: 300px;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.book-endorsement {
  background: var(--bg-light);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent-color);
  font-style: italic;
}

.endorsement-author {
  font-style: normal;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 0.75rem;
  display: block;
}

/* Media Feed Page */
.media-filters {
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 4px;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.media-filters select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 1rem;
  background: white;
}

.media-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.media-item:last-child {
  border-bottom: none;
}

.media-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.media-item-date {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
}

.media-item-type {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
}

.media-item-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.media-item-outlet {
  font-style: italic;
  color: var(--text-light);
}

/* Contact Page */
.contact-methods {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 4px;
  margin-top: 2rem;
}

.contact-method {
  margin: 1.5rem 0;
}

.contact-method strong {
  color: var(--primary-color);
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
  .home-feeds {
    grid-template-columns: 1fr;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  main {
    padding: 2rem 1rem;
  }
}

/* Utility Classes */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--secondary-color);
  text-decoration: none;
}

.text-light {
  color: var(--text-light);
}

.mb-2 {
  margin-bottom: 2rem;
}
