/* Albus Block Puzzle: the game's palette and type, with the awning of its sister site. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fredoka-tr-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/fredoka-tr-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --cream: #fff7ec;
  --oat: #f7e7d0;
  --sand: #eed5b4;
  --honey: #f5bc63;
  --coral: #ef8069;
  --coral-face: #dd6650;
  --coral-deep: #c9503c;
  --coral-edge: #a9452f;
  --berry: #c95f7e;
  --sage: #afcba6;
  --moss: #7fa67e;
  --teal: #6fb0a8;
  --periwinkle: #a9b5e6;
  --cocoa: #6e4b3a;
  --espresso: #4a3228;
  --dusk: #54466b;
  --ink: #3a2e3f;
  --font-display: 'Fredoka', 'Nunito', 'Hiragino Maru Gothic ProN', 'Apple SD Gothic Neo', 'PingFang SC', 'Noto Sans CJK JP', system-ui, sans-serif;
  --font-body: 'Nunito', 'Hiragino Sans', 'Apple SD Gothic Neo', 'PingFang SC', 'Noto Sans CJK JP', system-ui, sans-serif;
  --text-lead: clamp(1.06rem, 1rem + 0.3vw, 1.25rem);
  --text-h2: clamp(1.9rem, 1.3rem + 2.5vw, 3.1rem);
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);
  --shadow-soft: 0 2px 0 rgb(84 70 107 / 12%), 0 10px 24px rgb(84 70 107 / 18%);
  --shadow-lift: 0 4px 0 rgb(84 70 107 / 16%), 0 18px 40px rgb(84 70 107 / 26%);
  --radius-soft: 30px 38px 26px 42px;
  --radius-card: 22px 26px 20px 28px;
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font: 500 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--coral-edge);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--coral-deep);
}
:focus-visible {
  outline: 3px solid var(--dusk);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 {
  font-size: var(--text-h2);
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
main:focus {
  outline: none;
}
.wrap {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: var(--coral-deep);
  margin-bottom: 0.6rem;
}
.lead {
  font-size: var(--text-lead);
  max-width: 34em;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: 12px;
}
.skip-link:focus {
  top: 0.5rem;
}

/* The awning */
.awning {
  position: sticky;
  top: 0;
  z-index: 20;
  filter: drop-shadow(0 4px 6px rgb(74 50 40 / 25%));
}
.awning__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.4rem max(1rem, (100% - 1200px) / 2);
  background: linear-gradient(var(--coral-face), var(--coral-deep));
}
.awning__valance {
  height: 13px;
  background: radial-gradient(circle at 13px 0, var(--coral-deep) 12px, transparent 12.6px) 0 0 / 26px 13px repeat-x;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand:hover {
  color: #fff;
}
.brand__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgb(255 247 236 / 70%);
  flex: none;
}
.brand__name {
  font: 700 1.3rem/1.1 var(--font-display);
  white-space: nowrap;
}
.nav__list {
  display: flex;
  gap: 0.25rem;
}
.nav__link {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--cream);
  font: 600 1rem var(--font-display);
  text-decoration: none;
  transition: background-color 150ms, transform 150ms var(--ease-back);
}
.nav__link:hover {
  background: rgb(255 247 236 / 20%);
  color: #fff;
  transform: translateY(-1px);
}
.nav__link[aria-current='page'] {
  background: rgb(255 247 236 / 26%);
}
.awning :focus-visible {
  outline-color: var(--cream);
}
.lang-menu {
  position: relative;
  flex: none;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--espresso);
  font: 600 0.95rem var(--font-display);
  cursor: pointer;
  list-style: none;
  transition: transform 150ms var(--ease-back);
}
.lang-switch::-webkit-details-marker {
  display: none;
}
.lang-switch:hover {
  transform: translateY(-1px);
}
.lang-menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 170px;
  padding: 0.4rem;
  background: var(--cream);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
}
.lang-menu__link {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  color: var(--espresso);
  font-weight: 700;
  text-decoration: none;
}
.lang-menu__link:hover {
  background: var(--oat);
  color: var(--espresso);
}
.lang-menu__link[aria-current='true'] {
  background: var(--sand);
}

