:root {
  --ink: #060708;
  --panel: #101416;
  --panel-2: #171b1c;
  --line: rgba(238, 221, 184, 0.15);
  --text: #f4ead5;
  --muted: #a89d8a;
  --dim: #716a5f;
  --violet: #be2fff;
  --magenta: #f043d7;
  --ochre: #c8913a;
  --petal: #d59b73;
  --leaf: #4c7c35;
  --signal: #d67dff;
  --shadow: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(190, 47, 255, 0.16), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(76, 124, 53, 0.12), transparent 24rem),
    linear-gradient(135deg, #070809 0%, #101315 46%, #050606 100%);
  color: var(--text);
  font-family: "Inter", "Suisse International", "Helvetica Neue", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 88%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 9px);
  mix-blend-mode: overlay;
}

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

.shell {
  width: min(100%, 1720px);
  margin: 0 auto;
}

.topbar {
  z-index: 20;
  align-items: center;
  width: min(calc(100% - 28px), 1720px);
  height: 58px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 7, 8, 0.72);
  backdrop-filter: blur(18px);
}

.topbar--home {
  position: fixed;
  top: 0;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  transform: translateX(-50%);
}

.topbar--page {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
}

.mark,
.nav,
.coordinate {
  padding: 0 18px;
}

.mark {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0;
}

.mark::before {
  width: 9px;
  height: 9px;
  content: "";
  background: var(--signal);
  box-shadow: 0 0 18px rgba(214, 125, 255, 0.9);
}

.ai-trace {
  color: #f5e6ff;
  text-shadow: 0 0 12px rgba(214, 125, 255, 0.12);
  transition:
    color 520ms ease,
    text-shadow 520ms ease;
}

.mark:hover .ai-trace,
.mark:focus-visible .ai-trace,
h1:hover .ai-trace,
h1:focus-visible .ai-trace {
  color: #fff8ee;
  text-shadow:
    0 0 12px rgba(244, 234, 213, 0.18),
    0 0 30px rgba(214, 125, 255, 0.34);
}

.nav {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 100%;
  border-inline: 1px solid var(--line);
}

.nav a,
.topnav a {
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav a {
  min-width: 102px;
  height: 34px;
}

.topnav {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0 18px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.topnav a {
  padding: 10px 12px;
}

.nav a:hover,
.nav a:focus-visible,
.topnav a:hover,
.topnav a:focus-visible {
  border-color: rgba(214, 125, 255, 0.44);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 0 18px rgba(214, 125, 255, 0.08);
}

.coordinate {
  justify-self: end;
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
}

main {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 88vh;
  padding: 94px 22px 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 58px 14px 12px;
  pointer-events: none;
  content: "";
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -70px 100px rgba(0, 0, 0, 0.38);
}

.signal-field {
  position: absolute;
  inset: 58px 14px 12px;
  width: calc(100% - 28px);
  height: calc(100% - 70px);
  opacity: 0.72;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: end;
  min-height: calc(88vh - 130px);
  padding: clamp(22px, 5vw, 76px);
}

.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.kicker::before {
  width: 38px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--violet), transparent);
  box-shadow: 0 0 14px rgba(190, 47, 255, 0.72);
}

