/* DCA Cruise Reports - Nautical styling without tackiness */

:root {
  --navy: #1a365d;
  --navy-light: #2c5282;
  --ocean: #3182ce;
  --sand: #f7fafc;
  --rope: #744210;
  --text: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;
  --max-width: 48rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--sand);
  min-height: 100vh;
}

/* Header/Navigation */
header {
  background: var(--navy);
  color: white;
  padding: 1rem 0;
  border-bottom: 4px solid var(--rope);
}

header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

header h1 {
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.05em;
}

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

nav {
  background: var(--navy-light);
  padding: 0.75rem 0;
}

nav .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

nav a.active {
  opacity: 1;
  font-weight: 600;
}

/* Main content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  text-align: justify;
  hyphens: auto;
}

/* Report metadata */
.report-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.report-meta span {
  display: inline-block;
  margin-right: 1.5rem;
}

.report-meta .author {
  color: var(--navy);
  font-weight: 500;
}

.report-meta .locations {
  display: block;
  margin-top: 0.5rem;
}

.report-meta .locations a {
  color: var(--ocean);
  text-decoration: none;
}

.report-meta .locations a:hover {
  text-decoration: underline;
}

/* Report content */
.report-content {
  font-size: 1.05rem;
}

.report-content p:first-of-type::first-letter {
  font-size: 3rem;
  float: left;
  line-height: 1;
  padding-right: 0.5rem;
  color: var(--navy);
}

/* Index pages */
.intro {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-left: 4px solid var(--ocean);
}

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

.year-section h3 {
  background: var(--navy);
  color: white;
  padding: 0.5rem 1rem;
  margin: 0;
  font-size: 1.1rem;
}

.report-list {
  list-style: none;
  background: white;
  border: 1px solid var(--border);
  border-top: none;
}

.report-list li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

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

.report-list a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.report-list a:hover {
  color: var(--ocean);
  text-decoration: underline;
}

.report-list .meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-left: 0.5rem;
}

/* Location index */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.location-grid a {
  display: block;
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid var(--border);
  color: var(--navy);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
}

.location-grid a:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.location-grid .count {
  color: var(--text-light);
  font-size: 0.8rem;
}

.location-grid a:hover .count {
  color: rgba(255,255,255,0.7);
}

