:root {
  color-scheme: light;
  --ink: #19140f;
  --muted: #71675b;
  --paper: #fff7e8;
  --surface: #fffdf7;
  --line: #241b1326;
  --tomato: #ef4e37;
  --cobalt: #2457c5;
  --mint: #41b77a;
  --lemon: #ffd84d;
  --rose: #ffb4a2;
  --shadow: 0 22px 70px rgba(44, 29, 14, 0.15);
  font-family: Avenir Next, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 216, 77, 0.45), transparent 22rem),
    radial-gradient(circle at 95% 22%, rgba(65, 183, 122, 0.22), transparent 20rem),
    linear-gradient(180deg, #fff3d8 0%, #fffdf7 42%, #f5f0e8 100%);
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 247, 232, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.brand span {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lemon);
  font-size: 0.78rem;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.4rem);
  color: #3d3328;
  font-size: 0.92rem;
  font-weight: 700;
}

.locale-switcher {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.22rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.26rem;
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.45), rgba(65, 183, 122, 0.18)),
    #fffdf7;
  box-shadow: 0 5px 0 var(--ink);
}

.locale-switcher button {
  position: relative;
  min-width: 3.45rem;
  min-height: 2.1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.locale-switcher button:hover {
  transform: translateY(-1px);
}

.locale-switcher button:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

.locale-switcher button.active {
  background: var(--ink);
  color: #fffdf7;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.2);
}

.hero {
  position: relative;
  min-height: min(66vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 20, 15, 0.82), rgba(25, 20, 15, 0.38) 48%, rgba(25, 20, 15, 0.05)),
    linear-gradient(0deg, rgba(25, 20, 15, 0.55), transparent 42%);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 2rem));
  padding: clamp(2rem, 7vw, 6rem) clamp(1rem, 4vw, 3rem);
  color: #fffdf7;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--tomato);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lemon);
}

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

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, ui-serif, serif;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

html[lang="zh-CN"] h1 {
  max-width: 10em;
  font-size: clamp(3.15rem, 7vw, 6rem);
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero-lede {
  max-width: 46rem;
  margin: 1.15rem 0 0;
  color: rgba(255, 253, 247, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.primary-button,
.secondary-button,
.community-form button {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0 1.25rem;
  font-weight: 900;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button,
.community-form button {
  background: var(--lemon);
  color: var(--ink);
}

.secondary-button {
  background: #fffdf7;
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.community-form button:hover {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.section-block {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.7rem, 6vw, 5rem) 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding-top: 1.2rem;
}

.intro-strip div {
  border: 2px solid var(--ink);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--surface);
  box-shadow: 0 5px 0 var(--ink);
}

.intro-strip strong {
  display: block;
  font-family: Georgia, ui-serif, serif;
  font-size: 2.4rem;
  line-height: 1;
}

.intro-strip span {
  color: var(--muted);
  font-weight: 800;
}

.section-heading {
  margin-bottom: 1.35rem;
}

.section-heading h2 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, ui-serif, serif;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.with-count {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.with-count > span {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  background: var(--mint);
  color: #071d10;
  font-weight: 900;
}

.idea-grid,
.pack-grid,
.experiment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.idea-card,
.pack-card,
.tool-card,
.experiment-card {
  border: 2px solid var(--ink);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--surface);
  box-shadow: 0 5px 0 var(--ink);
}

.idea-card:nth-child(2n) {
  background: #f0fff7;
}

.idea-card:nth-child(3n) {
  background: #fff0e9;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--cobalt);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.idea-card h3,
.pack-card h3,
.tool-card h3,
.experiment-card h3 {
  margin: 0.8rem 0 0.5rem;
  font-family: Georgia, ui-serif, serif;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0;
}

.idea-card p,
.pack-card p,
.tool-card p,
.experiment-card p {
  color: #4f4438;
  line-height: 1.45;
}

dl {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0.15rem 0 0;
  font-weight: 800;
}

.first-step {
  border-left: 4px solid var(--tomato);
  padding-left: 0.7rem;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-row span,
.tool-card span,
.experiment-card span {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.28rem 0.52rem;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.tag-scroller {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.tag-button {
  min-width: max-content;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.52rem 0.85rem;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.tag-button.active {
  background: var(--cobalt);
  color: #fff;
}

.tinted {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - 1180px) / 2));
  background: #e7f6ed;
  border-block: 2px solid var(--ink);
}

.pack-card ol {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
}

.sticky-heading {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.tool-grid {
  display: grid;
  gap: 1rem;
}

.tool-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
}

.tool-card p {
  margin-bottom: 0;
}

.signal-section {
  border-top: 2px dashed var(--line);
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: grid;
  gap: 0.45rem;
  border: 2px solid var(--ink);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--paper);
  box-shadow: 0 5px 0 var(--ink);
}

.signal-list strong {
  color: var(--tomato);
}

.signal-list span {
  color: #4f4438;
  line-height: 1.5;
}

.experiment-card {
  background: #fff4f1;
}

.community-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem);
  background: var(--ink);
  color: #fffdf7;
}

.community-band h2 {
  margin: 0;
  font-family: Georgia, ui-serif, serif;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.community-form {
  display: grid;
  gap: 0.75rem;
}

.community-form label {
  font-weight: 900;
}

.community-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}

.community-form input {
  width: 100%;
  min-height: 3rem;
  border: 2px solid #fffdf7;
  border-radius: 999px;
  padding: 0 1rem;
  background: transparent;
  color: #fffdf7;
}

.community-form input::placeholder {
  color: rgba(255, 253, 247, 0.65);
}

.community-form button {
  border-color: #fffdf7;
  box-shadow: 0 5px 0 #fffdf7;
}

@media (max-width: 960px) {
  .idea-grid,
  .pack-grid,
  .experiment-grid,
  .signal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .community-band {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }
}

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

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .locale-switcher {
    width: 100%;
    box-shadow: 0 6px 0 var(--ink);
  }

  .locale-switcher button {
    min-height: 2.85rem;
    font-size: 1rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(25, 20, 15, 0.82), rgba(25, 20, 15, 0.2)),
      linear-gradient(90deg, rgba(25, 20, 15, 0.7), rgba(25, 20, 15, 0.2));
  }

  .hero img {
    object-position: center;
  }

  .intro-strip,
  .idea-grid,
  .pack-grid,
  .experiment-grid,
  .signal-list {
    grid-template-columns: 1fr;
  }

  .tool-card,
  .community-form div {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
