﻿/*
  Design tokens.
  Edit these variables first to adjust colors, sizing, and overall feel quickly.
*/
:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #d8e1ee;
  --accent: #0a5be0;
  --accent-dark: #0847b3;
  --radius: 14px;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  --content-width: 1040px;
}

/* Basic reset for layout consistency. */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #e9f0ff 0, var(--bg) 44%);
  line-height: 1.55;
}

.container {
  width: min(var(--content-width), 92%);
  margin: 0 auto;
}

/* Above-the-fold priority section. */
.hero {
  padding: 2.8rem 0 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}

h1 {
  margin: 0.35rem 0 0.15rem;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.role {
  margin: 0;
  color: #1d3557;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
}

.summary {
  margin: 0.75rem 0 0;
  max-width: 58ch;
  color: #243b5a;
  font-size: 1rem;
}

/* Featured project card is visually obvious by contrast + accent border. */
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: var(--shadow);
}

.card-label {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.project-card h2 {
  margin: 0.3rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.22;
}

.project-card p {
  margin: 0;
  color: #334155;
}

.project-links {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* CTA buttons are sized for easy clicking. */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  min-width: 130px;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid rgba(10, 91, 224, 0.28);
  outline-offset: 2px;
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary {
  color: #1f2f47;
  background: #ffffff;
  border: 1px solid #afc0d8;
}

.btn-secondary:hover {
  background: #f6f9ff;
  border-color: #7f98bb;
}

.discover {
  padding: 0.5rem 0 1.4rem;
}

.discover h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #1b2f4b;
}

.discover-list {
  margin: 0;
  padding-left: 1rem;
  color: #334155;
}

.discover-list li + li {
  margin-top: 0.2rem;
}

/* Responsive layout: stack sections while preserving hierarchy. */
@media (max-width: 900px) {
  .hero {
    padding-top: 2.2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .project-card {
    padding: 0.95rem 1rem 1rem;
  }
}

@media (max-width: 520px) {
  .btn {
    width: 100%;
  }

  .discover {
    padding-bottom: 1.1rem;
  }
}
