:root {
  --ink: #182235;
  --muted: #536071;
  --paper: #f7f4ee;
  --white: #fffdf9;
  --line: #d7d4cf;
  --bronco: #ee661d;
  --buckeye: #bb0d2b;
  --redwing: #c8102e;
  --shadow: 0 1.5rem 3rem rgb(24 34 53 / 9%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.55rem 0.8rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: min(100% - 2.5rem, 76rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  font-family: Arial, Helvetica, sans-serif;
}

.wordmark {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

nav { display: flex; gap: clamp(0.9rem, 3vw, 1.7rem); }

nav a {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover, nav a:focus-visible { color: var(--bronco); }

.hero {
  width: min(100% - 2.5rem, 76rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(15rem, 0.95fr);
  align-items: center;
  gap: clamp(2.75rem, 9vw, 8rem);
  margin: 0 auto;
  padding: clamp(4rem, 11vw, 8rem) 0 clamp(4rem, 9vw, 7rem);
}

.kicker, .section-label p, .card-number {
  margin: 0;
  color: var(--bronco);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 11ch;
  margin: 0.55rem 0 1.15rem;
  color: var(--ink);
  font-size: clamp(3.15rem, 8.2vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.062em;
  line-height: 0.91;
}

.dates {
  margin-bottom: 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.intro {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.portrait {
  position: relative;
  width: min(100%, 29rem);
  margin: 0;
  padding: 0.8rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.portrait::before, .portrait::after {
  position: absolute;
  width: 4.7rem;
  height: 0.4rem;
  content: "";
}

.portrait::before { top: -0.4rem; right: 1.5rem; background: var(--bronco); }
.portrait::after { bottom: -0.4rem; left: 1.5rem; background: var(--buckeye); }

.portrait img { display: block; width: 100%; height: auto; }

.portrait figcaption {
  padding-top: 0.6rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: right;
  text-transform: uppercase;
}

.team-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2vw, 1.35rem);
  min-height: 4.1rem;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: #f8f6f0;
  font-family: Arial, Helvetica, sans-serif;
}

.team-bar p {
  margin: 0;
  font-size: clamp(0.63rem, 1.5vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-bar span { width: 0.34rem; height: 0.34rem; background: var(--bronco); transform: rotate(45deg); }
.team-bar span:nth-of-type(2) { background: var(--buckeye); }

.section {
  width: min(100% - 2.5rem, 76rem);
  display: grid;
  grid-template-columns: minmax(11rem, 0.48fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  margin: 0 auto;
  padding: clamp(4.2rem, 9vw, 7.5rem) 0;
}

.section-label { align-self: start; }

.section-label h2, .download h2 {
  max-width: 11ch;
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.prose { max-width: 44rem; font-size: clamp(1.08rem, 1.65vw, 1.22rem); }
.prose p { margin-bottom: 1.35rem; }
.prose p:last-child { margin-bottom: 0; }
.prose .lead { color: var(--ink); font-size: clamp(1.25rem, 2.15vw, 1.55rem); line-height: 1.46; }

.grid-section { border-top: 1px solid var(--line); }

.memory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.memory-card {
  min-height: 16rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  background: var(--white);
  border-top: 0.28rem solid var(--ink);
  box-shadow: 0 0.7rem 1.5rem rgb(24 34 53 / 4%);
}

.work-card { border-color: var(--bronco); }
.music-card { border-color: var(--buckeye); }
.luck-card { border-color: var(--redwing); }

.memory-card h3 { margin: 1.9rem 0 0.55rem; font-size: 1.45rem; font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; }
.memory-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.6; }

.quote-band {
  padding: clamp(3.6rem, 8vw, 6.3rem) 1.25rem;
  background: #e8e1d5;
  border-top: 1px solid #d4c9b9;
  border-bottom: 1px solid #d4c9b9;
  text-align: center;
}

.quote-band p {
  max-width: 26ch;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-style: italic;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.obituary { border-bottom: 1px solid var(--line); }
.obituary-copy { font-size: clamp(1rem, 1.55vw, 1.16rem); }

.download {
  width: min(100% - 2.5rem, 76rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: clamp(3.5rem, 8vw, 6.5rem) auto;
  padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--ink);
  color: #f8f6f0;
}

.download .kicker { color: #9cb7d4; }
.download h2 { max-width: none; margin-bottom: 0.7rem; }
.download p:last-child { max-width: 30rem; margin: 0; color: #d4dce7; }

.download-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1rem 1.25rem;
  background: var(--bronco);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.download-link:hover, .download-link:focus-visible { background: #c64f12; }
.download-link span:last-child { font-size: 1.25rem; line-height: 0; }

.future-note { width: min(100% - 2.5rem, 42rem); margin: 0 auto; padding: 0 0 clamp(4rem, 9vw, 7rem); color: var(--muted); text-align: center; }
.future-note p { margin: 0; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem max(1.25rem, calc((100% - 76rem) / 2));
  background: #101d32;
  color: #becad8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p { margin: 0; }

@media (max-width: 44rem) {
  .site-header { align-items: flex-start; }
  nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 0.25rem; }
  .hero, .section { grid-template-columns: 1fr; }
  .hero { gap: 3rem; }
  .portrait { width: min(100%, 28rem); }
  .section { gap: 1.2rem; }
  .section-label h2 { max-width: none; }
  .download { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 31rem) {
  .site-header { width: min(100% - 1.5rem, 76rem); }
  nav { gap: 0.65rem; }
  nav a { font-size: 0.6rem; }
  .hero, .section, .download, .future-note { width: min(100% - 1.5rem, 76rem); }
  .memory-grid { grid-template-columns: 1fr; }
  .team-bar { gap: 0.45rem; }
  .team-bar p { font-size: 0.53rem; }
  .team-bar span { width: 0.24rem; height: 0.24rem; }
}

@media print {
  .site-header, .team-bar, .download, .future-note, .site-footer { display: none; }
  body { background: #fff; }
  .hero, .section { width: auto; padding: 1.25rem 0; }
  .hero { grid-template-columns: 1fr 0.7fr; gap: 2rem; }
  .memory-grid { gap: 0.5rem; }
  .memory-card { min-height: 0; box-shadow: none; }
  .quote-band { padding: 1.5rem; }
}
