* {
  box-sizing: border-box;
}

:root {
  --blue: #1a1aff;
  --yellow: #ffe600;
  --red: #ff2400;
  --ink: #000;
  --paper: #fff8dc;
}

body {
  margin: 0;
  background: var(--paper);
  background-image: repeating-linear-gradient(45deg, var(--paper) 0 40px, #ffefad 40px 80px);
  color: var(--ink);
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 700;
}

header {
  background: var(--blue);
  border-bottom: 8px solid var(--ink);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1rem;
  border: 4px solid var(--ink);
  padding: 0.35rem 0.75rem;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  display: inline-block;
}

nav a:hover,
nav a:focus-visible {
  background: var(--red);
  color: var(--yellow);
}

main {
  max-width: 56rem;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}

h1 {
  text-transform: uppercase;
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  margin: 0 0 1.5rem;
  background: var(--red);
  color: var(--yellow);
  border: 8px solid var(--ink);
  padding: 0.5rem 1rem;
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-1deg);
  display: inline-block;
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  background: var(--ink);
  color: var(--yellow);
  border: 6px solid var(--blue);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.ticker-track {
  display: inline-block;
  padding: 0.75rem 0;
  animation: scroll 16s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-50%);
  }
}

.lede {
  width: 100%;
  max-width: 56rem;
  font-size: 1.225rem;
  line-height: 1.6;
}

.slab {
  background: var(--blue);
  color: #fff;
  border: 8px solid var(--ink);
  box-shadow: 14px 14px 0 var(--red);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0 2rem;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  line-height: 1.5;
  text-transform: uppercase;
}

.slab p {
  margin: 0 0 0.75rem;
}

.slab p:last-child {
  margin-bottom: 0;
}

.slab-small {
  font-size: 1.1rem;
  box-shadow: 10px 10px 0 var(--yellow);
}

.linklist {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.tile {
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.15rem;
  border: 6px solid var(--ink);
  padding: 1rem 1.25rem;
  color: var(--ink);
}

.tile-blue {
  background: var(--blue);
  color: #fff;
}

.tile-red {
  background: var(--red);
  color: var(--yellow);
}

.tile-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.tile:hover,
.tile:focus-visible {
  outline: 4px dashed var(--ink);
  outline-offset: 2px;
}

.stamp {
  display: inline-block;
  background: var(--yellow);
  border: 4px dashed var(--ink);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.guestbook {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.entry {
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--blue);
  padding: 1rem 1.25rem;
}

.entry-meta {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--red);
}

.entry p:last-child {
  margin-bottom: 0;
}

footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--red);
  color: var(--yellow);
  border-top: 8px solid var(--ink);
  font-size: 0.85rem;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}
