@font-face {
  font-family: 'MontserratThin';
  src: url('/fonts/Montserrat-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MontserratExtraLight';
  src: url('/fonts/Montserrat-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MontserratLight';
  src: url('/fonts/Montserrat-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MontserratRegular';
  src: url('/fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MontserratBold';
  src: url('/fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MontserratExtraBold';
  src: url('/fonts/Montserrat-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fdf6e3;
  --bg-soft: #fff8e7;
  --card: #f5e6c8;
  --text: #5b4636;
  --accent: #d88f3d;
  --accent-hover: #f4a261;
  --border: #d9c1a6;
}


.m-thin         { font-family: 'MontserratThin', sans-serif; }
.m-elight         { font-family: 'MontserratExtraLight', sans-serif; }
.m-light         { font-family: 'MontserratLight', sans-serif; }
.m-regular      { font-family: 'MontserratRegular', sans-serif; }
.m-bold         { font-family: 'MontserratBold', sans-serif; }
.m-ebold    { font-family: 'MontserratExtraBold', sans-serif; }

body { background: var(--bg); color: var(--text); line-height: 1.6; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }

a:hover { color: var(--accent-hover); }

header {
  text-align: center;
  padding: 26px 20px 40px;
  background: var(--bg-soft);
}
header h1 { font-size: 3rem; margin-bottom: 10px; }
header p { font-size: 1.2rem; color: #bdae93; }

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
nav a { padding: 8px 12px; border-radius: 6px; background: var(--card); }

section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

h2 { font-size: 2rem; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }

.projects,
.socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  justify-items: center;
}

.card {
  width: 100%;
  max-width: 100%;
  padding: 15px 20px;
  border-radius: 8px;
  background: var(--card);
  text-align: center;
  box-sizing: border-box;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: #827973; }


.card-long {
  width: 100%;
  max-width: 100%;
  padding: 15px 20px;
  border-radius: 8px;
  background: var(--card);
  text-align: left;
  box-sizing: border-box;
  grid-column: 1 / -1;
}

.card-long h3 { margin-bottom: 10px; }
.card-long p { font-size: 0.95rem; color: #827973; }

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;

  display: block;
  margin: 0 auto 1px;

  border: 3px solid var(--border);
  background: var(--card);
}

@media (max-width: 768px) {

  header {
    padding: 40px 16px 30px;
  }

  header h1 {
    font-size: 2.1rem;
  }

  header p {
    font-size: 1rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  nav a {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  section {
    margin: 40px auto;
    padding: 0 16px;
  }

  h2 {
    font-size: 1.6rem;
  }

  .projects,
  .socials {
    gap: 16px;
  }

  .card {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 14px 16px;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .avatar {
    width: 110px;
    height: 110px;
    margin-bottom: 16px;
  }
}

@media (max-width: 420px) {

  header h1 {
    font-size: 1.9rem;
  }

  header p {
    font-size: 0.95rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .projects,
  .socials {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 14px 16px;
  }

  .card p {
    font-size: 0.88rem;
    line-height: 1.45;
  }
}

.hint {
  position: fixed;
  bottom: 16px;
  right: 20px;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.8;
}
