:root {
  color-scheme: dark;
  --ink: #f4f8fb;
  --muted: #a9b8c5;
  --soft: #13232d;
  --line: rgba(120, 198, 188, 0.2);
  --paper: #081016;
  --panel: rgba(12, 24, 32, 0.78);
  --panel-strong: rgba(15, 31, 41, 0.92);
  --accent: #28c7b7;
  --accent-strong: #7de2d6;
  --gold: #f0bc5e;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(40, 199, 183, 0.22), transparent 24%),
    linear-gradient(245deg, rgba(240, 188, 94, 0.16), transparent 28%),
    linear-gradient(180deg, #081016 0%, #0d1921 48%, #081016 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(125, 226, 214, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 226, 214, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(244, 248, 251, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 248, 251, 0.05) 1px, transparent 1px);
  background-position: 0 0, 0 0, 18px 18px, 18px 18px;
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  content: "";
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, transparent 0 12%, rgba(40, 199, 183, 0.36) 12% 12.35%, transparent 12.35% 100%),
    linear-gradient(180deg, transparent 0 22%, rgba(240, 188, 94, 0.26) 22% 22.35%, transparent 22.35% 100%),
    linear-gradient(135deg, transparent 0 50%, rgba(125, 226, 214, 0.28) 50% 50.35%, transparent 50.35% 100%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(244, 248, 251, 0.055) 42px 43px);
  background-position: 7vw 12vh, 74vw 10vh, 56vw 34vh, 0 0;
  background-size: 280px 220px, 240px 260px, 360px 300px, 86px 86px;
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.page-shell::before {
  position: absolute;
  top: 118px;
  right: max(-100px, -8vw);
  z-index: -1;
  width: min(470px, 46vw);
  height: 540px;
  border: 1px solid rgba(125, 226, 214, 0.32);
  background:
    repeating-linear-gradient(0deg, rgba(125, 226, 214, 0.14) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(125, 226, 214, 0.1) 0 1px, transparent 1px 20px),
    linear-gradient(135deg, rgba(40, 199, 183, 0.16), rgba(8, 16, 22, 0));
  clip-path: polygon(14% 0, 100% 0, 100% 84%, 84% 100%, 0 100%, 0 14%);
  content: "";
  opacity: 0.78;
}

.page-shell::after {
  position: absolute;
  top: 218px;
  right: max(-28px, -3vw);
  z-index: -1;
  width: min(320px, 32vw);
  height: 350px;
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(40, 199, 183, 0.44) 20% 21%, transparent 21% 100%),
    linear-gradient(180deg, transparent 0 28%, rgba(240, 188, 94, 0.36) 28% 29%, transparent 29% 100%),
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(244, 248, 251, 0.12) 17px 18px);
  content: "";
  opacity: 0.74;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(125, 226, 214, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 230px;
  max-width: 52vw;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(125, 226, 214, 0.22);
  border-radius: 999px;
  background: rgba(7, 15, 21, 0.7);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.nav-links a,
.action-link {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-links a {
  padding: 8px 12px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(40, 199, 183, 0.14);
  color: var(--accent-strong);
  outline: none;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 380px);
  gap: 48px;
  align-items: end;
  min-height: 620px;
  padding: 76px 0 64px;
}

.intro-copy {
  max-width: 780px;
}

.kicker,
.section-heading p,
.signal-panel p {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.97;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.headline {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--accent-strong);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 780;
  line-height: 1.25;
}

.bio {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  white-space: pre-line;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(125, 226, 214, 0.24);
  background: rgba(12, 24, 32, 0.78);
}

.action-link.primary {
  border-color: rgba(40, 199, 183, 0.85);
  background: var(--accent);
  color: #061014;
}

.action-link:hover,
.action-link:focus-visible {
  color: var(--accent-strong);
  outline: none;
  transform: translateY(-1px);
}

.action-link.primary:hover,
.action-link.primary:focus-visible {
  color: #061014;
  background: var(--accent-strong);
}

.signal-panel {
  overflow: hidden;
  border: 1px solid rgba(125, 226, 214, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(40, 199, 183, 0.14), transparent 44%),
    var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(18px);
}

.signal-panel img {
  display: block;
  width: 82px;
  height: 82px;
  margin-bottom: 28px;
  box-shadow: 0 18px 34px rgba(40, 199, 183, 0.22);
  border-radius: 22px;
}

.signal-panel strong {
  display: block;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.25;
}

.signal-panel dl {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
}

.signal-panel dl div {
  padding-top: 14px;
  border-top: 1px solid rgba(125, 226, 214, 0.18);
}

.signal-panel dt {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 850;
}

.signal-panel dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 42px;
  padding: 44px 0;
  border-top: 1px solid rgba(125, 226, 214, 0.18);
}

