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

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.7;
  color: #1a1a1a;
  background-color: #fafaf7;
}

a {
  color: #8b0000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header / Navigation */
header {
  background-color: #1a1a2e;
  color: #f0e6d3;
  padding: 1.5rem 2rem;
  border-bottom: 4px solid #8b0000;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

header h1 a:hover {
  color: #fff;
}

nav {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav > a {
  color: #c9b99a;
  font-size: 0.95rem;
}

nav > a:hover {
  color: #fff;
}

/* Dropdown menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  color: #c9b99a;
  font-size: 0.95rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.dropdown-toggle:hover {
  color: #fff;
}

.dropdown-toggle::after {
  content: " \25BE";
  font-size: 0.75rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a2e;
  border: 1px solid #3a3a4e;
  min-width: 180px;
  z-index: 1000;
  padding: 0.5rem 0;
  margin-top: 0.25rem;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  color: #c9b99a;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #2a2a3e;
  color: #fff;
  text-decoration: none;
}

/* Main content */
main {
  max-width: 860px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

/* Homepage bio section */
.bio-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.bio-photo {
  flex-shrink: 0;
}

.bio-photo img {
  width: 240px;
  height: auto;
  border: 3px solid #1a1a2e;
  display: block;
}

.bio-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.bio-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Featured quote */
.featured-quote {
  background-color: #f0e6d3;
  border-left: 4px solid #8b0000;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
}

.featured-quote p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.featured-quote cite {
  font-size: 0.95rem;
  font-style: normal;
  color: #555;
}

.featured-quote cite a {
  color: #8b0000;
}

/* Stats section */
.stats-section {
  margin-top: 2.5rem;
  border-top: 2px solid #ddd;
  padding-top: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: #1a1a2e;
  color: #f0e6d3;
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 3px solid #8b0000;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Notable opinions section */
.notable-opinions {
  margin-top: 2.5rem;
  border-top: 2px solid #ddd;
  padding-top: 1.5rem;
}

.notable-opinions h2 {
  font-size: 1.4rem;
  color: #1a1a2e;
  margin-bottom: 1.25rem;
}

.notable-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.notable-card {
  background: #fff;
  border: 1px solid #ddd;
  border-left: 4px solid #8b0000;
  padding: 1.25rem;
}

.notable-card h3 {
  font-size: 1.1rem;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.notable-card h3 a {
  color: #1a1a2e;
}

.notable-card h3 a:hover {
  color: #8b0000;
}

.notable-term,
.notable-type {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  margin-right: 0.5rem;
  margin-bottom: 0.75rem;
  border-radius: 3px;
}

.notable-term {
  background-color: #1a1a2e;
  color: #f0e6d3;
}

.notable-type {
  background-color: #f0e6d3;
  color: #1a1a2e;
}

.notable-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .notable-grid {
    grid-template-columns: 1fr;
  }
}

/* Term links */
.term-list {
  margin-top: 2rem;
  border-top: 2px solid #ddd;
  padding-top: 1.5rem;
}

.term-list h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #1a1a2e;
}

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

.term-list li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.term-list li a::before {
  content: "\25B8 ";
  color: #8b0000;
}

/* Latest opinions section */
.latest-opinions {
  margin-top: 2rem;
  border-top: 2px solid #ddd;
  padding-top: 1.5rem;
}

.latest-opinions h2 {
  font-size: 1.4rem;
  color: #1a1a2e;
  margin-bottom: 1.25rem;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.latest-card {
  background: #fff;
  border: 1px solid #ddd;
  border-left: 4px solid #8b0000;
  padding: 1.25rem;
}

.latest-card h3 {
  font-size: 1.1rem;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.latest-card h3 a {
  color: #1a1a2e;
}

.latest-card h3 a:hover {
  color: #8b0000;
}

.latest-type,
.latest-topic {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  margin-right: 0.5rem;
  margin-bottom: 0.75rem;
  border-radius: 3px;
}

.latest-type.majority {
  background-color: #8b0000;
  color: #fff;
}

.latest-type.concurrence {
  background-color: #1a1a2e;
  color: #f0e6d3;
}

.latest-type.dissent {
  background-color: #555;
  color: #fff;
}

.latest-topic {
  background-color: #f0e6d3;
  color: #1a1a2e;
}

.latest-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.latest-more {
  margin-top: 1.25rem;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .latest-grid {
    grid-template-columns: 1fr;
  }
}

/* Term page */
.term-header {
  margin-bottom: 2rem;
}

.term-header h2 {
  font-size: 1.8rem;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.term-header p {
  font-size: 1.05rem;
  color: #555;
}

/* Opinion cards */
.opinion-list {
  list-style: none;
  padding: 0;
}

.opinion-card {
  background: #fff;
  border: 1px solid #ddd;
  border-left: 4px solid #8b0000;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.opinion-card h3 {
  font-size: 1.2rem;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.opinion-card h3 a {
  color: #1a1a2e;
}

.opinion-card h3 a:hover {
  color: #8b0000;
}

.opinion-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.opinion-meta span {
  margin-right: 1.25rem;
}

.opinion-card p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.opinion-card p:last-of-type {
  margin-bottom: 0;
}

.opinion-card.dissent {
  border-left: 4px solid #1a1a2e;
}

/* About page content */
.about-content p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.about-content p:last-of-type {
  margin-bottom: 0;
}

/* Section dividers on term pages */
.section-divider {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  border-top: 2px solid #ddd;
  padding-top: 1.5rem;
}

.section-divider h2 {
  font-size: 1.4rem;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.section-divider p {
  font-size: 1.05rem;
  color: #555;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  border-top: 1px solid #ddd;
  color: #888;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 640px) {
  .bio-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-photo img {
    width: 180px;
  }
}
