/* ==========================================================================
   "About" dialog: a frosted glass card over the page
   ========================================================================== */

@font-face {
  font-family: "Linoleum-ExtraBold";
  src: url("../fonts/Linoleum-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: block;
}


.about {
  --about-width: min(35vw, 520px);
  --about-ratio: 0.90;                /* width ÷ height of the card */
  width: var(--about-width);
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: clamp(28px, 3.4vw, 52px);
  color: #000;
  background: rgba(236, 236, 236, .55);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  backdrop-filter: blur(22px) saturate(1.1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .25);
}
.about::backdrop { background: transparent; }
.about[open] { animation: about-in .35s cubic-bezier(.2, .8, .2, 1); }

@keyframes about-in { from { opacity: 0; } }

.about__glass {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.2em;
  min-height: min(var(--about-width) / var(--about-ratio), 100dvh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(40px, 5.5vw, 76px) clamp(18px, 2vw, 32px) clamp(72px, 6vw, 96px);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  font: 400 clamp(15px, 1.35vw, 21px)/1.36 "Linoleum-ExtraBold", "Helvetica Neue", Arial, sans-serif;
  text-align: center;
}

.about p { margin: 0; }

.about a { color: inherit; text-decoration: none; }
.about a:hover,
.about a:focus-visible { text-decoration: underline; }

.about__close {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 1.4vw, 20px);
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(0, 0, 0, .6);
  font: 300 28px/1 system-ui, sans-serif;
  cursor: pointer;
}
.about__close:hover { color: #000; }
.about__close:focus-visible { outline: 2px solid #000; }

@media (max-width: 700px) {
  .about { width: calc(100vw - 32px); }
  .about__glass {
    height: 0;
    gap: 1.8em;
    padding-inline: 12px;
    font-size: clamp(13px, 3.7vw, 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about[open] { animation: none; }
}
