/* Base reset & typography */

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: #f7f4ef;
  color: #1c1c1c;
}

/* Layout */

.container {
  display: flex;
  min-height: 100vh;
}

/* Content column */

.content {
  flex: 1;
  max-width: 700px;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Headline & text */

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 620px;
}

/* Form */

form {
  display: flex;
  flex-direction: column;
}

form input,
form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  align-self: flex-start;
  padding: 0.8rem 1.5rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

button:hover {
  background: #000;
}

/* Links */

.linkedin {
  display: inline-block;
  margin-top: 1.5rem;
  text-decoration: none;
  color: #0a66c2;
  font-size: 0.95rem;
}

/* Image column */

.image {
  flex: 1;
  min-height: 100vh;
  overflow: hidden;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

/* -------------------------
   Mobile adjustments
-------------------------- */

@media (max-width: 900px) {

  .container {
    flex-direction: column;
  }

  /* Order elements explicitly */

  .content {
    order: 1;
    padding: 3rem 2rem;
    justify-content: flex-start;
  }

  .image {
    order: 2;
    height: 60vh;
    min-height: unset;
  }

  /* Inside content: text first, form last */

  h1 {
    font-size: 2.4rem;
    order: 1;
  }

  .subtitle {
    order: 2;
  }

  form {
    order: 3;
    margin-top: 2rem;
  }

  .linkedin {
    order: 4;
  }
}