h1,
h2,
.serif {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.home-title {
  max-width: 6ch;
  font-size: 13.8rem;
  hyphens: manual;
  line-height: 0.79;
}

.statement {
  max-width: 760px;
  margin: 28px 0 0;
  color: #e2d4bd;
  font-size: 2.15rem;
  line-height: 1.18;
}

.statement em {
  color: var(--petal);
  font-style: normal;
}

.caption,
.index,
.eyebrow {
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  padding: clamp(70px, 9vw, 140px) 22px;
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(100%, 1510px);
  margin: 0 auto;
}

.section-head {
  max-width: 900px;
  margin-bottom: clamp(34px, 6vw, 86px);
}

.section-head .caption,
.notes-caption,
.contact .caption {
  display: block;
  margin-bottom: 22px;
}

.section-title {
  max-width: 720px;
  font-size: 6.7rem;
  line-height: 0.9;
}

.section-copy {
  margin: 0;
  color: #d4c8b6;
  font-size: 1.55rem;
  line-height: 1.32;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.module {
  min-height: 284px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(16, 20, 22, 0.66);
}

.module:nth-child(2) {
  background-color: rgba(31, 20, 34, 0.56);
}

.module:nth-child(3) {
  background-color: rgba(36, 28, 17, 0.56);
}

.module:nth-child(4) {
  background-color: rgba(17, 29, 18, 0.56);
}

.module .index {
  display: flex;
  justify-content: space-between;
  margin-bottom: 70px;
}

.module h3 {
  margin: 0 0 14px;
  color: #fbf0d9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.module p {
  max-width: 31ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.notebook {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    rgba(244, 234, 213, 0.045);
  background-size: 100% 32px;
}

.notebook .entry {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(238, 221, 184, 0.12);
}

.notebook .entry:first-child {
  padding-top: 0;
}

.notebook .entry:last-child {
  border-bottom: 0;
}

.notebook p {
  margin: 0;
  color: #decfb8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.12;
}

.notebook a,
.content a,
.site-footer a {
  color: inherit;
  border-bottom: 1px solid rgba(199, 123, 239, 0.4);
}

.notebook a:hover,
.notebook a:focus-visible,
.content a:hover,
.content a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  border-bottom-color: rgba(199, 123, 239, 0.85);
  outline: none;
}

.contact {
  display: block;
}

.contact h2 {
  max-width: 760px;
  font-size: clamp(4rem, 7vw, 5.8rem);
}

.contact-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
}

.button {
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(214, 125, 255, 0.45);
  color: var(--text);
  background: rgba(190, 47, 255, 0.12);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: 0 0 22px rgba(190, 47, 255, 0.12);
}

.button.secondary {
  border-color: rgba(238, 221, 184, 0.18);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(244, 234, 213, 0.58);
  outline: none;
}

.page-main {
  width: min(100% - 44px, 980px);
  margin: 0 auto;
  padding: clamp(68px, 9vw, 132px) 0 clamp(60px, 8vw, 110px);
}

.page-title {
  margin-top: 22px;
  font-size: clamp(4.2rem, 12vw, 9.6rem);
  line-height: 0.82;
}

.blog-list-title {
  margin-top: 22px;
  font-size: clamp(4rem, 11vw, 8rem);
  line-height: 0.88;
}

.lede {
  max-width: 760px;
  margin: 34px 0 0;
  color: #d8c6a9;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.24;
}

.summary,
.notice {
  margin-top: 38px;
  padding: 18px 20px;
  color: #e6d6b7;
  font-size: 16px;
  line-height: 1.55;
}

.summary {
  border: 1px solid rgba(199, 123, 239, 0.3);
  background: rgba(156, 82, 214, 0.08);
}

.notice {
  border: 1px solid rgba(181, 133, 63, 0.4);
  background: rgba(181, 133, 63, 0.09);
}

.legal .page-main {
  padding: clamp(54px, 7vw, 96px) 0 clamp(60px, 8vw, 100px);
}

.legal .page-title {
  max-width: 12ch;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  line-height: 0.92;
}

.legal .lede {
  margin-top: 24px;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.legal .summary,
.legal .notice {
  margin-top: 28px;
}

.legal .sections {
  margin-top: clamp(42px, 6vw, 68px);
}

.sections {
  margin-top: clamp(54px, 8vw, 92px);
  border-top: 1px solid var(--line);
}

.list {
  margin-top: clamp(42px, 6vw, 68px);
  border-top: 1px solid var(--line);
}

.content-section {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: clamp(22px, 5vw, 58px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.content h2,
.post h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 0.95;
}

.content p,
.content li,
.content dd,
.post p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.content p {
  max-width: 68ch;
  margin: 0 0 12px;
}

.content ul {
  display: grid;
  gap: 8px;
  max-width: 68ch;
  margin: 0 0 14px;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.content li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 18px;
}

.content li::before {
  position: absolute;
  top: 0.83em;
  left: 0;
  width: 8px;
  height: 1px;
  content: "";
  background: var(--ochre);
}

.content blockquote {
  max-width: 60ch;
  margin: 22px 0;
  padding-left: 18px;
  border-left: 2px solid rgba(199, 123, 239, 0.4);
  color: #decfb8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.4;
}

.content blockquote cite {
  display: block;
  margin-top: 10px;
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
}

.content dl {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 22px;
  margin: 0;
}

.content dt {
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.content dd {
  margin: 0;
  color: var(--text);
}

.post {
  display: block;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}

.post .eyebrow {
  margin-bottom: 14px;
}

.post h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.post p {
  max-width: 64ch;
  margin: 0;
}

.changelog {
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px 28px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 6px 8px;
  border: 1px solid transparent;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  border-color: rgba(214, 125, 255, 0.36);
}

.stack-line {
  width: 100%;
  font-style: italic;
  color: var(--dim, inherit);
  opacity: 0.75;
}

@media (max-width: 1060px) {
  .topbar--home {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero-grid {
    align-items: start;
    min-height: auto;
  }

  .home-title {
    font-size: 8.8rem;
  }

  .section-title {
    font-size: 4.9rem;
  }

  .statement {
    font-size: 1.75rem;
  }

  .module h3 {
    font-size: 2.1rem;
  }

  .notebook p {
    font-size: 1.75rem;
  }

  .matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar--page {
    width: calc(100% - 16px);
  }

  .topnav {
    display: none;
  }

  .page-main {
    width: min(100% - 28px, 980px);
  }

  .content-section,
  .content dl {
    grid-template-columns: 1fr;
  }

  .content-section {
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .topbar--home {
    width: calc(100% - 16px);
  }

  .mark,
  .coordinate {
    padding: 0 10px;
  }

  .coordinate {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 78px 8px 12px;
  }

  .hero::before,
  .signal-field {
    inset: 58px 8px 8px;
    width: calc(100% - 16px);
    height: calc(100% - 66px);
  }

  .hero-grid {
    padding: 28px 16px 20px;
  }

  .home-title {
    font-size: 4.65rem;
  }

  .section-title {
    font-size: 3.25rem;
  }

  .statement,
  .section-copy {
    font-size: 1.28rem;
  }

  .matrix {
    grid-template-columns: 1fr;
  }

  .module {
    min-height: 236px;
  }

  .module .index {
    margin-bottom: 42px;
  }

  .notebook .entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-actions,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }
}
