:root {
  color-scheme: dark;
  --bg: #050019;
  --panel: rgba(8, 6, 48, 0.62);
  --panel-strong: rgba(10, 8, 60, 0.86);
  --ink: #fff8ff;
  --muted: #d7ccf8;
  --pink: #ff5bf3;
  --pink-strong: #ff31dd;
  --cyan: #00e5ff;
  --gold: #ffd95c;
  --violet: #8a41ff;
  --line: rgba(255, 91, 243, 0.42);
  --line-cyan: rgba(0, 229, 255, 0.42);
  --shadow: 0 0 18px rgba(255, 49, 221, 0.34);
  --radius: 12px;
  --hero-image-offset: clamp(-180px, calc((100vw - 1440px) * 0.18), 0px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(255, 91, 243, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  color: var(--ink);
  font-family: "Aptos", "Verdana", sans-serif;
  line-height: 1.55;
}

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

body::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 0, 25, 0.78) 0%, rgba(5, 0, 25, 0.58) 30%, rgba(5, 0, 25, 0.12) 58%, rgba(5, 0, 25, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 0, 25, 0.04) 0%, rgba(5, 0, 25, 0.24) 62%, rgba(5, 0, 25, 0.9) 100%),
    url("assets/disboard-hero.png");
  background-position: center, center, right var(--hero-image-offset) top;
  background-repeat: no-repeat;
  background-size: auto, auto, cover;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(circle at 72% 38%, rgba(0, 229, 255, 0.2), transparent 24%),
    radial-gradient(circle at 34% 22%, rgba(255, 91, 243, 0.2), transparent 30%),
    linear-gradient(180deg, transparent 0%, rgba(5, 0, 25, 0.58) 76%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 91, 243, 0.12);
  color: var(--ink);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 0, 25, 0.58);
  backdrop-filter: blur(12px);
}

.brand,
.site-nav,
.intro-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  font-family: "Georgia", "Cambria", serif;
  font-size: 1.3rem;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 91, 243, 0.82);
  border-radius: 10px;
  background: rgba(255, 91, 243, 0.14);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 0 18px rgba(255, 91, 243, 0.46), inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.brand-mark::before {
  color: var(--ink);
  content: "♜";
  font-size: 1.55rem;
  line-height: 1;
  text-shadow: 0 0 12px var(--pink);
}

.brand-spark {
  width: 24px;
  height: 20px;
  background:
    linear-gradient(45deg, transparent 42%, var(--cyan) 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--pink) 42% 58%, transparent 58%);
  opacity: 0.88;
}

.site-nav {
  gap: 22px;
  font-size: 0.95rem;
}

.site-nav a,
.text-link {
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-weight: 700;
}

.site-nav a {
  padding: 8px 10px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  border-color: var(--pink);
}

.icon-link {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 91, 243, 0.82);
  border-radius: 10px;
  background: rgba(255, 91, 243, 0.14);
  box-shadow: 0 0 18px rgba(255, 91, 243, 0.38), inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.icon-link::before,
.icon-link::after {
  position: absolute;
  content: "";
}

.icon-link::before {
  inset: 13px 9px;
  border: 2px solid var(--ink);
  border-radius: 10px 10px 8px 8px;
}

.icon-link::after {
  top: 19px;
  left: 16px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 10px 0 0 var(--pink);
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 760px);
  align-items: start;
  gap: 22px;
  width: min(1500px, calc(100% - 72px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 76px) 0 22px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.34), 0 0 24px rgba(255, 91, 243, 0.22);
}

h1 span {
  color: var(--pink);
  text-shadow: 0 0 24px rgba(255, 91, 243, 0.72);
}

h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: "Georgia", "Cambria", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro-text,
.section-heading p,
.about-block p {
  color: var(--muted);
  font-size: 1.02rem;
}

.intro-text {
  max-width: 540px;
  margin-bottom: 24px;
}

.intro-text strong {
  color: var(--cyan);
}

.intro-text mark {
  background: transparent;
  color: var(--gold);
}

.side-marker {
  position: relative;
  min-height: 250px;
}

.side-marker::before {
  position: absolute;
  top: 12px;
  left: 20px;
  width: 1px;
  height: 190px;
  background: linear-gradient(180deg, var(--gold), var(--pink));
  content: "";
  opacity: 0.82;
}

.side-marker::after {
  position: absolute;
  top: 206px;
  left: 10px;
  color: var(--pink);
  content: "♟";
  font-size: 1.2rem;
  text-shadow: 0 0 12px var(--pink);
}

.side-marker span {
  position: absolute;
  top: 0;
  left: 16px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--gold);
}

.intro-actions {
  flex-wrap: wrap;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 91, 243, 0.76);
  border-radius: var(--radius);
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: var(--ink);
  box-shadow: 0 0 20px rgba(255, 91, 243, 0.55), inset 0 0 18px rgba(255, 255, 255, 0.16);
}

.button.secondary {
  background: rgba(5, 0, 25, 0.48);
  color: var(--ink);
  box-shadow: inset 0 0 18px rgba(255, 91, 243, 0.08);
}

.button:hover,
.button:focus-visible {
  outline: 3px solid rgba(0, 229, 255, 0.26);
  outline-offset: 2px;
}

.section-block,
.about-block {
  width: min(1500px, calc(100% - 72px));
  margin: 0 auto;
}

.section-block {
  padding: 10px 0 48px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 91, 243, 0.52);
  padding-bottom: 16px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-heading h2 span {
  color: var(--pink);
}

.section-heading h2 span::before {
  content: "♜";
  text-shadow: 0 0 12px var(--pink);
}

