/* ---------- Design tokens ---------- */
:root {
  --bg: #faf9f6;
  --bg-card: #ffffff;
  --text: #33362e;
  --text-muted: #6b6e64;
  --accent: #8fa693;      /* soft sage */
  --accent-dark: #6f8a74;
  --border: #e7e4dc;
  --shadow: 0 2px 10px rgba(60, 60, 50, 0.06);
  --radius: 14px;
  --max-width: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  padding: 64px 0 32px;
  text-align: center;
}

header.site-header h1 {
  font-size: 2.2rem;
  margin: 0;
  font-weight: 600;
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 8px;
}

header.site-header p.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

.avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--border);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.avatar-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  display: block;
}

section.about {
  padding: 8px 0 40px;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Project grid ---------- */
.section-heading {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 16px 0 72px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(60, 60, 50, 0.1);
}

.card-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eef1ea, #e2e7dd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-thumb-img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card-body p {
  color: var(--text-muted);
  margin: 0 0 16px;
  flex: 1;
  font-size: 0.96rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Project detail page ---------- */
.back-link {
  display: inline-block;
  margin: 32px 0 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

article.project {
  padding: 8px 0 72px;
}

article.project h1 {
  font-size: 2rem;
  margin: 8px 0 4px;
}

.project-meta {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.project-hero {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eef1ea, #e2e7dd);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.project-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
  display: block;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.info-block h4 {
  margin: 0 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.info-block p {
  margin: 0;
}

.launch-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 16px;
  box-shadow: var(--shadow);
}

.launch-btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.storyboard-section {
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.storyboard-section h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.storyboard-section p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.secondary-btn {
  display: inline-block;
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
}

.secondary-btn:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ---------- Contact icons ---------- */
.footer-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.footer-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.footer-icons svg {
  width: 18px;
  height: 18px;
}

.footer-icons a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
