:root {
  --bg: #f9fafa;
  --fg: #202526;
  --accent: #c5cffe;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Instrument Sans", sans-serif;
  min-height: 100vh;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 32px 32px 64px;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  transition: gap 220ms ease, padding 220ms ease;
}

.site-name {
  margin: 0;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.72px;
  transition: font-size 220ms ease, line-height 220ms ease, letter-spacing 220ms ease;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 56px;
  transition: gap 220ms ease;
}

.intro h1 {
  margin: 0;
  max-width: 380px;
  font-family: "Instrument Serif", serif;
  font-size: 36px;
  line-height: 1.3;
  font-weight: 400;
  transition: max-width 220ms ease, font-size 220ms ease, line-height 220ms ease;
}

.about,
.outro {
  position: relative;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

.outro {
  gap: 24px;
}

.about p,
.outro p,
.pizza-callout__inner p {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  transition: font-size 220ms ease, line-height 220ms ease;
}

.about__intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pill-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list li {
  border-radius: 40px;
  padding: 4px 16px;
  background: var(--accent);
  font-family: "Instrument Serif", serif;
  font-size: 20px;
  line-height: 1.3;
  font-style: italic;
  white-space: nowrap;
  transition: font-size 220ms ease, line-height 220ms ease;
}

.pizza-callout {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  align-self: flex-start;
  border: 2px solid var(--fg);
  border-radius: 24px;
  background: var(--bg);
}

/* Page-colored wrap: hides border behind transparent pixels and along the corner. */
.pizza-callout__doodle-wrap {
  position: absolute;
  top: -35px;
  right: -12px;
  z-index: 2;
  background: var(--bg);
  pointer-events: none;
  line-height: 0;
  padding: 0 0 0 12px;
}

.pizza-callout__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 40px;
  text-align: center;
}

.pizza-callout__inner p {
  max-width: 100%;
}

.pizza-callout .pill-list {
  justify-content: center;
  width: 100%;
}

.pizza-callout__doodle {
  display: block;
  width: 68px;
  height: auto;
}

.doodle-bottom {
  width: 64px;
  height: auto;
}

.lunch-trigger {
  font: inherit;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.polaroid {
  position: absolute;
  left: calc(100% + 40px);
  bottom: 0;
  width: 337px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: rotate(10.76deg);
  transform-origin: center;
  z-index: 2;
  transition: opacity 260ms ease, visibility 0s linear 320ms;
}

.polaroid figure {
  margin: 0;
}

.polaroid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 4px 4px 16px 0 rgba(0, 0, 0, 0.08);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

@media (min-width: 781px) and (max-width: 1023px) {
  .page {
    gap: 80px;
    padding: 56px 56px 112px;
  }

  .content {
    gap: 80px;
  }

  .intro h1 {
    max-width: 480px;
    font-size: 44px;
    line-height: 1.3;
  }

  .about,
  .outro {
    max-width: 420px;
  }

  .polaroid {
    left: calc(100% + 44px);
    width: 300px;
  }

  .pizza-callout__doodle-wrap {
    top: -32px;
    right: -12px;
  }

  .pizza-callout__doodle {
    width: 72px;
  }
}

@media (min-width: 1024px) {
  .page {
    gap: 112px;
    padding: 72px 72px 144px;
  }

  .content {
    gap: 80px;
  }

  .site-name {
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.84px;
  }

  .intro h1 {
    max-width: 740px;
    font-size: 64px;
    padding-bottom: 32px;
  }

  .about,
  .outro {
    max-width: 620px;
  }

  .pizza-callout {
    max-width: 640px;
  }

  .about p,
  .outro p,
  .pizza-callout__inner p {
    font-size: 20px;
  }

  .pill-list li {
    font-size: 24px;
  }

  .polaroid {
    left: calc(100% + 52px);
    width: 333px;
  }

  .pizza-callout__doodle-wrap {
    top: -35px;
    right: -14px;
  }

  .pizza-callout__doodle {
    width: 78px;
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 781px) {
  .lunch-trigger {
    cursor: pointer;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
  }

  .outro:has(.lunch-trigger:hover) .polaroid {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s, 0s;
  }
}

@media (max-width: 780px) {
  .pizza-callout {
    max-width: 480px;
  }

  .pizza-callout__inner {
    padding: 40px 16px;
  }

  .pizza-callout__doodle-wrap {
    top: -28px;
    right: -8px;
  }

  .pizza-callout__doodle {
    width: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