.section-heading p {
  max-width: 560px;
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.project-card {
  --tone: var(--pink);
  display: grid;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(8, 6, 48, 0.54), rgba(6, 2, 38, 0.92));
  box-shadow: var(--shadow), inset 0 0 24px rgba(255, 91, 243, 0.08);
  backdrop-filter: blur(10px);
}

.project-thumb {
  position: relative;
  min-height: 120px;
  border-bottom: 1px solid rgba(255, 91, 243, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 91, 243, 0.24), rgba(0, 229, 255, 0.1)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    url("assets/disboard-hero.png");
  background-size: auto, 34px 34px, 34px 34px, auto;
}

.project-thumb::before,
.project-thumb::after {
  position: absolute;
  content: "";
}

.project-thumb::before {
  inset: 16px 18px;
  border: 2px solid currentColor;
  border-radius: 8px;
  opacity: 0.6;
  transform: skewX(-8deg);
}

.project-thumb::after {
  right: 22px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 18px currentColor;
}

.thumb-piece {
  position: absolute;
  left: 24px;
  bottom: 14px;
  color: currentColor;
  font-size: 2.4rem;
  line-height: 1;
  text-shadow: 0 0 18px currentColor;
}

.project-card[data-tone="pink"] {
  --tone: var(--pink);
  color: var(--pink);
}

.project-card[data-tone="cyan"] {
  --tone: var(--cyan);
  color: var(--cyan);
}

.project-card[data-tone="gold"] {
  --tone: var(--gold);
  color: var(--gold);
}

.project-card[data-tone="pink"] .project-thumb {
  background:
    linear-gradient(180deg, rgba(6, 0, 30, 0.1), rgba(6, 0, 30, 0.38)),
    linear-gradient(135deg, rgba(255, 91, 243, 0.42), rgba(255, 217, 92, 0.18)),
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.18) 42% 44%, transparent 44%),
    url("assets/disboard-hero.png");
  background-position: center, center, center, 18% 62%;
  background-size: auto, auto, auto, 170%;
}

.project-card[data-tone="cyan"] .project-thumb {
  background:
    linear-gradient(180deg, rgba(6, 0, 30, 0.1), rgba(6, 0, 30, 0.42)),
    linear-gradient(135deg, rgba(0, 229, 255, 0.4), rgba(138, 65, 255, 0.22)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 28px),
    url("assets/disboard-hero.png");
  background-position: center, center, center, 58% 48%;
  background-size: auto, auto, auto, 170%;
}

.project-card[data-tone="gold"] .project-thumb {
  background:
    linear-gradient(180deg, rgba(6, 0, 30, 0.16), rgba(6, 0, 30, 0.42)),
    linear-gradient(135deg, rgba(255, 217, 92, 0.42), rgba(255, 91, 243, 0.2)),
    radial-gradient(circle at 78% 28%, rgba(255, 91, 243, 0.32), transparent 24%),
    url("assets/disboard-hero.png");
  background-position: center, center, center, 86% 52%;
  background-size: auto, auto, auto, 170%;
}

.project-body {
  display: grid;
  padding: 18px 18px 16px;
}

.project-body header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.project-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.15;
}

.status {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid var(--tone);
  border-radius: 8px;
  background: var(--tone);
  color: #070023;
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card p {
  margin-bottom: 18px;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 3px 7px;
  border: 1px solid var(--tone);
  border-radius: 5px;
  background: rgba(5, 0, 25, 0.34);
  color: var(--tone);
  font-size: 0.82rem;
  font-weight: 700;
}

.project-link {
  align-self: end;
  width: max-content;
  border-bottom: 2px solid var(--tone);
  color: var(--tone);
  font-weight: 900;
}

.project-link::after {
  content: " ->";
}

.about-block {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
  padding: 28px;
  border: 1px solid rgba(255, 91, 243, 0.5);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 0 24px rgba(0, 229, 255, 0.06);
  backdrop-filter: blur(10px);
}

.about-block p {
  max-width: 720px;
  margin-bottom: 0;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 48px);
  border-top: 1px solid rgba(255, 91, 243, 0.32);
  color: var(--muted);
}

.site-footer span {
  color: var(--ink);
  font-weight: 900;
}

.site-footer a {
  border-bottom: 1px solid var(--line-strong);
}

@media (max-width: 840px) {
  :root {
    --hero-image-offset: clamp(-420px, calc((100vw - 840px) * 0.9), -60px);
  }

  body::before {
    background:
      linear-gradient(180deg, rgba(5, 0, 25, 0.42) 0%, rgba(5, 0, 25, 0.86) 38%, rgba(5, 0, 25, 0.98) 100%),
      url("assets/disboard-hero.png");
    background-position: center, right var(--hero-image-offset) top -88px;
    background-repeat: no-repeat;
    background-size: 100% 100%, auto min(82vh, 820px);
  }

  .site-header,
  .section-heading,
  .about-block,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 20px;
  }

  .intro {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: clamp(34px, 8vh, 64px);
  }

  .side-marker {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-nav {
    width: auto;
  }

  .site-nav .icon-link {
    padding: 0;
  }

  .intro,
  .section-block,
  .about-block {
    width: calc(100% - 32px);
    max-width: 1500px;
  }

  .intro-copy,
  .project-body {
    min-width: 0;
  }

  h1 {
    font-size: clamp(2.6rem, 12.5vw, 3.4rem);
    line-height: 0.98;
  }

  .intro-text,
  .project-card p {
    max-width: 31ch;
  }

  .project-body header {
    flex-direction: column;
    gap: 8px;
  }

  .project-card {
    min-height: 350px;
  }

  .icon-link {
    width: 40px;
    height: 40px;
  }
}
