:root {
  color-scheme: light;
  --page-bg: #f2f2f2;
  --paper: #ffffff;
  --ink: #321709;
  --text: #1d1d1d;
  --muted: #4f4f4f;
  --green: #24ad78;
  --hero-yellow: #ffe06a;
  --footer: #050505;
  --footer-text: #d9d9d9;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

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

.site-page {
  width: min(calc(100% - 54px), 1440px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
}

.site-header {
  height: 80px;
  background: var(--paper);
}

.site-nav {
  width: min(100% - 112px, 1216px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
  color: #21170f;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
}

.brand-card {
  position: absolute;
  top: 2px;
  left: 0;
  width: 20px;
  height: 19px;
  border: 2px solid #1f8f6b;
  border-radius: 4px;
  background: linear-gradient(135deg, #2eb77e 0%, #2eb77e 60%, #ffd64f 60%);
}

.brand-card::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 5px 0 rgba(255, 255, 255, 0.72);
}

.brand-bean {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 18px;
  height: 20px;
  border: 2px solid #312012;
  border-radius: 50% 48% 45% 52%;
  background: #ffcf35;
}

.brand-bean::before,
.brand-bean::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #312012;
}

.brand-bean::before {
  left: 4px;
}

.brand-bean::after {
  right: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  color: #595959;
  font-size: 14px;
  font-weight: 600;
}

.nav-link {
  padding: 8px 0;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: #161616;
}

.nav-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.hero {
  background: var(--hero-yellow);
}

.hero-image {
  width: 100%;
  height: auto;
}

.text-container {
  width: min(100% - 96px, 860px);
  margin: 0 auto;
}

.idea-section {
  padding: 108px 0 114px;
}

.idea-section h2,
.feature-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.22;
  letter-spacing: 0;
  text-align: center;
}

.idea-intro {
  margin: 50px 0 0;
  color: #242424;
  font-size: 15px;
  line-height: 2;
}

.idea-list {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.idea-list article {
  display: grid;
  gap: 12px;
}

.idea-list h3 {
  margin: 0;
  color: #1d1d1d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0;
}

.idea-list p {
  margin: 0;
  color: #292929;
  font-size: 14px;
  line-height: 1.85;
}

.feature-section {
  padding: 78px 0 120px;
}

.feature-container {
  width: min(100% - 96px, 760px);
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 70px;
  margin-top: 42px;
}

.feature-card {
  width: 100%;
  height: auto;
}

.site-footer {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 12px 24px;
  background: var(--footer);
  color: var(--footer-text);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.site-footer a {
  margin: 0;
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
}

.site-footer a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .site-header {
    height: 50px;
  }

  .site-nav {
    width: min(100% - 64px, 1216px);
    gap: 20px;
  }

  .brand {
    gap: 8px;
    font-size: 14px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .brand-card {
    width: 16px;
    height: 15px;
    border-width: 1px;
  }

  .brand-bean {
    width: 14px;
    height: 16px;
    border-width: 1px;
  }

  .brand-bean::before,
  .brand-bean::after {
    top: 6px;
    width: 2px;
    height: 2px;
  }

  .brand-bean::before {
    left: 4px;
  }

  .brand-bean::after {
    right: 4px;
  }

  .nav-links {
    gap: 28px;
    font-size: 11px;
  }

  .text-container {
    width: min(calc(100% - 206px), 520px);
  }

  .feature-container {
    width: min(calc(100% - 206px), 430px);
  }

  .idea-section {
    padding: 72px 0 84px;
  }

  .idea-section h2,
  .feature-section h2 {
    font-size: 26px;
  }

  .idea-intro {
    margin-top: 34px;
    font-size: 12px;
    line-height: 2;
  }

  .idea-list {
    gap: 19px;
    margin-top: 34px;
  }

  .idea-list h3 {
    font-size: 11px;
  }

  .idea-list p {
    font-size: 10px;
  }

  .feature-section {
    padding: 56px 0 86px;
  }

  .feature-grid {
    gap: 34px 40px;
    margin-top: 28px;
  }

  .site-footer {
    min-height: 34px;
    font-size: 8px;
  }
}

@media (max-width: 560px) {
  .site-page {
    width: 100%;
  }

  .site-nav {
    width: calc(100% - 28px);
  }

  .brand-name {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-links {
    gap: 14px;
  }

  .text-container,
  .feature-container {
    width: calc(100% - 36px);
  }

  .idea-section {
    padding: 48px 0 58px;
  }

  .idea-section h2,
  .feature-section h2 {
    font-size: 24px;
  }

  .idea-intro {
    margin-top: 26px;
    font-size: 13px;
  }

  .idea-list h3 {
    font-size: 13px;
  }

  .idea-list p {
    font-size: 12px;
  }

  .feature-section {
    padding: 42px 0 62px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(100%, 310px);
    margin-right: auto;
    margin-left: auto;
  }
}
