/* RCAF417.com — site-wide styles
   A tribute site for 1st Lt. John Francis Koplitz, RCAF 417 Squadron / USAAF 340th BG
*/

:root {
  --navy: #16233b;
  --navy-dark: #0d1626;
  --parchment: #f6f1e6;
  --parchment-dark: #ece3d0;
  --gold: #b8933f;
  --ink: #2a2620;
  --ink-soft: #55503f;
  --rule: #d8cdae;
  --max-width: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

a { color: var(--navy); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

.site-header {
  background: var(--navy);
  color: var(--parchment);
  padding: 1.25rem 1.5rem;
  border-bottom: 4px solid var(--gold);
}

.site-header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-header .site-title {
  font-family: "Trebuchet MS", Georgia, serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: bold;
  color: var(--parchment);
  text-decoration: none;
}

.site-header nav a {
  color: var(--parchment);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 1rem;
  border-bottom: 1px solid transparent;
}

.site-header nav a:hover { border-bottom-color: var(--gold); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.hero-portrait {
  width: 380px;
  max-width: 90%;
  margin: 1.1rem auto 0.4rem;
  box-shadow: 0 3px 14px rgba(22, 35, 59, 0.28);
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--gold);
  font-family: "Trebuchet MS", sans-serif;
}

.hero h1 {
  font-size: 2.3rem;
  margin: 0.4rem 0 0.3rem;
  color: var(--navy);
}

.hero .dates {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.hero .lede {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.medal-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin: 1.5rem 0 0;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
}

.medal-strip span {
  border: 1px solid var(--gold);
  color: var(--navy);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  background: #fffdf7;
}

.photo-frame {
  border: 1px solid var(--rule);
  background: #fffdf7;
  padding: 0.5rem;
  margin: 1.5rem 0;
}

.photo-frame figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.25rem 0.1rem;
  font-style: italic;
}

.placeholder-photo {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, #e3dac2, #e3dac2 10px, #ded4b9 10px, #ded4b9 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

section.block {
  margin-bottom: 2.5rem;
}

section.block h2 {
  font-size: 1.4rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  padding-bottom: 0.2rem;
  margin-bottom: 1rem;
}

.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--navy);
}
.pull-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.chapter-card {
  border: 1px solid var(--rule);
  background: #fffdf7;
  padding: 0;
  text-decoration: none;
  color: var(--ink);
  display: block;
  overflow: hidden;
}

.chapter-card:hover { border-color: var(--gold); }

.chapter-card .thumb {
  aspect-ratio: 4 / 3;
  background: #e3dac2;
}

.chapter-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chapter-card .thumb.placeholder {
  background: repeating-linear-gradient(135deg, #e3dac2, #e3dac2 10px, #ded4b9 10px, #ded4b9 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  text-align: center;
  padding: 0.5rem;
  letter-spacing: 0.02em;
}

.chapter-card .card-body {
  padding: 1rem 1.1rem;
}

.chapter-card .num {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chapter-card h3 {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.chapter-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.status-tag {
  display: inline-block;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}
.status-tag.live { background: #e4efe1; color: #3a6b34; border: 1px solid #a9c8a1; }
.status-tag.coming-soon { background: #f0ece0; color: var(--ink-soft); border: 1px solid var(--rule); }

.fact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.fact-table th, .fact-table td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.fact-table th {
  width: 34%;
  color: var(--ink-soft);
  font-weight: normal;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chapter-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.9rem;
}

.chapter-nav a { text-decoration: none; }

.site-footer {
  background: var(--navy-dark);
  color: #c9c2ab;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  font-family: "Trebuchet MS", sans-serif;
}

.site-footer .watermark-note {
  margin-top: 0.5rem;
  color: #8a8368;
}

.breadcrumb {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.breadcrumb a { text-decoration: none; }
