:root {
  --lab-bg: #F7F2EA;
  --lab-ink: #1C1B19;
  --lab-wine: #8E2F45;
  --lab-muted: #6F6A63;
  --lab-line: #E2D5C9;
  --lab-paper: #FFFDF9;
  --lab-serif: "Songti SC", "Noto Serif SC", "STSong", serif;
}
* { box-sizing: border-box; }
body.lab {
  margin: 0;
  background:
    radial-gradient(1000px 700px at 90% -10%, #F1DFDF 0%, rgba(241,223,223,0) 60%),
    radial-gradient(800px 600px at -10% 20%, #EFE4D3 0%, rgba(239,228,211,0) 55%),
    var(--lab-bg);
  color: var(--lab-ink);
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.lab a { color: inherit; text-decoration: none; }
.lab-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto; padding: 20px 30px;
  border-bottom: 1px solid var(--lab-line);
}
.lab-brand { font-family: var(--lab-serif); font-size: 17px; letter-spacing: 0; font-weight: 400; }
.lab-back { font-family: var(--lab-serif); font-size: 12px; color: var(--lab-muted); border-bottom: 1px solid var(--lab-line); padding-bottom: 3px; }
.lab-hero { max-width: 1100px; margin: 0 auto; padding: 74px 30px 40px; }
.lab-eyebrow { font-size: 10px; letter-spacing: .24em; color: var(--lab-wine); font-weight: 700; margin: 0 0 16px; }
.lab-hero h1 { margin: 0; font-family: var(--lab-serif); font-weight: 500; font-size: clamp(44px, 6vw, 78px); line-height: 1.05; letter-spacing: -.03em; }
.lab-hero p { max-width: 650px; margin: 22px 0 0; color: var(--lab-muted); font-size: 14px; line-height: 1.9; }
.lab-note {
  max-width: 1100px; margin: 26px auto 0; padding: 16px 18px;
  border: 1px solid #E3C8CF; border-radius: 12px; background: #FBF0F1;
  color: var(--lab-wine); font-size: 11.5px; line-height: 1.8;
}
.lab-note b { font-weight: 600; }
.lab-grid {
  max-width: 1240px; margin: 40px auto 0; padding: 0 30px 90px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.lab-card {
  background: var(--lab-paper); border: 1px solid var(--lab-line); border-radius: 18px;
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.lab-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(58,38,34,.12); }
.lab-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #E8DFD4; }
.lab-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.lab-card:hover .lab-shot img { transform: scale(1.025); }
.lab-num {
  position: absolute; left: 14px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(28,27,25,.78); color: #FFF9F4;
  font-family: var(--lab-serif); font-size: 13px; backdrop-filter: blur(6px);
}
.lab-body { padding: 20px 20px 18px; }
.lab-body h2 { margin: 0; font-family: var(--lab-serif); font-weight: 500; font-size: 28px; letter-spacing: -.01em; }
.lab-repo { margin: 4px 0 0; font-size: 9px; letter-spacing: .12em; color: #9A938B; text-transform: uppercase; }
.lab-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.lab-tag { font-size: 9px; color: var(--lab-wine); border: 1px solid #E3C8CF; background: #FBF0F1; border-radius: 999px; padding: 4px 8px; letter-spacing: .04em; }
.lab-desc { margin: 0; color: var(--lab-muted); font-size: 11.5px; line-height: 1.8; }
.lab-links { display: flex; gap: 8px; margin-top: 14px; }
.lab-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--lab-line); color: var(--lab-ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lab-btn:hover { border-color: var(--lab-wine); color: var(--lab-wine); }
.lab-btn.primary { background: var(--lab-ink); color: #FFF9F4; border-color: var(--lab-ink); }
.lab-btn.primary:hover { background: var(--lab-wine); border-color: var(--lab-wine); color: #FFF9F4; }
.lab-footer { max-width: 1240px; margin: 0 auto; padding: 24px 30px 46px; border-top: 1px solid var(--lab-line); display: flex; justify-content: space-between; gap: 20px; color: #9A938B; font-size: 9px; letter-spacing: .04em; }
@media (max-width: 820px) {
  .lab-grid { grid-template-columns: 1fr; padding: 0 18px 60px; }
  .lab-nav, .lab-hero, .lab-footer { padding-left: 18px; padding-right: 18px; }
  .lab-hero { padding-top: 48px; }
  .lab-body h2 { font-size: 24px; }
}
