:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #fffdf8;
  --text: #1f1a17;
  --muted: #6b6258;
  --line: rgba(38, 28, 21, 0.08);
  --accent: #a62616;
  --accent-soft: rgba(166, 38, 22, 0.08);
  --shadow: rgba(44, 29, 20, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top, rgba(166, 38, 22, 0.06), transparent 38%),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "SF Pro Text", "PingFang SC", "PingFang TC", "Noto Sans", sans-serif;
}

body {
  min-height: 100vh;
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 40px var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  padding: 28px 28px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid rgba(166, 38, 22, 0.16);
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero p {
  margin-top: 12px;
  max-width: 640px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
}

.grid {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.grid.languages {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel {
  padding: 22px;
}

.language-card h2,
.section-title {
  font-size: 1.2rem;
  line-height: 1.25;
}

.language-card p,
.copy,
li {
  color: var(--muted);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(166, 38, 22, 0.14);
}

.button.primary {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

.topbar.with-back {
  justify-content: space-between;
}

.back-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 0;
}

.back-link:hover {
  color: var(--accent);
}

.lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.lang-links a.active {
  color: var(--accent);
  border-color: rgba(166, 38, 22, 0.16);
  background: var(--accent-soft);
}

.stack {
  display: grid;
  gap: 16px;
}

ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.footer-note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 920px);
    padding: 18px 0 36px;
  }

  .hero,
  .panel {
    border-radius: 18px;
  }

  .hero,
  .panel {
    padding: 18px;
  }
}
