:root {
  color-scheme: dark;
  --ink: #f8f8f5;
  --muted: rgba(248, 248, 245, 0.55);
  --line: rgba(248, 248, 245, 0.14);
  --paper: #000;
  --panel: rgba(255, 255, 255, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
}

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

.home-page {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6vmin;
}

.home-shell {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(38px, 7vmin, 78px);
  transform: translateY(-1.5vh);
}

.app-icon {
  --size: clamp(160px, 30vmin, 280px);
  width: var(--size);
  height: var(--size);
  overflow: hidden;
  flex: 0 0 auto;
  background: #000;
  border-radius: 22.37%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 90px rgba(255, 255, 255, 0.035);
}

.app-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.entries {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(18px, 5vmin, 48px);
}

.entries a {
  min-width: clamp(84px, 15vmin, 128px);
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(12px, 2vmin, 20px) clamp(14px, 2.6vmin, 26px);
  border-radius: 18px;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.entries a:hover,
.entries a:focus-visible {
  background: var(--panel);
  color: rgba(248, 248, 245, 0.94);
  outline: none;
}

.entries a:active {
  transform: translateY(1px);
}

.entries a:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.24);
}

.entry-emoji {
  color: initial;
  font-size: clamp(36px, 7vmin, 58px);
  line-height: 1;
  user-select: none;
}

.entry-label {
  font-size: clamp(11px, 1.35vmin, 13px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(5, 5, 5, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #000;
  background: #fff;
  border-radius: 8px;
}

.site-header nav {
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  padding: clamp(58px, 8vw, 112px) clamp(20px, 5vw, 72px) 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f4f0d8;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 10vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-text,
.section p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.button.primary {
  color: #000;
  background: #fff;
  border-color: #fff;
}

.button.ghost {
  background: transparent;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.tech-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tech-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
}

.tech-list a,
.tech-list span {
  display: block;
}

.tech-list a:hover span {
  color: var(--ink);
}

.tech-list small {
  display: block;
  margin-top: 4px;
  color: rgba(248, 248, 245, 0.42);
  font-size: 14px;
}

.article-shell {
  padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.article {
  max-width: 860px;
}

.article h1 {
  max-width: 760px;
}

.article h2 {
  margin-top: 58px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
  font-size: clamp(28px, 4vw, 42px);
}

.article p,
.article li,
.article td,
.article th {
  color: var(--muted);
  font-size: 17px;
}

.article-lead {
  max-width: 760px;
  color: rgba(248, 248, 245, 0.72);
  font-size: 21px;
}

.article ul,
.article ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 1.25em;
}

.article code {
  color: #f4f0d8;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.article th,
.article td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.article th {
  color: var(--ink);
}

.article tr:last-child td {
  border-bottom: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  .entries a {
    transition: none;
  }
}

@media (max-width: 420px) {
  .home-page {
    padding: 24px 14px;
  }

  .home-shell {
    gap: 34px;
  }

  .entries {
    gap: 8px;
  }

  .entries a {
    min-width: 0;
    padding: 10px 8px;
  }

  .entry-label {
    letter-spacing: 0.1em;
  }
}

@media (max-height: 680px) {
  .app-icon {
    --size: clamp(140px, 28vmin, 220px);
  }

  .home-shell {
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
