/* ------------------------------
   Base styles
------------------------------ */

:root {
  --background: #f7f5f1;
  --surface: #ffffff;
  --surface-muted: #efebe4;
  --text: #171512;
  --text-muted: #625d55;
  --border: #dcd5ca;
  --accent: #44335c;
  --accent-dark: #30233f;
  --dark: #17131d;
  --dark-surface: #231c2b;
  --dark-text: #f8f4fb;
  --dark-muted: #c6bdce;
  --success: #49745d;
  --shadow: 0 24px 70px rgba(31, 24, 38, 0.1);
  --radius-large: 28px;
  --radius-medium: 18px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.1;
}

h1 {
  max-width: 850px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 18px;
  font-size: 2rem;
  letter-spacing: -0.025em;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.section-muted {
  background: var(--surface-muted);
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 54px;
}

/* ------------------------------
   Header and navigation
------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 213, 202, 0.75);
  background: rgba(247, 245, 241, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrapper {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 11px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text) !important;
}

/* ------------------------------
   Hero
------------------------------ */

.hero {
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.65fr);
  align-items: start;
  gap: 70px;
}

.hero-text {
  max-width: 720px;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(68, 51, 92, 0.22);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--border);
  background: var(--surface);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  margin-bottom: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.hero-proof span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.hero-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at top right, rgba(123, 95, 156, 0.35), transparent 45%),
    var(--dark);
  color: var(--dark-text);
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin-bottom: 18px;
  font-size: 2.4rem;
}

.hero-card p {
  color: var(--dark-muted);
}

.card-label {
  margin-bottom: 18px;
  color: #d8cee0 !important;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.93rem;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7bc29b;
  box-shadow: 0 0 0 6px rgba(123, 194, 155, 0.12);
}

/* ------------------------------
   About
------------------------------ */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 90px;
}

.body-copy {
  color: var(--text-muted);
  font-size: 1.08rem;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

/* ------------------------------
   Projects
------------------------------ */

.project-grid {
  display: grid;
  gap: 26px;
}

.project-card {
  display: grid;
  grid-template-columns: 0.25fr 1.5fr 0.65fr;
  gap: 38px;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: 0 10px 35px rgba(38, 31, 25, 0.035);
}

.project-featured {
  border-color: rgba(68, 51, 92, 0.35);
}

.project-topline {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  color: var(--accent);
}

.project-status,
.project-type {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-description {
  max-width: 700px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.project-links a {
  color: var(--accent);
  font-size: 1.02rem;
  font-weight: 700;
}

.project-screenshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.screenshot-placeholder {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  border-radius: 20px;
  background: rgba(68, 51, 92, 0.04);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

.project-list {
  margin: 25px 0 0;
  padding-left: 21px;
}

.project-list li + li {
  margin-top: 10px;
}

.tech-list {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 9px;
}

.tech-list span,
.toolkit-items span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  font-size: 0.78rem;
  font-weight: 750;
}

/* ------------------------------
   Skills
------------------------------ */

.section-dark {
  background: var(--dark);
  color: var(--dark-text);
}

.section-dark .eyebrow {
  color: #c2afd7;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-medium);
  background: var(--dark-surface);
}

.skill-card h3 {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.skill-card p {
  margin-bottom: 0;
  color: var(--dark-muted);
}

.toolkit {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.toolkit > p {
  font-weight: 800;
}

.toolkit-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolkit-items span {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: var(--dark-text);
}

/* ------------------------------
   Contact and footer
------------------------------ */

.contact-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(68, 51, 92, 0.1), transparent 34%),
    var(--background);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  align-items: end;
  gap: 60px;
}

.contact-wrapper p {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-wrapper p {
  margin-bottom: 0;
}

.footer-wrapper a {
  font-weight: 700;
}

/* ------------------------------
   Responsive styles
------------------------------ */

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .two-column {
    gap: 50px;
  }

  .hero-card {
    max-width: 580px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-topline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toolkit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 78px 0;
  }

  .hero {
    padding-top: 82px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 28px;
  }

  .footer-wrapper {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.profile-photo {
    border-radius: 100%;
}
