:root {
  --bg: #f4efe8;
  --bg-accent: #fffaf4;
  --surface: rgba(255, 250, 244, 0.78);
  --surface-strong: #fffdf8;
  --text: #1f2933;
  --muted: #52606d;
  --line: rgba(31, 41, 51, 0.08);
  --primary: #0f766e;
  --primary-deep: #115e59;
  --secondary: #c96d38;
  --shadow: 0 24px 60px rgba(73, 53, 36, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 109, 56, 0.16), transparent 28%),
    radial-gradient(circle at right 10% top 20%, rgba(15, 118, 110, 0.16), transparent 22%),
    linear-gradient(180deg, #f8f2ea 0%, #f4efe8 48%, #efe7dc 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(73, 53, 36, 0.08);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav a {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(15, 118, 110, 0.1);
  transform: translateY(-1px);
}

.hero-section,
.contact-panel,
.info-card,
.profile-card {
  box-shadow: var(--shadow);
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem 0 1rem;
}

.hero-copy,
.profile-card,
.contact-panel,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: 2rem;
}

.eyebrow,
.section-kicker,
.card-label,
.profile-label {
  margin: 0 0 0.75rem;
  color: var(--primary-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.tagline {
  line-height: 1.1;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  letter-spacing: -0.04em;
}

.tagline {
  margin: 0.75rem 0 0;
  color: var(--secondary);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
}

.hero-bio,
.section-heading p,
.profile-text,
.contact-panel p,
.info-card p {
  color: var(--muted);
}

.hero-bio {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.button:hover,
.button:focus-visible,
.info-card:hover,
.info-card:focus-within {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-deep);
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.22);
}

.button-secondary {
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(255, 255, 255, 0.45);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(15, 118, 110, 0.32);
  background: rgba(255, 255, 255, 0.85);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.hero-highlights li {
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
}

.profile-card {
  padding: 1rem;
}

.profile-image {
  width: min(72%, 260px);
  margin: 0 auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 4px solid rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 30px rgba(73, 53, 36, 0.12);
  background: #fff;
}

.badge-preview {
  width: min(100%, 220px);
  margin: 0 auto 0.35rem;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 239, 232, 0.92));
}

.profile-card-body {
  padding: 1.25rem 0.5rem 0.5rem;
}

.profile-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.content-section {
  padding: 2rem 0 0.5rem;
}

.section-heading {
  max-width: 50rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.info-card:hover,
.info-card:focus-within {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 20px 36px rgba(73, 53, 36, 0.15);
}

.info-card h3,
.contact-panel h3 {
  margin: 0;
  font-size: 1.35rem;
}

.card-cta,
.project-card a,
.social-links a {
  font-weight: 700;
  color: var(--primary-deep);
  text-decoration: none;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer {
  padding: 2.5rem 0 1rem;
  text-align: center;
  color: var(--muted);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 3px;
}

@media (max-width: 639px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.5rem;
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: 24px;
  }

  .brand-mark {
    margin: 0 auto;
  }

  .site-nav {
    justify-content: center;
  }

  .site-nav a {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
    padding: 0.7rem 0.8rem;
  }

  .hero-section {
    padding-top: 1.25rem;
    gap: 1rem;
  }

  .hero-copy,
  .profile-card,
  .contact-panel,
  .info-card {
    border-radius: 22px;
  }

  .hero-copy,
  .info-card,
  .contact-panel {
    padding: 1.2rem;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .hero-bio {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-highlights li {
    width: 100%;
    text-align: center;
  }

  .badge-preview {
    width: min(100%, 180px);
  }

  .social-links {
    gap: 0.75rem;
  }
}

@media (min-width: 720px) {
  .page-shell {
    width: min(calc(100% - 3rem), var(--max-width));
    padding-top: 1.25rem;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    align-items: stretch;
    gap: 1.25rem;
    padding-top: 2.5rem;
  }

  .link-grid,
  .project-grid,
  .credentials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    align-items: center;
  }
}

@media (min-width: 980px) {
  .hero-copy {
    padding: 2.75rem;
  }

  .link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-grid,
  .credentials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-section {
    padding-top: 3rem;
  }
}

@media (min-width: 1200px) {
  .hero-section {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    gap: 1.5rem;
  }

  .credentials-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