/* Alpha nav for locations */
.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.alpha-nav a {
  display: inline-block;
  min-width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  padding: 0 0.5rem;
  background: var(--navy);
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.alpha-nav a:hover {
  background: var(--ocean);
}

/* Bulletin range navigation (wider items like "001-010") */
.alpha-nav a[href^="#bulletin-"] {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  height: auto;
  line-height: 1.3;
  min-width: 4rem;
  text-align: center;
}

.alpha-nav a[href^="#bulletin-"] small {
  display: block;
  font-size: 0.7rem;
  font-weight: normal;
  opacity: 0.85;
}

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

.location-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

/* Location detail page */
.location-reports {
  list-style: none;
}

.location-reports li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.location-reports a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.location-reports a:hover {
  color: var(--ocean);
}

.region-link {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.region-link a {
  color: var(--ocean);
}

/* Boat type index */
.boat-section {
  margin-bottom: 2rem;
}

.boat-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.boat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.boat-grid a {
  display: block;
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid var(--border);
  color: var(--navy);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
}

.boat-grid a:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.boat-grid .count {
  color: var(--text-light);
  font-size: 0.8rem;
}

.boat-grid a:hover .count {
  color: rgba(255,255,255,0.7);
}

/* Boat detail page */
.boat-reports {
  list-style: none;
}

.boat-reports li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.boat-reports a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.boat-reports a:hover {
  color: var(--ocean);
}

/* Author index */
.author-section {
  margin-bottom: 2rem;
}

.author-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.author-grid a {
  display: block;
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid var(--border);
  color: var(--navy);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
}

.author-grid a:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.author-grid .count {
  color: var(--text-light);
  font-size: 0.8rem;
}

.author-grid a:hover .count {
  color: rgba(255,255,255,0.7);
}

/* Author detail page */
.author-reports {
  list-style: none;
}

.author-reports li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.author-reports a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.author-reports a:hover {
  color: var(--ocean);
}

.author-fav, .author-boats {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.author-fav a, .author-boats a {
  color: var(--ocean);
  text-decoration: none;
}

.author-fav a:hover, .author-boats a:hover {
  text-decoration: underline;
}

/* Report meta author link */
.report-meta .author a {
  color: var(--navy);
  text-decoration: none;
}

.report-meta .author a:hover {
  color: var(--ocean);
  text-decoration: underline;
}

/* Report meta boats */
.report-meta .boats {
  display: block;
  margin-top: 0.5rem;
}

.report-meta .boats a {
  color: var(--ocean);
  text-decoration: none;
}

.report-meta .boats a:hover {
  text-decoration: underline;
}

/* Map page */
.map-page {
  max-width: 60rem;
}

.map-container {
  background: white;
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.uk-map {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.region-list {
  display: grid;
  gap: 1.5rem;
}

.region-detail {
  background: white;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--ocean);
}

.region-detail h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.region-locations {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  line-height: 1.8;
}

.region-locations a {
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.region-locations a:hover {
  color: var(--ocean);
  text-decoration: underline;
}

.region-locations .more {
  color: var(--text-light);
  font-style: italic;
}

/* Homepage grid */
.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .home-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.home-section h2 {
  margin-top: 0;
}

.boat-links {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
}

.boat-links a {
  color: var(--navy);
  text-decoration: none;
}

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

/* Category index */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-card {
  background: white;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--ocean);
}

.category-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.category-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.category-card h3 a:hover {
  color: var(--ocean);
  text-decoration: underline;
}

.category-count {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: var(--ocean);
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.category-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* Category detail page */
.category-reports {
  list-style: none;
}

.category-reports li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.category-reports a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.category-reports a:hover {
  color: var(--ocean);
}

.category-reports .meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-left: 0.5rem;
}

/* Footer */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}

footer p {
  margin: 0.25rem 0;
  text-align: center;
}

footer a {
  color: var(--ocean);
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
  .boat-grid,
  .author-grid,
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    padding: 0.75rem;
  }
  
  .uk-map {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  header h1 {
    font-size: 1.2rem;
  }
  
  nav .container {
    gap: 0.75rem;
    justify-content: center;
  }
  
  nav a {
    font-size: 0.8rem;
    padding: 0.25rem 0;
  }
  
  .location-grid,
  .boat-grid,
  .author-grid {
    grid-template-columns: 1fr;
  }
  
  .alpha-nav {
    justify-content: center;
  }
  
  .alpha-nav a {
    min-width: 1.75rem;
    height: 1.75rem;
    line-height: 1.75rem;
    font-size: 0.9rem;
  }
  
  .alpha-nav a[href^="#bulletin-"] {
    font-size: 0.7rem;
    padding: 0.3rem 0.4rem;
    min-width: 3rem;
  }
  
  .report-content p:first-of-type::first-letter {
    font-size: 2.5rem;
  }
  
  .report-meta {
    font-size: 0.85rem;
  }
  
  .report-meta span {
    display: block;
    margin-right: 0;
    margin-bottom: 0.25rem;
  }
  
  .intro {
    font-size: 1rem;
    padding: 1rem;
  }
  
  .report-list li {
    padding: 0.5rem 0.75rem;
  }
  
  .report-list .meta {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
  }
  
  main {
    padding: 1.5rem 1rem 3rem;
  }
  
  .region-detail {
    padding: 0.75rem 1rem;
  }
}

/* Print */
@media print {
  header, nav, footer, .alpha-nav {
    display: none;
  }
  
  body {
    background: white;
  }
  
  main {
    max-width: 100%;
    padding: 0;
  }
}
