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

html, body { height: 100%; }
html { scroll-behavior: smooth; }

:root {
  --bg-teal: #0b6f6f;
  --bg-teal-2: #0a9a9a;
  --glass: rgba(255, 255, 255, 0.08);
  --text: #e8f7f7;
  --muted: #d0e6e6;
  --red: #ff4b4b;
  --red-dark: #e03333;
  --cta: linear-gradient(135deg, #ff4b4b 0%, #e1183b 60%, #b4002b 100%);
  --shadow: 0 8px 18px rgba(0,0,0,.45);
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background-color: #003a3a; /* deep teal base for contrast with crosshatch */
  /* Teal crosshatch background */
  background-image:
    linear-gradient(45deg, rgba(0, 255, 200, 0.20) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 255, 200, 0.20) 25%, transparent 25%);
  background-size: 20px 20px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  padding: 0.75rem 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: sticky; top: 0; z-index: 10;
}
.brand {
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ff6b6b;
  text-shadow: 0 0 8px rgba(255, 107, 107, 0.9);
}

/* Hero (frosted glass) */
.hero {
  width: min(92vw, 1100px);
  margin: 2rem auto;
  padding: 1.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0 0 .5rem;
  color: #fffaf0;
  text-shadow: 0 0 12px rgba(255, 120, 120, 0.8);
}
.subhead {
  margin: 0 0 1rem;
  color: #ffe0e0;
  font-weight: 600;
  opacity: .95;
}
.hero-media { width: 100%; margin: 0 auto; }
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.cta {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  margin-top: 0.75rem;
  border-radius: 999px;
  font-weight: 900;
  color: #1a0b0b;
  background: var(--cta);
  text-decoration: none;
  letter-spacing: .02em;
  box-shadow: 0 8px 18px rgba(0,0,0,.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(0,0,0,.6); }
.cta:focus-visible { outline: 2px solid #6bd6ff; outline-offset: 2px; }

/* Footer with small advertisement */
.site-footer {
  padding: 1rem;
  text-align: center;
  color: #e5d8d8;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-ad a {
  color: #ff6b6b;
  font-weight: 800;
  text-decoration: none;
}
.gratitude { margin-top: .5rem; font-size: .95rem; }

/* Layout: grid for larger screens to emphasize centerpiece image */
@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-areas: "title media"
                         "subtitle media"
                         "cta media";
    gap: 1.75rem;
    text-align: left;
    align-items: center;
    padding: 2rem;
  }
  .hero h1 { grid-area: title; justify-self: start; }
  .subhead { grid-area: subtitle; justify-self: start; }
  .hero-media { grid-area: media; justify-self: center; align-self: center; width: 100%; max-width: 720px; }
  .cta { grid-area: cta; justify-self: start; }

/* Accessible focus for links in all layouts */
a:focus-visible { outline: 2px solid #6bd6ff; outline-offset: 2px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}