:root {
  color-scheme: light;
  background: #1ba11a url("assets/tile.png") repeat;
  color: #fff54f;
  font-family: "Comic Sans MS", "Comic Sans", "Trebuchet MS", cursive;
}

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

.archive {
  width: min(100%, 1005px);
  margin-inline: auto;
  padding: 20px clamp(12px, 2vw, 20px) 32px;
  text-align: center;
}

h1 {
  margin: 12px 0 0;
  font: bold clamp(46px, 11.1vw, 112px)/1.03 "Times New Roman", Times, serif;
  color: white;
}

.subtitle {
  margin: 6px 0 10px;
  font-size: clamp(20px, 4.2vw, 40px);
  line-height: 1.15;
}

img { display: block; max-width: 100%; height: auto; }
.hero { margin-inline: auto; }

.family-row, .memory-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(12px, 3.6vw, 36px);
  list-style: none;
  padding: 0;
  margin: 42px 0;
}

.family-row li { max-width: calc(50% - 9px); }
.memory-row { gap: clamp(20px, 17vw, 175px); margin-block: 34px; }
.memory-row li { max-width: calc(50% - 12px); }

.story {
  margin-inline: clamp(4px, 5vw, 50px);
  text-align: left;
  font-weight: bold;
  text-shadow: 0 1px 1px #115e0a;
  font-size: clamp(17px, 2.15vw, 21px);
  line-height: 1.29;
}

.story p { margin-block: 1em; }
.lead { font-size: clamp(19px, 2.55vw, 25px); }
.closing { color: #fff; }

.tribute { margin-block: 40px 25px; }
.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(7px, 2vw, 22px);
  margin-bottom: 18px;
}
.wordmark { max-width: min(78%, 520px); }
.bow { max-width: 9%; }

.retro-button {
  display: inline-block;
  color: #fff;
  background: #c32116;
  border: 3px outset #ffda3d;
  padding: 8px 20px;
  font-size: clamp(18px, 2.5vw, 25px);
  font-weight: bold;
}
.retro-button:hover { background: #a71911; }
.retro-button:focus-visible { outline: 3px dashed white; outline-offset: 5px; }

.counter {
  width: min(100%, 856px);
  margin: 34px auto 0;
  padding: 15px 8px 19px;
  background: #070907;
  color: #fff54f;
}
.counter-label { display: block; font-size: clamp(17px, 2.8vw, 25px); }
.counter-digits { display: inline-flex; gap: 5px; margin-top: 12px; }
.counter-digits span {
  padding: 8px 7px;
  background: white;
  color: black;
  font: bold 19px/1.2 "Courier New", monospace;
}

footer {
  color: #fff;
  text-shadow: 0 1px 1px #115e0a;
  font: 13px/1.5 Arial, sans-serif;
  margin-inline: auto;
  max-width: 680px;
}
footer p { margin-block: 6px; }
footer:focus { outline: 1px dashed #fff; outline-offset: 6px; }

@media (max-width: 520px) {
  .family-row, .memory-row { margin-block: 24px; gap: 12px; }
  .archive { padding-top: 14px; }
  .tribute { margin-top: 28px; }
}
