/* USS Newcomb DD-586 — Modern Website Stylesheet
   Designed for readability: large text, high contrast, clear navigation
   Audience: veterans and families, average age 80+
*/

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #1a1a1a;
  background-color: #f8f5ee;
}

/* ── Color Palette ────────────────────────────────────────────── */
:root {
  --navy:       #1b2a4a;
  --navy-light: #2c4578;
  --gold:       #c9a84c;
  --gold-light: #e8cc80;
  --cream:      #f8f5ee;
  --white:      #ffffff;
  --text:       #1a1a1a;
  --muted:      #555555;
  --border:     #c9a84c;
}

/* ── Typography ───────────────────────────────────────────────── */
h1 { font-size: 2.4rem; line-height: 1.2; color: var(--gold); letter-spacing: 0.02em; }
h2 { font-size: 1.9rem; line-height: 1.3; color: var(--navy); margin-bottom: 0.6em; }
h3 { font-size: 1.5rem; line-height: 1.4; color: var(--navy); margin-bottom: 0.5em; }
h4 { font-size: 1.2rem; color: var(--navy-light); margin-bottom: 0.4em; }

p  { margin-bottom: 1.2em; }
em { font-style: italic; }
strong { font-weight: bold; }

a { color: var(--navy-light); text-decoration: underline; }
a:hover { color: var(--gold); }

blockquote {
  border-left: 5px solid var(--gold);
  padding: 0.8em 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  background: #fff;
  color: #333;
  font-size: 1.05rem;
}

hr {
  border: none;
  border-top: 2px solid var(--gold);
  margin: 2.5em 0;
}

/* ── Site Header ──────────────────────────────────────────────── */
.site-header {
  background-color: var(--navy);
  padding: 1.5rem 2rem;
  text-align: center;
  border-bottom: 4px solid var(--gold);
}

.site-header .ship-name {
  font-size: 2.6rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: Georgia, serif;
  margin-bottom: 0.2em;
}

.site-header .ship-subtitle {
  font-size: 1.15rem;
  color: #ccd4e8;
  letter-spacing: 0.08em;
}

/* ── Navigation Bar ───────────────────────────────────────────── */
nav.main-nav {
  background-color: var(--navy-light);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

nav.main-nav ul li a {
  display: block;
  padding: 0.85rem 1.2rem;
  color: #e8edf8;
  text-decoration: none;
  font-size: 1rem;
  font-family: Georgia, serif;
  letter-spacing: 0.03em;
  border-bottom: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

nav.main-nav ul li a:hover,
nav.main-nav ul li a.active {
  background-color: var(--navy);
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Page Banner ──────────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 4px solid var(--gold);
}

.page-banner h1 { color: var(--gold); margin-bottom: 0.5em; }
.page-banner p  { color: #ccd4e8; font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

/* ── Hero (Homepage) ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(to bottom, var(--navy) 0%, #243860 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 5px solid var(--gold);
}

.hero-ship-name {
  font-size: 3.5rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3em;
}

.hero-tagline {
  font-size: 1.3rem;
  color: #ccd4e8;
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.hero-image {
  max-width: 700px;
  width: 100%;
  margin: 2rem auto;
  display: block;
  border: 4px solid var(--gold);
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 800px;
}

.spec-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  color: #e8edf8;
  text-align: center;
}

.spec-badge strong {
  display: block;
  color: var(--gold);
  font-size: 1.3rem;
}

/* ── Content Layout ───────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ── Sections ─────────────────────────────────────────────────── */
.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.8rem;
  color: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.4em;
  margin-bottom: 1.2em;
}

/* ── Cards ────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--white);
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card h3 { margin-bottom: 0.5em; font-size: 1.2rem; }
.card p  { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.8em; }
.card a  { font-size: 0.95rem; }

/* ── Nav Cards (Homepage) ─────────────────────────────────────── */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 2.5rem 0;
}

.nav-card {
  display: block;
  background: var(--navy);
  color: var(--gold);
  text-decoration: none;
  text-align: center;
  padding: 1.8rem 1.2rem;
  border-radius: 8px;
  border: 2px solid var(--gold);
  font-size: 1.1rem;
  font-family: Georgia, serif;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.nav-card .nav-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.nav-card:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ── Images ───────────────────────────────────────────────────── */
.img-float-right {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 320px;
  width: 100%;
}

.img-float-left {
  float: left;
  margin: 0 2rem 1.5rem 0;
  max-width: 320px;
  width: 100%;
}

.clearfix::after { content: ""; display: table; clear: both; }

figure {
  margin: 2rem 0;
  text-align: center;
}

figure img {
  max-width: 100%;
  border: 3px solid var(--gold);
}

figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5em;
  font-style: italic;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.photo-grid figure {
  margin: 0;
}

.photo-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 2px solid var(--gold);
  display: block;
}

.photo-grid figcaption {
  font-size: 0.85rem;
  padding: 0.3em 0;
}

/* ── Spec Table ───────────────────────────────────────────────── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.spec-table th {
  background: var(--navy);
  color: var(--gold);
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 1rem;
}

.spec-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #ddd;
}

.spec-table tr:nth-child(even) td { background: #f0ece2; }

/* ── Battle Stars ─────────────────────────────────────────────── */
.battle-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.battle-star {
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-family: Georgia, serif;
}

/* ── Timeline ─────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--navy);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3em;
}

.timeline-content h3 { margin-bottom: 0.4em; font-size: 1.2rem; }
.timeline-content p  { font-size: 0.95rem; }

/* ── Crew Listing ─────────────────────────────────────────────── */
.crew-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}

.crew-alpha a {
  background: var(--navy);
  color: var(--gold);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid var(--gold);
}

.crew-alpha a:hover { background: var(--gold); color: var(--navy); }

.crew-list {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
}

.crew-list li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

.crew-list a {
  color: var(--navy-light);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.crew-rank {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 0.3em;
}

/* ── Reunion Table ────────────────────────────────────────────── */
.reunion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

.reunion-table th {
  background: var(--navy);
  color: var(--gold);
  padding: 0.75rem 1rem;
  text-align: left;
}

.reunion-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #ddd;
}

.reunion-table tr:nth-child(even) td { background: #f0ece2; }
.reunion-table a { color: var(--navy-light); }

/* ── Newsletter List ──────────────────────────────────────────── */
.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.newsletter-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--navy-light);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.newsletter-link:hover {
  border-color: var(--gold);
  background: #fff9ee;
  color: var(--navy);
}

.newsletter-link .pdf-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* ── Quote Box ────────────────────────────────────────────────── */
.quote-box {
  background: var(--navy);
  color: var(--cream);
  border-left: 6px solid var(--gold);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.quote-box p { color: var(--cream); margin-bottom: 0.8em; }
.quote-box p:last-child { margin-bottom: 0; }

/* ── Callout Boxes ────────────────────────────────────────────── */
.callout {
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: #fff;
}

.callout-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: #aab8cc;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  border-top: 4px solid var(--gold);
}

footer a { color: var(--gold); }
footer p { margin-bottom: 0.5em; }

/* ── Utility ──────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--muted); font-size: 0.9rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 700px) {
  html { font-size: 18px; }

  .hero-ship-name { font-size: 2.4rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }

  .img-float-right,
  .img-float-left {
    float: none;
    margin: 1rem auto;
    display: block;
  }

  .crew-list { columns: 1; }
  nav.main-nav ul li a { padding: 0.7rem 0.8rem; font-size: 0.9rem; }
}
