@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Kalam:wght@400;700&display=swap");
:root {
  --paper: #f3eddd;
  --ink: #1d211f;
  --blue: #215671;
  --yellow: #f7c544;
  --red: #dc4937;
  --line: 3px solid var(--ink);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.045' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
a {
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--red);
  outline-offset: 5px;
}
.skip {
  position: fixed;
  top: -70px;
  left: 16px;
  padding: 14px;
  background: var(--yellow);
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.masthead {
  max-width: 1440px;
  margin: auto;
  min-height: 103px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4.5%;
  gap: 24px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  font:
    800 19px/1.1 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: 0.04em;
}
.brand small {
  display: block;
  font: 10px Arial;
  letter-spacing: 0.23em;
  margin-top: 7px;
}
.brand-number {
  font:
    900 42px/1 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: -0.06em;
  border: var(--line);
  padding: 4px 8px;
  background: var(--yellow);
  box-shadow: 3px 3px var(--ink);
}
nav {
  display: flex;
  gap: 31px;
}
nav a {
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 12px 0;
}
nav a:hover {
  border-color: var(--ink);
}
.edition {
  font: 700 12px Arial;
  letter-spacing: 0.12em;
}
.edition b {
  color: var(--red);
  padding-left: 12px;
  font-size: 23px;
}
.cover {
  max-width: 1310px;
  margin: 8px auto 0;
  border: var(--line);
  box-shadow: 7px 7px var(--ink);
}
.cover-top,
.cover-bottom {
  display: flex;
  justify-content: space-between;
  padding: 12px 22px;
  font: 700 12px Arial;
  letter-spacing: 0.12em;
}
.cover-top {
  border-bottom: var(--line);
}
.cover-layout {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 665px;
}
.cover-copy {
  background: var(--blue);
  color: var(--paper);
  padding: 36px 48px 32px;
  position: relative;
  background-image: radial-gradient(#102f424d 1.2px, transparent 1.2px);
  background-size: 6px 6px;
  border-right: var(--line);
}
.issue-tag {
  font: 700 11px Arial;
  letter-spacing: 0.1em;
}
.issue-tag span {
  color: var(--yellow);
  padding: 0 9px;
}
h1 {
  font:
    900 clamp(82px, 8.5vw, 122px)/0.86 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: -0.025em;
  margin: 29px 0 22px;
  transform: rotate(-3deg);
  text-shadow: 3px 3px var(--ink);
}
h1 span {
  color: var(--yellow);
}
.cover-copy p {
  font-size: 16px;
  line-height: 1.55;
  margin: 28px 0 25px;
}
.comic-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: var(--line);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 4px 4px var(--ink);
  font:
    800 18px "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: 0.04em;
  padding: 15px 20px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.comic-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px var(--ink);
}
.comic-button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px var(--ink);
}
.comic-button span {
  font-size: 23px;
}
.handwritten {
  font:
    400 21px/1.3 Kalam,
    cursive;
}
.cover-note {
  display: block;
  margin: 24px 0 0 10px;
  transform: rotate(-4deg);
  font-size: 18px;
}
.cover-photo {
  position: relative;
  min-width: 0;
  background: #97abb0;
}
.cover-photo > img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: 50% 44%;
}
.photo-caption {
  position: absolute;
  top: 25px;
  left: 25px;
  background: var(--paper);
  border: var(--line);
  font:
    800 16px "Barlow Condensed",
    Impact,
    sans-serif;
  padding: 10px 15px;
  transform: rotate(2deg);
}
.age-burst {
  position: absolute;
  bottom: 8px;
  left: -75px;
  width: 290px;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-9deg);
  filter: drop-shadow(5px 6px 0 var(--ink));
  isolation: isolate;
}
.age-burst:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  clip-path: polygon(
    50% 0,
    59% 20%,
    77% 5%,
    78% 29%,
    100% 22%,
    88% 44%,
    100% 57%,
    81% 65%,
    88% 91%,
    64% 81%,
    50% 100%,
    41% 82%,
    16% 96%,
    21% 70%,
    0 71%,
    13% 49%,
    0 28%,
    28% 30%,
    27% 7%,
    44% 21%
  );
  z-index: -1;
}
.age-burst > span {
  font:
    900 158px/0.95 "Barlow Condensed",
    Impact,
    sans-serif;
  color: var(--yellow);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 5px 4px var(--ink);
}
.age-burst small {
  font:
    800 17px "Barlow Condensed",
    Impact,
    sans-serif;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 4px 10px;
}
.cover-bottom {
  border-top: var(--line);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.cover-bottom b {
  padding-left: 20px;
}
.between {
  max-width: 1170px;
  margin: 39px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 700 11px Arial;
  letter-spacing: 0.12em;
  gap: 10px;
}
.between span:nth-child(even) {
  color: var(--red);
  font-size: 20px;
}
.section {
  max-width: 1190px;
  margin: 0 auto;
  padding: 103px 0 78px;
}
.chapter-heading {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 37px;
}
.chapter-tag {
  align-self: stretch;
  min-width: 88px;
  background: var(--blue);
  color: var(--paper);
  border: var(--line);
  font:
    700 14px "Barlow Condensed",
    Impact,
    sans-serif;
  text-align: center;
  padding: 10px;
  transform: rotate(-3deg);
  box-shadow: 3px 3px var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chapter-tag b {
  font-size: 58px;
  line-height: 1;
}
.chapter-tag.yellow {
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(3deg);
}
.chapter-tag.red {
  background: var(--red);
  color: var(--ink);
}
.eyebrow {
  font: 700 11px Arial;
  letter-spacing: 0.14em;
}
h2 {
  font:
    800 49px/0.98 "Barlow Condensed",
    Impact,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin: 10px 0 0;
}
h2 em {
  font-style: normal;
  color: var(--blue);
}
.page-number {
  margin-left: auto;
  align-self: flex-end;
  font: 700 12px Arial;
  white-space: nowrap;
  padding-bottom: 5px;
}
.story-panels {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 25px;
}
.panel {
  position: relative;
  margin: 0;
  border: var(--line);
  background: var(--paper);
  padding: 8px;
  box-shadow: 5px 5px var(--ink);
  min-width: 0;
}
.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-open {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: zoom-in;
  background: none;
  overflow: hidden;
}
.photo-open img {
  transition: transform 0.4s;
}
.photo-open:hover img {
  transform: scale(1.035);
}
.panel figcaption {
  position: absolute;
  bottom: 25px;
  left: 22px;
  border: var(--line);
  background: var(--paper);
  padding: 10px 14px;
  font:
    700 18px "Barlow Condensed",
    Impact,
    sans-serif;
  transform: rotate(-2deg);
  max-width: calc(100% - 44px);
  pointer-events: none;
}
.old-photo {
  height: 670px;
  transform: rotate(-1.5deg);
}
.old-photo img {
  object-position: 50% 45%;
}
.story-right {
  display: grid;
  grid-template-rows: 225px 1fr;
  gap: 25px;
}
.story-caption {
  padding: 24px 35px;
  position: relative;
}
.story-caption p {
  font:
    400 28px/1.2 Kalam,
    cursive;
  margin: 18px 0;
}
.story-caption strong {
  font-weight: 700;
}
.drawn-arrow {
  position: absolute;
  right: 50px;
  bottom: 10px;
  font: 80px Kalam;
  transform: rotate(-20deg);
  color: var(--red);
}
.growing-photo {
  transform: rotate(2deg);
}
.growing-photo img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-position: 50% 30%;
}
.story-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 35px 0 0;
  font-size: 15px;
}
.story-foot .handwritten {
  transform: rotate(-3deg);
  color: var(--blue);
}
.album {
  max-width: none;
  padding: 66px max(calc((100vw - 1190px) / 2), 35px) 60px;
  background: var(--blue);
  color: var(--paper);
  border-top: var(--line);
  border-bottom: var(--line);
  background-image: radial-gradient(#0e344966 1px, transparent 1px);
  background-size: 6px 6px;
}
.album h2 em {
  color: var(--yellow);
}
.album-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1fr;
  grid-template-rows: 310px 320px;
  gap: 23px;
}
.album-grid .panel {
  color: var(--ink);
}
.album-family {
  grid-row: span 2;
  transform: rotate(-2deg);
}
.album-family img {
  object-position: 50% 35%;
}
.album-hat {
  transform: rotate(2deg);
  z-index: 2;
}
.album-hat img {
  object-position: 50% 28%;
}
.album-couple {
  transform: rotate(-1deg);
}
.album-couple img {
  object-position: 50% 35%;
}
.album-son {
  transform: rotate(-1deg);
}
.album-son img {
  object-position: 50% 37%;
}
.album-strength {
  transform: rotate(2deg);
}
.album-strength img {
  object-position: 55% 48%;
}
.album .panel figcaption {
  font-size: 15px;
  bottom: 18px;
  left: 12px;
  padding: 7px 10px;
  max-width: calc(100% - 24px);
}
.mini-burst {
  position: absolute;
  top: -30px;
  right: -23px;
  width: 110px;
  height: 96px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  clip-path: polygon(
    49% 0,
    59% 18%,
    82% 5%,
    80% 27%,
    100% 30%,
    87% 49%,
    100% 69%,
    73% 70%,
    75% 95%,
    52% 83%,
    36% 100%,
    28% 78%,
    2% 81%,
    14% 58%,
    0 42%,
    23% 34%,
    17% 11%,
    39% 20%
  );
  font:
    900 italic 31px "Barlow Condensed",
    Impact,
    sans-serif;
  transform: rotate(10deg);
  pointer-events: none;
}
.mini-burst.red {
  background: var(--red);
  right: -18px;
  top: 13px;
  transform: rotate(12deg);
}
.album-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 35px;
}
.album-footer > span:last-child {
  font: 700 10px Arial;
  letter-spacing: 0.1em;
}
.message-layout {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 55px;
  align-items: center;
}
.message-photo {
  height: 570px;
  transform: rotate(-2deg);
}
.message-photo img {
  object-position: 40% 50%;
}
.message-stack {
  display: grid;
  gap: 18px;
}
.message {
  border: var(--line);
  box-shadow: 4px 4px var(--ink);
  position: relative;
  background: #faf5e8;
  transform: rotate(0.5deg);
}
.message:nth-child(even) {
  transform: rotate(-1deg);
}
.message:after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -12px;
  width: 17px;
  height: 17px;
  background: #faf5e8;
  border-bottom: var(--line);
  border-right: var(--line);
  transform: skewY(-25deg);
}
.message summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  min-height: 78px;
}
.message summary::-webkit-details-marker {
  display: none;
}
.message-number {
  font:
    800 29px "Barlow Condensed",
    Impact,
    sans-serif;
  color: var(--red);
}
.message summary strong {
  font:
    700 21px "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: 0.04em;
}
.message summary .plus {
  margin-left: auto;
  font-size: 25px;
}
.message[open] .plus {
  transform: rotate(45deg);
}
.message p {
  margin: 0;
  padding: 0 25px 24px 69px;
  font-size: 16px;
  line-height: 1.6;
}
.message[open] {
  background: var(--yellow);
}
.message[open]:after {
  background: var(--yellow);
}
.message[open] p {
  animation: caption-in 0.25s ease-out;
}
.finale {
  position: relative;
  overflow: hidden;
  border-top: var(--line);
  border-bottom: var(--line);
  text-align: center;
  padding: 70px 25px 55px;
  background: var(--yellow);
  background-image: radial-gradient(#bc811333 1.3px, transparent 1.3px);
  background-size: 7px 7px;
}
.finale-type {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 38px;
  margin: 22px auto 0;
  position: relative;
  width: fit-content;
}
.birthday-age {
  font:
    900 270px/0.95 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: -0.06em;
  color: var(--paper);
  -webkit-text-stroke: 4px var(--ink);
  text-shadow:
    8px 7px var(--red),
    11px 10px var(--ink);
  transform: rotate(-8deg);
}
.finale h2 {
  text-align: left;
  font-size: 73px;
  line-height: 0.92;
  transform: rotate(-4deg);
}
.finale h2 em {
  color: var(--red);
}
.finale-star {
  font-size: 72px;
  position: absolute;
  right: -85px;
  top: 20px;
  transform: rotate(14deg);
  color: var(--red);
  -webkit-text-stroke: 2px var(--ink);
}
.finale > p {
  font-size: 16px;
  line-height: 1.7;
  margin: 28px 0 24px;
}
.celebrate {
  background: var(--paper);
}
.signoff {
  display: block;
  margin-top: 31px;
  transform: rotate(-3deg);
}
.birthday-impact {
  position: absolute;
  right: 8%;
  bottom: 80px;
  font:
    900 italic 48px "Barlow Condensed",
    Impact,
    sans-serif;
  color: var(--paper);
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 3px 3px var(--red);
  pointer-events: none;
  transform: rotate(-12deg);
}
.birthday-impact.pop {
  animation: impact 0.6s both;
}
footer {
  padding: 30px 4.5%;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font: 700 11px Arial;
  letter-spacing: 0.05em;
}
footer a {
  text-decoration: none;
}
footer a span {
  padding-left: 15px;
  color: #62645b;
}
footer b {
  color: var(--red);
}
dialog {
  padding: 20px 20px 0;
  border: var(--line);
  background: var(--paper);
  max-width: min(94vw, 1050px);
  max-height: 94dvh;
  overflow: auto;
  box-shadow: 8px 8px var(--ink);
}
dialog::backdrop {
  background: #101c23e8;
}
dialog img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 76dvh;
  margin: auto;
  object-fit: contain;
}
dialog p {
  font:
    400 21px Kalam,
    cursive;
  text-align: center;
  margin: 16px 10px;
}
.close-dialog {
  position: absolute;
  top: 10px;
  right: 10px;
  border: var(--line);
  background: var(--yellow);
  font-size: 27px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1;
}
.panel.revealed {
  animation: panel-in 0.6s both;
}
@keyframes panel-in {
  from {
    opacity: 0.55;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes caption-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes impact {
  0% {
    scale: 0.3;
    opacity: 0;
  }
  55% {
    scale: 1.15;
    opacity: 1;
  }
  100% {
    scale: 1;
    opacity: 1;
  }
}
@media (min-width: 1500px) {
  .album {
    padding-left: calc((100% - 1190px) / 2);
    padding-right: calc((100% - 1190px) / 2);
  }
}
@media (max-width: 1350px) {
  .cover {
    margin-left: 30px;
    margin-right: 37px;
  }
  .section:not(.album) {
    margin-left: 50px;
    margin-right: 50px;
  }
  .between {
    margin-left: 55px;
    margin-right: 55px;
  }
  .cover-layout {
    min-height: 640px;
  }
  .cover-copy {
    padding-left: 35px;
    padding-right: 25px;
  }
  .cover-note {
    font-size: 16px;
  }
}
@media (max-width: 950px) {
  .edition {
    display: none;
  }
  .cover-layout {
    grid-template-columns: 48% 52%;
    min-height: 590px;
  }
  .cover-copy {
    padding: 28px;
  }
  h1 {
    font-size: 91px;
  }
  .age-burst {
    width: 215px;
    height: 220px;
    left: -45px;
  }
  .age-burst > span {
    font-size: 125px;
  }
  .age-burst small {
    font-size: 14px;
  }
  .cover-top {
    font-size: 10px;
  }
  .photo-caption {
    font-size: 13px;
    left: 15px;
    top: 18px;
    padding: 8px;
  }
  .cover-note {
    font-size: 15px;
  }
  .section:not(.album) {
    margin-left: 35px;
    margin-right: 35px;
  }
  .section {
    padding-top: 70px;
    padding-bottom: 65px;
  }
  h2 {
    font-size: 42px;
  }
  .old-photo {
    height: 590px;
  }
  .story-right {
    grid-template-rows: 210px 1fr;
  }
  .story-caption {
    padding: 15px;
  }
  .story-caption p {
    font-size: 24px;
  }
  .drawn-arrow {
    right: 12px;
  }
  .album-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 330px 310px 300px;
  }
  .album-family {
    grid-row: span 2;
  }
  .album-strength {
    grid-column: span 2;
  }
  .album-strength img {
    object-position: 50% 49%;
  }
  .message-layout {
    gap: 28px;
    grid-template-columns: 42% 1fr;
  }
  .message-photo {
    height: 480px;
  }
  .message summary {
    padding: 16px;
    gap: 12px;
  }
  .message summary strong {
    font-size: 19px;
  }
  .message p {
    padding-left: 25px;
  }
  .album-footer > span:last-child {
    max-width: 180px;
    line-height: 1.5;
  }
  .between {
    font-size: 9px;
  }
  .birthday-age {
    font-size: 235px;
  }
  .finale h2 {
    font-size: 62px;
  }
}
@media (max-width: 600px) {
  .masthead {
    padding: 15px 20px;
    min-height: 83px;
    gap: 14px;
  }
  .brand {
    font-size: 15px;
    gap: 9px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand-number {
    font-size: 32px;
  }
  nav {
    gap: 15px;
  }
  nav a {
    font-size: 12px;
  }
  nav a:nth-child(2) {
    display: none;
  }
  .cover {
    margin: 2px 17px 0 12px;
    box-shadow: 5px 5px var(--ink);
  }
  .cover-top {
    padding: 10px;
    font-size: 8px;
    letter-spacing: 0.06em;
  }
  .cover-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .cover-copy {
    padding: 24px 24px 27px;
    border-right: 0;
    border-bottom: var(--line);
    z-index: 1;
  }
  .issue-tag {
    font-size: 9px;
  }
  h1 {
    font-size: 95px;
    margin: 23px 0 20px;
    line-height: 0.84;
  }
  h1 br:nth-of-type(2) {
    display: none;
  }
  h1 span {
    display: block;
  }
  .cover-copy p {
    font-size: 14px;
    line-height: 1.5;
    margin: 23px 0 19px;
  }
  .cover-note {
    position: absolute;
    right: 20px;
    bottom: 29px;
    font-size: 13px;
    max-width: 90px;
    transform: rotate(-8deg);
  }
  .comic-button {
    font-size: 16px;
    gap: 14px;
    padding: 12px 15px;
  }
  .cover-photo {
    height: 410px;
  }
  .cover-photo > img {
    object-position: 50% 43%;
  }
  .age-burst {
    left: auto;
    right: -5px;
    bottom: 0;
    width: 200px;
    height: 200px;
  }
  .age-burst > span {
    font-size: 117px;
  }
  .photo-caption {
    top: 15px;
    left: 13px;
  }
  .cover-bottom {
    font-size: 12px;
    padding: 10px;
    letter-spacing: 0.01em;
  }
  .cover-bottom b {
    display: none;
  }
  .between {
    margin: 29px 20px 0;
    font-size: 8px;
    line-height: 1.5;
    letter-spacing: 0.04em;
  }
  .between span:last-child,
  .between span:nth-child(4) {
    display: none;
  }
  .section:not(.album) {
    margin: 0 22px;
  }
  .section {
    padding: 58px 0 48px;
  }
  .chapter-heading {
    gap: 16px;
    margin-bottom: 29px;
  }
  .chapter-tag {
    min-width: 63px;
    font-size: 12px;
    padding: 8px;
  }
  .chapter-tag b {
    font-size: 44px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.09em;
  }
  h2 {
    font-size: 34px;
    margin-top: 8px;
  }
  .page-number {
    display: none;
  }
  .story-panels {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .old-photo {
    height: 465px;
  }
  .story-right {
    grid-template-rows: auto 370px;
    gap: 19px;
  }
  .story-caption {
    padding: 14px 23px;
  }
  .story-caption p {
    font-size: 24px;
    margin: 14px 0;
  }
  .drawn-arrow {
    right: 35px;
    bottom: 0;
  }
  .panel figcaption {
    font-size: 16px;
    padding: 8px 11px;
    left: 16px;
    bottom: 21px;
  }
  .story-foot {
    display: block;
    font-size: 14px;
    line-height: 1.5;
  }
  .story-foot .handwritten {
    display: block;
    margin-top: 12px;
    text-align: right;
    font-size: 18px;
  }
  .album {
    padding: 49px 22px 38px;
  }
  .album-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 440px 280px 310px;
    gap: 17px;
  }
  .album-family {
    grid-row: auto;
    grid-column: span 2;
  }
  .album-family img {
    object-position: 50% 37%;
  }
  .album-hat,
  .album-couple {
    min-width: 0;
  }
  .album-son {
    grid-column: auto;
  }
  .album-strength {
    grid-column: auto;
  }
  .album .panel {
    padding: 5px;
  }
  .album .panel figcaption {
    font-size: 12px;
    padding: 6px;
    left: 7px;
    max-width: calc(100% - 14px);
    bottom: 13px;
  }
  .album-son img {
    object-position: 52% 40%;
  }
  .album-strength img {
    object-position: 53% 48%;
  }
  .mini-burst {
    width: 86px;
    height: 79px;
    font-size: 25px;
    right: -13px;
    top: -25px;
  }
  .mini-burst.red {
    right: -12px;
    top: -18px;
  }
  .album-footer {
    display: block;
  }
  .album-footer .handwritten {
    font-size: 18px;
  }
  .album-footer > span:last-child {
    display: block;
    max-width: none;
    margin-top: 17px;
    font-size: 9px;
  }
  .message-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .message-photo {
    height: 340px;
  }
  .message-photo img {
    object-position: 50% 40%;
  }
  .message summary {
    padding: 17px 20px;
  }
  .message summary strong {
    font-size: 20px;
  }
  .message p {
    padding: 0 24px 24px;
    font-size: 15px;
  }
  .message-stack {
    gap: 21px;
  }
  .finale {
    padding: 49px 20px 40px;
  }
  .finale-type {
    gap: 20px;
    margin-top: 28px;
  }
  .birthday-age {
    font-size: 152px;
    -webkit-text-stroke: 3px var(--ink);
    text-shadow:
      5px 4px var(--red),
      7px 6px var(--ink);
  }
  .finale h2 {
    font-size: 43px;
  }
  .finale-star {
    font-size: 31px;
    right: 1px;
    top: -27px;
  }
  .finale > p {
    font-size: 14px;
  }
  .signoff {
    font-size: 20px;
  }
  .birthday-impact {
    font-size: 33px;
    left: 50%;
    right: auto;
    bottom: 97px;
    background: var(--red);
    padding: 7px;
    max-width: calc(100% - 40px);
    text-align: center;
    transform: translateX(-50%) rotate(-12deg);
  }
  .finale:has(.birthday-impact.pop) .celebrate {
    visibility: hidden;
  }
  footer {
    padding: 25px 20px;
    flex-wrap: wrap;
    font-size: 9px;
    gap: 23px;
  }
  footer a span {
    padding-left: 8px;
  }
  footer > span:last-child {
    width: 100%;
    text-align: center;
  }
  dialog {
    padding: 10px 10px 0;
  }
  dialog p {
    font-size: 18px;
  }
  .close-dialog {
    top: 5px;
    right: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

.message p {
  white-space: pre-line;
}
.message-layout {
  align-items: start;
}
.message-photo {
  position: sticky;
  top: 30px;
}
@media (max-width: 600px) {
  .message-photo {
    position: relative;
    top: auto;
  }
}

.skip:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* Inked language tabs and the opening comic sequence. */
.language-switch {
  display: flex;
  flex-shrink: 0;
  transform: rotate(-2deg);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px var(--ink);
  background: var(--paper);
}
.language-switch button {
  padding: 10px 12px;
  min-height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font:
    800 15px "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: 0.03em;
}
.language-switch button + button {
  border-left: 2px solid var(--ink);
}
.language-switch button[aria-pressed="true"] {
  background: var(--yellow);
}
.language-switch button:hover {
  background: #f7c54488;
}
.language-switch button[aria-pressed="true"]:hover {
  background: var(--yellow);
}
.language-switch button span {
  font-size: 12px;
}
.replay-intro {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 5px;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  min-height: 32px;
}
.opening[open] {
  display: flex;
  flex-direction: column;
}
.opening {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  background: #080909;
  color: var(--paper);
  box-shadow: none;
  overflow: hidden;
  z-index: 1000;
}
.opening::backdrop {
  background: #080909;
}
.opening-controls {
  position: absolute;
  inset: 24px 30px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  gap: 20px;
}
.opening-controls .language-switch {
  border-color: var(--paper);
  box-shadow: 3px 3px var(--red);
}
#skip-opening {
  background: transparent;
  color: var(--paper);
  border: 1px solid #ffffff70;
  font:
    700 14px "Barlow Condensed",
    Impact,
    sans-serif;
  padding: 12px 17px;
  min-height: 44px;
  cursor: pointer;
  letter-spacing: 0.1em;
}
#skip-opening:hover {
  background: var(--paper);
  color: var(--ink);
}
.opening-stage {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 95px 25px 35px;
  position: relative;
  isolation: isolate;
}
.opening-issue {
  position: absolute;
  bottom: 26px;
  left: 30px;
  font: 700 11px Arial;
  letter-spacing: 0.15em;
  color: #b7b9b1;
}
.opening-page {
  position: absolute;
  bottom: 26px;
  right: 30px;
  font:
    700 13px "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: 0.15em;
}
.opening #opening-caption {
  position: relative;
  z-index: 1;
  font:
    800 clamp(40px, 7vw, 100px)/1 "Barlow Condensed",
    Impact,
    sans-serif;
  text-align: center;
  max-width: 1100px;
  letter-spacing: 0.015em;
  color: var(--paper);
  margin: 0;
  white-space: normal;
}
.opening-photo {
  height: min(58dvh, 520px);
  max-width: 80vw;
  margin: 0 0 25px;
  border: 6px solid var(--paper);
  box-shadow: 6px 6px var(--red);
  transform: rotate(-2deg);
  overflow: hidden;
  background: #171a1b;
  flex-shrink: 1;
  min-height: 0;
}
.opening-photo[hidden] {
  display: none;
}
.opening-photo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  margin: 0;
}
.opening[data-scene="memory"] #opening-caption {
  font-size: clamp(30px, 4.5vw, 60px);
  text-transform: none;
  transform: rotate(-1deg);
}
.opening[data-scene="year"] #opening-caption {
  letter-spacing: 0.08em;
  font-size: clamp(40px, 6vw, 80px);
}
.opening[data-scene="pause"] #opening-caption {
  font:
    400 clamp(30px, 5vw, 62px) Kalam,
    cursive;
  text-transform: none;
}
.opening[data-scene="fifty-seven"] #opening-caption {
  color: var(--yellow);
  font-size: clamp(54px, 10vw, 150px);
  transform: rotate(-4deg);
  text-shadow: 5px 5px var(--red);
}
.opening[data-scene="boom"] {
  background: var(--red);
}
.opening[data-scene="boom"] .opening-stage:before {
  content: "";
  position: absolute;
  inset: 18% 10%;
  background: var(--yellow);
  z-index: -1;
  clip-path: polygon(
    49% 0,
    59% 18%,
    82% 5%,
    80% 27%,
    100% 30%,
    87% 49%,
    100% 69%,
    73% 70%,
    75% 95%,
    52% 83%,
    36% 100%,
    28% 78%,
    2% 81%,
    14% 58%,
    0 42%,
    23% 34%,
    17% 11%,
    39% 20%
  );
}
.opening[data-scene="boom"] #opening-caption {
  font-size: clamp(100px, 20vw, 280px);
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 7px 7px var(--ink);
  transform: rotate(-9deg);
}
.opening[data-scene="boom"] .opening-issue {
  color: var(--paper);
}
.opening-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--yellow);
  width: 100%;
  transform-origin: left;
  transition: transform 0.3s ease;
}
.scene-enter #opening-caption {
  animation: origin-caption 0.45s both;
}
.scene-enter .opening-photo {
  animation: origin-photo 0.65s both;
}
.opening[data-scene="boom"] .scene-enter #opening-caption {
  animation: impact 0.5s both;
}
@keyframes origin-caption {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes origin-photo {
  from {
    opacity: 0;
    translate: 0 20px;
    scale: 0.96;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
html[lang="pt-PT"] h1 {
  font-size: clamp(75px, 7.6vw, 110px);
}
html[lang="pt-PT"] .finale h2 {
  font-size: 60px;
}
html[lang="pt-PT"] .chapter-tag {
  font-size: 12px;
}
@media (max-width: 1050px) {
  .masthead {
    flex-wrap: wrap;
    gap: 15px;
  }
  .masthead nav {
    gap: 18px;
  }
  .language-switch button span {
    display: none;
  }
  html[lang="pt-PT"] h1 {
    font-size: 78px;
  }
  html[lang="pt-PT"] .finale h2 {
    font-size: 48px;
  }
}
@media (max-width: 600px) {
  .masthead {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 13px;
  }
  .masthead nav {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: space-between;
    border-top: 1px solid #1d211f30;
    padding-top: 2px;
  }
  .masthead nav a:nth-child(2) {
    display: block;
  }
  .masthead nav a {
    font-size: 13px;
    padding: 9px 0;
  }
  .language-switch {
    grid-column: 2;
    grid-row: 1;
  }
  .language-switch button {
    padding: 8px 12px;
  }
  .opening-controls {
    inset: 17px 17px auto;
    gap: 15px;
  }
  #skip-opening {
    font-size: 12px;
    padding: 10px;
  }
  .opening-stage {
    padding: 85px 20px 65px;
  }
  .opening-photo {
    max-width: 84vw;
    height: 53dvh;
    margin-bottom: 25px;
    border-width: 4px;
  }
  .opening-issue {
    left: 20px;
    font-size: 9px;
    max-width: 75%;
    line-height: 1.6;
  }
  .opening-page {
    right: 20px;
    font-size: 11px;
  }
  .opening #opening-caption {
    max-width: 100%;
  }
  .opening[data-scene="memory"] #opening-caption {
    font-size: 32px;
  }
  .opening[data-scene="boom"] .opening-stage:before {
    inset: 27% 0;
  }
  html[lang="pt-PT"] h1 {
    font-size: 78px;
  }
  html[lang="pt-PT"] .finale h2 {
    font-size: 31px;
  }
  html[lang="pt-PT"] .finale-type {
    gap: 14px;
  }
  html[lang="pt-PT"] .birthday-age {
    font-size: 137px;
  }
  html[lang="pt-PT"] .cover-bottom {
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  html[lang="pt-PT"] h1 {
    font-size: 67px;
  }
  html[lang="pt-PT"] .finale h2 {
    font-size: 27px;
  }
  html[lang="pt-PT"] .birthday-age {
    font-size: 116px;
  }
  .opening-controls .language-switch button {
    padding: 7px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opening * {
    animation: none !important;
    transition: none !important;
  }
  .opening-photo,
  .opening #opening-caption {
    transform: none !important;
  }
}

@media (min-width: 601px) and (max-width: 950px) {
  .mini-burst.red {
    right: 8px;
  }
}
