:root {
  --ink: #111827;
  --ink-soft: #344054;
  --paper: #f4f1e9;
  --paper-bright: #fbfaf7;
  --line: rgba(17, 24, 39, 0.16);
  --accent: #ff6b4a;
  --accent-dark: #d9472e;
  --mint: #9de2c8;
  --white: #ffffff;
  --max-width: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 84px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--paper-bright);
  background: var(--ink);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  box-shadow: 4px 4px 0 var(--accent);
}

.nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(48px, 8vw, 104px);
  align-items: center;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 650px;
  margin: 0 auto;
  padding: 82px 0 100px;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.eyebrow span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(48px, 6.2vw, 82px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.14;
}

.hero-intro {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button-primary {
  color: var(--white);
  background: var(--ink);
}

.button-secondary {
  background: var(--paper-bright);
}

.terminal-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  color: #e5edf7;
  background: var(--ink);
  border: 1px solid #2f3a4a;
  border-radius: 14px;
  box-shadow:
    18px 18px 0 var(--mint),
    36px 36px 0 rgba(255, 107, 74, 0.94);
  transform: rotate(1.25deg);
}

.terminal-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #a8b3c3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.terminal-dots {
  position: absolute;
  left: 18px;
  display: flex;
  gap: 7px;
}

.terminal-dots i {
  width: 9px;
  height: 9px;
  background: #ff6b4a;
  border-radius: 50%;
}

.terminal-dots i:nth-child(2) {
  background: #ffc657;
}

.terminal-dots i:nth-child(3) {
  background: var(--mint);
}

.terminal-body {
  position: relative;
  z-index: 2;
  padding: 50px 46px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(13px, 1.4vw, 16px);
}

.terminal-body p {
  margin: 0 0 12px;
}

.terminal-body .output {
  margin: 0 0 28px 20px;
  color: #9de2c8;
}

.prompt {
  margin-right: 9px;
  color: var(--accent);
  font-weight: 800;
}

.cursor {
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}

.terminal-grid {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 260px;
  height: 260px;
  opacity: 0.09;
  background:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 20px 20px;
  transform: rotate(12deg);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.section {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 52px;
}

.section-heading h2,
.stack-copy h2,
.about-copy h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.2;
}

.section-heading > p {
  max-width: 330px;
  margin: 0 0 6px;
  color: var(--ink-soft);
}

.article-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.875fr 0.875fr;
  gap: 18px;
}

.article-card {
  display: flex;
  min-height: 350px;
  padding: 30px;
  flex-direction: column;
  background: rgba(251, 250, 247, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.1);
}

.article-featured {
  color: var(--white);
  background: var(--ink);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
  color: #687386;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.article-featured .article-meta {
  color: #aeb8c6;
}

.article-meta span {
  padding: 5px 9px;
  color: var(--accent-dark);
  background: rgba(255, 107, 74, 0.1);
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
}

.article-featured .article-meta span {
  color: #ff9b84;
  background: rgba(255, 107, 74, 0.14);
}

.article-card h3 {
  margin: 60px 0 14px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 25px;
  line-height: 1.45;
}

.article-card p {
  margin: 0 0 22px;
  color: #667085;
  font-size: 14px;
}

.article-featured p {
  color: #b9c2cf;
}

.article-card a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  font-size: 13px;
  font-weight: 800;
}

.article-card a span {
  color: var(--accent);
  transition: transform 160ms ease;
}

.article-card a:hover span {
  transform: translateX(4px);
}

.stack-section {
  display: grid;
  width: 100%;
  max-width: none;
  padding: 110px max(24px, calc((100vw - var(--max-width)) / 2));
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  color: var(--white);
  background: var(--ink);
  border: 0;
}

.eyebrow-light {
  color: #aeb8c6;
}

.stack-copy > p:last-child {
  max-width: 470px;
  margin: 26px 0 0;
  color: #b9c2cf;
}

.stack-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stack-list li {
  display: grid;
  padding: 18px 0;
  grid-template-columns: 54px 1fr auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.stack-list span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.stack-list strong {
  font-size: 17px;
}

.stack-list small {
  color: #8e99aa;
}

.note-list {
  border-top: 1px solid var(--line);
}

.note {
  display: grid;
  padding: 40px 0;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.note-index {
  margin: 5px 0 0;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.note h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 24px;
}

.note div > p {
  max-width: 800px;
  margin: 0;
  color: var(--ink-soft);
}

.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-number {
  display: grid;
  min-height: 330px;
  place-items: center;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--ink);
  border-radius: 50% 50% 8px 50%;
  font-family: Georgia, serif;
  font-size: clamp(80px, 14vw, 150px);
  font-weight: 700;
  letter-spacing: -0.08em;
  box-shadow: 16px 16px 0 var(--accent);
}

.about-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--ink-soft);
}

.site-footer {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 110px;
  margin: 0 auto;
  color: #5e6878;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.filing-link {
  margin-left: 10px;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(94, 104, 120, 0.4);
  text-underline-offset: 3px;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.filing-link:hover,
.filing-link:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

.not-found {
  display: flex;
  width: min(calc(100% - 48px), 760px);
  min-height: 100vh;
  margin: 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.not-found h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.18;
}

.not-found > p:not(.eyebrow) {
  margin: 24px 0 34px;
  color: var(--ink-soft);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 70px 0 96px;
    grid-template-columns: 1fr;
  }

  .terminal-card {
    width: calc(100% - 28px);
    max-width: 590px;
    min-height: 370px;
  }

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

  .article-featured {
    grid-column: 1 / -1;
  }

  .stack-section {
    grid-template-columns: 1fr;
    gap: 54px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    min-height: 72px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 12px;
  }

  .brand > span:last-child {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .hero-intro {
    font-size: 15px;
  }

  .terminal-card {
    min-height: 330px;
    box-shadow:
      10px 10px 0 var(--mint),
      20px 20px 0 rgba(255, 107, 74, 0.94);
  }

  .terminal-body {
    padding: 40px 24px;
    font-size: 12px;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 36px;
  }

  .section-heading > p {
    margin-top: 16px;
  }

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

  .article-featured {
    grid-column: auto;
  }

  .article-card {
    min-height: 320px;
  }

  .stack-section {
    width: 100%;
    padding: 78px 16px;
  }

  .stack-list li {
    grid-template-columns: 38px 1fr;
  }

  .stack-list small {
    display: none;
  }

  .note {
    grid-template-columns: 38px 1fr;
    gap: 14px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .about-number {
    width: calc(100% - 20px);
    min-height: 260px;
  }

  .site-footer {
    padding: 28px 0;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    justify-content: center;
  }
}
