:root {
  --black: #050505;
  --charcoal: #0b0b0b;
  --panel: #11100f;
  --line: rgba(219, 211, 194, 0.16);
  --text: #d7d0c2;
  --muted: #898276;
  --soft: #b9af9d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -18rem, rgba(185, 175, 157, 0.12), transparent 34rem),
    linear-gradient(180deg, #070707 0%, #0a0a09 48%, #040404 100%);
  font-family: "Althera", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.18;
  background-image:
    repeating-radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 4px),
    repeating-radial-gradient(circle at 74% 48%, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, transparent 0 21px, rgba(255, 255, 255, 0.04) 22px, transparent 23px);
  background-size: 180px 180px, 230px 230px, 46px 100%;
  mix-blend-mode: soft-light;
}

body::after {
  opacity: 0.11;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 32%, rgba(0, 0, 0, 0.12) 63%, transparent);
  animation: static-shift 7s steps(3, end) infinite;
}

.page-shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(92px, 16vh, 150px) 24px 26px;
}

.translate-button {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
  display: inline-flex;
  min-width: 96px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 11px;
  color: #f4f1ea;
  background: rgba(4, 4, 4, 0.78);
  border: 1px solid rgba(244, 241, 234, 0.48);
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  font: 700 0.72rem/1 "Althera", Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.translate-button::before {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #050505;
  background: #f4f1ea;
  border-radius: 50%;
  content: "A";
  font-size: 0.82rem;
}

.translate-button strong {
  color: #050505;
  background: #f4f1ea;
  border-radius: 999px;
  padding: 4px 7px 3px;
  font-size: 0.68rem;
}

.translate-button:hover,
.translate-button:focus-visible {
  background: rgba(20, 20, 19, 0.92);
  border-color: rgba(244, 241, 234, 0.82);
  transform: translateY(-1px);
  outline: none;
}

.manifesto {
  width: min(100%, 790px);
  margin: 0 auto;
  padding: 42px 0 58px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifesto p {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.82;
  text-wrap: pretty;
}

.manifesto p:last-child {
  margin-bottom: 0;
}

.signature {
  color: var(--soft);
  text-align: right;
}

.site-footer {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 132px;
  padding: 46px 0 8px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  width: 108px;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  color: var(--soft);
  text-decoration: none;
  background: rgba(18, 17, 16, 0.82);
  border: 1px solid rgba(215, 208, 194, 0.14);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: #ded7c8;
  background: rgba(26, 25, 23, 0.94);
  border-color: rgba(215, 208, 194, 0.34);
  transform: translateY(-2px);
  outline: none;
}

.social-link img {
  width: 27px;
  height: 27px;
  display: block;
  opacity: 0.92;
  filter: grayscale(1);
}

.social-link span {
  color: var(--muted);
  font-family: "Althera", Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: center;
}

.corner-mark {
  position: absolute;
  right: 0;
  bottom: 4px;
  margin: 0;
  color: rgba(215, 208, 194, 0.42);
  font-family: "Althera", Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
}

@keyframes static-shift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -4px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 86px 16px 24px;
  }

  .manifesto {
    padding: 32px 0 44px;
  }

  .manifesto p {
    font-size: 1.04rem;
    line-height: 1.76;
  }

  .site-footer {
    display: block;
    min-height: 0;
    padding-top: 34px;
  }

  .socials {
    gap: 10px;
  }

  .social-link {
    width: calc(50% - 5px);
    min-height: 76px;
  }

  .corner-mark {
    position: static;
    margin-top: 30px;
    text-align: right;
  }

  .translate-button {
    top: 12px;
    right: 12px;
    min-width: 88px;
    padding: 8px 10px;
    gap: 8px;
  }
}
