Files
asimonson1125.github.io/src/static/css/App.css
2026-09-05 23:47:16 -05:00

1567 lines
27 KiB
CSS
Executable File

/* ------------------------------------------------------------------
Fonts
------------------------------------------------------------------ */
@font-face {
font-family: "Roboto Condensed";
src: url("../fonts/RobotoCondensed-Regular.ttf") format("truetype");
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: "shuttlex";
src: url("../fonts/SHUTTLE-X.ttf") format("truetype");
font-display: swap;
}
@font-face {
font-family: "neon-future";
src: url("../fonts/NeonFuture.ttf") format("truetype");
font-display: swap;
}
@font-face {
font-family: "Chess New";
src: url("../fonts/chessglyph-new.0cc8115c.woff2") format("woff2");
font-display: swap;
}
/* ------------------------------------------------------------------
Tokens
------------------------------------------------------------------ */
:root {
--bg: #141414;
--surface: rgba(20, 20, 20, 0.9);
--surface-solid: #141414;
--well: #1c1c1c;
--ink: #e9e6df;
--ink-2: #b9b5ac;
--ink-3: #85817a;
--rule: rgba(233, 230, 223, 0.14);
--rule-strong: rgba(233, 230, 223, 0.32);
--accent: #b23c3c;
--accent-bright: #d9645c;
--accent-rgb: 178, 60, 60;
--ok: #62a866;
--warn: #d4a53c;
--bad: #d35047;
--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--font-data: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
--font-display: "shuttlex", var(--font-body);
--measure: 62ch;
--page-width: 66rem;
--gutter: clamp(1.25rem, 4vw, 3rem);
--neon-blue: #5271ff;
}
/* ------------------------------------------------------------------
Base
------------------------------------------------------------------ */
html {
scroll-behavior: smooth;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
background-color: var(--bg);
color: var(--ink-2);
font-family: var(--font-body);
font-size: 1.0625rem;
line-height: 1.55;
}
#bg {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
}
#bg canvas {
display: block;
}
.site {
position: relative;
z-index: 1;
min-height: 100vh;
display: flex;
flex-direction: column;
background-color: var(--surface);
}
main {
flex: 1 0 auto;
}
img,
svg {
max-width: 100%;
height: auto;
}
h1, h2, h3, h4, h5, h6 {
color: var(--ink);
font-weight: 600;
line-height: 1.2;
margin: 0;
}
p {
margin: 0 0 1em;
}
p:last-child {
margin-bottom: 0;
}
strong,
b {
color: var(--ink);
font-weight: 600;
}
ul,
ol {
margin: 0 0 1em;
padding-left: 1.25em;
}
li + li {
margin-top: 0.25em;
}
a {
color: var(--ink);
text-decoration: underline;
text-decoration-color: rgba(var(--accent-rgb), 0.7);
text-decoration-thickness: 1px;
text-underline-offset: 0.18em;
transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover {
color: var(--accent-bright);
text-decoration-color: currentColor;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
outline: 2px solid var(--accent-bright);
outline-offset: 2px;
}
hr {
border: 0;
border-top: 1px solid var(--rule);
margin: 2rem 0;
}
code {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 0.9em;
color: var(--ink);
}
table {
border-collapse: collapse;
width: 100%;
font-family: var(--font-data);
}
th,
td {
text-align: left;
padding: 0.6em 0.75em;
border-bottom: 1px solid var(--rule);
vertical-align: top;
}
th {
color: var(--ink-3);
font-weight: 400;
font-size: 0.85rem;
letter-spacing: 0.02em;
}
thead th {
border-bottom-color: var(--rule-strong);
}
.label {
font-family: var(--font-data);
color: var(--ink-3);
font-size: 0.85em;
}
.flex {
display: flex;
}
button,
.button {
font: inherit;
font-family: var(--font-data);
font-size: 0.95rem;
color: var(--ink);
background: transparent;
border: 1px solid var(--rule-strong);
padding: 0.35em 0.9em;
cursor: pointer;
border-radius: 2px;
transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
button:hover,
.button:hover {
border-color: var(--accent-bright);
color: var(--accent-bright);
}
button:disabled {
opacity: 0.5;
cursor: default;
}
/* ------------------------------------------------------------------
Header
------------------------------------------------------------------ */
.site-header {
position: sticky;
top: 0;
z-index: 50;
display: flex;
align-items: stretch;
justify-content: space-between;
gap: 1rem;
padding: 0 var(--gutter);
height: 3.5rem;
background-color: var(--surface-solid);
border-bottom: 1px solid var(--rule);
}
.brand {
display: inline-flex;
align-items: center;
gap: 0.75rem;
text-decoration: none;
color: var(--ink);
white-space: nowrap;
min-width: 0;
}
.brand:hover {
color: var(--ink);
}
.brand-mark {
width: 1.875rem;
height: 1.875rem;
flex-shrink: 0;
}
.brand-name {
font-family: var(--font-display);
font-size: 1.2rem;
letter-spacing: 0.04em;
line-height: 1;
padding-top: 0.15em;
}
.brand-tagline {
font-family: var(--font-data);
font-size: 0.85rem;
color: var(--ink-3);
padding-left: 0.75rem;
border-left: 1px solid var(--rule-strong);
line-height: 1.2;
}
.brand:hover .brand-tagline {
color: var(--accent-bright);
}
.site-nav {
display: flex;
align-items: stretch;
gap: 0;
}
.site-nav a {
display: inline-flex;
align-items: center;
font-family: var(--font-data);
font-size: 1rem;
color: var(--ink-2);
text-decoration: none;
padding: 0 1rem;
margin-bottom: -1px; /* sit on the header rule */
border-bottom: 2px solid transparent;
transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:last-child {
padding-right: 0;
}
.site-nav a:hover {
color: var(--ink);
}
.site-nav a[aria-current="page"] {
color: var(--ink);
border-bottom-color: var(--accent-bright);
}
.menu-toggle {
display: none;
align-self: center;
}
/* ------------------------------------------------------------------
Page structure
------------------------------------------------------------------ */
.page {
width: min(100% - 2 * var(--gutter), var(--page-width));
margin: 0 auto;
padding: 2.5rem 0 4rem;
}
.page-head {
padding-bottom: 1.5rem;
border-bottom: 1px solid var(--rule-strong);
margin-bottom: 0.5rem;
}
.display {
font-family: var(--font-display);
font-weight: 400;
font-size: clamp(2rem, 4.5vw, 3rem);
letter-spacing: 0.01em;
color: var(--ink);
margin: 0 0 0.75rem;
}
.lede {
max-width: var(--measure);
font-size: 1.15rem;
line-height: 1.5;
color: var(--ink-2);
margin: 0;
}
.section {
padding-top: 2.5rem;
}
.section-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 1rem;
padding-bottom: 0.5rem;
margin-bottom: 1.25rem;
border-bottom: 1px solid var(--rule);
}
.section-head h2 {
font-size: 1.25rem;
font-weight: 600;
}
.section-note {
margin: 0;
font-family: var(--font-data);
font-size: 0.9rem;
color: var(--ink-3);
text-align: right;
}
.section-note a {
color: var(--ink-2);
}
.prose {
max-width: var(--measure);
}
.prose p {
margin-bottom: 1em;
}
.prose p:last-child {
margin-bottom: 0;
}
.two-col {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0 3rem;
align-items: start;
}
.two-col .section {
min-width: 0;
}
/* ------------------------------------------------------------------
Home
------------------------------------------------------------------ */
.hero {
background-color: rgba(20, 20, 20, 0.35);
border-bottom: 1px solid var(--rule);
}
.hero-inner {
width: min(100% - 2 * var(--gutter), var(--page-width));
margin: 0 auto;
padding: clamp(4rem, 12vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
}
.hero .display {
font-size: clamp(2.25rem, 6vw, 4rem);
}
.hero .lede {
font-size: 1.25rem;
}
.hero-links {
display: flex;
flex-wrap: wrap;
gap: 0.25rem 1.5rem;
margin: 1.75rem 0 0;
font-family: var(--font-data);
font-size: 1.05rem;
}
.now-list {
margin: 0;
}
.now-item {
display: grid;
grid-template-columns: 9rem 1fr;
gap: 1rem;
padding: 1rem 0;
border-bottom: 1px solid var(--rule);
}
.now-item:last-child {
border-bottom: 0;
}
.now-item dt {
font-family: var(--font-data);
color: var(--ink-3);
padding-top: 0.15em;
}
.now-item dd {
margin: 0;
max-width: var(--measure);
}
.shelf-row {
list-style: none;
padding: 0;
margin: 0 0 0.5rem;
display: flex;
gap: 0.6rem;
flex-wrap: wrap;
}
.shelf-row li {
margin: 0;
}
.shelf-row img {
display: block;
width: 60px;
height: 90px;
object-fit: cover;
border: 1px solid var(--rule);
}
.shelf-row a:hover img {
border-color: var(--accent-bright);
}
.shelf-more {
font-family: var(--font-data);
font-size: 0.95rem;
}
.selected-list {
list-style: none;
padding: 0;
margin: 0;
counter-reset: selected;
}
.selected-list li {
display: grid;
grid-template-columns: 2.5rem 14rem 1fr;
gap: 1rem;
padding: 0.75rem 0;
border-bottom: 1px solid var(--rule);
margin: 0;
counter-increment: selected;
}
.selected-list li::before {
content: counter(selected, decimal-leading-zero);
font-family: var(--font-data);
color: var(--ink-3);
font-size: 0.9rem;
padding-top: 0.2em;
}
.selected-list li:last-child {
border-bottom: 0;
}
.selected-list a {
color: var(--ink);
}
.selected-list span {
color: var(--ink-2);
}
.colophon {
display: grid;
grid-template-columns: 1fr auto;
gap: 2.5rem;
align-items: start;
}
.colophon-text {
max-width: var(--measure);
}
.titles {
margin-bottom: 1.5rem;
}
.blinkies {
display: grid;
grid-template-columns: repeat(2, 150px);
gap: 0.5rem;
margin: 0;
}
.blinkies img {
width: 150px;
height: 20px;
image-rendering: pixelated;
}
.colophon-figure {
margin: 0;
text-align: center;
}
.colophon-figure img {
display: block;
max-width: 180px;
}
figcaption {
font-family: var(--font-data);
font-size: 0.85rem;
color: var(--ink-3);
margin-top: 0.5rem;
}
/* ------------------------------------------------------------------
Work
------------------------------------------------------------------ */
.feature {
scroll-margin-top: 4.5rem;
padding: 0.5rem 0 1rem;
border-bottom: 1px solid var(--rule);
margin-bottom: 2rem;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-areas:
"head"
"body"
"toggle";
column-gap: 2.5rem;
}
.feature.has-figure {
grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
/* Any extra height the figure needs goes to the body row, never the header row,
so the body text does not shift when the panel opens or closes. */
grid-template-rows: auto 1fr auto;
grid-template-areas:
"head figure"
"body figure"
"toggle toggle";
}
.feature:last-of-type {
border-bottom: 0;
margin-bottom: 0;
}
.feature-head {
grid-area: head;
margin-bottom: 1rem;
}
.feature h3 {
font-size: 1.5rem;
margin-bottom: 0.4rem;
}
.feature-tagline {
color: var(--ink-2);
font-size: 1.1rem;
max-width: var(--measure);
margin-bottom: 0;
}
/* Collapsed regions: clipped with a fade at the bottom edge. */
.feature-clip {
position: relative;
overflow: hidden;
transition: max-height 0.35s ease;
}
.feature-clip::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 2.5rem;
background: linear-gradient(to bottom, rgba(20, 20, 20, 0), rgba(20, 20, 20, 0.96));
pointer-events: none;
transition: opacity 0.25s ease;
}
.feature.expanded .feature-clip::after {
opacity: 0;
}
/* The body peeks a line and a half; the figure shows its top edge. */
.feature-body {
grid-area: body;
align-self: start;
max-height: 2.5rem;
}
.feature-figure {
grid-area: figure;
align-self: start;
margin: 0.4rem 0 0;
max-height: 10rem;
}
.feature .prose {
color: var(--ink-2);
}
.feature-stack {
margin: 1.25rem 0 0;
font-family: var(--font-data);
color: var(--ink-2);
}
.feature-stack .label {
margin-right: 0.5em;
}
.feature-figure img {
display: block;
width: 100%;
border: 1px solid var(--rule);
}
/* Centered chevron; shrinks into a small up-arrow once open. */
.feature-expand {
grid-area: toggle;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
border: 0;
border-radius: 0;
background: transparent;
padding: 0.5rem 0 0.75rem;
color: var(--ink-3);
cursor: pointer;
transition: color 0.15s ease, padding 0.3s ease;
}
.feature-expand::before {
content: "";
width: 0.8em;
height: 0.8em;
border-right: 2px solid currentColor;
border-bottom: 2px solid currentColor;
transform: translateY(-25%) rotate(45deg);
transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}
.feature-expand:hover {
color: var(--accent-bright);
}
.feature.expanded .feature-expand {
padding: 1rem 0 0.25rem;
}
.feature.expanded .feature-expand::before {
width: 0.45em;
height: 0.45em;
transform: translateY(25%) rotate(225deg);
}
.feature .when-open,
.feature.expanded .when-closed {
display: none;
}
.feature.expanded .when-open {
display: inline;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.project-list {
list-style: none;
padding: 0;
margin: 0;
}
.project {
scroll-margin-top: 4.5rem;
display: grid;
grid-template-columns: 11rem minmax(0, 1fr);
gap: 1.5rem;
padding: 1.25rem 0;
border-bottom: 1px solid var(--rule);
margin: 0;
}
.project:last-child {
border-bottom: 0;
}
.project-thumb {
aspect-ratio: 16 / 10;
overflow: hidden;
}
.project-thumb img {
border: 1px solid var(--rule);
box-sizing: border-box;
}
.project-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center top;
display: block;
}
.project-thumb-empty {
width: 100%;
height: 100%;
}
.project h3 {
font-size: 1.1rem;
margin-bottom: 0.2rem;
}
.project-meta {
font-family: var(--font-data);
font-size: 0.9rem;
color: var(--ink-3);
margin-bottom: 0.5rem;
text-transform: lowercase;
}
.project-meta .sep {
margin: 0 0.35em;
}
.status-complete { color: var(--ok); }
.status-WIP { color: var(--warn); }
.status-incomplete { color: var(--bad); }
.project-desc {
max-width: var(--measure);
margin-bottom: 0.5rem;
}
.project-links {
font-family: var(--font-data);
margin: 0;
display: flex;
gap: 1.25rem;
}
/* ------------------------------------------------------------------
About
------------------------------------------------------------------ */
.about-bio {
padding-top: 1.5rem;
}
.filters {
display: flex;
gap: 1.25rem;
}
.filter-btn {
border: 0;
padding: 0;
border-radius: 0;
color: var(--ink-3);
border-bottom: 1px solid transparent;
}
.filter-btn:hover {
color: var(--ink);
}
.filter-btn[aria-pressed="true"] {
color: var(--ink);
border-bottom-color: var(--accent-bright);
}
.timeline {
list-style: none;
padding: 0;
margin: 0;
}
.timeitem {
display: grid;
grid-template-columns: 11rem minmax(0, 1fr);
gap: 1.5rem;
padding: 1.25rem 0;
border-bottom: 1px solid var(--rule);
margin: 0;
}
.timeitem:last-child {
border-bottom: 0;
}
.timeitem[hidden] {
display: none;
}
.timeitem-date {
font-family: var(--font-data);
color: var(--ink-3);
margin: 0;
padding-top: 0.2em;
}
.timeitem h3 {
font-size: 1.1rem;
margin-bottom: 0.5rem;
}
.timeitem-content {
max-width: var(--measure);
color: var(--ink-2);
}
.timeitem-org {
color: var(--ink-3);
font-family: var(--font-data);
margin-bottom: 0.5rem;
}
.timeitem-content ul {
margin: 0;
padding-left: 1.1em;
}
.timeline-empty {
color: var(--ink-3);
padding: 1rem 0;
}
#skillTree {
font-size: 1.05rem;
}
.skill {
padding: 0.15em 0;
}
.skill > .skillname {
display: inline-block;
cursor: pointer;
color: var(--ink);
padding: 0.15em 0;
}
.skill > .skillname::before {
content: "+";
display: inline-block;
width: 1.25em;
color: var(--ink-3);
font-family: var(--font-data);
}
.skill.activeSkill > .skillname::before {
content: "\2212";
}
.skill[data-length="0"] > .skillname {
cursor: default;
color: var(--ink-2);
}
.skill[data-length="0"] > .skillname::before {
content: "";
}
.skill > .skillname:hover {
color: var(--accent-bright);
}
.skill[data-length="0"] > .skillname:hover {
color: var(--ink-2);
}
.skill-children {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 0.25s ease;
}
.skill.activeSkill > .skill-children {
grid-template-rows: 1fr;
}
.skill-children-inner {
overflow: hidden;
padding-left: 1.25em;
}
.skill-children-inner > .skill {
font-size: 0.95em;
}
.cert-group {
margin-bottom: 1.75rem;
}
.cert-group h3 {
font-size: 1.05rem;
margin-bottom: 0.2rem;
}
.cert-provider {
font-family: var(--font-data);
font-size: 0.9rem;
color: var(--ink-3);
margin-bottom: 0.5rem;
}
.cert-list {
list-style: none;
padding: 0;
margin: 0;
}
.cert-list li {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 1rem;
padding: 0.4em 0;
border-bottom: 1px solid var(--rule);
margin: 0;
}
.cert-list li:last-child {
border-bottom: 0;
}
.cert-code {
font-family: var(--font-data);
font-size: 0.85rem;
color: var(--ink-3);
white-space: nowrap;
}
/* ------------------------------------------------------------------
Status
------------------------------------------------------------------ */
.status-summary {
display: grid;
grid-template-columns: 1fr auto auto;
gap: 2rem;
align-items: center;
padding-bottom: 1.5rem;
border-bottom: 1px solid var(--rule);
}
.status-summary-main {
display: flex;
align-items: center;
gap: 1rem;
}
.summary-icon {
font-size: 1.75rem;
line-height: 1;
color: var(--ink-3);
}
.summary-icon.operational { color: var(--ok); }
.summary-icon.partial { color: var(--warn); }
.summary-icon.major { color: var(--bad); }
.summary-title {
font-size: 1.25rem;
}
.summary-subtitle {
margin: 0.15rem 0 0;
color: var(--ink-3);
font-family: var(--font-data);
}
.status-facts {
display: flex;
gap: 2rem;
margin: 0;
font-family: var(--font-data);
}
.status-facts dt {
font-size: 0.85rem;
color: var(--ink-3);
}
.status-facts dd {
margin: 0;
color: var(--ink);
}
.table-wrap {
overflow-x: auto;
}
.status-table th[scope="row"] {
color: var(--ink);
font-size: 1rem;
white-space: nowrap;
}
.status-table td {
color: var(--ink-2);
}
.status-table .num {
text-align: right;
font-variant-numeric: tabular-nums;
}
.status-table .uptime {
white-space: nowrap;
}
.status-table .uptime strong {
font-weight: 400;
}
.state-indicator {
display: inline-flex;
align-items: center;
gap: 0.5em;
white-space: nowrap;
}
.state-dot {
width: 0.6em;
height: 0.6em;
border-radius: 50%;
display: inline-block;
background: var(--ink-3);
}
.state-dot.online { background: var(--ok); }
.state-dot.degraded { background: var(--warn); }
.state-dot.offline { background: var(--bad); }
.state-dot.loading { background: var(--ink-3); }
.table-note {
font-family: var(--font-data);
font-size: 0.85rem;
color: var(--ink-3);
margin-top: 0.75rem;
}
.text-excellent { color: var(--ok); }
.text-good { color: var(--ok); }
.text-fair { color: var(--warn); }
.text-poor { color: var(--bad); }
.text-muted { color: var(--ink-3); }
.status-error {
color: var(--bad);
border: 1px solid var(--bad);
padding: 0.75rem 1rem;
margin-bottom: 1.5rem;
}
/* ------------------------------------------------------------------
Books
------------------------------------------------------------------ */
.cover-row {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
}
.cover-row li {
margin: 0;
}
.cover-row img {
display: block;
width: 80px;
height: 120px;
object-fit: cover;
border: 1px solid var(--rule);
}
.cover-row a:hover img {
border-color: var(--accent-bright);
}
.review-list {
list-style: none;
padding: 0;
margin: 0;
}
.review {
display: grid;
grid-template-columns: 80px minmax(0, 1fr);
gap: 1.5rem;
padding: 1.25rem 0;
border-bottom: 1px solid var(--rule);
margin: 0;
scroll-margin-top: 4rem;
}
.review:last-child {
border-bottom: 0;
}
.review:target h3 {
color: var(--accent-bright);
}
.review-cover {
display: block;
width: 80px;
height: 120px;
object-fit: cover;
border: 1px solid var(--rule);
}
.review h3 {
font-size: 1.1rem;
margin-bottom: 0.4rem;
}
.review-body p {
max-width: var(--measure);
}
.review-link {
font-family: var(--font-data);
margin: 0.5rem 0 0;
}
/* ------------------------------------------------------------------
Misc pages
------------------------------------------------------------------ */
.duck {
display: block;
max-width: 100%;
margin-top: 1.5rem;
}
.fPage {
min-height: 70vh;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem var(--gutter);
}
.neon {
display: inline-block;
font-family: "neon-future";
color: #fff;
text-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px var(--neon-blue),
0 0 82px var(--neon-blue), 0 0 92px var(--neon-blue), 0 0 102px var(--neon-blue), 0 0 151px var(--neon-blue);
animation: pulsate 0.11s ease-in-out infinite alternate;
}
.neonBox h1 {
font-size: min(4em, 12vw);
font-weight: 400;
}
.neonBox h3 {
font-size: min(2em, 6vw);
font-weight: 400;
}
.neonBox {
border: 0.2rem solid #fff;
border-radius: 2rem;
padding: 2em;
box-shadow: 0 0 0.2rem #fff, 0 0 0.2rem #fff, 0 0 2rem var(--neon-blue),
0 0 0.8rem var(--neon-blue), 0 0 2.8rem var(--neon-blue), inset 0 0 1.3rem var(--neon-blue);
text-align: center;
}
@keyframes pulsate {
100% {
text-shadow: 0 0 4px #fff, 0 0 11px #fff, 0 0 19px #fff,
0 0 40px var(--neon-blue), 0 0 80px var(--neon-blue), 0 0 90px var(--neon-blue),
0 0 100px var(--neon-blue), 0 0 150px var(--neon-blue);
}
0% {
text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 18px #fff,
0 0 38px var(--neon-blue), 0 0 73px var(--neon-blue), 0 0 80px var(--neon-blue), 0 0 94px var(--neon-blue),
0 0 140px var(--neon-blue);
}
}
#fullIframe {
width: 100vw;
height: 100vh;
border: 0;
}
/* Chess.com embed (partials/chess.html, currently unused on any page) */
#chessProfile {
width: 300px;
color: var(--ink-2);
display: grid;
grid-template-columns: 1fr 1fr;
cursor: pointer;
border: 1px solid var(--rule);
font-family: var(--font-data);
}
.chessInfo {
padding: 1em;
}
.chessIcon {
display: inline-block;
font-family: "Chess New";
font-size: x-large;
width: 25px;
text-align: center;
}
.chessStat {
display: inline;
}
.pfp {
border-radius: 50%;
width: 100px;
}
.rapid { color: #6c9d41; }
.blitz { color: #f7c045; }
.bullet { color: #a58a45; }
.puzzles { color: #db7e3b; }
/* ------------------------------------------------------------------
Footer
------------------------------------------------------------------ */
.site-footer {
border-top: 1px solid var(--rule);
margin-top: auto;
}
.footer-inner {
width: min(100% - 2 * var(--gutter), var(--page-width));
margin: 0 auto;
padding: 1.5rem 0 2rem;
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.5rem 2rem;
font-family: var(--font-data);
font-size: 0.95rem;
}
.footer-name {
margin: 0;
color: var(--ink);
}
.footer-links {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
gap: 0.25rem 1.25rem;
}
.footer-links li {
margin: 0;
}
.footer-links a {
color: var(--ink-2);
text-decoration: none;
}
.footer-links a:hover {
color: var(--accent-bright);
}
.footer-note {
margin: 0;
margin-left: auto;
color: var(--ink-3);
}
/* ------------------------------------------------------------------
Chrome: loading bar, skip link
------------------------------------------------------------------ */
#loading-bar {
position: fixed;
top: 0;
left: 0;
height: 2px;
background: var(--accent-bright);
z-index: 2000;
width: 0%;
opacity: 0;
transition: width 0.4s cubic-bezier(0.1, 0.05, 0.1, 1), opacity 0.3s ease;
pointer-events: none;
}
#loading-bar.visible {
opacity: 1;
}
#loading-bar.active {
width: 70%;
}
#loading-bar.finish {
opacity: 0;
width: 100%;
transition: width 0.2s ease, opacity 0.4s ease 0.1s;
}
.skip-link {
position: fixed;
top: -100%;
left: 50%;
transform: translateX(-50%);
z-index: 10000;
background: var(--bg);
color: var(--ink);
padding: 0.75rem 1.5rem;
text-decoration: none;
border: 1px solid var(--rule-strong);
white-space: nowrap;
transition: top 0.15s ease;
}
.skip-link:focus {
top: 0;
}
/* ------------------------------------------------------------------
Responsive
------------------------------------------------------------------ */
@media (max-width: 900px) {
.two-col {
grid-template-columns: 1fr;
}
.feature.has-figure {
grid-template-columns: minmax(0, 1fr);
grid-template-areas:
"head"
"figure"
"body"
"toggle";
}
.feature-figure {
max-width: 28rem;
margin-bottom: 1rem;
}
.feature:not(.expanded) .feature-figure {
max-height: 6rem;
}
.status-summary {
grid-template-columns: 1fr;
gap: 1rem;
align-items: start;
}
.status-facts {
flex-wrap: wrap;
gap: 1rem 2rem;
}
.colophon {
grid-template-columns: 1fr;
}
.colophon-figure {
text-align: left;
}
}
@media (max-width: 720px) {
body {
font-size: 1rem;
}
.site-header {
flex-wrap: wrap;
height: auto;
min-height: 3.25rem;
}
.menu-toggle {
display: inline-block;
margin: 0.5rem 0;
}
.site-nav {
display: none;
flex-basis: 100%;
flex-direction: column;
gap: 0;
border-top: 1px solid var(--rule);
padding: 0.25rem 0 0.5rem;
}
.site-nav a,
.site-nav a:last-child {
padding: 0.6rem 0.75rem;
margin: 0;
border-bottom: 0;
border-left: 2px solid transparent;
}
.site-nav a[aria-current="page"] {
border-left-color: var(--accent-bright);
}
.brand-tagline {
display: none;
}
.site-header.open .site-nav {
display: flex;
}
.section-head {
flex-direction: column;
align-items: flex-start;
gap: 0.25rem;
}
.section-note {
text-align: left;
}
.now-item,
.timeitem,
.project {
grid-template-columns: 1fr;
gap: 0.5rem;
}
.project-thumb {
max-width: 20rem;
}
.selected-list li {
grid-template-columns: 2.5rem 1fr;
}
.selected-list li span {
grid-column: 2;
}
.review {
grid-template-columns: 60px minmax(0, 1fr);
gap: 1rem;
}
.review-cover {
width: 60px;
height: 90px;
}
.footer-note {
margin-left: 0;
}
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
.neon {
animation: none;
}
.skill-children {
transition: none;
}
}