:root {
  --orange: #e59022;
  --orange2: hsl(34, 79%, 45%);
  --dark: rgb(17 ,21, 31);
  --light: rgb(232, 230, 227);
  --gray: rgb(135, 134, 130);
}

html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    background-color: var(--dark);
    color: white;
}

body {
    width: 80%;
    margin: 3em auto;
    display: flex;
    flex-direction: column;
    row-gap: 2em;
    column-gap: 2em;
}

h1 {
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 2em;
}

h2 {
    font-size: 1em;
    font-weight: 400;
    margin-bottom: 1em;
}

a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--orange);
    color: var(--light)
}

a:hover {
    color: var(--orange);
    transition: color 0.2s;
}

.newsletter {
    padding: 1.5em 1em 2em 1em;
    border: 1px solid var(--gray);
    border-radius: 50px;
}

label {
    display: block;
    margin: 2em 0 0.75em 0;
    color: var(--gray);
    font-size: .875em;
}

input {
    display: block;
    outline: none;
    margin-bottom: 1.5em;
	width: 100%;
	box-sizing: border-box;
	padding: 1em 1.75em;
	background: #fafafa;
	border: 1px solid transparent;
	color: #777;
	border-radius: 50px;
	font-size: .75em;
}

input:focus {
    background: #fcfcfc;
	border: 1px solid #ddd;
}

button {
	width: 100%;
	box-sizing: border-box;
	padding: 1em 1.75em;
	background: #fafafa;
	border: 1px solid transparent;
	background-color: var(--orange);
	border-radius: 50px;
    color: white;
    text-transform: uppercase;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    background-color: var(--orange2);
}

footer {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid var(--gray);
    font-size: 0.875em;
    color: var(--gray);
}

@media screen and (min-width: 480px) {

    html {
        font-size: 16px;
        line-height: 1.6;
    }

    body {
        max-width: 600px;
        width: 60%;
        margin: 6em auto;
    }

    .newsletter {
        padding: 3em 1em;
        border: 1px solid var(--gray);
        border-radius: 50px;
    }

}