/* The room */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: -13px;
  background: #f0bb97;
}
.hero__room,
.hero__img {
  display: block;
  width: 100%;
}
.hero__text {
  position: absolute;
  inset: clamp(1.6rem, 4.4vw, 4.2rem) 0 auto;
  z-index: 2;
  text-align: center;
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-edge);
  font-size: clamp(0.8rem, 0.7rem + 0.5vw, 1.05rem);
  margin-bottom: 0.3rem;
}
.hero__title {
  font-size: clamp(2.7rem, 1rem + 7.4vw, 8.4vw);
  line-height: 0.98;
  color: var(--espresso);
  text-shadow: 0 3px 0 rgb(255 247 236 / 75%);
  margin: 0 auto 0.18em;
}
.hero__tagline {
  font: 600 clamp(1.08rem, 0.7rem + 1.5vw, 2.5vw) / 1.2 var(--font-display);
  max-width: 34vw;
  margin: 0 auto 0.7em;
}
.hero__tagline em {
  font-style: normal;
  color: var(--coral-edge);
}
.cushion rect {
  stroke: rgb(255 255 255 / 75%);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.cushion--coral {
  fill: var(--coral);
}
.cushion--sage {
  fill: var(--sage);
}
.cushion--honey {
  fill: var(--honey);
}
.hero__cushion {
  position: absolute;
  width: clamp(44px, 7vw, 108px);
  filter: drop-shadow(0 6px 5px rgb(74 50 40 / 28%));
  animation: bob 6s ease-in-out infinite;
}
.hero__cushion--a {
  left: 2.5%;
  top: 5%;
  rotate: -12deg;
}
.hero__cushion--b {
  right: 2.5%;
  top: 4%;
  rotate: 14deg;
  animation-delay: -2s;
}
.hero__cushion--c {
  right: 35%;
  top: 56%;
  rotate: -8deg;
  animation-delay: -4s;
}
@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

/* The store button */
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: var(--coral-face);
  color: var(--cream);
  font: 600 1.06rem var(--font-display);
  text-decoration: none;
  box-shadow: 0 5px 0 var(--coral-edge), 0 12px 22px rgb(84 70 107 / 24%);
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
a.store:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--coral-edge), 0 16px 26px rgb(84 70 107 / 26%);
}
a.store:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--coral-edge);
}
.store--soon {
  background: var(--espresso);
  box-shadow: 0 5px 0 #2e1f19, 0 12px 22px rgb(84 70 107 / 24%);
}
.store__glyph {
  flex: none;
}
.button {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--cream);
  font: 600 1.02rem var(--font-display);
  text-decoration: none;
  box-shadow: 0 4px 0 #2e1f19;
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2e1f19;
}

/* How it plays */
.play {
  padding-block: var(--space-section);
}
.play__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.play__phones {
  position: relative;
  aspect-ratio: 1 / 1.22;
}
.phone {
  margin: 0;
  overflow: hidden;
  border: 7px solid var(--espresso);
  border-radius: 36px;
  background: var(--espresso);
  box-shadow: var(--shadow-lift);
}
.phone img {
  border-radius: 28px;
}
.phone--back {
  position: absolute;
  width: 60%;
  left: 0;
  top: 0;
  rotate: -4deg;
}
.phone--front {
  position: absolute;
  width: 60%;
  right: 0;
  bottom: 0;
  rotate: 4deg;
}
.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}
.steps__item {
  counter-increment: step;
  position: relative;
  padding: 0.2rem 0 0.2rem 3.5rem;
}
.steps__item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px 16px 12px 18px;
  background: var(--sage);
  color: var(--espresso);
  font: 700 1.25rem var(--font-display);
  box-shadow: 0 3px 0 var(--moss);
}
.steps__item:nth-child(2)::before {
  background: var(--honey);
  box-shadow: 0 3px 0 #c27a22;
}
.steps__item:nth-child(3)::before {
  background: var(--coral);
  box-shadow: 0 3px 0 var(--coral-edge);
}
.steps__item h3 {
  margin-bottom: 0.1em;
}
.steps__item p {
  margin: 0;
}

/* The numbers */
.numbers {
  background: var(--dusk);
  color: var(--cream);
  padding-block: clamp(1.8rem, 3vw, 2.8rem);
}
.numbers__list {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 1.5rem;
}
.numbers__list strong {
  display: block;
  font: 700 clamp(2.2rem, 1.6rem + 2vw, 3.4rem) / 1 var(--font-display);
  color: var(--honey);
}
.numbers__list span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

/* The cats */
.cats {
  padding-block: var(--space-section);
  background: var(--oat);
}
.cats__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.4vw, 1rem);
  margin-top: 2.2rem;
}
.cat {
  text-align: center;
  font: 600 0.96rem/1.2 var(--font-display);
}
.cat__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: bottom;
  margin-bottom: 0.3rem;
  transition: transform 220ms var(--ease-back);
}
.cat:hover .cat__img {
  transform: translateY(-5px) rotate(-3deg);
}
.cat:first-child {
  grid-column: span 3;
  grid-row: span 3;
  align-self: center;
  font-size: 1.5rem;
  color: var(--coral-edge);
}

