:root {
  --color-bg:     #f2ebe1;
  --color-line:   #cd9661;
  --color-ink:    #6b5847;
  --color-button:    #5c4430;
  --color-button-ink:#f2ebe1;

  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;
}

body {
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: row-reverse;
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--color-ink);
    line-height: 1.5;
}

h1, h2 {
    margin: 0;
    color: var(--color-ink);
    font-weight: 400;
    line-height: 1.5;
}

figure {
    position: relative;
    margin: 0;
    flex: 1;
}

figure img#chocolate-hero {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to right, transparent 55%, var(--color-bg) 100% );
    pointer-events: none;
}

form {
    flex: 0 55%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

form div#brand {
    height: 350px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding-right: 25px;
    border-right: 1px solid var(--color-line);
}

form div#brand img#logo {
    width: 300px;
}

form div#fields {
    height: 400px;
    max-width: 300px;
    margin: auto;
    padding: 0 50px;
    flex: 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

form div#fields label {
    font-size: 0.9rem;
    padding-top: 25px;
}

form div#fields input {
    border: none;
    border-bottom: 1px solid var(--color-line);
    background: transparent;
    padding: 0.4rem 0.1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-ink);
}

form div#fields button {
    margin-top: 25px;
    padding: 0.85rem 2.25rem;
    border: none;
    align-self: flex-start;
    background-color: var(--color-button);
    color: var(--color-button-ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

@media (max-width: 480px) {

  /* Adjust hero background focus for narrow screens */
  body {
    flex-direction: column;
    overflow: visible;
  }

  figure {
    margin-top: 75px;
  }

  figure::after {
    display: none;
  }

  form div#brand {
    padding-right: 0;
  }
}
