@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/nunito-700.woff2") format("woff2");
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/nunito-800.woff2") format("woff2");
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("assets/fonts/nunito-900.woff2") format("woff2");
}

:root {
  --stripe: #86C47A;
  --stripe-dark: #74B46A;
  --wood-a: #87563A;
  --wood-b: #8E5B3D;
  --cream: #F4EFE4;
  --cream-deep: #ECE6DA;
  --ink: #2E2A26;
  --orange: #F09848;
  --orange-deep: #C56E2A;
  --title: #FFF8EC;
  --stroke: #2E2A26;
  --sans: "Nunito", "Segoe UI", "Avenir Next", sans-serif;
  --board-pad: 0.85rem;
  --home-frame: min(96rem, calc(100% - clamp(2rem, 14vw, 20rem)));
  --frame: var(--home-frame);
  --stripe-w: 7.5rem;
  --stripe-x: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 1.25rem;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.55;
  background-color: var(--stripe);
  background-image: linear-gradient(
    90deg,
    var(--stripe) 0 var(--stripe-w),
    var(--stripe-dark) var(--stripe-w) calc(var(--stripe-w) * 2)
  );
  background-size: calc(var(--stripe-w) * 2) 100%;
  background-repeat: repeat;
  background-position: var(--stripe-x) 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #9A4510;
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a.brand:hover,
a.skip:hover,
a.button:hover {
  text-decoration: none;
}

a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  background: var(--orange);
  color: var(--ink);
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--orange-deep);
}

a.button:hover {
  background: #F6A85C;
  text-decoration: none;
}

a.button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--orange-deep);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--title);
  outline-offset: 3px;
}

.wrap {
  width: var(--frame);
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.policy .wrap {
  padding: 1.25rem 0 3rem;
}

.board {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 28px;
  padding: var(--board-pad);
  box-shadow: 0 16px 22px rgba(40, 36, 28, 0.2);
}

.board::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: var(--board-pad);
  background-image: repeating-linear-gradient(
    90deg,
    var(--wood-a) 0 11px,
    var(--wood-b) 11px 36px,
    var(--wood-a) 36px 55px,
    var(--wood-b) 55px 64px,
    var(--wood-a) 64px 87px,
    var(--wood-b) 87px 102px,
    var(--wood-a) 102px 129px,
    var(--wood-b) 129px 147px,
    var(--wood-a) 147px 158px,
    var(--wood-b) 158px 182px,
    var(--wood-a) 182px 198px,
    var(--wood-b) 198px 225px,
    var(--wood-a) 225px 246px,
    var(--wood-b) 246px 257px,
    var(--wood-a) 257px 281px,
    var(--wood-b) 281px 298px,
    var(--wood-a) 298px 327px,
    var(--wood-b) 327px 347px,
    var(--wood-a) 347px 360px,
    var(--wood-b) 360px 386px,
    var(--wood-a) 386px 403px,
    var(--wood-b) 403px 411px,
    var(--wood-a) 411px 434px,
    var(--wood-b) 434px 447px
  );
  pointer-events: none;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.board > * {
  position: relative;
  z-index: 1;
}

.board img {
  width: 100%;
  border-radius: 18px;
}

.mast {
  position: relative;
  margin: 0 0 clamp(0.85rem, 2vw, 1.25rem);
}

.hero {
  width: min(100%, 40rem);
  margin: 0 auto;
}

.mast .store-badges {
  width: min(100%, 40rem);
  margin: 0 auto 0.85rem;
  justify-content: center;
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.75rem, 1.4vw, 1.15rem);
  align-items: start;
}

button.shot {
  display: block;
  width: 100%;
  margin: 0;
  padding: var(--board-pad);
  border: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: inherit;
}

footer {
  margin: 1.35rem 0 0;
}

footer .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.9rem 1.15rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: 16px;
  font-weight: 800;
}

footer p {
  margin: 0;
}

html:has(dialog[open]) {
  overflow: hidden;
}

.lightbox {
  width: fit-content;
  max-width: min(96vw, 90rem);
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(30, 24, 18, 0.84);
}

.lightbox-frame {
  position: relative;
  line-height: 0;
}

.lightbox img {
  width: auto;
  max-width: min(96vw, 90rem);
  max-height: 94vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 0 #D7C2AB;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 5;
  padding: 0.75rem 1rem;
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 0 #D7C2AB;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.display {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--stroke);
  background-image: linear-gradient(var(--title), var(--title));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: var(--title);
  -webkit-text-stroke: 0.07em var(--stroke);
  paint-order: stroke fill;
  text-shadow: 0 0.06em 0 var(--stroke);
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 0.9rem;
}

.top .store-badges {
  margin: 0 0 0 auto;
  max-width: 100%;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin: 0 0 0.9rem;
}