/* The house */
.house {
  padding-block: var(--space-section);
}
.house__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.house__stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.house__stages img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 16px 20px 14px 22px;
  box-shadow: var(--shadow-soft);
}
.house__stages span {
  display: block;
  margin-top: 0.45rem;
  text-align: center;
  font: 600 0.92rem/1.2 var(--font-display);
}
.house__phone .phone {
  max-width: 330px;
  margin-inline: auto;
  rotate: 2deg;
}

/* Fair play */
.fair {
  padding-block: var(--space-section);
  background: linear-gradient(#f7e7d0, #fff7ec);
}
.fair__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.fair__list li {
  grid-column: span 2;
  padding: 1.3rem 1.4rem;
  background: var(--cream);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft);
}
.fair__list li:first-child {
  background: var(--coral-face);
  color: var(--cream);
  grid-column: span 3;
}
.fair__list li:nth-child(2) {
  grid-column: span 3;
}
.fair__list li:nth-child(3) {
  grid-column: span 2;
}
.fair__list li:nth-child(4) {
  grid-column: span 4;
  background: var(--sage);
}
.fair__list p {
  margin: 0;
}

/* Albus */
.albus {
  padding-block: var(--space-section);
}
.albus__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.albus__art img {
  width: min(100%, 420px);
  margin-inline: auto;
  filter: drop-shadow(0 12px 12px rgb(74 50 40 / 20%));
}

/* Closing */
.closing {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--coral-face);
  color: var(--cream);
  text-align: center;
}
.closing .lead {
  margin-inline: auto;
}

/* Pages */
.doc-hero {
  padding-block: clamp(2.6rem, 5vw, 4.5rem) 1rem;
  background: var(--oat);
}
.doc-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}
.doc-hero__title {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem);
}
.doc-hero__meta {
  font-weight: 800;
  color: var(--coral-edge);
}
.doc-hero__lead {
  font-size: var(--text-lead);
  max-width: 36em;
}
.doc-hero__albus {
  width: clamp(150px, 24vw, 280px);
}
.doc,
.doc-hero {
  overflow-wrap: anywhere;
}
.doc {
  max-width: 800px;
  padding-block: 2.4rem var(--space-section);
}
.doc__summary {
  padding: 1.5rem 1.7rem;
  margin-bottom: 2.5rem;
  background: var(--oat);
  border-radius: var(--radius-soft);
}
.doc__summary h2,
.doc__section h2,
.doc__body > h2 {
  font-size: 1.6rem;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7rem;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.3rem;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 3px solid var(--moss);
  border-bottom: 3px solid var(--moss);
  rotate: -45deg;
}
.doc__section {
  margin-bottom: 2.2rem;
}
.faq {
  margin-bottom: 0.7rem;
  padding: 0.2rem 1.2rem;
  background: var(--oat);
  border-radius: var(--radius-card);
}
.faq summary {
  padding: 0.75rem 0;
  font: 600 1.12rem var(--font-display);
  cursor: pointer;
}
.faq[open] {
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}
.lost {
  padding-block: 3rem var(--space-section);
  text-align: center;
}
.lost__albus {
  width: min(70%, 360px);
  margin: 0 auto 1rem;
}
.lost__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
}

/* Footer */
.footer {
  padding-block: 2.6rem;
  background: var(--espresso);
  color: var(--oat);
  font-size: 0.98rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 2rem;
}
.footer a {
  color: var(--cream);
}
.footer a:hover {
  color: var(--honey);
}
.footer__name {
  font: 700 1.3rem var(--font-display);
  margin-bottom: 0.2rem;
}
.footer__nav li {
  margin-bottom: 0.35rem;
}
.footer__langs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
}
.footer__legal {
  grid-column: 1 / -1;
  margin: 0;
  opacity: 0.8;
}

/* Things below the fold settle in as they arrive. */
[data-reveal] {
  transition: opacity 500ms var(--ease-out), translate 500ms var(--ease-out);
}
[data-reveal].is-waiting {
  opacity: 0;
  translate: 0 22px;
}

@media (max-width: 1023px) {
  .numbers__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cats__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .play__grid,
  .house__grid,
  .albus__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .play__phones {
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
  }
  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .fair__list li,
  .fair__list li:first-child,
  .fair__list li:nth-child(2),
  .fair__list li:nth-child(3),
  .fair__list li:nth-child(4) {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .hero__tagline {
    max-width: none;
  }
  .hero__cushion--c {
    display: none;
  }
  .hero__cushion--a {
    top: 1%;
    left: 2%;
  }
  .hero__cushion--b {
    top: 1%;
    right: 2%;
  }
  .brand__name {
    font-size: 1.08rem;
    white-space: normal;
  }
  .cats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cat:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .cat:first-child .cat__img {
    height: 220px;
  }
  .doc-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-hero__albus {
    justify-self: center;
  }
  .store {
    font-size: 1rem;
    min-height: 46px;
    padding: 0.45rem 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
