:root {
  --wcrw-red: #b22234;
  --wcrw-dark-red: #8a1b28;
  --wcrw-blue: #3c3b6e;
  --wcrw-light-blue: #e8eef5;
  --wcrw-white: #ffffff;
  --wcrw-cream: #f9f7f2;
  --wcrw-text: #1f1f1f;
  --wcrw-muted: #5a5a5a;
  --wcrw-border: #d4d4d4;
  --wcrw-shadow: rgba(0, 0, 0, 0.08);
  --font-headings: "Georgia", "Times New Roman", serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--wcrw-text);
  background-color: var(--wcrw-white);
  line-height: 1.65;
}

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

a {
  color: var(--wcrw-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--wcrw-red);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--wcrw-red);
  color: var(--wcrw-white);
  padding: 0.5rem 1rem;
  font-weight: 600;
  z-index: 300;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--wcrw-white);
  outline-offset: -2px;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--wcrw-blue) 0%, #2a2955 100%);
  color: var(--wcrw-white);
  padding: 1rem 0;
  border-bottom: 4px solid var(--wcrw-red);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--wcrw-white);
  background: var(--wcrw-white);
  object-fit: contain;
}

.site-branding {
  flex: 1;
}

.site-title {
  margin: 0;
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-title a {
  color: var(--wcrw-white);
}

.site-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Navigation */
.site-nav {
  background: var(--wcrw-white);
  border-bottom: 1px solid var(--wcrw-border);
  box-shadow: 0 2px 6px var(--wcrw-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-toggle {
  display: none;
  background: var(--wcrw-red);
  color: var(--wcrw-white);
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin: 0.5rem 0;
}

.nav-toggle:hover,
.nav-toggle:focus {
  background: var(--wcrw-dark-red);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  content: "✕ ";
}

.nav-toggle[aria-expanded="false"] .nav-toggle-icon::before {
  content: "☰ ";
}

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

.nav-list a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--wcrw-text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.nav-list a:hover,
.nav-list a:focus,
.nav-list a.active {
  background: var(--wcrw-red);
  color: var(--wcrw-white);
  text-decoration: none;
}

/* Main heading */
.page-heading {
  background: var(--wcrw-cream);
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--wcrw-border);
}

.page-heading h1 {
  margin: 0;
  font-family: var(--font-headings);
  font-size: 2.5rem;
  color: var(--wcrw-blue);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section:nth-child(even) {
  background: var(--wcrw-cream);
}

.section-title {
  font-family: var(--font-headings);
  font-size: 2rem;
  color: var(--wcrw-red);
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--wcrw-blue);
  display: inline-block;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery figure {
  margin: 0;
  background: var(--wcrw-white);
  border: 1px solid var(--wcrw-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 8px var(--wcrw-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--wcrw-muted);
  background: var(--wcrw-white);
  text-align: center;
  border-top: 1px solid var(--wcrw-border);
}

/* Letter */
.letter {
  background: var(--wcrw-white);
  border-left: 6px solid var(--wcrw-red);
  padding: 2rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 3px 12px var(--wcrw-shadow);
  max-width: 800px;
}

.letter p {
  margin: 0 0 1rem;
}

.letter .salutation {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  color: var(--wcrw-blue);
  margin-bottom: 1rem;
}

.signature {
  margin-top: 2rem;
  font-style: italic;
  color: var(--wcrw-muted);
}

.signature strong {
  display: block;
  color: var(--wcrw-text);
  font-style: normal;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: var(--wcrw-blue);
  color: var(--wcrw-white);
  padding: 2.5rem 0 1.5rem;
  border-top: 4px solid var(--wcrw-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: #fff8c9;
}

.footer-col p,
.footer-col a {
  color: var(--wcrw-white);
}

.footer-col a:hover,
.footer-col a:focus {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--wcrw-white);
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--wcrw-red);
  color: var(--wcrw-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 200;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--wcrw-dark-red);
}

/* Responsive */
@media (max-width: 640px) {
  .site-logo img {
    width: 60px;
    height: 60px;
  }

  .site-title {
    font-size: 1.35rem;
  }

  .site-tagline {
    font-size: 0.85rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.25rem 0 0.75rem;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--wcrw-border);
    border-radius: 0;
    font-size: 0.95rem;
  }

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

  .page-heading h1 {
    font-size: 1.85rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .letter {
    padding: 1.25rem;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

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