:root {
  --plum: #2b1135;
  --rasp: #e6246b;
  --lime: #b9e23a;
  --tang: #ff9a1f;
  --aqua: #27c1b0;
  --mist: #f2ecfa;
  --ink: #24112d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

h1, h2, h3, .brand, .foot-brand {
  font-family: Rockwell, "Roboto Slab", "Rockwell Nova", Georgia, serif;
  line-height: 1.12;
}

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

a {
  color: var(--rasp);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--tang);
  outline-offset: 3px;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 14px 5vw;
  background: var(--plum);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
}

.navlist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navlist a {
  color: #ffe9a8;
  text-decoration: none;
}

.navlist a:hover {
  text-decoration: underline;
}

.splash {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4vw;
  padding: 6vw 5vw;
  background: linear-gradient(120deg, var(--plum), #5b2a74);
  color: #fff;
}

.splash h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.splash p {
  max-width: 52ch;
  font-size: 1.15rem;
}

.splash-art {
  margin: 0;
  border: 6px solid #fff;
  border-radius: 48% 12% 48% 12%;
  overflow: hidden;
  transform: rotate(2deg);
}

.cta {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--plum);
  font-weight: 700;
  text-decoration: none;
}

.slab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5vw;
  padding: 6vw 5vw 2vw;
}

.slab.flip .frame {
  order: 2;
}

.frame {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--aqua);
}

.copy {
  max-width: 60ch;
}

.copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin: 0 0 14px;
}

.tiles {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  padding: 6vw 5vw;
}

.tile {
  padding: 16px;
  background: #fff;
  border-radius: 22px 22px 22px 4px;
}

.tile:nth-child(2) {
  background: #fff3c4;
}

.tile:nth-child(3) {
  background: #d4fff9;
}

.tile img {
  border-radius: 14px;
}

.tile h3 {
  margin: 14px 0 6px;
}

.lab {
  margin: 0 5vw 5vw;
  padding: 36px;
  border-radius: 28px;
  background: var(--plum);
  color: #fff;
}

.lab.alt {
  background: var(--rasp);
}

.lab h2 {
  margin: 0 0 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.chips button {
  padding: 10px 20px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.chips button[aria-current="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--plum);
  font-weight: 700;
}

.readout {
  max-width: 62ch;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
}

.readout h3 {
  margin: 0 0 6px;
}

.doc {
  max-width: 70ch;
  margin: 0 auto;
  padding: 6vw 5vw;
}

.stamp {
  color: #6b4a7a;
  font-style: italic;
}

.foot {
  padding: 40px 5vw 24px;
  background: var(--plum);
  color: #f2ecfa;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 28px;
}

.foot a {
  color: #ffe9a8;
}

.foot-brand {
  margin: 0;
  font-size: 1.4rem;
}

.stacked {
  flex-direction: column;
}

address {
  font-style: normal;
}

.fine {
  margin: 28px 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.note-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 20px;
  border: 3px solid var(--plum);
  border-radius: 18px;
  background: #fff3c4;
}

.note-bar p {
  margin: 0;
  flex: 1 1 280px;
}

.note-bar button {
  padding: 9px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 800px) {
  .splash,
  .slab,
  .tiles,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .slab.flip .frame {
    order: 0;
  }

  .lab {
    padding: 24px;
  }
}
