Files
sotf-modloader/site/style.css
T

278 lines
4.3 KiB
CSS
Raw Permalink Normal View History

:root {
color-scheme: dark;
--pine: #131c17;
--bark: #1d2821;
--bark-line: #34463b;
--lichen: #9aae97;
--fog: #e2e7df;
--flare: #e0a63a;
--flare-hover: #ecbb5e;
--flare-ink: #1b1305;
--ember: #e38b7f;
--display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
--body: "Barlow", "Segoe UI", system-ui, sans-serif;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
background: var(--pine);
}
body {
margin: 0;
background: var(--pine);
color: var(--fog);
font-family: var(--body);
font-size: 1.0625rem;
line-height: 1.55;
-webkit-font-smoothing: antialiased;
}
a {
color: var(--flare);
text-underline-offset: 0.2em;
}
a:hover {
color: var(--fog);
}
:focus-visible {
outline: 2px solid var(--flare);
outline-offset: 3px;
}
[hidden] {
display: none !important;
}
.page {
max-width: 54rem;
margin: 0 auto;
padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) 2rem;
}
.masthead h1 {
margin: 0;
max-width: 11ch;
font-family: var(--display);
font-weight: 700;
font-size: clamp(3rem, 10vw, 5.75rem);
line-height: 0.9;
letter-spacing: -0.015em;
}
.lede {
max-width: 36rem;
margin: 1.25rem 0 0;
color: var(--lichen);
font-size: 1.15rem;
}
.get {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
gap: 1rem;
margin-top: 2.75rem;
}
.get-card {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 1.35rem 1.5rem 1.4rem;
background: var(--bark);
border: 1px solid var(--bark-line);
border-radius: 6px;
}
.get-card:first-child {
border-top: 5px solid var(--flare);
}
.get-card h2 {
margin: 0;
font-family: var(--display);
font-weight: 700;
font-size: 1.75rem;
line-height: 1.1;
}
.get-card p {
margin: 0.4rem 0 1.1rem;
color: var(--lichen);
}
.get-card .get-note {
margin: 0.8rem 0 0;
font-size: 0.875rem;
}
a.button {
display: inline-block;
margin-top: auto;
padding: 0.6rem 1.1rem;
border: 1px solid transparent;
border-radius: 4px;
font-weight: 600;
font-size: 0.95rem;
line-height: 1.2;
text-decoration: none;
}
a.button.primary {
background: var(--flare);
color: var(--flare-ink);
}
a.button.primary:hover {
background: var(--flare-hover);
color: var(--flare-ink);
}
a.button.secondary {
color: var(--fog);
border-color: var(--bark-line);
}
a.button.secondary:hover {
border-color: var(--lichen);
color: var(--fog);
}
.block {
margin-top: 3.25rem;
}
.block-head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: 0.75rem 1rem;
padding-bottom: 0.6rem;
border-bottom: 2px solid var(--fog);
}
.block-head h2 {
margin: 0;
font-family: var(--display);
font-weight: 700;
font-size: 2rem;
line-height: 1.1;
}
button.copy {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0;
border: 0;
background: none;
color: var(--flare);
font: inherit;
cursor: pointer;
}
button.copy:hover {
color: var(--fog);
}
.block-note {
margin: 1rem 0 0;
color: var(--lichen);
}
.rows {
margin: 0;
padding: 0;
list-style: none;
}
.row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 0.75rem 1.5rem;
align-items: start;
padding: 1.35rem 0;
border-bottom: 1px solid var(--bark-line);
}
.row h3 {
margin: 0;
font-family: var(--display);
font-weight: 600;
font-size: 1.5rem;
line-height: 1.15;
}
.row h3 a {
color: inherit;
text-decoration: none;
}
.row h3 a:hover {
text-decoration: underline;
}
.desc {
max-width: 34rem;
margin: 0.2rem 0 0;
}
.meta {
display: flex;
flex-wrap: wrap;
gap: 0.2rem 1.1rem;
margin: 0.55rem 0 0;
color: var(--lichen);
font-size: 0.9rem;
}
.status {
position: sticky;
bottom: 0;
margin: 2rem 0 0;
padding: 0.85rem 1rem;
background: var(--bark);
border: 1px solid var(--bark-line);
border-radius: 6px;
color: var(--fog);
font-size: 0.95rem;
}
.status:empty {
display: none;
}
.status[data-kind="error"] {
border-color: var(--ember);
color: var(--ember);
}
.status[data-kind="ok"] {
border-color: var(--flare);
}
.footer {
margin-top: 4rem;
color: var(--lichen);
font-size: 0.875rem;
}
.footer p {
margin: 0.3rem 0 0;
}
@media (max-width: 36rem) {
.row {
grid-template-columns: minmax(0, 1fr);
}
}