:root {
  --ink: #12151a;
  --muted: #4a5563;
  --dim: #6b7585;
  --paper: #dfe6ee;
  --panel: rgba(255, 255, 255, 0.55);
  --line: rgba(18, 21, 26, 0.12);
  --accent: #1f6b63;
  --accent-soft: rgba(31, 107, 99, 0.14);
  --max: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 55% at 10% -5%, rgba(31, 107, 99, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 15%, rgba(70, 90, 130, 0.12), transparent 50%),
    linear-gradient(165deg, #e8eef4 0%, #d5dde8 45%, #cfd8e4 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(223, 230, 238, 0.72);
  border-bottom: 1px solid transparent;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--accent);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  justify-content: flex-end;
}

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

nav a:hover {
  color: var(--ink);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  padding: 4.5rem 0 3.25rem;
  animation: rise 0.7s ease-out both;
}

.brand-lockup {
  margin: 0 0 1.1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 3.6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.lede {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-cta {
  margin: 1.75rem 0 0;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: #f4f7fa;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
  animation: rise 0.75s ease-out both;
  animation-delay: 0.12s;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 1rem;
  color: var(--muted);
}

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

.project {
  margin-top: 1.25rem;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.project:hover {
  border-color: rgba(31, 107, 99, 0.35);
  transform: translateY(-2px);
}

.project-meta {
  margin-bottom: 0.65rem;
}

.project-label {
  margin: 0 0 0.35rem;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.project-links {
  margin-top: 1rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-weight: 600;
}

.contact-panel {
  margin-top: 1.35rem;
  padding: 1.4rem 1.35rem;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(31, 107, 99, 0.22);
}

.contact-name {
  margin: 0 0 0.35rem !important;
  color: var(--ink) !important;
  font-weight: 700;
}

.contact-email {
  font-size: 1.2rem;
  font-weight: 700;
  word-break: break-word;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}

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

  .hero,
  .section,
  .button,
  .project {
    animation: none;
    transition: none;
  }
}
