.intro {
  border-radius: 5px;
  background-color: lightgrey;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
  padding: 5px;
}


html {
    box-sizing: border-box;
    font-family: sans-serif;
}

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

body {
    margin: 0;
    background: gray;
}

.wrapper {
    max-width: 1024px;
    margin: 0 auto 20px;
    padding: 0 20px 20px;
    display: grid;
    gap: 20px;
    background: whitesmoke;
}

nav,
footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

nav a,
footer a {
    color: inherit;
    line-height: 2;
    border: 1px solid;
    border-radius: 6px;
    padding: 0 10px;
    text-decoration: none;
    transition: .2s;
}

nav a:hover,
footer a:hover {
    background: lightgray;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .4);
}

p {
    line-height: 1.6;
    max-width: 64ch;
}

form {
    font-size: 1rem;
    font-family: inherit;
    max-width: 64ch;
}

form * {
    font-size: inherit;
    font-family: inherit;
    margin: 0;
    align-self: baseline;
}

form fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

form ol {
    list-style-type: none;
    padding: 0;
}

form ol li {
    margin-bottom: 1rem;
    padding: .5rem;
}

form ol li label:not(:empty) {
    display: block;
    margin: 0.25rem 0;
}

form fieldset legend {
    padding: 0;
}

form ol li input:not([type="submit"], [type="reset"], [type="button"], [type="image"], [type="radio"], [type="checkbox"]),
form ol li select,
form ol li textarea {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid lightgrey;
}

form ol li input[type="color"] {
    height: 3rem;
}

form fieldset:has([type="radio"], [type="checkbox"]) {
    display: grid;
    grid-template-columns: auto 1fr;
}

form fieldset:has([type="radio"], [type="checkbox"]) label.error {
    grid-column: 1 / -1;
}

form fieldset:has([type="radio"], [type="checkbox"]) label {
    padding: 0 0 0 .25rem;
}

form .error-parent {
    background-color: lightsalmon;
}

@media screen and (min-width: 768px) {
    nav,
    footer {
        flex-direction: row;
        flex-wrap: wrap;
    }

    nav :first-child,
    footer :first-child {
        margin-right: auto;
    }

    .columns {
        display: grid;
        gap: 20px;
        grid-template-columns: 7fr 3fr;
    }
}