/* Brian Moon Classic, memorial site. Mobile-first. No JS. */

:root {
  --red: #AA0909;
  --brown: #571600;
  --grey: #F0F0F0;
  --white: #ffffff;
  --ink: #1f1a17;
  --muted: #5c554f;
  --heading: "Mukta", "Segoe UI", Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
  --narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); text-align: center; margin-bottom: 1.25rem; }
h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--red);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }
a { color: var(--red); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.lead { font-size: 1.15rem; }

.skip-link {
  position: absolute; left: 0; top: -100px;
  background: var(--brown); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  background: #000;
  color: #fff;
  border-bottom: 4px solid var(--red);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand-name { font-family: var(--heading); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.04em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: var(--red); }

/* Hero */
.hero {
  background: var(--brown) radial-gradient(ellipse at 20% 0%, #7a2a0c 0%, var(--brown) 55%, #3d0f00 100%);
  color: #fff;
}
.hero-grid { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; align-items: center; }
.hero-content { text-align: center; }
.kicker { font-family: var(--heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.9rem; margin-bottom: 0.5rem; color: #f5d9c7; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 8vw, 4.6rem); margin-bottom: 0.4rem; }
.hero-place { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.25rem; }
.hero-years { font-size: 1.05rem; color: #f5d9c7; margin-bottom: 1.75rem; }
.hero-figure { margin: 0; max-width: 460px; width: 100%; justify-self: center; }
.hero-figure img { border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,0.45); }
.hero-figure figcaption { text-align: center; font-size: 0.9rem; color: #f5d9c7; margin-top: 0.6rem; }
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.85rem 1.75rem; border-radius: 4px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: #8d0707; transform: translateY(-1px); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-light { background: var(--white); }
.section-grey { background: var(--grey); }

/* Obituary */
.obit { display: grid; gap: 1.75rem; margin-top: 1.5rem; }
.portrait { margin: 0; max-width: 340px; justify-self: center; }
.portrait img { border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.portrait figcaption { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
.obit-text p { margin-bottom: 1.1rem; }

.gallery {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
.gallery li { margin: 0; overflow: hidden; border-radius: 6px; background: var(--grey); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery img.focus-top { object-position: 50% 12%; }

/* Eulogy */
.eulogy-text { margin-top: 1.5rem; }
.eulogy-text p { margin-bottom: 1.1rem; }
.eulogy-text p:first-child { font-size: 1.15rem; }
.eulogy-text p:last-child { margin-bottom: 0; }
.text-link { font-weight: 600; }

/* Tournament */
#tournament .lead, #tournament .narrow { text-align: center; }
.tournament-photo { margin: 2rem auto 0; max-width: 900px; }
.tournament-photo img { border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* Champions */
.trophy-photo { margin: 1.5rem auto 0; max-width: 520px; }
.trophy-photo img { border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.champs { display: grid; gap: 1.5rem; margin-top: 2rem; }
.champ-card {
  background: var(--white); border-radius: 8px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08); border-top: 5px solid var(--red);
}
.champ-card img { width: 100%; }
.champ-body, .champ-card-text { padding: 1.5rem; text-align: center; }
.champ-card-text { display: flex; flex-direction: column; justify-content: center; }
.champ-year { font-family: var(--heading); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--red); margin-bottom: 0.25rem; }
.champ-card h3 { font-size: 1.1rem; color: var(--muted); letter-spacing: 0.08em; }
.champ-name { font-family: var(--heading); font-weight: 700; font-size: 1.6rem; color: var(--brown); margin: 0; }

/* Sponsors */
.sponsors {
  list-style: none; margin: 2rem auto 0; padding: 0; max-width: 900px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: center;
}
.sponsors li { margin: 0; }
.sponsors a { display: block; padding: 0.75rem; border-radius: 8px; transition: background 0.15s ease; }
.sponsors a:hover, .sponsors a:focus-visible { background: var(--grey); }
.sponsors img { width: 100%; max-width: 220px; margin: 0 auto; }

/* Quote */
.quote { background: var(--brown); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--heading); font-weight: 500; font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.35; margin: 0; }

/* Footer */
.site-footer { background: #1a0a03; color: #d8cbc3; font-size: 0.9rem; padding: 1.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: #fff; }

/* Tablet and up */
@media (min-width: 700px) {
  .brand img { width: 72px; height: 72px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
  .hero-content { text-align: left; }
  .obit { grid-template-columns: 300px 1fr; align-items: start; }
  .portrait { justify-self: start; position: sticky; top: 1rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .champs { grid-template-columns: 1fr 2fr; align-items: start; }
  .champ-card-text { padding: 3rem 1.5rem; }
}

/* Desktop */
@media (min-width: 1000px) {
  .brand img { width: 88px; height: 88px; }
  .gallery { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
