Files
chrnx-dev-wp/assets/css/components.css
T

1431 lines
33 KiB
CSS

/*
* Theme-state and responsive component variants intentionally follow
* their base rules.
*/
/* stylelint-disable no-descending-specificity */
:root {
--chrnx-bg: #0d1117;
--chrnx-surface: #151b23;
--chrnx-surface-raised: #1b222c;
--chrnx-text: #e6edf3;
--chrnx-muted: #a1acb8;
--chrnx-line: rgb(139 148 158 / 28%);
--chrnx-accent: #7c6cf0;
--chrnx-accent-soft: rgb(124 108 240 / 16%);
--chrnx-green: #69c795;
--chrnx-link: #a99df8;
--chrnx-shadow: 0 1.5rem 4rem rgb(0 0 0 / 24%);
--chrnx-radius: 1.25rem;
}
html[data-theme="light"] {
--chrnx-bg: #f6f2e9;
--chrnx-surface: #fffdf7;
--chrnx-surface-raised: #fff;
--chrnx-text: #25221f;
--chrnx-muted: #625c54;
--chrnx-line: rgb(70 61 51 / 18%);
--chrnx-accent: #674ca4;
--chrnx-accent-soft: rgb(103 76 164 / 12%);
--chrnx-green: #327854;
--chrnx-link: #60408e;
--chrnx-shadow: 0 1.5rem 4rem rgb(70 61 51 / 12%);
}
@media (prefers-color-scheme: light) {
:root:not([data-theme]) {
--chrnx-bg: #f6f2e9;
--chrnx-surface: #fffdf7;
--chrnx-surface-raised: #fff;
--chrnx-text: #25221f;
--chrnx-muted: #625c54;
--chrnx-line: rgb(70 61 51 / 18%);
--chrnx-accent: #674ca4;
--chrnx-accent-soft: rgb(103 76 164 / 12%);
--chrnx-green: #327854;
--chrnx-link: #60408e;
--chrnx-shadow: 0 1.5rem 4rem rgb(70 61 51 / 12%);
}
}
body,
html[data-theme="dark"] body,
html[data-theme="light"] body,
:root:not([data-theme]) body {
background-color: var(--chrnx-bg);
background-image:
radial-gradient(circle at 90% 6%, color-mix(in srgb, var(--chrnx-accent) 16%, transparent), transparent 34rem),
radial-gradient(circle at 8% 42%, color-mix(in srgb, var(--chrnx-green) 8%, transparent), transparent 30rem),
linear-gradient(165deg, color-mix(in srgb, var(--chrnx-surface) 22%, transparent), transparent 42%, color-mix(in srgb, var(--chrnx-accent) 5%, transparent));
background-position: center top, center 36rem, center;
background-repeat: no-repeat, no-repeat, no-repeat;
background-size: 100% 48rem, 100% 54rem, 100% 100%;
color: var(--chrnx-text);
}
.wp-site-blocks {
overflow: clip;
}
.wp-site-blocks > main {
margin-block-start: 0;
}
main a,
footer a {
color: var(--chrnx-link);
text-underline-offset: 0.2em;
text-decoration-thickness: 0.08em;
}
.chrnx-primary-navigation a,
.chrnx-footer-navigation a {
position: relative;
color: var(--chrnx-muted);
font-family: var(--wp--preset--font-family--heading);
font-size: 0.875rem;
font-weight: 500;
letter-spacing: 0.035em;
text-decoration: none;
}
.chrnx-primary-navigation a::after,
.chrnx-footer-navigation a::after {
position: absolute;
right: 0.55rem;
bottom: 0.3rem;
left: 0.55rem;
height: 2px;
border-radius: 999px;
background: currentcolor;
content: "";
opacity: 0;
transform: scaleX(0.35);
transform-origin: center;
}
.chrnx-primary-navigation a:hover,
.chrnx-primary-navigation a:focus-visible,
.chrnx-primary-navigation a[aria-current="page"],
.chrnx-footer-navigation a:hover,
.chrnx-footer-navigation a:focus-visible,
.chrnx-footer-navigation a[aria-current="page"] {
color: var(--chrnx-green);
text-decoration: none;
}
.chrnx-primary-navigation a:hover::after,
.chrnx-primary-navigation a:focus-visible::after,
.chrnx-primary-navigation a[aria-current="page"]::after,
.chrnx-footer-navigation a:hover::after,
.chrnx-footer-navigation a:focus-visible::after,
.chrnx-footer-navigation a[aria-current="page"]::after {
opacity: 1;
transform: scaleX(1);
}
.chrnx-site-footer__site {
font-family: var(--wp--preset--font-family--heading);
font-size: var(--wp--preset--font-size--large);
font-weight: 700;
line-height: 1.2;
}
.chrnx-site-footer__site a {
position: relative;
display: inline-flex;
align-items: center;
min-height: 45px;
color: var(--chrnx-text);
text-decoration: none;
}
.chrnx-site-footer__site a::after {
position: absolute;
right: 0.1rem;
bottom: 0.2rem;
left: 0.1rem;
height: 2px;
border-radius: 999px;
background: currentcolor;
content: "";
opacity: 0;
transform: scaleX(0.35);
transform-origin: center;
}
.chrnx-site-footer__site a:hover,
.chrnx-site-footer__site a:focus-visible {
color: var(--chrnx-green);
text-decoration: none;
}
.chrnx-site-footer__site a:hover::after,
.chrnx-site-footer__site a:focus-visible::after {
opacity: 1;
transform: scaleX(1);
}
.chrnx-site-footer__credit,
.chrnx-site-footer__line {
color: var(--chrnx-muted);
font-family: var(--wp--preset--font-family--metadata);
}
.wp-site-blocks h1,
.wp-site-blocks h2,
.wp-site-blocks h3,
.wp-site-blocks h4 {
color: var(--chrnx-text);
text-wrap: balance;
}
.wp-site-blocks p,
.wp-site-blocks li {
text-wrap: pretty;
}
.chrnx-home > section,
.chrnx-home > .wp-block-group,
.chrnx-home > .wp-block-chrnx-featured-stories,
.chrnx-home > .wp-block-chrnx-journal-stream,
.chrnx-home > .wp-block-chrnx-latest-podcast {
max-width: var(--wp--style--global--wide-size);
margin-inline: auto;
padding-block: clamp(3.5rem, 7vw, 7rem);
}
.chrnx-home > * + * {
border-top: 1px solid var(--chrnx-line);
}
.chrnx-home > .chrnx-home-intro {
position: relative;
display: grid;
box-sizing: border-box;
min-height: min(64vh, 42rem);
align-content: center;
padding-block: clamp(3rem, 5vh, 4rem);
padding-right: clamp(0rem, 12vw, 9rem);
}
.chrnx-home-intro::before {
display: block;
margin-bottom: 1.25rem;
color: var(--chrnx-green);
content: "CHR/NX · NIGHT WORKSHOP";
font-family: var(--wp--preset--font-family--metadata);
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.16em;
}
.chrnx-home-intro::after {
position: absolute;
right: 2%;
bottom: 14%;
width: clamp(5rem, 11vw, 8.5rem);
aspect-ratio: 1;
border: 1px solid var(--chrnx-line);
border-radius: 50%;
box-shadow: inset 0 0 0 1.25rem var(--chrnx-accent-soft);
content: "";
}
.chrnx-home-intro h1 {
max-width: 18ch;
margin: 0;
font-size: clamp(2.35rem, 1.75rem + 2.8vw, 4.25rem);
line-height: 1.08;
letter-spacing: -0.035em;
}
.chrnx-home-intro p {
max-width: 58ch;
margin-top: 1.25rem;
color: var(--chrnx-muted);
font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.5rem);
}
.chrnx-featured-stories > h2,
.chrnx-journal-stream > h2,
.chrnx-home-projects > h2,
.chrnx-home-music h2,
.chrnx-home-about-preview h2 {
font-size: var(--wp--preset--font-size--x-large);
}
.chrnx-featured-stories__grid {
align-items: stretch;
margin-top: 2rem;
}
.chrnx-featured-story,
.chrnx-journal-card,
.chrnx-podcast-card,
.chrnx-related-card,
.chrnx-release-card {
position: relative;
overflow: hidden;
border: 1px solid var(--chrnx-line);
border-radius: var(--chrnx-radius);
background: color-mix(in srgb, var(--chrnx-surface) 92%, transparent);
box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 8%);
}
.chrnx-featured-story__link,
.chrnx-journal-card__link,
.chrnx-podcast-card__link,
.chrnx-related-card__link {
color: inherit;
text-decoration: none;
}
.chrnx-featured-story__link:hover,
.chrnx-journal-card__link:hover,
.chrnx-podcast-card__link:hover,
.chrnx-related-card__link:hover {
color: inherit;
}
.chrnx-featured-story__content,
.chrnx-journal-card__content,
.chrnx-podcast-card__content,
.chrnx-related-card__content {
display: grid;
gap: 0.75rem;
padding: clamp(1.25rem, 2.5vw, 2rem);
}
.chrnx-featured-story__badge,
.chrnx-journal-card__badge,
.chrnx-podcast-card__badge,
.chrnx-related-card__badge,
.chrnx-page-kicker {
color: var(--chrnx-green);
font-family: var(--wp--preset--font-family--metadata);
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.chrnx-featured-story__title,
.chrnx-journal-card__title,
.chrnx-podcast-card__title,
.chrnx-related-card__title {
margin: 0;
font-size: var(--wp--preset--font-size--large);
}
.chrnx-featured-story__excerpt,
.chrnx-journal-card__excerpt,
.chrnx-podcast-card__excerpt,
.chrnx-related-card__excerpt {
color: var(--chrnx-muted);
}
.chrnx-featured-story__fallback,
.chrnx-journal-card__fallback,
.chrnx-related-card__fallback {
background-color: var(--chrnx-surface-raised);
background-image:
linear-gradient(145deg, transparent 0 48%, color-mix(in srgb, var(--chrnx-green) 35%, transparent) 49% 51%, transparent 52%),
radial-gradient(circle at 76% 24%, var(--chrnx-accent-soft) 0 14%, transparent 15%);
}
.chrnx-featured-story__fallback,
.chrnx-journal-card__fallback,
.chrnx-podcast-card__fallback,
.chrnx-related-card__fallback {
background-color: var(--chrnx-surface-raised);
background-image:
linear-gradient(135deg, transparent 0 46%, color-mix(in srgb, var(--chrnx-card-accent, var(--chrnx-green)) 35%, transparent) 47% 52%, transparent 53%),
radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--chrnx-card-accent, var(--chrnx-green)) 28%, transparent) 0 15%, transparent 16%);
}
.chrnx-featured-story__fallback.is-topic-code,
.chrnx-journal-card__fallback.is-topic-code,
.chrnx-related-card__fallback.is-topic-code {
--chrnx-card-accent: #59c3c3;
}
.chrnx-featured-story__fallback.is-topic-research,
.chrnx-journal-card__fallback.is-topic-research,
.chrnx-related-card__fallback.is-topic-research {
--chrnx-card-accent: #a5d66a;
}
.chrnx-featured-story__fallback.is-topic-gaming,
.chrnx-journal-card__fallback.is-topic-gaming,
.chrnx-related-card__fallback.is-topic-gaming {
--chrnx-card-accent: #da7b45;
}
.chrnx-featured-story__fallback.is-topic-literature,
.chrnx-journal-card__fallback.is-topic-literature,
.chrnx-related-card__fallback.is-topic-literature {
--chrnx-card-accent: #b88ad9;
}
.chrnx-featured-story__fallback.is-topic-life,
.chrnx-journal-card__fallback.is-topic-life,
.chrnx-related-card__fallback.is-topic-life {
--chrnx-card-accent: #e0b75b;
}
.chrnx-featured-story__fallback.is-topic-podcasts,
.chrnx-journal-card__fallback.is-topic-podcasts,
.chrnx-podcast-card__fallback.is-topic-podcasts,
.chrnx-related-card__fallback.is-topic-podcasts {
--chrnx-card-accent: #58a7d8;
}
.chrnx-featured-story__fallback.is-topic-music,
.chrnx-journal-card__fallback.is-topic-music,
.chrnx-related-card__fallback.is-topic-music {
--chrnx-card-accent: #d36b3f;
}
.chrnx-journal-stream__filters {
align-items: end;
margin-block: 2rem;
padding: 1rem;
border: 1px solid var(--chrnx-line);
border-radius: 0.75rem;
background: var(--chrnx-surface);
}
.chrnx-journal-stream__filters label {
min-width: min(100%, 11rem);
color: var(--chrnx-muted);
font-family: var(--wp--preset--font-family--metadata);
font-size: var(--wp--preset--font-size--small);
}
.chrnx-journal-stream__filters input,
.chrnx-journal-stream__filters select {
min-height: 45px;
padding: 0.6rem 0.75rem;
border: 1px solid var(--chrnx-line);
border-radius: 0.4rem;
background: var(--chrnx-bg);
color: var(--chrnx-text);
}
.chrnx-journal-stream__filters button,
.chrnx-subscribe-cta a {
min-height: 45px;
padding: 0.7rem 1.1rem;
border: 0;
border-radius: 999px;
background: var(--chrnx-green);
color: var(--chrnx-bg);
font-weight: 700;
text-decoration: none;
}
.chrnx-journal-stream__list {
grid-template-columns: repeat(2, minmax(0, 1fr));
margin: 0;
}
.chrnx-journal-stream__list > li {
min-width: 0;
}
.chrnx-journal-card__link {
display: grid;
grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 1fr);
height: 100%;
}
.chrnx-journal-card__fallback,
.chrnx-journal-card__image {
height: 100%;
min-height: 13rem;
object-fit: cover;
}
.chrnx-home > .chrnx-home-projects,
.chrnx-home > .chrnx-home-music,
.chrnx-home > .wp-block-chrnx-latest-podcast,
.chrnx-home > .chrnx-home-about-preview,
.chrnx-home > .wp-block-chrnx-subscribe-cta {
margin-block-start: var(--wp--preset--spacing--70);
padding-block: var(--wp--preset--spacing--60);
border-top: 0;
}
.chrnx-home > .chrnx-home-music {
padding-block: 0;
}
.chrnx-home-projects {
position: relative;
isolation: isolate;
min-height: 34rem;
overflow: hidden;
padding-inline: clamp(1.5rem, 5vw, 4rem);
border: 1px solid var(--chrnx-line);
border-radius: calc(var(--chrnx-radius) * 1.5);
background-color: var(--chrnx-surface);
background-image:
linear-gradient(125deg, var(--chrnx-surface) 0 58%, transparent 58%),
radial-gradient(circle at 80% 35%, var(--chrnx-accent-soft), transparent 48%);
box-shadow: var(--chrnx-shadow);
}
.chrnx-home-projects > h2,
.chrnx-home-projects > .wp-block-columns {
position: relative;
z-index: 2;
max-width: 62%;
}
.chrnx-home-projects .wp-block-columns {
display: grid;
gap: 0;
grid-template-columns: 1fr;
margin-bottom: 0;
border-top: 1px solid var(--chrnx-line);
}
.chrnx-home-projects .wp-block-column {
padding-block: 1.25rem;
border-bottom: 1px solid var(--chrnx-line);
}
.chrnx-home-projects .wp-block-column h3 {
margin: 0;
}
.chrnx-responsive-portrait {
display: block;
}
.chrnx-section-portrait {
display: block;
width: 100%;
height: auto;
filter: drop-shadow(0 2rem 2rem rgb(0 0 0 / 28%));
}
.chrnx-home-projects > .chrnx-responsive-portrait {
position: absolute;
z-index: 1;
right: clamp(0.5rem, 3vw, 2rem);
bottom: 0;
width: min(41%, 23rem);
}
.chrnx-home-projects > .chrnx-responsive-portrait:last-child {
z-index: 0;
right: 24%;
width: min(28%, 15rem);
opacity: 0.38;
filter: saturate(0.55) contrast(1.08) drop-shadow(0 1rem 2rem rgb(0 0 0 / 24%));
}
.chrnx-home-music .wp-block-columns {
position: relative;
isolation: isolate;
overflow: hidden;
min-height: 34rem;
padding: clamp(2rem, 6vw, 5rem);
border: 1px solid rgb(197 88 35 / 35%);
border-radius: calc(var(--chrnx-radius) * 1.5);
background-color: #0d1117;
background-image:
linear-gradient(110deg, rgb(13 17 23 / 98%) 0 44%, rgb(13 17 23 / 66%) 68%, rgb(13 17 23 / 84%)),
linear-gradient(145deg, #54260f, #0d1117 75%);
box-shadow: 0 2rem 5rem rgb(0 0 0 / 28%);
color: #e6edf3;
}
.chrnx-home-music__collage-layer {
position: absolute;
z-index: 0;
inset: 0;
overflow: hidden;
pointer-events: none;
}
.chrnx-home-music__collage-layer::after {
position: absolute;
inset: 0;
background: linear-gradient(90deg, rgb(13 17 23 / 62%), rgb(13 17 23 / 8%));
content: "";
}
.chrnx-home-music__collage-layer .chrnx-responsive-portrait,
.chrnx-home-music__collage {
width: 100%;
height: 100%;
}
.chrnx-home-music__collage {
object-fit: cover;
object-position: 72% 42%;
filter: saturate(0.72) contrast(1.08);
opacity: 0.72;
}
.chrnx-home-music h2 {
color: #e6edf3;
}
.chrnx-home-music p {
color: #c6ced7;
}
html[data-theme="light"] .chrnx-home-music h2,
html[data-theme="light"] .chrnx-home-music p {
color: #e6edf3;
}
@media (prefers-color-scheme: light) {
:root:not([data-theme]) .chrnx-home-music h2,
:root:not([data-theme]) .chrnx-home-music p {
color: #e6edf3;
}
}
.chrnx-home-music .wp-block-column:first-child {
z-index: 2;
}
.chrnx-home-music .wp-block-column:first-child > h2,
.chrnx-home-music .wp-block-column:first-child > p {
position: relative;
z-index: 2;
}
.chrnx-home-music .wp-block-column:last-child {
position: relative;
z-index: 2;
align-self: end;
}
.chrnx-home-music .wp-block-column:last-child .chrnx-responsive-portrait {
width: min(100%, 29rem);
margin: auto auto 0;
filter: drop-shadow(0 1.5rem 2rem rgb(0 0 0 / 42%));
}
.chrnx-home-music__art {
max-height: 30rem;
object-fit: contain;
object-position: center bottom;
filter: contrast(1.06) saturate(0.9);
}
.chrnx-latest-podcast {
position: relative;
padding-inline: clamp(1.5rem, 5vw, 4rem);
border: 1px solid color-mix(in srgb, #58a7d8 36%, var(--chrnx-line));
border-radius: calc(var(--chrnx-radius) * 1.25);
background-color: var(--chrnx-surface-raised);
background-image: linear-gradient(135deg, color-mix(in srgb, #58a7d8 12%, transparent), transparent 58%);
box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 12%);
}
.chrnx-latest-podcast::before {
display: block;
margin-bottom: 1.5rem;
color: var(--chrnx-green);
content: "LATEST CONVERSATION";
font-family: var(--wp--preset--font-family--metadata);
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.12em;
}
.chrnx-podcast-card__link {
display: block;
padding: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 781px) {
.chrnx-podcast-card__link {
display: grid;
grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
align-items: stretch;
padding: clamp(1.25rem, 2.5vw, 2rem);
}
.chrnx-podcast-card__image,
.chrnx-podcast-card__fallback {
height: 100%;
min-height: 15rem;
max-height: 19rem;
aspect-ratio: auto;
}
}
.chrnx-home-about-preview,
.chrnx-subscribe-cta {
display: grid;
align-items: start;
gap: 2rem;
padding-inline: clamp(1.5rem, 5vw, 4rem);
border-radius: var(--chrnx-radius);
}
.chrnx-home-about-preview {
grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr);
border: 1px solid var(--chrnx-line);
border-left: 0.35rem solid var(--chrnx-accent);
background-color: var(--chrnx-surface);
background-image: linear-gradient(105deg, var(--chrnx-accent-soft), transparent 48%);
}
.chrnx-subscribe-cta {
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
border: 1px solid color-mix(in srgb, var(--chrnx-green) 44%, var(--chrnx-line));
background-color: var(--chrnx-surface-raised);
background-image: linear-gradient(115deg, color-mix(in srgb, var(--chrnx-green) 14%, transparent), transparent 62%);
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chrnx-green) 8%, transparent);
}
.chrnx-subscribe-cta__title,
.chrnx-subscribe-cta p {
grid-column: 1;
margin-block: 0;
}
.chrnx-subscribe-cta__link {
grid-column: 2;
grid-row: 1 / span 2;
}
.chrnx-home-about-preview p,
.chrnx-subscribe-cta p {
max-width: 58ch;
color: var(--chrnx-muted);
}
.chrnx-entry,
.chrnx-archive,
.chrnx-search,
.chrnx-not-found {
padding-block: clamp(3.5rem, 7vw, 7rem);
}
.chrnx-entry > h1,
.chrnx-archive > h1,
.chrnx-search > h1,
.chrnx-not-found > h1 {
font-size: var(--wp--preset--font-size--display);
letter-spacing: -0.035em;
}
.chrnx-entry--page > .wp-block-post-title,
.chrnx-archive > .wp-block-query-title {
width: min(100%, var(--wp--style--global--content-size));
margin-inline: auto;
color: var(--chrnx-green);
font-family: var(--wp--preset--font-family--metadata);
font-size: var(--wp--preset--font-size--small);
letter-spacing: 0.14em;
text-transform: uppercase;
}
.chrnx-entry__meta {
padding-block: 1rem;
border-block: 1px solid var(--chrnx-line);
color: var(--chrnx-muted);
}
.chrnx-entry pre {
overflow-x: auto;
padding: 1.25rem;
border: 1px solid var(--chrnx-line);
border-radius: 0.75rem;
background: #090c10;
color: #d9e7df;
font-size: 0.9rem;
}
.chrnx-topic-hero {
display: block;
min-height: 0;
overflow: visible;
margin-bottom: 3rem;
border: 0;
background: none;
}
.chrnx-topic-hero__content {
padding: clamp(2rem, 6vw, 5rem);
}
.chrnx-topic-hero__title {
margin: 0;
font-size: var(--wp--preset--font-size--display);
}
.chrnx-topic-hero__art {
align-self: end;
}
.chrnx-topic-hero__art .chrnx-section-portrait {
max-height: 34rem;
object-fit: contain;
object-position: bottom;
}
.chrnx-music-landing,
.chrnx-podcast-landing,
.chrnx-about {
position: relative;
}
.chrnx-music-landing > h2,
.chrnx-podcast-landing > h2,
.chrnx-about > h2 {
font-size: var(--wp--preset--font-size--display);
}
.chrnx-music-landing__art {
display: grid;
grid-template-columns: minmax(0, 1.25fr) minmax(15rem, 0.75fr);
overflow: hidden;
margin-block: 3rem;
border-radius: calc(var(--chrnx-radius) * 1.5);
background: #15100d;
}
.chrnx-music-landing__art > img {
width: 100%;
height: 100%;
max-height: 40rem;
object-fit: cover;
}
.chrnx-music-landing__art .chrnx-responsive-portrait {
align-self: end;
}
.chrnx-music-landing__portrait {
max-height: 38rem;
object-fit: contain;
object-position: bottom;
}
.chrnx-release-list {
display: grid;
gap: 1rem;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.chrnx-release-card {
padding: 1.5rem;
}
.chrnx-podcast-landing > .chrnx-responsive-portrait {
float: right;
width: min(45%, 24rem);
margin: -7rem 0 2rem 2rem;
}
.chrnx-podcast-landing [data-type="core/group"]:empty,
.chrnx-podcast-landing > .wp-block-group:empty,
.chrnx-podcast-show > .wp-block-group:empty {
display: none;
}
.chrnx-about__portraits {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
align-items: end;
overflow: hidden;
margin-block: 2rem 3rem;
border: 1px solid var(--chrnx-line);
border-radius: calc(var(--chrnx-radius) * 1.5);
background: linear-gradient(145deg, var(--chrnx-surface), var(--chrnx-accent-soft));
}
.chrnx-about__portraits .chrnx-responsive-portrait {
min-width: 0;
margin: 0 -14%;
}
.chrnx-about__portraits .chrnx-responsive-portrait:first-child {
margin-left: 0;
}
.chrnx-about__portraits .chrnx-responsive-portrait:last-child {
margin-right: 0;
}
.chrnx-about__portraits .chrnx-section-portrait {
max-height: 24rem;
object-fit: contain;
object-position: bottom;
}
.chrnx-journal-stream__empty,
.chrnx-not-found .wp-block-search,
.chrnx-search .wp-block-query-no-results {
padding: 2rem;
border: 1px dashed var(--chrnx-line);
border-radius: var(--chrnx-radius);
background: var(--chrnx-surface);
}
.chrnx-journal-stream__pagination a,
.chrnx-journal-stream__pagination span {
display: inline-flex;
min-width: 45px;
min-height: 45px;
align-items: center;
justify-content: center;
border: 1px solid var(--chrnx-line);
border-radius: 50%;
}
.chrnx-journal-stream__pagination .current {
background: var(--chrnx-green);
color: var(--chrnx-bg);
}
@media (hover: hover) {
.chrnx-featured-story,
.chrnx-journal-card,
.chrnx-podcast-card,
.chrnx-related-card {
transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.chrnx-featured-story:hover,
.chrnx-journal-card:hover,
.chrnx-podcast-card:hover,
.chrnx-related-card:hover {
border-color: color-mix(in srgb, var(--chrnx-green) 62%, var(--chrnx-line));
box-shadow: var(--chrnx-shadow);
transform: translateY(-0.25rem);
}
}
@media (max-width: 900px) {
.chrnx-journal-stream__list,
.chrnx-release-list {
grid-template-columns: 1fr;
}
.chrnx-home-projects > h2,
.chrnx-home-projects > .wp-block-columns {
max-width: 70%;
}
.chrnx-topic-hero {
grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.6fr);
}
}
@media (max-width: 599px) {
.chrnx-home > section,
.chrnx-home > .wp-block-group,
.chrnx-home > .wp-block-chrnx-featured-stories,
.chrnx-home > .wp-block-chrnx-journal-stream,
.chrnx-home > .wp-block-chrnx-latest-podcast {
padding-block: 3.5rem;
}
.chrnx-home > .chrnx-home-intro {
min-height: auto;
align-content: start;
padding-block: 2.5rem;
padding-right: 0;
}
.chrnx-home-intro h1 {
font-size: clamp(2.2rem, 10vw, 2.75rem);
}
.chrnx-home-intro::after {
display: none;
}
.chrnx-journal-stream__filters,
.chrnx-home-about-preview,
.chrnx-subscribe-cta {
display: grid;
grid-template-columns: 1fr;
}
.chrnx-journal-stream__filters label,
.chrnx-journal-stream__filters input,
.chrnx-journal-stream__filters select,
.chrnx-journal-stream__filters button {
width: 100%;
}
.chrnx-journal-card__link {
grid-template-columns: 1fr;
}
.chrnx-journal-card__fallback,
.chrnx-journal-card__image {
min-height: 10rem;
}
.chrnx-home-projects {
min-height: 36rem;
padding-inline: 1.5rem;
}
.chrnx-home-projects > h2,
.chrnx-home-projects > .wp-block-columns {
max-width: 100%;
}
.chrnx-home-projects > .chrnx-responsive-portrait {
right: 0;
width: min(68%, 19rem);
}
.chrnx-home-projects > .chrnx-responsive-portrait:last-child {
display: none;
}
.chrnx-home-music .wp-block-columns {
padding: 2rem 1.5rem 0;
}
.chrnx-home > .chrnx-home-music {
padding-block: 0;
}
.chrnx-home-music__collage {
object-position: 60% center;
opacity: 0.56;
}
.chrnx-home-music .wp-block-column:last-child .chrnx-responsive-portrait {
width: min(82%, 20rem);
}
.chrnx-home-about-preview,
.chrnx-subscribe-cta {
grid-template-columns: 1fr;
gap: 1rem;
}
.chrnx-subscribe-cta__link {
grid-column: 1;
grid-row: auto;
justify-self: start;
}
.chrnx-topic-hero {
min-height: 36rem;
grid-template-columns: 1fr;
}
.chrnx-topic-hero__art {
width: min(88%, 24rem);
margin: -4rem auto 0;
}
.chrnx-music-landing__art {
grid-template-columns: 1fr;
}
.chrnx-music-landing__art > img {
max-height: 24rem;
}
.chrnx-podcast-landing > .chrnx-responsive-portrait {
float: none;
width: min(85%, 22rem);
margin: 0 auto 2rem;
}
.chrnx-about__portraits {
grid-template-columns: repeat(3, 70%);
overflow-x: auto;
scroll-snap-type: x mandatory;
}
.chrnx-about__portraits .chrnx-responsive-portrait {
margin: 0;
scroll-snap-align: center;
}
}
@media (prefers-reduced-motion: reduce) {
.chrnx-featured-story,
.chrnx-journal-card,
.chrnx-podcast-card,
.chrnx-related-card {
transition: none;
}
.chrnx-featured-story:hover,
.chrnx-journal-card:hover,
.chrnx-podcast-card:hover,
.chrnx-related-card:hover {
transform: none;
}
.chrnx-about__portraits {
scroll-behavior: auto;
}
}
/* Shared character-led section frame. */
.chrnx-character-stage {
--chrnx-character-accent: var(--chrnx-accent);
--chrnx-character-halo: color-mix(in srgb, var(--chrnx-character-accent) 30%, transparent);
--chrnx-character-wash: color-mix(in srgb, var(--chrnx-character-accent) 12%, transparent);
--chrnx-character-shadow: drop-shadow(0 1.75rem 1.5rem rgb(0 0 0 / 32%));
--chrnx-character-copy-surface: rgb(21 27 35 / 88%);
position: relative;
display: grid;
box-sizing: border-box;
min-height: clamp(30rem, 44vw, 38rem);
grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
isolation: isolate;
overflow: clip;
border: 1px solid color-mix(in srgb, var(--chrnx-character-accent) 32%, var(--chrnx-line));
border-radius: calc(var(--chrnx-radius) * 1.5);
background-color: var(--chrnx-surface);
background-image: linear-gradient(125deg, var(--chrnx-surface) 0 45%, var(--chrnx-character-wash) 100%);
box-shadow: var(--chrnx-shadow);
color: var(--chrnx-text);
}
.chrnx-character-stage__atmosphere {
position: absolute;
z-index: 0;
inset: 0;
overflow: hidden;
pointer-events: none;
}
.chrnx-character-stage__atmosphere::before {
position: absolute;
top: 8%;
right: -4%;
width: min(48rem, 62%);
aspect-ratio: 1;
border-radius: 50%;
background: radial-gradient(circle, var(--chrnx-character-halo) 0 24%, transparent 68%);
content: "";
filter: blur(0.2rem);
}
.chrnx-character-stage__atmosphere::after {
position: absolute;
inset: 0;
background-image:
linear-gradient(112deg, transparent 0 49%, var(--chrnx-character-wash) 49.5% 50.5%, transparent 51%),
linear-gradient(28deg, transparent 0 72%, color-mix(in srgb, var(--chrnx-character-accent) 18%, transparent) 72.5% 74%, transparent 74.5%),
radial-gradient(ellipse at 78% 100%, rgb(0 0 0 / 20%) 0 12%, transparent 42%);
content: "";
}
.chrnx-character-stage__content {
position: relative;
z-index: 2;
display: grid;
box-sizing: border-box;
width: 100%;
min-width: 0;
align-content: center;
align-self: stretch;
grid-column: 1;
grid-row: 1;
margin: 0 !important;
padding: clamp(2rem, 5vw, 5rem);
color: var(--chrnx-text);
}
.chrnx-character-stage__content::before {
position: absolute;
z-index: 1;
inset: 0;
background-color: var(--chrnx-character-copy-surface);
content: "";
pointer-events: none;
}
.chrnx-character-stage__content > :not(.chrnx-responsive-portrait) {
position: relative;
z-index: 2;
}
.chrnx-character-stage__content > :first-child {
margin-block-start: 0;
}
.chrnx-character-stage__content > :last-child {
margin-block-end: 0;
}
.chrnx-character-stage__art {
position: relative;
z-index: 3;
display: flex;
box-sizing: border-box;
width: 100%;
min-width: 0;
height: 100%;
align-self: end;
align-items: end;
justify-content: center;
grid-column: 2;
grid-row: 1;
margin: 0;
}
.chrnx-character-stage__art::before {
position: absolute;
z-index: 1;
right: 5%;
bottom: -1.25rem;
left: 5%;
height: 4.5rem;
border-radius: 50%;
background: radial-gradient(ellipse, rgb(0 0 0 / 38%), transparent 68%);
content: "";
filter: blur(0.55rem);
}
.chrnx-character-stage__art > .chrnx-responsive-portrait {
position: relative;
z-index: 2;
display: flex;
width: 100%;
height: 100%;
align-items: end;
justify-content: center;
margin: 0;
}
.chrnx-character-stage__art img {
display: block;
width: 100%;
height: auto;
max-height: clamp(28rem, 44vw, 38rem);
object-fit: contain;
object-position: center bottom;
filter: var(--chrnx-character-shadow) saturate(0.96) contrast(1.04);
}
.chrnx-character-stage__secondary-art {
position: absolute;
z-index: 1;
right: 27%;
bottom: 0;
width: min(29%, 18rem);
height: auto;
opacity: 0.34;
filter: saturate(0.55) contrast(1.08) drop-shadow(0 1rem 2rem rgb(0 0 0 / 24%));
}
.chrnx-character-stage__atmosphere > .chrnx-responsive-portrait {
position: absolute;
z-index: 1;
inset: 0;
width: 100%;
height: 100%;
}
.chrnx-character-stage__atmosphere .chrnx-character-stage__collage {
width: 100%;
height: 100%;
object-fit: cover;
object-position: 68% center;
filter: saturate(0.68) contrast(1.08);
opacity: 0.46;
}
.chrnx-music-landing .chrnx-character-stage__content > .chrnx-responsive-portrait:has(.chrnx-character-stage__collage) {
position: absolute;
z-index: 0;
inset: 0 auto 0 0;
width: calc(100% / 0.55);
height: 100%;
overflow: hidden;
margin: 0 !important;
opacity: 0.28;
}
.chrnx-music-landing .chrnx-character-stage__content > h2,
.chrnx-music-landing .chrnx-character-stage__content > p {
position: relative;
z-index: 2;
}
.chrnx-music-landing .chrnx-character-stage__collage {
width: 100%;
height: 100%;
object-fit: cover;
filter: saturate(0.72) contrast(1.08);
}
.chrnx-home-projects .chrnx-character-stage,
.is-topic-code .chrnx-character-stage {
--chrnx-character-accent: #59c3c3;
}
.is-topic-research .chrnx-character-stage {
--chrnx-character-accent: #a5d66a;
}
.is-topic-literature .chrnx-character-stage {
--chrnx-character-accent: #b88ad9;
}
.chrnx-home-music .chrnx-character-stage,
.chrnx-music-landing .chrnx-character-stage,
.is-topic-music .chrnx-character-stage {
--chrnx-character-accent: #d36b3f;
}
.chrnx-home-music .chrnx-character-stage,
.chrnx-music-landing .chrnx-character-stage {
--chrnx-character-copy-surface: rgb(13 17 23 / 86%);
background-color: #0d1117;
background-image: linear-gradient(125deg, #0d1117 0 45%, rgb(84 38 15 / 72%) 100%);
color: #e6edf3;
}
html[data-theme="light"] .chrnx-character-stage {
--chrnx-character-copy-surface: rgb(255 253 247 / 90%);
}
html[data-theme="light"] .chrnx-home-music .chrnx-character-stage,
html[data-theme="light"] .chrnx-music-landing .chrnx-character-stage {
--chrnx-character-copy-surface: rgb(13 17 23 / 86%);
}
.chrnx-home-music .chrnx-character-stage__content,
.chrnx-home-music .chrnx-character-stage__content h2,
.chrnx-home-music .chrnx-character-stage__content p,
.chrnx-music-landing .chrnx-character-stage__content,
.chrnx-music-landing .chrnx-character-stage__content h2,
.chrnx-music-landing .chrnx-character-stage__content p,
.chrnx-music-landing .chrnx-character-stage__content a {
color: #e6edf3;
}
.chrnx-podcast-landing .chrnx-character-stage,
.is-topic-podcasts .chrnx-character-stage,
.is-topic-silicon-ranch .chrnx-character-stage {
--chrnx-character-accent: #58a7d8;
}
.chrnx-about .chrnx-character-stage,
.is-topic-life .chrnx-character-stage {
--chrnx-character-accent: #e0b75b;
}
.is-topic-gaming .chrnx-character-stage {
--chrnx-character-accent: #da7b45;
}
.chrnx-topic-hero__fallback {
position: absolute;
right: 9%;
bottom: 0;
width: min(36%, 24rem);
aspect-ratio: 0.78;
border: 1px solid color-mix(in srgb, var(--chrnx-character-accent) 46%, transparent);
border-bottom: 0;
border-radius: 48% 48% 0 0;
background:
radial-gradient(circle at 50% 26%, var(--chrnx-character-halo) 0 14%, transparent 15%),
linear-gradient(145deg, var(--chrnx-character-wash), transparent 62%);
box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 18%);
}
.chrnx-character-facets {
position: relative;
z-index: 0;
opacity: 0.84;
}
.chrnx-character-facets .chrnx-section-portrait {
filter: saturate(0.72) contrast(1.02) drop-shadow(0 1rem 1.25rem rgb(0 0 0 / 20%));
}
@media (max-width: 780px) {
.chrnx-topic-hero {
min-height: 0;
}
.chrnx-character-stage {
min-height: 0;
grid-template-columns: 1fr;
grid-template-rows: auto auto;
}
.chrnx-character-stage__content {
align-self: start;
grid-column: 1;
grid-row: 1;
padding: clamp(1.5rem, 7vw, 3rem);
}
.chrnx-character-stage__art {
width: 76%;
height: clamp(20rem, 100vw, 34rem);
justify-self: end;
grid-column: 1;
grid-row: 2;
margin: 0;
}
.chrnx-character-stage__art img {
max-height: 100%;
}
.chrnx-character-stage__secondary-art {
display: none;
}
.chrnx-character-stage__atmosphere::before {
top: auto;
right: -18%;
bottom: 0;
width: 100%;
}
.chrnx-character-stage__atmosphere .chrnx-character-stage__collage {
object-position: 62% center;
opacity: 0.34;
}
.chrnx-music-landing .chrnx-character-stage__content > .chrnx-responsive-portrait:has(.chrnx-character-stage__collage) {
width: 100%;
height: calc(100% + clamp(20rem, 100vw, 34rem));
}
}
@media (prefers-reduced-motion: reduce) {
.chrnx-character-stage,
.chrnx-character-stage *,
.chrnx-character-stage::before,
.chrnx-character-stage::after {
animation: none !important;
transition: none !important;
}
}