:root {
  --attention-background-color: #c2412d;
  --attention-soft-background-color: #fcf9f0;
  --attention-border-color: #d8c2a8;
  --normal-border: 1px solid #cccccc;
}

.lab-shell {
  min-height: 100vh;
}

.lab-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero {
  background: var(--background-secondary-color);
  border: var(--normal-border);
  box-shadow: 0 1px 2px var(--shadow-color);
  padding: 36px 34px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--hyperlink-text-color);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: #4d3f28;
  font-family: "IM Fell English", serif;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 0.98;
  font-weight: 400;
}

.accent {
  color: var(--hyperlink-text-color);
}

.hero p {
  max-width: 720px;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero p.hero-note {
  margin-top: 10px;
}

.hero-purpose {
  max-width: 820px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: var(--normal-border);
}

.hero-purpose h2 {
  margin: 0 0 12px;
  color: #4d3f28;
  font-size: 1.55rem;
  font-weight: 700;
}

.hero-purpose ul {
  margin: 14px 0 0;
  padding-left: 1.2rem;
}

.hero-purpose li {
  font-size: 1rem;
  line-height: 1.7;
}

.author-link {
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.panel {
  background: var(--background-secondary-color);
  border: var(--normal-border);
  box-shadow: 0 1px 2px var(--shadow-color);
  padding: 28px;
}

.panel h2 {
  margin: 0 0 14px;
  color: #4d3f28;
  font-size: 1.85rem;
  font-weight: 700;
}

.panel p,
.panel li {
  font-size: 1rem;
  line-height: 1.7;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-label {
  color: var(--muted-text-color);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-title {
  margin: 8px 0 12px;
  color: #4d3f28;
  font-family: "IM Fell English", serif;
  font-size: 2.3rem;
  font-weight: 400;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn-primary-lab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary-lab {
  background: var(--primary-button-background);
  border: 1px solid #555555;
  color: var(--primary-button-text-color);
}

.btn-primary-lab:hover {
  background: var(--primary-button-hover-background);
  color: var(--primary-button-text-color);
  text-decoration: none;
}

.warning-note {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--attention-border-color);
  background: var(--attention-soft-background-color);
  color: var(--main-text-color);
  line-height: 1.7;
}

.warning-note strong {
  color: var(--attention-background-color);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero,
  .panel {
    padding: 22px 18px;
  }

}
