:root {
  --bg: #fff7fa;
  --card: #ffffff;
  --text: #1a2a3a;
  --muted: #5c6b78;
  --accent: #f56b9a;
  --line: #f3d5e2;
  --shadow: 0 10px 28px rgba(245, 107, 154, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header,
.site-footer,
main {
  width: min(880px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.site-header nav {
  display: flex;
  gap: 18px;
}

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

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

h1 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.lead, .muted { color: var(--muted); }

.section { padding: 28px 0; }

.work-card {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 680px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
}

.work-card:hover { text-decoration: none; }

.work-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
  background: #ffe8f0;
}

.work-card div { padding: 18px 18px 20px; }

.work-card h3 { margin: 0 0 6px; font-size: 20px; }

.work-card p { margin: 0 0 12px; color: var(--muted); }

.work-card span { color: var(--accent); font-weight: 600; }

.feature {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.feature h2 { margin-bottom: 8px; }

.feature p { margin: 0; color: var(--muted); }

.feature img {
  width: min(320px, 100%);
  height: auto;
  justify-self: center;
  border-radius: 28px;
}

.note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 12px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p { margin: 6px 0; }

@media (min-width: 720px) {
  .work-card {
    grid-template-columns: 220px 1fr;
  }

  .work-card img {
    height: 460px;
    min-height: 0;
    object-fit: cover;
    object-position: top center;
  }

  .work-card div {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .feature { grid-template-columns: 1fr 320px; }
}
