make everything wonkey

This commit is contained in:
John Gatward committed 2026-10-29 14:51:51 +00:00
1 parent 68e773d77b
commit ca9f90fdbb
2 files changed
+303 -124

No files matched your search

+284 -115
View File
@@ -201,7 +201,7 @@ nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 3rem;
padding: 0 max(2rem, calc((100vw - 1104px) / 2));
height: 56px;
background: var(--nav-background);
backdrop-filter: blur(12px);
@@ -274,9 +274,8 @@ nav {
min-height: 44px;
color: var(--subtext0);
text-decoration: none;
font-size: 0.78rem;
letter-spacing: 0.08em;
text-transform: uppercase;
font-size: 0.8rem;
letter-spacing: 0;
text-decoration: underline;
text-decoration-color: transparent;
text-underline-offset: 0.3em;
@@ -326,7 +325,7 @@ nav {
/* ─── Sections ─────────────────────────────────────────── */
section {
padding: clamp(4rem, 7vw, 6rem) 3rem;
max-width: 1100px;
max-width: 1200px;
margin: 0 auto;
scroll-margin-top: 56px;
}
@@ -339,8 +338,66 @@ section.full-width {
/* ─── Hero ─────────────────────────────────────────────── */
#hero {
display: grid;
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
align-items: center;
gap: 2rem;
padding-top: 6rem;
padding-bottom: clamp(3rem, 6vw, 5rem);
padding-bottom: 5rem;
min-height: 730px;
}
.hero-art {
position: relative;
isolation: isolate;
min-width: 0;
height: 420px;
}
.hero-art::before {
content: '';
position: absolute;
inset: 5% 7% 8%;
border-radius: 50%;
background: var(--mauve);
opacity: 0.18;
transform: rotate(-20deg) scaleY(0.9);
}
.hero-art::after {
content: '';
position: absolute;
inset: 5% 10% 12%;
border: 1px solid var(--mauve);
border-radius: 50%;
transform: rotate(25deg) scaleY(0.65);
pointer-events: none;
}
.hero-experiment {
position: absolute;
right: 0;
bottom: 8px;
width: 83%;
height: auto;
border: 8px solid var(--mantle);
border-radius: 12px;
transform: rotate(9deg);
box-shadow: 0 16px 32px color-mix(in srgb, var(--crust) 18%, transparent);
}
.hero-portrait {
position: absolute;
top: 5%;
left: 3%;
display: block;
width: 59%;
height: auto;
aspect-ratio: 4 / 5;
object-fit: cover;
border: 8px solid var(--base);
border-radius: 150px 150px 12px 12px;
transform: rotate(-7deg);
}
.hero-copy {
@@ -349,17 +406,31 @@ section.full-width {
}
.hero-name {
font-family: 'Fraunces', serif;
font-size: clamp(3rem, 6vw, 5rem);
font-family: var(--font-body);
font-size: clamp(3rem, 5.2vw, 4.75rem);
font-weight: 600;
letter-spacing: -0.065em;
line-height: 1.1;
padding-bottom: 0.1em;
color: var(--text);
margin-bottom: 0.5rem;
margin-bottom: 1.25rem;
}
.hero-name em {
font-style: italic;
font-style: normal;
color: var(--text);
}
#hero .hero-name {
font-size: clamp(4.5rem, 8.8vw, 8rem);
font-weight: 750;
line-height: 0.92;
letter-spacing: -0.075em;
margin-bottom: 2rem;
}
#hero .hero-name em {
display: block;
color: var(--mauve);
}
@@ -368,7 +439,7 @@ section.full-width {
font-weight: 500;
letter-spacing: -0.025em;
color: var(--subtext1);
margin-bottom: 1rem;
margin-bottom: 0.75rem;
}
.hero-desc {
@@ -376,7 +447,7 @@ section.full-width {
color: var(--subtext0);
font-size: 1rem;
line-height: 1.6;
margin-bottom: 1.5rem;
margin-bottom: 2rem;
}
.hero-links {
@@ -392,10 +463,11 @@ section.full-width {
min-height: 44px;
gap: 0.5rem;
padding: 0.6rem 1.4rem;
border-radius: 4px;
font-family: var(--font-mono);
font-size: 0.78rem;
letter-spacing: 0.05em;
border-radius: 999px;
font-family: var(--font-body);
font-size: 0.9rem;
font-weight: 600;
letter-spacing: -0.01em;
text-decoration: none;
transition: all 0.2s;
cursor: pointer;
@@ -434,40 +506,38 @@ section.full-width {
}
/* ─── About ────────────────────────────────────────────── */
.about-lead {
display: grid;
grid-template-columns: minmax(0, 1fr) 176px;
align-items: center;
gap: 3rem;
margin-top: 1.5rem;
#about {
background: var(--mantle);
border-radius: 32px;
max-width: 1104px;
}
.about-portrait {
grid-column: 2;
grid-row: 1;
display: block;
width: 176px;
height: auto;
border-radius: 8px;
.about-lead {
margin-top: 1.75rem;
}
.about-intro {
grid-column: 1;
grid-row: 1;
max-width: 60ch;
font-size: 1.1rem;
max-width: 48ch;
font-size: clamp(1.3rem, 2.5vw, 1.9rem);
color: var(--subtext1);
line-height: 1.75;
}
.about-columns {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
grid-template-columns: 1.2fr 1fr;
gap: clamp(3rem, 8vw, 7rem);
margin-top: 3rem;
align-items: start;
}
.about-columns > .reveal:last-child {
padding: 1.5rem 2rem;
background: var(--base);
border-radius: 20px;
transform: rotate(2deg);
}
.about-details {
display: flex;
flex-direction: column;
@@ -478,7 +548,8 @@ section.full-width {
.about-subheading {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.4rem;
margin-bottom: 0.6rem;
letter-spacing: -0.025em;
}
.about-block p {
@@ -526,13 +597,13 @@ section.full-width {
}
.v-dot {
width: 1.3rem;
height: 1.3rem;
width: 0.55rem;
height: 0.55rem;
border-radius: 50%;
background: var(--surface0);
border: 2px solid var(--surface1);
flex-shrink: 0;
margin-top: 0.15rem;
margin: 0.6rem 0.375rem 0;
transition:
border-color 0.2s,
background 0.2s;
@@ -555,7 +626,7 @@ section.full-width {
.v-year {
font-size: 0.7rem;
color: var(--mauve);
color: var(--subtext0);
margin-bottom: 0.3rem;
letter-spacing: 0.05em;
}
@@ -604,7 +675,7 @@ section.full-width {
letter-spacing: 0.08em;
text-transform: uppercase;
background: var(--accent-soft);
color: var(--mauve);
color: var(--link-accent);
padding: 0.1rem 0.45rem;
border-radius: 3px;
margin-left: 0.4rem;
@@ -614,20 +685,30 @@ section.full-width {
/* ─── Skills ───────────────────────────────────────────── */
#skills h2 {
margin-bottom: 3rem;
margin-bottom: 2.5rem;
}
.skills-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 3rem 4rem;
gap: 2.5rem 4rem;
}
.skill-card {
display: grid;
grid-template-columns: 2rem minmax(0, 1fr);
grid-template-columns: 3.5rem minmax(0, 1fr);
gap: 0.75rem 1rem;
align-content: start;
padding: 2rem;
border: 1px solid var(--surface0);
border-radius: 24px;
background: var(--mantle);
}
.skill-card:nth-child(2),
.skill-card:nth-child(3) {
background: transparent;
border-radius: 24px 64px 24px 24px;
}
.skill-card-icon {
@@ -636,8 +717,8 @@ section.full-width {
}
.skill-card-icon-image {
width: 1.75rem;
height: 1.75rem;
width: 2.75rem;
height: 2.75rem;
display: block;
}
@@ -674,19 +755,19 @@ section.full-width {
display: inline-block;
padding: 0.15rem 0.6rem;
border-radius: 3px;
font-size: 0.75rem;
letter-spacing: 0.04em;
font-weight: 700;
background: var(--surface0);
color: var(--text);
font-size: 0.7rem;
letter-spacing: 0;
font-weight: 400;
background: var(--base);
color: var(--subtext0);
}
/* ─── Tutorials / Projects shared ─────────────────────── */
.section-heading {
font-size: clamp(2rem, 4vw, 2.8rem);
font-weight: 600;
font-size: clamp(2.5rem, 5.5vw, 4.5rem);
font-weight: 650;
line-height: 1.15;
letter-spacing: -0.035em;
letter-spacing: -0.065em;
color: var(--text);
margin-bottom: 0.75rem;
}
@@ -707,9 +788,10 @@ section.full-width {
}
.card-grid.card-grid--featured {
margin-bottom: 3rem;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 2rem;
margin-bottom: 4rem;
grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
gap: 3rem;
padding-bottom: 1rem;
background: transparent;
border: none;
border-radius: 0;
@@ -717,10 +799,25 @@ section.full-width {
}
.card-grid--featured .card.featured-card {
padding: 0;
gap: 0;
border-radius: 8px;
background: transparent;
display: flex;
padding: 1.5rem;
gap: 1.75rem;
border-radius: 24px;
background: var(--mantle);
overflow: visible;
align-self: start;
}
.card-grid--featured .featured-card:nth-child(2) {
margin-top: 6rem;
}
.featured-card:nth-child(1) .project-preview {
transform: rotate(-3deg);
}
.featured-card:nth-child(2) .project-preview {
transform: rotate(3deg);
}
.project-preview {
@@ -730,20 +827,24 @@ section.full-width {
aspect-ratio: 3 / 2;
object-fit: cover;
border: 1px solid var(--surface0);
border-radius: 8px;
transition: border-color 0.2s;
border-radius: 12px;
transition:
border-color 0.2s,
transform 0.3s;
}
.featured-card-content {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 1.25rem 0.25rem 0;
gap: 0.75rem;
padding: 0 0.25rem;
flex: 1;
}
.featured-card .card-title {
font-size: 1.35rem;
font-size: clamp(1.5rem, 2.5vw, 2rem);
line-height: 1.2;
letter-spacing: -0.04em;
}
.featured-card .tag-row {
@@ -761,6 +862,7 @@ section.full-width {
.featured-card:hover .project-preview,
.featured-card:has(.card-title:focus-visible) .project-preview {
border-color: var(--mauve);
transform: rotate(0) translateY(-4px);
}
#projects .section-intro {
@@ -769,8 +871,8 @@ section.full-width {
}
#project-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1rem;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0 3rem;
background: transparent;
border: none;
border-radius: 0;
@@ -778,9 +880,25 @@ section.full-width {
}
#project-grid .card {
padding: 1.2rem;
border: 1px solid var(--surface0);
border-radius: 8px;
padding: 1.75rem 1.25rem;
border-top: 1px solid var(--surface1);
border-radius: 0 0 16px 16px;
background: transparent;
transition: background-color 0.2s;
}
#project-grid .card:hover,
#project-grid .card:focus-within {
background: var(--mantle);
}
#project-grid .card-title {
font-size: 1.3rem;
letter-spacing: -0.025em;
}
#project-grid .tag-row {
margin-top: 0.5rem;
}
.project-filters {
@@ -795,15 +913,14 @@ section.full-width {
.filter-chip {
border: 1px solid var(--surface1);
background: var(--mantle);
background: transparent;
color: var(--subtext0);
border-radius: 999px;
border-radius: 4px;
min-height: 44px;
padding: 0.5rem 0.9rem;
font-size: 0.75rem;
letter-spacing: 0.04em;
text-transform: uppercase;
font-family: var(--font-mono);
letter-spacing: 0;
font-family: var(--font-body);
cursor: pointer;
transition: all 0.2s;
}
@@ -837,20 +954,19 @@ section.full-width {
.projects-more-row {
margin-top: 1rem;
display: flex;
justify-content: center;
justify-content: flex-start;
}
.projects-more-btn {
border: 1px solid var(--surface1);
background: var(--mantle);
background: transparent;
color: var(--subtext0);
border-radius: 999px;
border-radius: 4px;
min-height: 44px;
padding: 0.5rem 1rem;
font-size: 0.8rem;
letter-spacing: 0.06em;
text-transform: uppercase;
font-family: var(--font-mono);
letter-spacing: 0;
font-family: var(--font-body);
cursor: pointer;
transition: all 0.2s;
}
@@ -934,7 +1050,7 @@ section.full-width {
margin-top: 0.25rem;
font-size: 0.75rem;
font-weight: 400;
color: var(--mauve);
color: var(--link-accent);
}
.card:hover .card-title,
@@ -975,9 +1091,7 @@ section.full-width {
.card-desc a {
position: relative;
z-index: 1;
display: inline-flex;
align-items: center;
min-height: 44px;
display: inline;
color: var(--link-accent);
text-decoration: underline;
text-underline-offset: 2px;
@@ -993,14 +1107,21 @@ section.full-width {
}
.contact-inner {
max-width: 720px;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: end;
gap: 4rem;
padding: 3rem;
border: 1px solid var(--surface1);
border-radius: 32px;
background: var(--mantle);
}
.contact-inner h2 {
font-size: clamp(2rem, 4vw, 2.4rem);
font-size: clamp(3rem, 7vw, 6rem);
font-weight: 600;
line-height: 1.15;
letter-spacing: -0.035em;
letter-spacing: -0.07em;
color: var(--text);
margin-bottom: 1rem;
}
@@ -1014,10 +1135,11 @@ section.full-width {
.contact-links {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 1rem 1.5rem;
margin-top: 2rem;
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
margin-top: 0;
margin-bottom: 1.5rem;
}
.contact-link {
@@ -1064,7 +1186,7 @@ section.full-width {
/* ─── Footer ───────────────────────────────────────────── */
footer {
border-top: 1px solid var(--surface0);
padding: 1.5rem 3rem;
padding: 1.5rem max(2rem, calc((100vw - 1104px) / 2));
display: flex;
justify-content: space-between;
align-items: center;
@@ -1074,7 +1196,8 @@ footer {
footer a {
color: var(--mauve);
text-decoration: none;
text-decoration: underline;
text-underline-offset: 3px;
}
footer a:hover {
@@ -1094,10 +1217,15 @@ footer a:hover {
}
@media (prefers-reduced-motion: no-preference) {
.hero-copy {
.hero-copy,
.hero-art {
animation: fadeUp 0.6s both;
}
.hero-art {
animation-delay: 0.12s;
}
.reveal-pending {
opacity: 0;
transform: translateY(16px);
@@ -1128,7 +1256,30 @@ footer a:hover {
}
#hero {
padding: 5rem 1.5rem 2.5rem;
grid-template-columns: 1fr;
gap: 3rem;
padding: 6rem 1.5rem 3.5rem;
min-height: auto;
}
#hero .hero-name {
font-size: clamp(4rem, 14vw, 7rem);
}
.hero-art {
width: min(100%, 400px);
height: 360px;
justify-self: center;
}
#about {
margin: 0 1.5rem;
border-radius: 24px;
}
.about-columns > .reveal:last-child {
padding: 1.5rem;
transform: none;
}
.hero-links {
@@ -1142,6 +1293,11 @@ footer a:hover {
.card-grid.card-grid--featured {
grid-template-columns: 1fr;
gap: 2rem;
}
.card-grid--featured .featured-card:nth-child(2) {
margin-top: 0;
}
#project-grid {
@@ -1152,22 +1308,6 @@ footer a:hover {
grid-template-columns: 1fr;
}
.about-lead {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.about-portrait {
grid-column: auto;
grid-row: auto;
width: 128px;
}
.about-intro {
grid-column: auto;
grid-row: auto;
}
.skills-grid {
grid-template-columns: 1fr;
}
@@ -1178,7 +1318,13 @@ footer a:hover {
}
.hero-name {
font-size: clamp(2.5rem, 10vw, 3.5rem);
font-size: clamp(2.5rem, 6vw, 3.5rem);
}
.contact-inner {
grid-template-columns: 1fr;
gap: 1rem;
padding: 1.5rem;
}
footer {
@@ -1189,6 +1335,28 @@ footer a:hover {
}
@media (max-width: 540px) {
#hero {
grid-template-columns: 1fr;
gap: 2.5rem;
}
.hero-name {
font-size: clamp(2.5rem, 9.5vw, 3.25rem);
}
.hero-portrait {
width: 59%;
border-width: 5px;
}
.hero-art {
height: clamp(270px, 85vw, 360px);
}
.skill-card {
padding: 1.5rem;
}
.nav-actions {
gap: 0.75rem;
}
@@ -1216,7 +1384,8 @@ footer a:hover {
}
.reveal,
.hero-copy {
.hero-copy,
.hero-art {
opacity: 1;
transform: none;
}