Files
bytegeist-portfolio/style.css
T
2026-06-20 22:45:38 -04:00

689 lines
10 KiB
CSS

:root {
--bg: #0b0c0e;
--surface: #111316;
--surface-2: #17191d;
--line: #292c31;
--line-light: #3a3e45;
--text: #edede8;
--muted: #a4a6aa;
--dim: #6f7379;
--accent: #a986e8;
--accent-soft: #c6adef;
--green: #81b89b;
--max: 1180px;
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
color: var(--text);
background: var(--bg);
font-family: "Segoe UI", Arial, sans-serif;
font-size: 16px;
line-height: 1.6;
}
a {
color: inherit;
text-decoration: none;
}
img {
display: block;
max-width: 100%;
}
.site-header {
width: min(calc(100% - 48px), var(--max));
height: 76px;
margin: 0 auto;
display: flex;
align-items: center;
border-bottom: 1px solid var(--line);
}
.brand {
display: flex;
align-items: center;
gap: 10px;
margin-right: auto;
font-size: 0.84rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.brand img {
width: 32px;
height: 32px;
object-fit: cover;
object-position: 50% 25%;
border-radius: 50%;
}
.site-header nav {
display: flex;
gap: 28px;
margin-right: 32px;
color: var(--muted);
font-size: 0.86rem;
}
.site-header nav a,
.text-link {
transition: color 160ms ease;
}
.site-header nav a:hover,
.text-link:hover {
color: var(--text);
}
.text-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--accent-soft);
font-weight: 600;
}
.text-link span {
font-size: 0.9em;
}
.header-link {
font-size: 0.86rem;
}
.hero {
width: min(calc(100% - 48px), var(--max));
min-height: 690px;
margin: 0 auto;
padding: 92px 0 84px;
display: grid;
grid-template-columns: minmax(0, 0.88fr) minmax(450px, 1.12fr);
gap: 74px;
align-items: center;
}
.kicker,
.section-index,
.story-label {
margin: 0 0 20px;
color: var(--dim);
font: 600 0.72rem/1.2 Consolas, "Courier New", monospace;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.kicker {
display: flex;
align-items: center;
gap: 10px;
color: var(--green);
}
.kicker span {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--green);
box-shadow: 0 0 0 4px rgba(129, 184, 155, 0.1);
}
h1,
h2,
h3,
p {
overflow-wrap: break-word;
}
h1,
h2 {
margin: 0;
font-weight: 540;
letter-spacing: -0.045em;
}
h1 {
max-width: 660px;
font-size: clamp(3.1rem, 5.5vw, 5.25rem);
line-height: 0.98;
}
.hero-intro {
max-width: 620px;
margin: 30px 0 0;
color: var(--muted);
font-size: 1.12rem;
}
.actions {
display: flex;
align-items: center;
gap: 26px;
margin-top: 38px;
}
.button {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 17px;
border: 1px solid var(--line-light);
border-radius: 3px;
font-size: 0.88rem;
font-weight: 650;
transition: background 160ms ease, border-color 160ms ease;
}
.button:hover {
border-color: #5a5f68;
}
.button.primary {
color: #111014;
border-color: var(--accent-soft);
background: var(--accent-soft);
}
.button.primary:hover {
background: #d2bdf2;
}
.hero-visual,
.architecture-figure {
margin: 0;
}
.hero-visual {
position: relative;
padding: 10px;
border: 1px solid var(--line);
background: #08090b;
}
.hero-visual::before {
content: "";
position: absolute;
width: 72%;
height: 55%;
top: -24px;
right: -22px;
z-index: -1;
background: #16121d;
}
.hero-visual img {
width: 100%;
height: auto;
filter: saturate(0.78);
}
.hero-visual figcaption,
.architecture-figure figcaption {
display: flex;
justify-content: space-between;
gap: 20px;
padding-top: 10px;
color: var(--dim);
font: 0.7rem/1.4 Consolas, "Courier New", monospace;
}
.hero-visual figcaption span {
color: var(--muted);
}
.project-facts {
width: min(calc(100% - 48px), var(--max));
margin: 0 auto;
display: grid;
grid-template-columns: repeat(4, 1fr);
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}
.project-facts div {
min-height: 128px;
padding: 24px 24px 22px 0;
border-right: 1px solid var(--line);
}
.project-facts div:not(:first-child) {
padding-left: 24px;
}
.project-facts div:last-child {
border-right: 0;
}
.project-facts span,
.story-number,
.lesson-list span {
display: block;
color: var(--accent);
font: 0.72rem/1 Consolas, "Courier New", monospace;
}
.project-facts strong {
display: block;
margin-top: 14px;
font-size: 1rem;
font-weight: 600;
}
.project-facts small {
display: block;
color: var(--dim);
font-size: 0.8rem;
}
.section-rule {
width: min(calc(100% - 48px), var(--max));
margin: 0 auto;
padding: 118px 0;
border-bottom: 1px solid var(--line);
}
.section-heading {
display: grid;
grid-template-columns: 0.38fr 1fr;
gap: 60px;
margin-bottom: 62px;
}
.section-heading.compact {
margin-bottom: 80px;
}
.section-heading h2,
.closing h2 {
max-width: 760px;
font-size: clamp(2.5rem, 4.6vw, 4.4rem);
line-height: 1.02;
}
.section-heading > div > p {
max-width: 690px;
margin: 24px 0 0;
color: var(--muted);
font-size: 1.04rem;
}
.architecture-figure {
padding: 10px;
border: 1px solid var(--line);
background: #08090b;
}
.architecture-figure img {
width: 100%;
}
.principles {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1px;
margin-top: 56px;
background: var(--line);
}
.principles article {
min-height: 230px;
padding: 28px;
background: var(--bg);
}
.principles span {
color: var(--accent);
font: 0.7rem Consolas, "Courier New", monospace;
text-transform: uppercase;
}
.principles h3,
.system-story h3,
.lesson-list h3 {
margin: 30px 0 10px;
font-size: 1.35rem;
font-weight: 580;
letter-spacing: -0.025em;
line-height: 1.2;
}
.principles p,
.system-story p,
.lesson-list p,
.closing > p:not(.section-index),
footer p {
color: var(--muted);
}
.principles p {
margin: 0;
font-size: 0.93rem;
}
.system-story {
display: grid;
grid-template-columns: 0.7fr 1.3fr;
gap: 76px;
align-items: center;
padding: 72px 0;
border-top: 1px solid var(--line);
}
.system-story.reverse {
grid-template-columns: 1.3fr 0.7fr;
}
.system-story.reverse .story-copy {
order: 2;
}
.system-story.reverse .story-images {
order: 1;
}
.story-label {
margin: 28px 0 16px;
color: var(--green);
}
.system-story h3 {
margin: 0 0 22px;
font-size: clamp(1.8rem, 3vw, 2.75rem);
}
.system-story p:not(.story-number, .story-label) {
margin: 0;
}
.system-story ul {
display: flex;
flex-wrap: wrap;
gap: 8px 18px;
margin: 28px 0 0;
padding: 0;
list-style: none;
color: var(--dim);
font: 0.72rem Consolas, "Courier New", monospace;
}
.system-story li::before {
content: "+ ";
color: var(--accent);
}
.story-images {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
min-width: 0;
align-items: start;
}
.story-images img {
width: 100%;
height: auto;
object-fit: contain;
border: 1px solid var(--line);
background: #08090b;
filter: saturate(0.72);
}
.lesson-list {
border-top: 1px solid var(--line);
}
.lesson-list article {
display: grid;
grid-template-columns: 70px 0.85fr 1fr;
gap: 30px;
align-items: baseline;
padding: 31px 0;
border-bottom: 1px solid var(--line);
}
.lesson-list h3,
.lesson-list p {
margin: 0;
}
.lesson-list h3 {
font-size: 1.15rem;
}
.lesson-list p {
font-size: 0.92rem;
}
.closing {
width: min(calc(100% - 48px), 820px);
margin: 0 auto;
padding: 130px 0;
text-align: center;
}
.closing h2 {
margin: 0 auto;
}
.closing > p:not(.section-index) {
max-width: 650px;
margin: 28px auto 34px;
font-size: 1.06rem;
}
footer {
width: min(calc(100% - 48px), var(--max));
margin: 0 auto;
padding: 30px 0 38px;
display: grid;
grid-template-columns: 1fr auto auto;
gap: 32px;
align-items: center;
border-top: 1px solid var(--line);
font-size: 0.78rem;
}
footer .brand {
margin: 0;
}
footer .brand img {
width: 26px;
height: 26px;
}
footer p {
margin: 0;
}
@media (max-width: 900px) {
.hero {
min-height: auto;
grid-template-columns: 1fr;
gap: 70px;
}
.hero-copy {
max-width: 720px;
}
.project-facts {
grid-template-columns: repeat(2, 1fr);
}
.project-facts div:nth-child(2) {
border-right: 0;
}
.project-facts div:nth-child(-n + 2) {
border-bottom: 1px solid var(--line);
}
.section-heading {
grid-template-columns: 1fr;
gap: 12px;
}
.principles {
grid-template-columns: 1fr;
}
.principles article {
min-height: 0;
}
.system-story,
.system-story.reverse {
grid-template-columns: 1fr;
gap: 38px;
}
.system-story.reverse .story-copy,
.system-story.reverse .story-images {
order: initial;
}
.story-copy {
max-width: 650px;
}
footer {
grid-template-columns: 1fr;
gap: 10px;
}
}
@media (max-width: 650px) {
.site-header,
.hero,
.project-facts,
.section-rule,
footer {
width: min(calc(100% - 32px), var(--max));
}
.site-header {
height: 66px;
}
.site-header nav {
display: none;
}
.header-link {
font-size: 0.78rem;
}
.hero {
padding: 68px 0 64px;
}
h1 {
font-size: clamp(2.75rem, 14vw, 4rem);
}
.hero-intro {
font-size: 1rem;
}
.actions {
align-items: flex-start;
flex-direction: column;
}
.hero-visual {
padding: 6px;
}
.hero-visual::before {
display: none;
}
.hero-visual figcaption {
display: block;
}
.hero-visual figcaption span {
display: block;
}
.project-facts {
grid-template-columns: 1fr;
}
.project-facts div,
.project-facts div:not(:first-child) {
min-height: 0;
padding: 20px 0;
border-right: 0;
border-bottom: 1px solid var(--line);
}
.project-facts div:last-child {
border-bottom: 0;
}
.section-rule {
padding: 82px 0;
}
.section-heading,
.section-heading.compact {
margin-bottom: 48px;
}
.section-heading h2,
.closing h2 {
font-size: 2.55rem;
}
.architecture-figure {
padding: 5px;
overflow-x: auto;
}
.architecture-figure img {
min-width: 780px;
}
.principles {
margin-top: 38px;
}
.system-story {
padding: 54px 0;
}
.story-images {
grid-template-columns: 1fr;
}
.story-images img {
height: auto;
}
.lesson-list article {
grid-template-columns: 40px 1fr;
gap: 14px;
}
.lesson-list p {
grid-column: 2;
}
.closing {
width: calc(100% - 32px);
padding: 90px 0;
}
}