/* Terry Franks Memorial Website - Clean Vintage Styles */

/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --color-bg: #F8F3EB;
  --color-paper: #FFFEF8;
  --color-text: #2C2416;
  --color-text-light: #5C4A32;
  --color-accent: #8B6914;
  --color-accent-dark: #6B4F0F;
  --color-border: #D4C4A8;
  --color-shadow: rgba(44, 36, 22, 0.1);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

@media (min-width: 768px) {
  html {
    font-size: 20px;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Header and Navigation */
.site-header {
  background-color: var(--color-paper);
  border-bottom: 2px solid var(--color-border);
  padding: 1rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.nav-list a:hover,
.nav-list a:focus {
  background-color: var(--color-accent);
  color: white;
  outline: none;
}

@media (min-width: 768px) {
  .nav-list a {
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
  }
}

/* Main content */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background-color: var(--color-paper);
  min-height: calc(100vh - 200px);
}

@media (min-width: 768px) {
  .content {
    padding: 3rem 2rem;
    margin: 2rem auto;
    box-shadow: 0 4px 20px var(--color-shadow);
  }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-text);
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  text-align: center;
  color: var(--color-text-light);
  margin-top: 0;
  margin-bottom: 2rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

a:hover,
a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Hero section */
.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-images {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.hero-img {
  max-width: 200px;
  height: auto;
  border: 4px solid var(--color-paper);
  box-shadow: 0 4px 12px var(--color-shadow);
}

@media (min-width: 768px) {
  .hero-img {
    max-width: 250px;
  }
}

/* Era cards on homepage */
.era-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .era-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.era-card {
  background-color: var(--color-bg);
  padding: 1.5rem;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
}

.era-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.era-card .years {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.era-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

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

figure img {
  max-width: 100%;
  height: auto;
  border: 4px solid var(--color-paper);
  box-shadow: 0 4px 12px var(--color-shadow);
}

figcaption {
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.image-row figure {
  margin: 0;
}

/* Pull quotes / highlights */
.highlight {
  background-color: var(--color-bg);
  padding: 1.5rem;
  border-left: 4px solid var(--color-accent);
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Call to action */
.cta {
  background-color: var(--color-accent);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 3rem;
}

.cta p {
  margin: 0;
}

.cta a {
  color: white;
  font-weight: bold;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--color-paper);
  border-top: 2px solid var(--color-border);
  color: var(--color-text-light);
}

.site-footer p {
  margin: 0.5rem 0;
}

.site-footer a {
  color: var(--color-accent-dark);
}

/* Memorial page specific */
.memorial-header {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.memorial-header h1 {
  margin-bottom: 0.25rem;
}

.memorial-header .dates {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-text-light);
}

.memorial-content {
  max-width: 600px;
  margin: 0 auto;
}

.memorial-quote {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* About page */
.timeline {
  margin: 2rem 0;
}

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

.timeline-year {
  font-family: var(--font-serif);
  font-weight: bold;
  color: var(--color-accent-dark);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 2rem;
}

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

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  .content {
    box-shadow: none;
    margin: 0;
    max-width: none;
    padding: 1rem;
  }
}