:root {
  --paper: #fff;
  --ink: #181415;
  --peach: #fac8a6;
  --pink: #f3adc6;
  --lilac: #ddd0fb;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--hand);
}

.landing {
  --gutter: clamp(18px, 4vw, 66px);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(18px, 4vh, 42px) var(--gutter);
}

.masthead nav {
  display: flex;
  justify-content: center;
  gap: clamp(13px, 2vw, 26px);
}

.masthead a {
  display: grid;
  place-items: center;
  min-width: clamp(73px, 8vw, 108px);
  min-height: 46px;
  padding: .2em .8em .28em;
  border: 2px solid var(--ink);
  border-radius: 9px 8px 12px 7px / 8px 11px 9px 7px;
  background: var(--paper);
  box-shadow: 3px 4px 0 var(--ink);
  color: inherit;
  font: clamp(20px, 2.4vw, 28px) / 1 var(--hand);
  letter-spacing: .035em;
  text-decoration: none;
  transform: rotate(-3deg);
  transition: background-color .18s, box-shadow .18s, transform .18s;
}

.masthead a:nth-child(2) { transform: rotate(2deg); }
.masthead a:nth-child(3) { transform: rotate(-2deg); }
.masthead a:nth-child(1):hover { background: var(--peach); }
.masthead a:nth-child(2):hover { background: var(--pink); }
.masthead a:nth-child(3):hover { background: var(--lilac); }

.masthead a:hover,
.masthead a:focus-visible {
  box-shadow: 1px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.masthead a:focus-visible { outline: 3px solid #7956b2; outline-offset: 5px; }

.artboard {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("gamer-reference-16x9.png") center / contain no-repeat;
}

.mobile-comic { display: none; }

.margins {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  width: min(100%, 1280px);
  align-self: center;
  gap: clamp(14px, 3.2vw, 46px);
  font-size: clamp(16px, 1.65vw, 24px);
  line-height: 1.1;
}

.margins blockquote {
  max-width: 23ch;
  margin: 0;
  text-wrap: balance;
  transform: rotate(-3deg);
}

.margins blockquote:nth-child(even) {
  justify-self: end;
  text-align: right;
  transform: rotate(3deg);
}

.margins blockquote::after {
  display: block;
  width: 55%;
  height: .15em;
  margin-top: .25em;
  border-radius: 77% 25% 55% 31%;
  background: var(--peach);
  content: "";
}

.margins blockquote:nth-child(even)::after {
  margin-left: auto;
  background: var(--lilac);
}

@media (max-width: 640px) {
  .landing {
    gap: clamp(16px, 2.2svh, 24px);
    padding-block: clamp(16px, 2.8svh, 26px);
  }

  .artboard { display: none; }

  .mobile-comic {
    display: grid;
    justify-items: center;
    gap: clamp(9px, 1.5svh, 15px);
    margin-block: auto;
  }

  .mobile-comic img { display: block; height: auto; }

  .mobile-comic__dad { width: min(43vw, 184px, max(130px, 22svh)); }
  .mobile-comic__wordmark { width: min(96%, 420px); }
  .mobile-comic__son { width: min(87%, 350px, max(220px, 39svh)); }

  .margins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-height: 420px) and (orientation: landscape) {
  .artboard { inset-block: 8% 14%; }
}

@media (prefers-reduced-motion: reduce) {
  .masthead a { transition: none; }
}
