:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #fdfdfd;
  --text: #132231;
  --muted: #5f7284;
  --line: #d6dde4;
  --primary: #0f5f5b;
  --primary-dark: #0a4643;
  --accent: #c38c44;
  --shadow: 0 16px 40px rgba(15, 28, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 90% 5%, rgba(195, 140, 68, 0.22), transparent 35%),
    radial-gradient(circle at 8% 40%, rgba(15, 95, 91, 0.14), transparent 40%),
    linear-gradient(180deg, #f8f9fb 0%, #f1f4f7 100%);
  z-index: -1;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(9px);
  background: rgba(244, 246, 248, 0.85);
  border-bottom: 1px solid rgba(214, 221, 228, 0.8);
  z-index: 10;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  text-decoration: none;
  color: var(--text);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary);
}

main {
  padding-bottom: 2rem;
}

.hero {
  padding: 5.5rem 0 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 18ch;
}

.hero-copy {
  max-width: 65ch;
  color: var(--muted);
  margin: 1.25rem 0 2rem;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.section {
  padding: 2rem 0;
}

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.section > p {
  max-width: 72ch;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}

.card-head {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.8rem;
}

.card-head p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.card-head span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li + li {
  margin-top: 0.45rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem;
}

.skills-grid span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.compact {
  max-width: 650px;
}

.compact h3 {
  margin-bottom: 0.25rem;
}

.compact p {
  margin: 0;
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 0.8rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.2rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 780px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .hero {
    padding-top: 4.3rem;
  }

  .btn {
    width: 100%;
  }
}
