Original working file
practice/style.css
Code and working example pages keep their original identifiers and sample text. The lesson and file guidance explain them in your language.
body {
margin: 0;
background: #0d242b;
color: #eef7f3;
font: 18px/1.65 system-ui;
}
main {
max-width: 1000px;
margin: auto;
padding: 32px 22px;
}
h1 {
line-height: 1.2;
color: #dce9a4;
}
h2 {
color: #83ded8;
}
p {
max-width: 76ch;
}
.columns {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
}
section {
padding: 24px;
border: 1px solid #42616b;
border-radius: 16px;
background: #15343b;
}
button,
input {
font: inherit;
max-width: 100%;
}
button {
padding: 10px 14px;
margin: 8px 8px 8px 0;
border-radius: 8px;
border: 1px solid #83ded8;
background: #dce9a4;
color: #12333b;
cursor: pointer;
}
label {
display: block;
margin-top: 18px;
}
input {
display: block;
width: 100%;
margin-top: 12px;
}
li {
overflow-wrap: anywhere;
}
button:focus-visible,
input:focus-visible {
outline: 3px solid #fff;
outline-offset: 4px;
}
[role="status"] {
min-height: 3em;
color: #dce9a4;
}
@media (max-width: 650px) {
.columns {
grid-template-columns: 1fr;
}
main {
padding: 24px 16px;
}
section {
padding: 18px;
}
}
a {
color: #83ded8;
text-underline-offset: 4px;
}