:root {
  --text: #fff;
  --glow: rgba(0, 10, 40, 0.8);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  font-family: "Trebuchet MS", "Ubuntu", "Segoe UI", sans-serif;
  color: var(--text);
  text-align: center;
  text-shadow: 1px 2px 3px var(--glow);
  background: #0a2a8a url("../img/bg.png") center/cover fixed no-repeat;
  background-image:
    url("../img/bg.png"),
    radial-gradient(ellipse at 15% 10%, #12a3c4 0, transparent 45%),
    radial-gradient(ellipse at 90% 100%, #5a2fc9 0, transparent 40%),
    linear-gradient(160deg, #0a8fb0 0, #1456c8 45%, #071a4a 100%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 1rem;
}
main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
header {
  padding-top: 2.5rem;
}
.logo {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
}
.logo img {
  display: block;
  height: 50px;
  width: auto;
  margin: 0 auto;
}
.logo b {
  display: block;
  font:
    italic 900 2.8rem/1 "Trebuchet MS",
    sans-serif;
  letter-spacing: -1px;
  background: linear-gradient(#35b6ff, #2a3ce0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 30, 0.7));
  text-shadow: none;
}
.logo small {
  display: block;
  font-size: 0.65rem;
  color: #fff;
  margin-top: -2px;
}
nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 0.6rem 0 2.5rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: bold;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
nav a:hover {
  border-color: rgba(255, 255, 255, 0.5);
}
nav a[aria-current] {
  border-color: #fff;
}
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
h1,
h2 {
  font-family: Consolas, "Inconsolata", "Courier New", monospace;
  font-style: italic;
  margin: 0 0 0.6rem;
}
h1 {
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
h2 {
  font-size: 2rem;
}
.lead {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 0 0 3rem;
}
.who p {
  margin: 0.15rem 0;
  font-weight: bold;
}
.who .meta {
  margin-top: 1.2rem;
}
footer {
  padding: 3rem 0 2.5rem;
  font-weight: bold;
}
/* glossy aero buttons */
.gbtn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 330px;
  margin: 0 auto 0.5rem;
  padding: 1rem 1.2rem;
  border-radius: 26px;
  color: #fff;
  text-decoration: none;
  text-align: left;
  overflow: hidden;
  box-shadow:
    0 4px 8px rgba(0, 0, 20, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.gbtn::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 2px;
  height: 22%;
  border-radius: 0 0 50% 50%/0 0 100% 100%;
  background: linear-gradient(
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.05)
  );
  pointer-events: none;
}
.gbtn img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: none;
}
.gbtn strong {
  display: block;
  font:
    italic 2rem Consolas,
    "Courier New",
    monospace;
}
.gbtn span {
  font:
    italic bold 0.95rem Consolas,
    "Courier New",
    monospace;
}
.gbtn.discord {
  background: linear-gradient(#2c5fd6, #1b45c4 70%, #2257e0);
}
.gbtn.twitter {
  background: linear-gradient(#444, #1c1c1c 55%, #2a2a2a);
}
.gbtn.discord:hover,
.gbtn.twitter:hover {
  filter: brightness(1.15);
}
/* project card */
.project {
  max-width: 485px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 1.6rem;
  border-radius: 34px;
  background: linear-gradient(#333, #111);
  box-shadow:
    0 8px 24px rgba(0, 0, 20, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
}
.project img {
  width: 90px;
  flex: none;
}
.project p {
  margin: 0 0 0.6rem;
  font:
    bold 0.95rem Consolas,
    "Courier New",
    monospace;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffcf1f;
  font:
    0.62rem Consolas,
    monospace;
  text-decoration: none;
}
.more i {
  width: 7px;
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(#ffe24a, #e5a200);
}
@media (max-width: 520px) {
  .project {
    flex-direction: column;
  }
  nav {
    gap: 1.4rem;
  }
}
.window {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.window-body {
  text-align: center;
  color: #1b2b44;
  text-shadow: none;
  min-height: 240px;
  padding: 1.5rem;
}
.window-body h1,
.window-body h2 {
  color: #12305e;
  font-family: Consolas, "Inconsolata", "Courier New", monospace;
}
.window-body .gbtn,
.window-body .project {
  text-shadow: 1px 2px 3px rgba(0, 0, 20, 0.8);
  color: #fff;
}
.window-body .gbtn {
  margin-bottom: 0.7rem;
}
.window-body a.gbtn {
  background-clip: padding-box;
}
.window-body {
  background: #e2edfa;
}
.leaves {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  height: auto;
  filter: drop-shadow(2px 4px 5px rgba(0, 20, 60, 0.45));
  will-change: transform;
}
.leaves.bottom {
  left: -2%;
  bottom: -2%;
  width: min(32vw, 405px);
  transform-origin: 0 100%;
  animation: swayb 8s ease-in-out infinite alternate;

  clip-path: inset(0 30% 0 0); 
}
.leaves.br {
  right: -2%;
  bottom: -2%;
  width: min(32vw, 405px);
  transform-origin: 100% 100%;
  animation: sway4 11s ease-in-out -4s infinite alternate;
}
.leaves.tr {
  right: -2%;
  top: -2%;
  width: min(42vw, 560px);
  transform-origin: 100% 0;
  animation: sway2 9s ease-in-out -3s infinite alternate;
}
.leaves.tl {
  left: -2%;
  top: -2%;
  width: min(42vw, 560px);
  transform-origin: 0 0;
  animation: sway3 10s ease-in-out -6s infinite alternate;
}
@keyframes swayb {
  from {
    transform: rotate(1.6deg) translateX(-4px);
  }
  to {
    transform: rotate(-1.8deg) translateX(5px);
  }
}
@keyframes sway4 {
  from {
    transform: rotate(-1.6deg) translateX(4px);
  }
  to {
    transform: rotate(1.7deg) translateX(-5px);
  }
}
@keyframes sway2 {
  from {
    transform: rotate(1.8deg) translateY(-3px);
  }
  to {
    transform: rotate(-1.5deg) translateY(4px);
  }
}
@keyframes sway3 {
  from {
    transform: rotate(-1.6deg) translateY(-3px);
  }
  to {
    transform: rotate(1.8deg) translateY(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .leaves {
    animation: none;
  }
}
header,
main,
footer {
  position: relative;
  z-index: 1;
}
