/* --- Font setup --- */
@font-face {
  font-family: 'Inter';
  src: url('font_new.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Global layout --- */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #fafafa;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.7;
}

/* --- Header --- */
header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 6%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

h1 a {
  text-decoration: none;
  color: #1e293b;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #475569;
  font-size: 1.2rem;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

nav a:hover {
  color: #1e293b;
  text-decoration: underline;
}

/* --- Main content area --- */
main {
  flex: 1;
  padding: 2rem 6%;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1200px;
}

/* --- Homepage layout --- */
.container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin: 6% auto 0;
  gap: 4rem;
  flex-wrap: wrap;
}

.text {
  flex: 1 1 600px;
  max-width: 740px;
  padding-top: 0.5rem;
  text-align: justify;
}

img {
  flex-shrink: 0;
  width: 260px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  object-fit: cover;
  align-self: flex-start;
}

/* --- Typography --- */
h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1.05rem;
  margin: 0 0 1.25rem 0;
}

a {
  color: #3b82f6;
  text-decoration: none;
}

a:hover {
  color: #2563eb;
  text-decoration: underline;
}

em {
  font-style: italic;
}

/* --- Contact info --- */
.contact {
  position: fixed;
  bottom: 3rem;
  right: 6%;
  font-size: 1.2rem;
  color: #475569;
  background: rgba(250, 250, 250, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.contact a {
  color: #475569;
  text-decoration: none;
}

.contact a:hover {
  color: #1e293b;
  text-decoration: underline;
}

/* --- Lists --- */
ul {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* --- Responsive layout --- */
@media (max-width: 1024px) {
  header {
    padding: 1.5rem 4%;
  }

  main {
    padding: 1.5rem 4%;
  }

  .container {
    gap: 2rem;
  }

  nav a {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem;
  }

  nav {
    margin-top: 1rem;
    gap: 1rem;
  }

  .container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
  }

  .text {
    flex: 1 1 auto;
    max-width: 100%;
    text-align: left;
  }

  img {
    width: 100%;
    max-width: 320px;
    align-self: center;
  }

  .contact {
    position: static;
    margin: 2rem auto;
    text-align: center;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  h1 a {
    font-size: 1.3rem;
  }

  nav a {
    font-size: 1rem;
  }

  p {
    font-size: 1rem;
  }

  img {
    max-width: 280px;
  }
}
