Template:Neodyland Wiki/styles.css
Template page
More actions
.nl-home {
--nl-accent: oklch(0.78 0.12 197);
--nl-accent-strong: oklch(0.55 0.1 198);
--nl-accent-soft: color-mix(in oklch, var(--nl-accent) 13%, var(--background-color-base));
--nl-accent-faint: color-mix(in oklch, var(--nl-accent) 6%, var(--background-color-base));
--nl-ink-on-accent: oklch(0.23 0.035 205);
--nl-surface: var(--background-color-neutral-subtle);
--nl-surface-raised: var(--background-color-neutral);
--nl-text: var(--color-base);
--nl-muted: var(--color-subtle);
--nl-line: var(--border-color-base);
max-width: 1280px;
margin: 0 auto;
color: var(--nl-text);
font-family: var(--font-family-system-sans);
}
.nl-home,
.nl-home * {
box-sizing: border-box;
}
.nl-home .mw-heading {
margin: 0;
padding: 0;
border: 0;
}
.nl-home h2,
.nl-home h3 {
margin: 0;
border: 0;
color: var(--nl-text);
font-family: inherit;
line-height: 1.12;
}
.nl-home h2 {
font-size: clamp(2rem, 4vw, 3.75rem);
font-weight: 720;
letter-spacing: -0.045em;
}
.nl-home h3 {
font-size: clamp(1.1rem, 2vw, 1.45rem);
font-weight: 680;
letter-spacing: -0.02em;
}
.nl-home p {
color: var(--nl-muted);
line-height: 1.7;
}
.nl-home a:focus {
outline: 3px solid var(--nl-accent);
outline-offset: 4px;
border-radius: 0.25rem;
}
/* The wordmark carries the identity, so the surrounding geometry stays quiet. */
.nl-hero {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
min-height: 31rem;
overflow: hidden;
padding: clamp(1rem, 4vw, 3.5rem) 0;
border: 0;
border-radius: 0;
background: none;
isolation: isolate;
}
.nl-hero::before {
display: none;
content: none;
}
.nl-hero__copy {
position: relative;
z-index: 2;
align-self: center;
max-width: 46rem;
animation: nl-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.nl-wordmark {
min-height: 6.5rem;
margin-bottom: 1.5rem;
}
.nl-wordmark img {
width: min(24.875rem, 100%);
height: auto;
}
.nl-hero__lede {
max-width: 38rem;
margin-bottom: 1.75rem;
color: var(--nl-text);
font-size: clamp(1.05rem, 2vw, 1.35rem);
line-height: 1.65;
}
.nl-search {
max-width: 42rem;
}
.nl-search .mw-inputbox-centered {
text-align: start;
}
.nl-search .searchbox {
display: flex;
align-items: stretch;
gap: 0.65rem;
}
.nl-search .cdx-text-input {
flex: 1 1 20rem;
}
.nl-search .cdx-text-input__input {
min-height: 3.25rem;
padding-inline: 1rem;
border-color: var(--nl-line);
border-radius: 0.8rem;
background: var(--background-color-base);
font-size: 1rem;
}
.nl-search input[type="submit"] {
min-height: 3.25rem;
padding-inline: 1.35rem;
border: 0;
border-radius: 0.8rem;
background: var(--nl-accent);
color: var(--nl-ink-on-accent);
font-weight: 750;
cursor: pointer;
}
.nl-search input[type="submit"]:hover {
background: var(--nl-accent-strong);
}
.nl-hero__actions {
margin-top: 1.35rem;
}
.nl-hero__actions > p {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin: 0;
}
.nl-button,
.nl-button a {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 2.8rem;
}
.nl-button a {
padding: 0.65rem 1rem;
border-radius: 999px;
font-weight: 700;
text-decoration: none;
}
.nl-button--primary a {
background: var(--nl-text);
color: var(--background-color-base);
}
.nl-button--primary a:hover {
background: var(--color-emphasized);
color: var(--background-color-base);
}
.nl-button--quiet a {
border: 1px solid var(--nl-line);
background: var(--background-color-base);
color: var(--nl-text);
}
.nl-button--quiet a:hover {
background: var(--nl-surface-raised);
}
.nl-orbit {
position: relative;
align-self: center;
justify-self: end;
width: min(26rem, 100%);
aspect-ratio: 1;
animation: nl-settle 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.nl-orbit > p {
display: contents;
}
.nl-orbit__ring,
.nl-orbit__core,
.nl-orbit__satellite {
position: absolute;
display: block;
border-radius: 50%;
}
.nl-orbit__ring {
border: 1px solid var(--nl-accent);
}
.nl-orbit__ring--one {
inset: 8%;
}
.nl-orbit__ring--two {
inset: 25%;
border-style: dashed;
animation: nl-spin 32s linear infinite;
}
.nl-orbit__core {
inset: 39%;
background: var(--nl-accent);
box-shadow: 0 0 0 1rem var(--nl-accent-soft);
}
.nl-orbit__satellite {
top: 10%;
right: 26%;
width: 1.15rem;
aspect-ratio: 1;
background: var(--nl-text);
}
/* The navigation reads as an index instead of a repeated card grid. */
.nl-directory {
display: grid;
grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
gap: clamp(2.5rem, 8vw, 7rem);
padding-block: clamp(5rem, 10vw, 9rem);
}
.nl-directory__intro {
align-self: start;
}
.nl-directory__intro p,
.nl-contents__heading p {
max-width: 34rem;
margin: 1.15rem 0 0;
font-size: 1.05rem;
}
.nl-section-number {
margin-bottom: 1rem;
color: var(--nl-accent-strong);
font-size: 0.82rem;
font-weight: 800;
letter-spacing: 0.12em;
}
.nl-directory__list {
border-bottom: 1px solid var(--nl-line);
}
.nl-directory__item {
display: grid;
grid-template-columns: 2rem minmax(0, 1fr) 1.5rem;
gap: 1rem;
align-items: center;
padding-block: 1.35rem;
border-top: 1px solid var(--nl-line);
transition: background-color 180ms ease, padding-inline 180ms ease;
}
.nl-directory__item:hover {
padding-inline: 0.75rem;
background: var(--nl-accent-faint);
}
.nl-directory__item > p {
display: contents;
}
.nl-directory__item p {
margin: 0.25rem 0 0;
font-size: 0.93rem;
}
.nl-directory__item h3 a {
color: var(--nl-text);
text-decoration: none;
}
.nl-directory__index {
color: var(--nl-accent-strong);
font-size: 0.8rem;
font-weight: 800;
}
.nl-directory__arrow {
color: var(--nl-muted);
font-size: 1.25rem;
transition: transform 180ms ease;
}
.nl-directory__item:hover .nl-directory__arrow {
transform: translateX(0.25rem);
}
.nl-contents {
padding-bottom: clamp(5rem, 10vw, 9rem);
}
.nl-contents__heading {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
align-items: end;
gap: 2rem;
margin-bottom: 2.5rem;
}
.nl-contents__heading .nl-section-number,
.nl-contents__heading h2 {
grid-column: 1;
}
.nl-contents__heading p {
grid-column: 2;
grid-row: 1 / span 2;
align-self: end;
}
.nl-pillars {
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
grid-template-rows: repeat(2, minmax(11rem, auto));
gap: 1rem;
}
.nl-pillar {
display: flex;
flex-direction: column;
justify-content: end;
padding: clamp(1.5rem, 3vw, 2.5rem);
border-top: 1px solid var(--nl-line);
background: var(--nl-surface);
}
.nl-pillar--wide {
grid-row: 1 / span 2;
min-height: 24rem;
overflow: hidden;
border: 0;
border-radius: 2rem;
background: linear-gradient(145deg, var(--nl-accent-soft), var(--nl-surface));
}
.nl-pillar > p:first-child {
margin: 0;
}
.nl-pillar p:last-child {
max-width: 34rem;
margin: 0.75rem 0 0;
}
.nl-pillar__mark {
margin-bottom: auto;
color: var(--nl-accent-strong);
font-size: 0.8rem;
font-weight: 800;
letter-spacing: 0.12em;
}
.nl-live {
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
gap: 1rem;
align-items: stretch;
}
.nl-updates {
padding: clamp(1.5rem, 4vw, 3rem);
border: 1px solid var(--nl-line);
border-radius: 2rem;
background: var(--background-color-base);
}
.nl-live__heading {
display: flex;
gap: 2rem;
align-items: end;
justify-content: space-between;
margin-bottom: 2rem;
}
.nl-live__heading > p {
margin: 0;
}
.nl-text-link a {
color: var(--nl-accent-strong);
font-weight: 700;
text-decoration: none;
white-space: nowrap;
}
.nl-updates__feed {
max-height: 30rem;
overflow: auto;
padding-right: 0.5rem;
font-size: 0.9rem;
}
.nl-updates__feed .mw-changeslist-legend,
.nl-updates__feed .mw-usertoollinks,
.nl-updates__feed .mw-tag-markers {
display: none;
}
.nl-updates__feed .mw-changeslist > h4 {
margin: 1.25rem 0 0.5rem;
color: var(--nl-muted);
font-size: 0.78rem;
font-weight: 750;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.nl-updates__feed .mw-changeslist table {
width: 100%;
margin: 0;
border-top: 1px solid var(--nl-line);
}
.nl-updates__feed .mw-changeslist table:last-child {
border-bottom: 1px solid var(--nl-line);
}
.nl-translate {
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 27rem;
padding: clamp(1.75rem, 4vw, 3rem);
border-radius: 2rem;
background: var(--nl-accent);
color: var(--nl-ink-on-accent);
}
.nl-translate h2,
.nl-translate p {
color: var(--nl-ink-on-accent);
}
.nl-translate h2 {
font-size: clamp(2rem, 3.5vw, 3rem);
}
.nl-translate p {
margin: 1rem 0 1.5rem;
}
.nl-translate__glyph {
display: flex;
align-items: start;
gap: 0.2rem;
font-size: clamp(4rem, 9vw, 7rem);
font-weight: 800;
line-height: 0.8;
letter-spacing: -0.08em;
opacity: 0.75;
}
.nl-translate__glyph span {
font-size: 0.45em;
}
.nl-button--ink a {
background: var(--nl-ink-on-accent);
color: var(--nl-accent);
}
.nl-button--ink a:hover {
background: var(--nl-text);
}
.nl-footer-note {
display: flex;
gap: 0.85rem;
align-items: center;
margin-top: clamp(4rem, 8vw, 7rem);
padding-block: 1.5rem;
border-top: 1px solid var(--nl-line);
color: var(--nl-muted);
font-size: 0.9rem;
line-height: 1.6;
}
.nl-footer-note > p {
display: contents;
}
.nl-footer-note__signal {
flex: 0 0 auto;
width: 0.65rem;
aspect-ratio: 1;
border-radius: 50%;
background: var(--nl-accent);
}
@keyframes nl-rise {
from { opacity: 0; transform: translateY(1.25rem); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes nl-settle {
from { opacity: 0; transform: scale(0.88) rotate(-5deg); }
to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes nl-spin {
to { transform: rotate(360deg); }
}
@media (max-width: 900px) {
.nl-hero { grid-template-columns: minmax(0, 1fr); min-height: auto; }
.nl-orbit { position: absolute; right: -6rem; bottom: -7rem; width: 22rem; opacity: 0.4; }
.nl-directory,
.nl-live { grid-template-columns: minmax(0, 1fr); }
.nl-directory { gap: 2.5rem; }
.nl-contents__heading { display: block; }
.nl-contents__heading p { margin-top: 1rem; }
.nl-pillars { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
.nl-pillar--wide { grid-row: auto; min-height: 19rem; }
}
@media (max-width: 600px) {
.nl-hero { padding: 1rem 0; }
.nl-wordmark { min-height: 4.5rem; }
.nl-wordmark img { width: min(18rem, 100%); }
.nl-search .searchbox { flex-direction: column; }
.nl-search .cdx-text-input,
.nl-search input[type="submit"] { width: 100%; }
.nl-live__heading { display: block; }
.nl-live__heading > p { margin-top: 0.85rem; }
.nl-updates,
.nl-translate,
.nl-pillar--wide { border-radius: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
.nl-hero__copy,
.nl-orbit,
.nl-orbit__ring--two { animation: none; }
.nl-directory__item,
.nl-directory__arrow { transition: none; }
}