.title-row .display {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.title-row .date {
  margin-left: auto;
  max-width: 100%;
}

.date {
  margin: 0;
  padding: 0.7rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 #D7C2AB;
  font-weight: 800;
}

.sheet {
  background: var(--cream);
  border-radius: 18px;
  padding: clamp(1.1rem, 3vw, 2rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.25rem 0.7rem 0.25rem 0.3rem;
  background: var(--cream-deep);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 #D7C2AB;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 0 var(--orange-deep);
}

.contents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.contents a.button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.panel + .panel {
  margin-top: 1rem;
}

.panel {
  background: #FFFDF8;
  border-radius: 18px;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 4px 0 #E4D3C0;
}

.panel h2,
.panel h3 {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
}

.panel h2 {
  font-size: 1.7rem;
}

.panel h3 {
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.panel p {
  margin: 0.55rem 0 0;
  font-weight: 700;
}

.panel p:first-of-type {
  margin-top: 0;
}

.panel ul {
  margin: 0.55rem 0 0;
  padding-left: 1.25rem;
}

.panel h2 + ul,
.panel h3 + ul {
  margin-top: 0.15rem;
}

.panel li {
  font-weight: 700;
}

.panel li + li {
  margin-top: 0.4rem;
}

.panel.lead {
  background: #FFF8EC;
}

.panel.lead p,
.panel.lead li {
  font-size: 1.2rem;
}

.store-badges {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1rem;
  max-width: 100%;
}

.store-badges a {
  display: block;
  max-width: 100%;
  line-height: 0;
}

.store-badges img {
  display: block;
  width: auto;
  height: 3.25rem;
  max-width: 100%;
  border-radius: 0;
}

.sheet .store-badges {
  justify-content: flex-start;
  margin: 1.15rem 0 0;
}

.story {
  margin: 1.15rem 0 0;
}

.story h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--ink);
}

.tagline {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.story .sheet > p {
  margin: 0.7rem 0 0;
}

.story .panel {
  margin-top: 1rem;
}

.story .panel ul {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.story .panel li {
  font-weight: 700;
}

.story .panel li + li {
  margin-top: 0.4rem;
}

.story .sheet > p.thanks {
  margin-top: 1.15rem;
}

.story .sheet > p.closer {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 900;
}

@media (min-width: 720px) {
  .shots {
    grid-template-columns: 1fr 1fr;
  }

  .shots .shot:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1180px) {
  .shots {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .policy {
    scroll-behavior: smooth;
  }

  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(1.15rem);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes pop-in {
    from {
      opacity: 0;
      transform: translateY(0.75rem) scale(0.98);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .hero,
  .story,
  .top,
  .title-row,
  footer.board {
    animation: settle 0.7s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
  }

  .shot {
    animation: settle 0.65s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
  }

  .shot:nth-child(2) { animation-delay: 0.05s; }
  .shot:nth-child(3) { animation-delay: 0.1s; }
  .shot:nth-child(4) { animation-delay: 0.15s; }
  .shot:nth-child(5) { animation-delay: 0.2s; }
  .shot:nth-child(6) { animation-delay: 0.25s; }
  .shot:nth-child(7) { animation-delay: 0.3s; }

  .story {
    animation-delay: 0.12s;
  }

  .title-row {
    animation-delay: 0.08s;
  }

  footer.board {
    animation-delay: 0.16s;
  }

  .store-badges a,
  .contents li {
    animation: pop-in 0.55s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
  }

  .store-badges a:nth-child(2),
  .contents li:nth-child(2) { animation-delay: 0.06s; }
  .contents li:nth-child(3) { animation-delay: 0.1s; }
  .contents li:nth-child(4) { animation-delay: 0.14s; }
  .contents li:nth-child(5) { animation-delay: 0.18s; }
  .contents li:nth-child(6) { animation-delay: 0.22s; }
  .contents li:nth-child(7) { animation-delay: 0.26s; }
  .contents li:nth-child(8) { animation-delay: 0.3s; }
  .contents li:nth-child(9) { animation-delay: 0.34s; }
  .contents li:nth-child(10) { animation-delay: 0.38s; }
  .contents li:nth-child(11) { animation-delay: 0.42s; }
  .contents li:nth-child(12) { animation-delay: 0.46s; }
  .contents li:nth-child(13) { animation-delay: 0.5s; }

  a.button,
  button.shot,
  .store-badges a {
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  }

  a.button:hover,
  .store-badges a:hover {
    transform: translateY(-3px);
  }

  a.button:hover {
    box-shadow: 0 6px 0 var(--orange-deep);
  }

  a.button:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--orange-deep);
    transition-duration: 0.05s;
  }

  button.shot:hover {
    transform: translateY(-6px);
  }

  button.shot:active {
    transform: translateY(-2px);
  }

  .panel.rise {
    opacity: 0;
    transform: translateY(1.15rem);
  }

  .panel.rise.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.75, 0.2, 1);
  }

  .lightbox[open] {
    animation: pop-in 0.22s ease;
  }

  .lightbox::backdrop {
    animation: fade 0.22s ease;
  }
}

@media print {
  body {
    background: white;
  }

  .board {
    box-shadow: none;
    background: white;
  }
}
