/* Main CSS styling */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* layout and typography */

body {
  font-family: "DM Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #ffe8ef, transparent 32%), radial-gradient(circle at bottom right, #e9f6ff, transparent 28%), #fffaf7;
  color: #241f21;
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px clamp(20px, 10vw, 120px);
}

.hero {
  padding: 42px 0 30px;
}

.eyebrow {
  color: #9b5d72;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.95;
  margin-bottom: 30px;
  max-width: 980px;
}

h2,
h3 {
  line-height: 1.15;
}

p {
  font-size: 1rem;
  font-weight: 400;
}

.intro {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: 1rem;
}

strong {
  font-weight: 800;
}

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

a:hover {
  text-decoration: underline;
}

code {
  background: #fff0f4;
  border-radius: 6px;
  color: #6d3046;
  font-size: 0.92em;
  padding: 1px 5px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quick-links a,
.project-links a {
  border: 1px solid #e8cfd6;
  border-radius: 999px;
  color: #6d3046;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 9px 16px;
}

.quick-links a:hover,
.project-links a:hover {
  background: #ffe8ef;
  text-decoration: none;
}

.featured,
.process-strip,
.application-note {
  margin: 36px 0 38px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #f0dfe3;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(109, 48, 70, 0.08);
}

.featured h2,
.process-strip h2,
.application-note h2,
.section-heading h2 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.featured p,
.process-strip p {
  max-width: 880px;
}

.focus-grid,
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 62px;
}

.note-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.focus-card,
.note-grid p {
  background: #fff2f6;
  border: 1px solid #f2d5de;
  border-radius: 20px;
  padding: 22px;
}

.focus-label,
.panel-kicker {
  color: #b05f7b;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.focus-card h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.focus-card p,
.note-grid p {
  color: #54474c;
  font-size: 0.95rem;
}

.section-heading {
  border-top: 1px solid #ead7dc;
  padding-top: 32px;
}

/* projects */

.project {
  display: flex;
  flex-direction: column;
  margin-top: 34px;
  margin-bottom: 52px;
}

.featured-project {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #efd6de;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 28px 90px rgba(109, 48, 70, 0.1);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

.project-title {
  font-size: 1.45rem;
  font-weight: 800;
}

.project-tag {
  color: #9b5d72;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
}

.project-description {
  font-size: 1rem;
  margin-bottom: 16px;
  max-width: 880px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.project-panel {
  background: linear-gradient(135deg, #ffffff, #fff0f4);
  border: 1px solid #efd6de;
  border-radius: 22px;
  min-height: 180px;
  padding: 28px;
}

.project-panel.accent {
  background: linear-gradient(135deg, #fff6df, #ffffff);
}

.project-panel.soft {
  background: linear-gradient(135deg, #eef5ff, #ffffff);
}

.grid-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-panel ul {
  padding-left: 20px;
}

.project-panel li + li {
  margin-top: 8px;
}

/* Mobile styling */
@media (max-width: 768px) {
  .container {
    padding: 36px 20px;
  }

  .hero {
    padding-top: 22px;
  }

  h1 {
    margin-bottom: 22px;
  }

  .intro {
    font-size: 0.95rem;
  }

  .featured,
  .process-strip,
  .application-note,
  .focus-card,
  .project-panel,
  .featured-project {
    padding: 22px;
  }

  .focus-grid,
  .grid-panel,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .project-tag {
    font-size: 0.85rem;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 30px 16px;
  }
}
