:root {
  --ink: #141f1c;
  --ink-soft: #41504b;
  --muted: #6f7a75;
  --paper: #f5f2ea;
  --paper-light: #fffdf8;
  --green: #173d34;
  --blue-grey: #71888a;
  --blue-soft: #d9e3e0;
  --ember: #c65336;
  --amber-soft: #f3dfc9;
  --line: rgba(20, 31, 28, 0.18);
  --line-strong: rgba(20, 31, 28, 0.68);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20, 31, 28, 0.04) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(180deg, var(--paper) 0%, #eef3ef 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ember);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(198, 83, 54, 0.32);
  outline-offset: 4px;
}

.site-header,
main,
.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  color: var(--paper-light);
  background: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand-lockup small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-nav a,
.home-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}

.home-link {
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--green);
  font-weight: 700;
}

.hero {
  padding: 58px 0 82px;
  border-bottom: 1px solid var(--line-strong);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-meta span {
  padding: 12px 0;
}

.hero-meta span + span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  gap: 68px;
  align-items: end;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--ember);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dd {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: 86px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.04;
}

h2 {
  font-size: 54px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.08;
}

h3 {
  font-size: 29px;
  line-height: 1.15;
}

.hero-note {
  border-top: 3px solid var(--ink);
  padding-top: 22px;
}

.hero-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.78;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}

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

.button.primary:hover {
  color: var(--paper-light);
  background: var(--ember);
  border-color: var(--ember);
}

.index-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
}

.index-strip div {
  padding: 22px;
}

.index-strip div + div {
  border-left: 1px solid var(--line);
}

.index-strip span,
.app-code,
.status,
.app-card dt,
.network-list span,
.site-footer {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.index-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.25;
}

.section {
  padding: 82px 0;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.42fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -32px;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.app-list {
  display: grid;
  grid-template-columns: 1.08fr 1.18fr 0.9fr;
  gap: 0;
  border-top: 2px solid var(--ink);
  border-left: 1px solid var(--line-strong);
}

.app-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 24px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, 0.76);
}

.accent-card {
  background: var(--green);
  color: var(--paper-light);
}

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 42px;
}

.app-code {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--green);
}

.accent-card .app-code {
  color: var(--paper-light);
}

.status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid currentColor;
  background: var(--paper-light);
}

.status.planned {
  color: var(--blue-grey);
}

.status.building {
  color: var(--ember);
}

.status.live {
  color: var(--green);
}

.status.archived {
  color: var(--muted);
}

.accent-card .status {
  background: rgba(255, 253, 248, 0.95);
}

.app-card p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.accent-card p {
  color: rgba(255, 253, 248, 0.78);
}

.app-card dl {
  margin: auto 0 0;
}

.app-card dl div {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.accent-card dl div {
  border-color: rgba(255, 253, 248, 0.26);
}

.app-card dt {
  margin-bottom: 8px;
}

.app-card dd {
  margin: 0;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.accent-card dd {
  color: var(--paper-light);
}

.compact-heading {
  display: block;
  max-width: 720px;
}

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

.status-grid article {
  min-height: 170px;
  padding: 20px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, 0.52);
}

.status-grid p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.network-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.46fr) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.network-list {
  border-top: 2px solid var(--ink);
}

.network-list a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 96px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
}

.network-list strong {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  line-height: 1.4;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 0 36px;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
}

.not-found {
  display: grid;
  min-height: 72vh;
  align-items: center;
}

.not-found .hero-note {
  max-width: 760px;
}

@media (max-width: 940px) {
  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 42px;
  }

  h3 {
    font-size: 25px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .hero-layout,
  .section-heading,
  .network-section {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  .app-list,
  .status-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 23px;
  }

  .site-header {
    gap: 14px;
    padding-top: 16px;
  }

  .brand-mark {
    width: 42px;
    height: 38px;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 18px;
  }

  .hero {
    padding: 36px 0 56px;
  }

  .hero-meta {
    display: none;
  }

  .hero-layout {
    gap: 30px;
    padding: 32px 0;
  }

  .button {
    width: 100%;
  }

  .index-strip,
  .app-list,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .index-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 58px 0;
  }

  .app-card {
    min-height: auto;
  }

  .app-card-head {
    margin-bottom: 28px;
  }

  .network-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
