/**
 * layout.css
 *
 * Page-level structure: container, sections, dev, footer.
 * No colors / no decorative styling here — that lives in components.css.
 */

/* ============ Dev ============ */
.dev {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem var(--pad) 3rem;
  position: relative;
}

.scene-frame {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.dev-title {
  max-width: 900px;
  margin: 2.5rem auto 0;
  width: 100%;
  text-align: left;
}

.dev-title h1 {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.dev-title h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-2);
}

.dev-tagline {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-2);
  letter-spacing: 0.05em;
}

.dev-tagline::before {
  content: '> ';
  color: var(--accent);
}

.scroll-hint {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  animation: bob 2s ease-in-out infinite;
}

/* ============ Generic section ============ */
section.content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem var(--pad);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-2);
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 60px;
}

/* ============ About grid ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}

.highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ============ Stack grid ============ */
.stack-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

/* ============ Projects grid ============ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ============ Contact block ============ */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ============ Footer ============ */
footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-block {
    grid-template-columns: 1fr;
  }
}