.section-heading {
  position: sticky;
  top: 24px;
  align-self: start;
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.highlight-list li,
.post-card,
.script-card,
.link-card {
  border: 1px solid rgba(125, 226, 214, 0.2);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.highlight-list li {
  min-height: 138px;
  padding: 22px;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 760;
}

.highlight-list li::before {
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 18px;
  background: var(--gold);
  content: "";
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.script-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.post-card {
  display: grid;
  min-height: 210px;
  align-content: start;
  gap: 14px;
  padding: 24px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.script-card {
  display: grid;
  min-height: 290px;
  align-content: start;
  gap: 14px;
  padding: 24px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.post-card:hover,
.post-card:focus-within,
.script-card:hover,
.script-card:focus-within,
.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(40, 199, 183, 0.72);
  box-shadow: 0 24px 62px rgba(40, 199, 183, 0.18);
  outline: none;
  transform: translateY(-2px);
}

.post-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.22rem;
  font-weight: 850;
  line-height: 1.22;
}

.script-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.16rem;
  font-weight: 850;
  line-height: 1.22;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.script-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.script-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-card li::marker {
  color: var(--gold);
}

.script-card li::marker {
  color: var(--gold);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.script-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.post-tags span {
  padding: 5px 9px;
  border: 1px solid rgba(40, 199, 183, 0.24);
  border-radius: 999px;
  background: rgba(40, 199, 183, 0.1);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.script-tags span {
  padding: 5px 9px;
  border: 1px solid rgba(40, 199, 183, 0.24);
  border-radius: 999px;
  background: rgba(40, 199, 183, 0.1);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.post-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(125, 226, 214, 0.24);
  border-radius: 999px;
  background: rgba(40, 199, 183, 0.1);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.post-actions a:hover,
.post-actions a:focus-visible {
  border-color: rgba(240, 188, 94, 0.5);
  color: var(--gold);
  outline: none;
}

.script-source {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  margin-top: auto;
  padding: 8px 12px;
  border: 1px solid rgba(125, 226, 214, 0.24);
  border-radius: 999px;
  background: rgba(40, 199, 183, 0.1);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.script-source:hover,
.script-source:focus-visible {
  border-color: rgba(240, 188, 94, 0.5);
  color: var(--gold);
  outline: none;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.link-card span {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 850;
}

.link-card span::after {
  margin-left: 8px;
  color: var(--gold);
  content: "/";
}

.link-card small {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .page-shell::before,
  .page-shell::after {
    display: none;
  }

  .intro,
  .section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro {
    min-height: auto;
    padding: 56px 0 48px;
  }

  .section-heading {
    position: static;
  }

  .highlight-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 28px, 1120px);
    padding-top: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .brand img {
    width: 208px;
    max-width: 100%;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-radius: 8px;
  }

  .nav-links a {
    padding: 7px 8px;
    font-size: 0.86rem;
  }

  .post-grid,
  .script-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .highlight-list li,
  .post-card,
  .link-card {
    min-height: auto;
  }
}
