Files
cv/src/App.css
T

2557 lines
57 KiB
CSS
Raw Normal View History

/* ===== Navigation ===== */
/* 94% + blur(12px) is a contrast floor, not a taste choice: at 85% the bar measured 4.01
(red-light --text-muted over an --accent element scrolled beneath it); 94% measures 4.58.
Spec: docs/design/specs/v3/spec-v3-mobile-navigation.md §3.2 */
.nav {
position: sticky;
top: 0;
z-index: 1000;
background: color-mix(in srgb, var(--bg-surface) 94%, transparent);
border-bottom: 1px solid var(--border);
backdrop-filter: blur(12px);
2026-10-13 15:57:16 +07:00
transition: none;
}
.nav-container {
max-width: var(--max-wide);
margin: 0 auto;
padding: 0 24px;
height: 64px;
display: flex;
align-items: center;
justify-content: space-between;
}
/* Icon brand: a 24px stroke house in a 44px target, matching the hamburger's icon language.
It is a <Link to="/"> — same behaviour the {CV} wordmark had. */
.nav-logo {
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border-radius: var(--radius-md);
color: var(--text-primary);
text-decoration: none;
}
/* The hamburger and the brand travel together on the left of the bar so the sheet's trigger
sits where a left-handed thumb reaches it. Above 1024px the button is display:none, so this
group renders as the home icon alone. Its icons carry no borders, so the spacing that reads
is measured between glyphs, not boxes: 4px between 44px targets leaves 24px between the 24px
glyphs — a tight brand cluster while the hover fills and the 2px-offset focus rings (2+2px)
still stay clear of each other. The bordered action controls keep their wider 16px gap. */
.nav-brand {
display: flex;
align-items: center;
gap: 4px;
}
.nav-logo:hover {
2026-10-04 09:34:55 +07:00
color: var(--accent);
}
/* An icon-only control needs a ring: colour alone is not a focus indicator. */
.nav-logo:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* The bar's resume entry reuses the `.nav-control` chrome; the wrapper only has to sit in the
brand row like the other items. Its class is also the hook that ties the trigger to the
`#resume-modal-nav` dialog it expands. */
.nav-resume {
display: flex;
}
.nav-menu {
display: flex;
gap: 32px;
list-style: none;
}
.nav-link {
font-size: 14px;
font-weight: 500;
color: var(--text-muted);
text-decoration: none;
padding: 4px 0;
2026-10-04 09:34:55 +07:00
position: relative;
transition: color var(--transition-fast);
}
2026-10-04 09:34:55 +07:00
.nav-link:hover {
color: var(--text-primary);
}
.nav-link.active {
color: var(--accent);
}
.nav-link.active::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
right: 0;
height: 2px;
background: var(--accent);
border-radius: 1px;
}
.nav-actions {
display: flex;
align-items: center;
gap: 16px;
}
/* One chrome for the three bar controls — mode, theme color, language: a bordered 44px box,
2026-10-17 23:59:58 +07:00
accent border + icon on hover/open. The language control is icon-only like the other two, so it
carries no rules of its own any more: `.lang-toggle` marks the button in the DOM and nothing
else. */
.nav-control {
display: flex;
align-items: center;
justify-content: center;
min-width: 44px;
min-height: 44px;
padding: 8px;
background: transparent;
border: 1px solid var(--border);
border-radius: var(--radius-md);
color: var(--text-primary);
cursor: pointer;
transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.nav-control:hover,
.nav-control.open {
border-color: var(--accent);
color: var(--accent);
background: var(--bg-elevated);
}
.nav-control:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* The resume entry keeps the `.nav-control` 44px target and its hover fill, but carries no
outline: it sits in the brand group beside the borderless home icon, and a framed box there
reads as a second frame next to the home glyph. `:focus-visible` above still rings it. Its
glyph is `--accent` at every state — rest, hover, open — so the entry always carries the
active theme's signal colour and follows the palette switch like the other accent signals. */
.nav-resume-trigger {
border-color: transparent;
color: var(--accent);
}
.nav-resume-trigger:hover,
.nav-resume-trigger.open {
border-color: transparent;
}
.mobile-menu-btn {
display: none;
background: none;
border: none;
color: var(--text-primary);
cursor: pointer;
padding: 8px;
border-radius: var(--radius-md);
}
.mobile-menu-btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Mobile menu sheet — mounted only while open, and only at <=1024px (guard below).
94% + blur(12px) is a contrast floor, not taste: the worst measured case is --text-muted
over an --accent tile behind the glass — 4.58 at 94%, 4.45 at 92% (fails AA), 4.01 at the
bar's old 85%. --text-muted is what .mobile-menu-heading and the palette trigger render. */
.mobile-menu {
position: fixed;
top: 64px;
left: 0;
right: 0;
bottom: 0;
z-index: 999;
background: color-mix(in srgb, var(--bg-surface) 94%, transparent);
backdrop-filter: blur(12px);
padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
overflow-y: auto;
overscroll-behavior: contain;
}
/* The sheet itself is the focus target on open (`tabIndex={-1}` on the panel in
`MobileMenu.tsx`). A ring here would frame the whole viewport, and every control inside
already carries its own `:focus-visible` rule. */
.mobile-menu:focus {
outline: none;
}
.mobile-menu-inner {
max-width: var(--max-content);
margin: 0 auto;
}
.mobile-menu-group {
padding-bottom: 12px;
margin-bottom: 12px;
border-bottom: 1px solid var(--border);
}
/* 12px + one hairline per group is what holds the sheet at 647px closed; 24px would reach
667px and push the Connect group past a 375x667 phone (spec §3.3). */
.mobile-menu-group:last-child {
border-bottom: none;
padding-bottom: 0;
margin-bottom: 0;
}
.mobile-menu-heading {
display: block;
font-family: var(--mono);
font-size: var(--text-meta);
line-height: 1;
letter-spacing: 1.5px;
text-transform: uppercase;
color: var(--text-muted);
margin-bottom: 8px;
2026-10-04 09:34:55 +07:00
}
.mobile-menu-list {
list-style: none;
2026-10-04 09:34:55 +07:00
display: flex;
flex-direction: column;
}
2026-10-04 09:34:55 +07:00
.mobile-menu-link {
display: flex;
align-items: center;
min-height: 48px;
padding: 0 12px 0 10px;
border-left: 2px solid transparent;
font-size: var(--text-lede);
font-weight: 500;
color: var(--text-secondary);
text-decoration: none;
transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
.mobile-menu-link:hover,
.mobile-menu-link:active {
background: var(--bg-elevated);
color: var(--text-primary);
}
.mobile-menu-link.active {
border-left-color: var(--accent);
color: var(--accent);
}
.mobile-menu-link:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
.mobile-menu-segment {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 48px;
}
.mobile-menu-segment-label {
font-size: var(--text-body);
color: var(--text-secondary);
}
.mobile-menu-segment-options {
display: flex;
gap: 8px;
}
/* Icon-only options in the sheet share this shape — the 44px target, border and radius — for
the Theme color dots (.nav-palette-preview), the Language globe/flag, and the Mode row's
sun/moon, which is the same line art the bar's theme control draws. */
2026-10-17 23:59:58 +07:00
.mobile-menu-icon-option {
display: flex;
align-items: center;
justify-content: center;
width: 44px;
min-height: 44px;
padding: 0;
border: 1px solid var(--border-strong);
border-radius: var(--radius-md);
background: none;
cursor: pointer;
transition: background var(--transition-fast), border-color var(--transition-fast);
}
2026-10-17 23:59:58 +07:00
.mobile-menu-icon-option:hover {
background: var(--bg-elevated);
}
/* Every glyph in the sheet is `currentColor` line art — the globe/flag, the moon/sun — so the
selected option carries the theme's accent exactly as the bar's `.nav-control.open` does, and
the colour follows `data-theme` + `data-palette` the way the border already does. The Theme
color dots paint their own `--preview-*-accent` background, so they are unaffected. */
2026-10-17 23:59:58 +07:00
.mobile-menu-icon-option.active {
border-color: var(--accent);
background: var(--bg-elevated);
color: var(--accent);
}
2026-10-17 23:59:58 +07:00
.mobile-menu-icon-option:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
@media (max-width: 1024px) {
.nav-menu {
display: none;
}
.mobile-menu-btn {
display: flex;
2026-10-04 09:34:55 +07:00
}
}
/* Six controls share the bar at ≤1024px: hamburger, home, resume, then the three appearance
controls. The brand group keeps its 4px at every width; only the bordered action controls
drop from 16px to 8px here: 260px of controls + 8px of brand gaps + 16px of action gaps =
284px used inside 358px of content at 390px. */
@media (max-width: 420px) {
.nav-container {
padding: 0 16px;
}
.nav-actions {
gap: 8px;
}
}
/* 320px keeps every 44px target intact and pays for them out of the gutter instead: 12px padding
leaves 296px of content for 260px of controls + 24px of gaps — 12px of slack. */
@media (max-width: 360px) {
.nav-container {
padding: 0 12px;
}
}
@media (min-width: 1025px) {
.mobile-menu {
display: none;
}
}
/* ===== Theme palette menu ===== */
.nav-palette {
position: relative;
display: flex;
}
/* Nothing specific to declare: the trigger's chrome is `.nav-control` above, it holds a single
icon, and its accessible name lives in `aria-label`. The class stays as the hook that ties
the trigger to the `#palette-menu` panel it expands. */
/* The palette icon: left half is the live --accent of the active palette, right half the
constant --swatch-empty; the hairline keeps the white half visible on a light surface. The
submenu dots read --preview-*-accent, which mirror the same per-theme accent values, so a
dot and this swatch half are the same colour in the same theme.
Spec: docs/design/specs/v3/spec-v3-nav-swatch-and-hamburger.md */
.nav-palette-swatch {
flex: none;
width: 20px;
height: 20px;
border-radius: 50%;
border: 1px solid var(--border-strong);
background: linear-gradient(to right, var(--accent) 0 50%, var(--swatch-empty) 50% 100%);
}
.nav-palette-panel {
display: none;
position: absolute;
top: calc(100% + 4px);
right: 0;
width: max-content;
min-width: 220px;
padding: 4px;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: 0 4px 12px var(--shadow);
z-index: 100;
}
.nav-palette-panel.open {
display: block;
}
.nav-palette-option {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
min-height: 44px;
padding: 8px 12px;
background: none;
border: none;
border-left: 2px solid transparent;
border-radius: var(--radius-sm);
color: var(--text-primary);
text-align: left;
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.nav-palette-option.active {
border-left-color: var(--accent);
}
.nav-palette-option.active::after {
content: '✓';
margin-left: 8px;
color: var(--accent);
}
.nav-palette-option:hover {
background: var(--accent);
color: var(--text-on-accent);
}
.nav-palette-option:hover .nav-palette-hint,
.nav-palette-option.active:hover::after {
color: var(--text-on-accent);
opacity: 0.75;
}
.nav-palette-option:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
/* One ring style for every colour chip: the same 1px --border-strong hairline the swatch
above uses. --preview-red-bg and --preview-blue-bg are gone — their light-mode values drew
a near-white halo (13.30–16.21) around the dot in dark mode. */
.nav-palette-preview {
flex: none;
width: 18px;
height: 18px;
border-radius: 50%;
border: 1px solid var(--border-strong);
}
.nav-palette-preview[data-preview='red'] {
background: var(--preview-red-accent);
}
.nav-palette-preview[data-preview='blue'] {
background: var(--preview-blue-accent);
}
.nav-palette-name {
font-size: 14px;
font-weight: 500;
}
.nav-palette-hint {
margin-left: auto;
font-size: 12px;
color: var(--text-muted);
}
/* ===== Buttons ===== */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 24px;
font-size: 16px;
font-weight: 500;
font-family: inherit;
border-radius: var(--radius-md);
cursor: pointer;
text-decoration: none;
transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
border: none;
}
.btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.btn-primary {
background: var(--accent-solid);
color: var(--text-on-accent-solid);
border: 1px solid var(--accent);
2026-10-16 21:14:59 +07:00
box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
background: var(--accent-solid-hover);
color: var(--text-on-accent-solid);
2026-10-16 21:14:59 +07:00
box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-primary:active {
background: var(--accent-solid-active);
2026-10-16 21:14:59 +07:00
box-shadow: 0 2px 10px var(--accent-glow);
}
.btn-secondary {
background: transparent;
color: var(--accent);
border: 1.5px solid var(--border);
border-radius: 9999px;
}
.btn-secondary:hover {
border-color: var(--accent);
2026-10-16 21:14:59 +07:00
background: var(--accent-soft);
}
.btn-icon {
display: inline-flex;
margin-left: 6px;
transition: transform var(--transition-fast);
}
.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon {
transform: translateX(4px);
}
.btn-ghost {
background: transparent;
color: var(--text-muted);
}
.btn-ghost:hover {
color: var(--text-primary);
background: var(--bg-surface);
}
.btn-sm {
padding: 8px 12px;
font-size: 12px;
}
.btn-lg {
padding: 16px 32px;
font-size: 18px;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* ===== Badges ===== */
.badge {
display: inline-flex;
align-items: center;
padding: 4px 10px;
font-size: 12px;
font-weight: 500;
border-radius: var(--radius-sm);
}
.badge-accent {
background: var(--accent-solid);
color: var(--text-on-accent-solid);
}
.badge-outline {
background: transparent;
color: var(--accent);
border: 1px solid var(--accent);
}
.badge-muted {
background: var(--bg-surface);
color: var(--text-muted);
}
/* ===== Tags ===== */
.tag {
display: inline-flex;
align-items: center;
padding: 4px 10px;
font-size: 12px;
color: var(--text-muted);
background: var(--bg-surface);
border-radius: var(--radius-sm);
border: 1px solid var(--border);
}
.tag-accent {
background: var(--accent);
2026-10-16 21:14:59 +07:00
color: var(--text-on-accent);
border-color: var(--accent);
}
/* ===== Section Heading ===== */
.section-heading {
margin-bottom: 48px;
}
.section-heading h2 {
margin-bottom: 8px;
}
.section-heading p {
font-size: 18px;
}
.section-tag {
display: block;
font-family: var(--mono);
font-size: 0.85rem;
color: var(--accent);
text-transform: uppercase;
letter-spacing: 2px;
margin-bottom: 8px;
}
/* ===== Social Links ===== */
.social-links {
2026-10-04 09:34:55 +07:00
display: flex;
gap: 16px;
}
2026-10-04 09:34:55 +07:00
.social-link {
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
2026-10-16 21:14:59 +07:00
border: 1.5px solid var(--border-strong);
border-radius: 6px;
color: var(--text-primary);
transition: color var(--transition-fast), border-color var(--transition-fast);
}
.social-link:hover {
border-color: var(--accent);
color: var(--accent);
}
.social-link:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.social-link svg {
width: 20px;
height: 20px;
}
/* ===== Section Background Gradient ===== */
.section {
position: relative;
}
.section::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(
to bottom,
transparent 0%,
var(--bg-primary) 10%,
var(--bg-primary) 90%,
transparent 100%
);
pointer-events: none;
z-index: -1;
}
/* ===== Hero ===== */
.hero {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 64px;
align-items: center;
min-height: calc(100vh - 64px);
position: relative;
}
.hero-content {
display: flex;
flex-direction: column;
gap: 24px;
}
.hero-name {
font-size: clamp(32px, 5vw, 64px);
font-weight: 700;
color: var(--text-primary);
line-height: 1.1;
letter-spacing: -0.02em;
}
.hero-title {
font-size: clamp(18px, 2.5vw, 24px);
font-weight: 400;
color: var(--text-secondary);
}
.hero-tagline {
font-size: 18px;
color: var(--text-secondary);
white-space: pre-line;
line-height: 1.6;
}
.hero-greeting {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
font-size: 1.1rem;
color: var(--text-secondary);
}
.greeting-dot {
width: 10px;
height: 10px;
background: var(--success);
border-radius: 50%;
animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
2026-10-16 21:14:59 +07:00
0%, 100% { box-shadow: 0 0 0 0 var(--success-glow); }
50% { box-shadow: 0 0 0 8px transparent; }
}
.name-highlight {
2026-10-16 21:14:59 +07:00
background: linear-gradient(135deg, var(--accent), var(--accent-active));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
2026-10-15 01:15:09 +07:00
.ok-possible {
font-size: clamp(32px, 5vw, 25px);
font-weight: 700;
}
.hero-cta {
display: flex;
gap: 16px;
flex-wrap: wrap;
}
.hero-visual {
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.hero-bg-grid {
position: absolute;
inset: 0;
background-image:
linear-gradient(var(--grid-color) 1px, transparent 1px),
linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
background-size: 60px 60px;
mask-image: radial-gradient(ellipse at center, black 50%, transparent 70%);
-webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 70%);
pointer-events: none;
}
.typewriter-cursor {
display: inline-block;
width: 2px;
height: 1.1em;
background: var(--accent);
margin-left: 2px;
vertical-align: text-bottom;
animation: blink 1s step-end infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
/* No mask-image on .hero-particles on purpose: a mask pulls the animated children into
one re-rasterized group, the same cost as filter: blur(). The 12% / 88% opacity ramp in
float-particle dissolves each dot before it reaches the clip edge, so the edges need no
extra softening. */
.hero-particles {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
}
/* One layer per depth tier. `perspective` belongs on the layer, not on
.hero-particles: overflow: hidden on the container forces its used transform-style
to flat, so a perspective declared there would project only the three layers and
never the particles. Clipping stays on the container. */
.hero-particle-layer {
position: absolute;
inset: 0;
perspective: 700px;
perspective-origin: 50% 78%;
}
.hero-particle {
position: absolute;
background: var(--accent);
border-radius: 50%;
opacity: 0;
animation: float-particle linear infinite;
}
/* Depth cue for the tier closest to the viewer. box-shadow, not filter: blur() —
animating children inside a filtered container re-rasterizes the whole layer every
frame, which is the main takedown risk on iPad. 6 particles; --accent-glow is
declared in all five blocks of index.css. */
.hero-particle-layer--near .hero-particle {
box-shadow: 0 0 10px var(--accent-glow);
}
/* --p-from / --p-to are raw translateY offsets from the top of the layer, tuned per
tier so that after projection (700px, origin 50% 78%) every tier crosses the full
hero box: far z -500 -> -180 projects 0.58x -> 0.80x, mid 0.70x -> 0.92x, near
z -120 -> +120 projects 0.85x -> 1.21x. Equal projected distance with a longer
duration is what makes the far tier read as slower. vh, not dvh: dvh re-resolves
when iOS Safari collapses its toolbar mid-cycle and the whole field jumps. */
@keyframes float-particle {
0% { transform: translate3d(var(--p-drift), var(--p-from), var(--p-z0)); opacity: 0; }
12% { opacity: var(--p-op); }
88% { opacity: var(--p-op); }
100% { transform: translate3d(calc(var(--p-drift) * -1), var(--p-to), var(--p-z1)); opacity: 0; }
}
.scroll-indicator {
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
color: var(--text-muted);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 2px;
animation: float 3s ease-in-out infinite;
text-decoration: none;
pointer-events: none;
}
.scroll-mouse {
width: 24px;
height: 38px;
border: 2px solid var(--border);
border-radius: 12px;
display: flex;
justify-content: center;
padding-top: 8px;
}
.scroll-wheel {
width: 3px;
height: 8px;
background: var(--accent);
border-radius: 2px;
animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
0%, 100% { transform: translateY(0); opacity: 1; }
50% { transform: translateY(8px); opacity: 0.3; }
}
@keyframes float {
0%, 100% { transform: translateX(-50%) translateY(0); }
50% { transform: translateX(-50%) translateY(-10px); }
}
.hero-photo {
2026-10-13 01:01:09 +07:00
max-width: 60%;
height: auto;
object-position: center top;
display: block;
}
@media (max-width: 768px) {
.hero {
position: relative;
min-height: 100dvh;
overflow: hidden;
padding: 0;
}
.hero-cta {
2026-10-04 09:34:55 +07:00
flex-direction: column;
gap: 16px;
}
.hero-cta .btn {
width: 100%;
}
.hero-visual {
position: absolute;
inset: 0;
z-index: 0;
}
.hero-content {
position: absolute;
2026-10-12 17:50:51 +07:00
inset: 0;
z-index: 1;
2026-10-12 17:50:51 +07:00
padding: 64px 24px 56px;
width: 100%;
}
2026-10-12 16:06:31 +07:00
.hero-name {
2026-10-16 21:14:59 +07:00
color: var(--text-primary);
2026-10-12 16:06:31 +07:00
}
.hero-title,
.hero-tagline {
2026-10-16 21:14:59 +07:00
color: var(--text-secondary);
2026-10-12 16:06:31 +07:00
}
.hero-greeting {
2026-10-16 21:14:59 +07:00
color: var(--text-secondary);
}
.hero-photo {
display: none;
}
.scroll-indicator {
position: absolute;
2026-10-14 19:37:10 +07:00
top: 60px;
2026-10-13 13:21:29 +07:00
left: auto;
right: 0 !important;
transform: translateX(-50%);
z-index: 10;
2026-10-13 10:22:10 +07:00
color: var(--text-primary);
}
.scroll-mouse {
2026-10-13 10:22:10 +07:00
border-color: var(--text-muted);
}
.hero .scroll-indicator span {
display: block !important;
2026-10-13 10:22:10 +07:00
color: var(--text-primary) !important;
opacity: 1 !important;
}
.hero .social-links,
.footer .social-links {
justify-content: center;
}
.social-link {
2026-10-13 10:22:10 +07:00
color: var(--text-primary);
}
2026-10-06 19:29:13 +07:00
}
@media (max-width: 768px) {
:root[data-theme='light'] .hero-name {
color: var(--text-primary) !important;
}
:root[data-theme='light'] .hero-title,
:root[data-theme='light'] .hero-tagline,
:root[data-theme='light'] .hero-greeting {
color: var(--text-secondary) !important;
}
:root[data-theme='light'] .social-link {
color: var(--text-secondary) !important;
2026-10-13 01:01:09 +07:00
border-color: var(--border) !important;
}
}
@media (min-width: 769px) and (max-width: 1200px) {
.hero-content {
padding-left: 16px;
padding-right: 16px;
}
}
:root[data-theme='light'] .social-link {
2026-10-13 01:01:09 +07:00
border-color: var(--border) !important;
}
/* ===== Download Resume (one trigger, modal picker) ===== */
.download-resume {
position: relative;
width: fit-content;
}
.download-resume-summary {
display: flex;
align-items: center;
gap: 8px;
2026-10-13 10:22:10 +07:00
padding: 14px 24px;
font-size: 16px;
font-weight: 500;
font-family: inherit;
border-radius: var(--radius-md);
cursor: pointer;
text-decoration: none;
transition: background var(--transition-fast), color var(--transition-fast);
border: none;
2026-10-16 21:14:59 +07:00
background: transparent;
width: 100%;
color: var(--accent);
list-style: none;
user-select: none;
}
.download-resume-summary:hover {
border-color: var(--accent);
background: var(--accent);
2026-10-16 21:14:59 +07:00
color: var(--text-on-accent);
}
/* The dialog is the open state. The trigger keeps its resting colour while the modal is up:
the pointer is still on it after the click, so without this the :hover accent fill lands at
the instant of the click and reads as a colour flash behind the overlay. */
.download-resume-summary.open,
.download-resume-summary.open:hover {
background: transparent;
color: var(--accent);
}
/* Touch devices keep :hover stuck after a tap, so the accent fill would sit on the trigger
until the next tap somewhere else. */
@media (hover: none) {
.download-resume-summary:hover {
background: transparent;
color: var(--accent);
}
}
/* Language picker — a dialog, not a dropdown: one trigger serves every width */
.resume-modal-overlay {
position: fixed;
inset: 0;
z-index: 1100;
display: grid;
place-items: center;
padding: 24px;
/* No backdrop-filter: the blur would apply at full strength on the first frame while the
opacity is still animating, so the page behind jumps before the dialog arrives. */
background: color-mix(in srgb, var(--bg-primary) 78%, transparent);
}
.resume-modal {
width: min(420px, 100%);
2026-10-16 21:14:59 +07:00
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 24px;
box-shadow: 0 12px 32px var(--shadow);
}
.resume-modal:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 4px;
}
.resume-modal-head {
display: flex;
align-items: center;
gap: 12px;
}
.resume-modal-head h3 {
flex: 1;
}
.resume-modal-close {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: transparent;
color: var(--text-muted);
cursor: pointer;
transition: border-color var(--transition-fast), color var(--transition-fast);
}
.resume-modal-close:hover {
border-color: var(--accent);
color: var(--accent);
}
.resume-modal-close:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.resume-modal-hint {
margin-top: 4px;
font-size: var(--text-meta);
line-height: 1.5;
color: var(--text-muted);
}
.resume-modal-options {
display: flex;
flex-direction: column;
gap: 12px;
margin-top: 16px;
}
.resume-modal-option {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
padding: 14px 16px;
border: 1px solid var(--border);
border-radius: var(--radius-md);
text-decoration: none;
color: var(--text-primary);
transition: border-color var(--transition-fast), background var(--transition-fast);
}
.resume-modal-option:hover {
border-color: var(--accent);
background: var(--accent-tint);
}
.resume-modal-option:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.resume-modal-option-label {
font-size: 16px;
font-weight: 500;
}
.resume-modal-option-file {
font-size: 14px;
color: var(--text-muted);
}
/* The spin animates the gradient angle, not a rotating box. A box rotated inside a wide, short
wrapper stops covering the wrapper's own edges as soon as its short side is narrower than the
wrapper is wide (inset -200% made the layer 1710x265 against a 342x53 wrapper), and the beam
gets cut into two segments for part of every cycle. */
@property --lazer-angle {
syntax: '<angle>';
inherits: false;
initial-value: 0deg;
}
/* ===== Download Resume Lazer Border ===== */
.download-resume-lazer-wrapper {
position: relative;
padding: 2px;
width: fit-content;
overflow: hidden;
border-radius: calc(var(--radius-md) + 2px);
}
.download-resume-lazer-border {
position: absolute;
inset: 0;
background: conic-gradient(
from var(--lazer-angle, 0deg),
transparent 60%,
var(--accent) 80%,
var(--accent-hover) 95%,
transparent 100%
);
animation: download-resume-lazer-spin 4s linear infinite;
pointer-events: none;
}
.download-resume-lazer-glow {
position: absolute;
inset: 0;
background: conic-gradient(
from var(--lazer-angle, 0deg),
transparent 60%,
var(--accent) 80%,
var(--accent-hover) 95%,
transparent 100%
);
animation: download-resume-lazer-spin 4s linear infinite;
pointer-events: none;
filter: blur(12px);
opacity: 0.4;
}
.download-resume-lazer-inner {
position: relative;
z-index: 1;
width: 100%;
2026-10-16 21:14:59 +07:00
background: var(--accent-tint);
border-radius: var(--radius-md);
}
@keyframes download-resume-lazer-spin {
from { --lazer-angle: 0deg; }
to { --lazer-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
.download-resume-lazer-border,
.download-resume-lazer-glow {
animation: none;
}
/* Hero particles have no reduced-motion fallback: `.hero-particle` uses the
`animation` shorthand, so animation-fill-mode is `none`. The global clamp in
src/index.css (animation-duration: 0.01ms, animation-iteration-count: 1) ends
`float-particle` instantly and returns every dot to its unanimated style — no
transform, `top: auto` — stacking all of them at the top edge of
`.hero-particles`, behind the fixed nav. Hide the decorative layer instead. */
.hero-particles {
display: none;
}
}
/* Mobile: the single trigger fills the CTA column like the other two buttons */
@media (max-width: 768px) {
.hero-cta .download-resume,
.hero-cta .download-resume-lazer-wrapper {
width: 100%;
}
.hero-cta .download-resume-summary {
justify-content: center;
}
}
/* ===== Expertise Grid ===== */
.expertise-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.expertise-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 24px;
transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.expertise-card:hover {
border-color: var(--accent);
box-shadow: 0 4px 12px var(--shadow);
}
.expertise-card h3 {
font-size: 18px;
margin-bottom: 16px;
color: var(--accent);
}
.expertise-skills {
list-style: none;
display: flex;
flex-direction: column;
gap: 8px;
}
.expertise-skill {
2026-10-16 21:14:59 +07:00
font-size: var(--text-meta);
line-height: var(--leading-body);
}
.expertise-skill::before {
content: '›';
color: var(--accent);
margin-right: 8px;
font-weight: 600;
}
@media (max-width: 1024px) {
.expertise-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.expertise-grid {
grid-template-columns: 1fr;
}
}
/* ===== Experience Timeline ===== */
.timeline {
position: relative;
padding-left: 36px;
}
/* Spine is drawn per node so it can stop exactly at the TLDR diamond instead of
trailing past the last card. left -31px = absolute x 5, so the 2px spine is centred
on x 6 — the same centre the markers use. bottom -32px bridges the entry's own margin
so consecutive segments join seamlessly. */
.timeline-entry::before {
content: '';
position: absolute;
left: -31px;
top: 0;
bottom: -32px;
width: 2px;
border-radius: 1px;
background: var(--border);
}
.timeline-entry {
position: relative;
padding-bottom: 32px;
margin-bottom: 32px;
border-bottom: 1px solid var(--border);
transition: border-color var(--transition-normal);
}
/* First node starts the spine at its marker centre (top 6 + half of 12). */
.timeline-entry:first-child::before {
top: 12px;
}
/* Guard for a timeline without a terminal node: stop at the entry's own bottom. */
.timeline-entry:last-child::before {
bottom: 0;
}
.timeline-entry:last-child {
padding-bottom: 0;
margin-bottom: 0;
border-bottom: none;
}
/* The 36px gutter puts the 12px marker's centre (x=6) exactly on the spine centre (left 5 + half of 2px). */
.timeline-marker {
position: absolute;
left: -36px;
top: 6px;
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid var(--border-strong);
background: var(--bg-primary);
transition: border-color var(--transition-normal), background var(--transition-normal);
}
/* Horizontal link from the node into the title — the same treatment `.timeline-tldr::after` gives
the terminal diamond. Drawn from the marker rather than from the entry or the header: the
current-role entry pads its own content box (16px top), so the header's coordinates move with
that padding, while the marker is pinned to the spine. The 12px marker is border-box at x 0–12,
y 6–18 and its 2px border makes the padding box start at (2, 8): left 10px puts the link at
x 12, the ring's outer edge, top 3px puts it on the ring's centre line (y 11), and width 24px
ends at x 36 — the content edge where the title starts. Same arithmetic as the TLDR link, which
sits at left -24px (x 12) and runs 24px to the panel.
The link carries the node's own ink, never a colour of its own: `--border-strong` for an
ordinary ring, `--accent` where the marker itself is accent — the two ends of the timeline, the
first node and the TLDR diamond, whose link already lives in `.timeline-tldr::after` — and it
follows the ring through the same hover transition the ring uses. */
.timeline-marker::after {
content: '';
position: absolute;
left: 10px;
top: 3px;
width: 24px;
height: 1px;
background: var(--border-strong);
transition: background var(--transition-normal);
}
/* The current role is the accent end that is not the TLDR node. Its panel's accent left edge sits
at x 28 (inset -8 against the 36px gutter), so the link stops there: 16px from x 12, meeting the
panel's own border with no ink inside it. */
.timeline-entry-current .timeline-marker::after {
width: 16px;
background: var(--accent);
}
/* A break keeps its quiet chrome: the 10px ring spans x 1–11, its padding box starting at x 3, so
the link starts at the ring's outer edge and reaches 1px further. Its ink needs no declaration —
the base value is already the `--border-strong` of the dashed spine, the shrunk ring and the
italic title. */
.timeline-entry-gap .timeline-marker::after {
left: 8px;
width: 25px;
}
/* Data is newest-first, so the first entry is the current role: filled marker with a soft halo. */
.timeline-entry:first-child .timeline-marker {
background: var(--accent);
border-color: var(--accent);
box-shadow: 0 0 0 4px var(--accent-soft);
}
/* The first node is the other accent end of the timeline: the link carries the same accent as the
filled marker and halo above it. */
.timeline-entry:first-child .timeline-marker::after {
background: var(--accent);
}
.timeline-entry:hover .timeline-marker {
border-color: var(--accent);
}
/* The link follows the ring it belongs to: hovering an entry turns both to accent at once, so a
node never lights up while its own link stays grey. */
.timeline-entry:hover .timeline-marker::after {
background: var(--accent);
}
.timeline-entry:hover {
border-bottom-color: var(--border-strong);
}
/* The newest node is a status, not a past role. It borrows the TLDR panel's quiet family —
flat surface, hairline border, radius, whisper shadow — and keeps two things the TLDR node
does not: an accent left edge and a pulsing marker. The entry gets real padding so the text
sits inside the panel instead of hugging its edge (the old bed had no padding, which on a
28px mobile gutter put the accent bar right against the first glyph). */
.timeline-entry-current {
isolation: isolate;
padding: 16px 18px 20px;
border-bottom: none;
}
.timeline-entry-current .timeline-marker {
background: var(--accent);
border-color: var(--accent);
animation: timeline-status-pulse 2.4s ease-out infinite;
}
/* Panel geometry. The 12px marker occupies absolute x 0–12 and the pulse peak (10px spread)
reaches x 22, so the panel's 2px left border starts at x 28 (left −8 against the 36px
gutter): 6px clear of the ring, and the text starts at 36 + 18 = 54, i.e. 24px inside it.
The entry's own divider is gone; the panel's border closes the box. */
.timeline-entry-current::after {
content: '';
position: absolute;
z-index: -1;
inset: -10px -10px -10px -8px;
background: var(--bg-surface);
border: 1px solid var(--border);
border-left: 2px solid var(--accent);
border-radius: var(--radius-lg);
box-shadow: inset 0 1px 0 var(--inset-highlight), 0 8px 20px -18px var(--shadow);
}
@keyframes timeline-status-pulse {
0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
50% { box-shadow: 0 0 0 10px transparent; }
}
/* Mobile variant of the same pulse: 6px spread, so the ring stops at x 18 and the panel border
can keep 6px of air inside a 28px gutter. */
@keyframes timeline-status-pulse-sm {
0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
50% { box-shadow: 0 0 0 6px transparent; }
}
/* A break between jobs has to read as a break. Three signals, all quieter than the accent
work nodes: the spine turns dashed through this node, the marker shrinks to a muted ring,
the title goes italic-muted, and the divider is dropped so the dashed line bridges
straight into the next role. */
.timeline-entry-gap::before {
background: repeating-linear-gradient(
to bottom,
var(--border-strong) 0px,
var(--border-strong) 4px,
transparent 4px,
transparent 9px
);
}
.timeline-entry-gap {
border-bottom: none;
}
/* 10px ring: smaller than the 12px role markers. L = 6 − 36 − 10/2 = −35 keeps the centre on
the spine (x 6). */
.timeline-entry-gap .timeline-marker {
width: 10px;
height: 10px;
left: -35px;
border-color: var(--border-strong);
}
.timeline-entry-gap .timeline-title {
color: var(--text-muted);
font-style: italic;
}
.timeline-entry-gap .timeline-company {
color: var(--text-muted);
}
/* Terminal node: the whole timeline collapsed into one line. Deliberately quiet — a flat
surface, a hairline border, a whisper of shadow. The only loud element is the diamond on
the spine. */
.timeline-tldr {
position: relative;
padding: 20px 24px;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: inset 0 1px 0 var(--inset-highlight), 0 8px 20px -18px var(--shadow);
}
/* Stub from the previous node down to the diamond centre (top 16 + 6). Painted as ::before
so the diamond covers its end. */
.timeline-tldr::before {
content: '';
position: absolute;
left: -31px;
top: 0;
width: 2px;
height: 22px;
border-radius: 1px;
background: var(--border);
}
/* Hollow diamond: the same ring language as the entry markers, but in accent so it still
reads as the end of the line. bg-primary fill masks the spine stub behind it; width and
height are border-box, so the centre stays on the spine (x 6). */
.timeline-tldr-marker {
position: absolute;
left: -36px;
top: 16px;
width: 12px;
height: 12px;
border: 2px solid var(--accent);
border-radius: 2px;
background: var(--bg-primary);
transform: rotate(45deg);
box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Hairline link from the diamond into the panel, painted over the diamond so the join is
unbroken. */
.timeline-tldr::after {
content: '';
position: absolute;
left: -24px;
top: 21px;
width: 24px;
height: 1px;
background: var(--accent);
}
/* Same voice as .section-tag: mono, uppercase, letterspaced — no box around it. */
.timeline-tldr-chip {
display: block;
margin-bottom: 10px;
font-family: var(--mono);
font-size: 12px;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--accent);
}
/* No color declaration: inherits the global p treatment (--text-secondary), the same
treatment every other lede on the site gets. */
.timeline-tldr-text {
font-size: var(--text-lede);
line-height: 1.55;
}
.timeline-header {
margin-bottom: 16px;
}
.timeline-title {
font-size: 20px;
2026-10-16 21:14:59 +07:00
line-height: 1.3;
font-weight: 600;
color: var(--text-primary);
}
.timeline-company {
margin-top: 2px;
font-size: 16px;
2026-10-16 21:14:59 +07:00
line-height: 1.4;
color: var(--text-secondary);
}
.timeline-meta {
display: flex;
flex-wrap: wrap;
gap: 4px 10px;
margin-top: 6px;
}
.timeline-duration,
.timeline-location {
font-size: 14px;
color: var(--text-muted);
}
.timeline-location::before {
content: '·';
margin-right: 10px;
color: var(--border-strong);
}
.timeline-responsibilities {
list-style: none;
display: flex;
flex-direction: column;
gap: 10px;
}
.timeline-responsibilities li {
position: relative;
padding-left: 18px;
2026-10-16 21:14:59 +07:00
font-size: var(--text-meta);
line-height: var(--leading-body);
}
/* Dot sits on the x-height centre of the first line (line-height 1.65 → 0.66em). */
.timeline-responsibilities li::before {
content: '';
position: absolute;
left: 0;
top: 0.66em;
width: 5px;
height: 5px;
border-radius: 50%;
border: 1px solid var(--accent);
background: var(--accent-soft);
}
.achievement-metric {
display: inline-block;
background: var(--accent);
2026-10-16 21:14:59 +07:00
color: var(--text-on-accent);
padding: 4px 12px;
border-radius: var(--radius-sm);
font-size: 14px;
font-weight: 600;
margin: 4px 4px 4px 0;
}
@media (max-width: 768px) {
.timeline {
padding-left: 28px;
}
.timeline-entry {
padding-bottom: 24px;
margin-bottom: 24px;
}
.timeline-entry::before {
left: -23px;
bottom: -24px;
}
.timeline-tldr::before {
left: -23px;
}
.timeline-tldr::after {
left: -16px;
width: 16px;
}
.timeline-marker,
.timeline-tldr-marker {
left: -28px;
}
/* 28px gutter: the link runs x 12 → 28, the same 16px the TLDR link uses at this width. The
panel's accent edge is at x 24 (inset -4), and the 10px gap ring ends at x 11 → 17px. */
.timeline-marker::after {
width: 16px;
}
.timeline-entry-current .timeline-marker::after {
width: 12px;
}
.timeline-entry-gap .timeline-marker::after {
width: 17px;
}
/* 10px ring at the 28px gutter: L = 6 − 28 − 10/2 = −27. */
.timeline-entry-gap .timeline-marker {
left: -27px;
}
/* Panel keeps a comparable absolute edge: 28 − 4 = 24, i.e. 6px clear of the capped mobile
ring (x 18) and 18px before the text (28 + 16 padding). */
.timeline-entry-current {
padding: 14px 16px 18px;
}
.timeline-entry-current::after {
inset: -8px -8px -8px -4px;
}
.timeline-entry-current .timeline-marker {
animation-name: timeline-status-pulse-sm;
}
.timeline-tldr {
padding: 18px 20px;
}
}
/* ===== Projects Grid ===== */
.projects-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
}
.project-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 24px;
display: flex;
flex-direction: column;
gap: 16px;
transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
text-decoration: none;
color: inherit;
}
.project-card:hover {
border-color: var(--accent);
box-shadow: 0 4px 12px var(--shadow);
color: inherit;
}
.project-card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.project-card h3 {
font-size: 20px;
color: var(--text-primary);
margin: 0;
}
.project-card-summary {
2026-10-16 21:14:59 +07:00
font-size: var(--text-meta);
color: var(--text-secondary);
2026-10-16 21:14:59 +07:00
line-height: var(--leading-body);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.project-card-techs {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.project-card-metrics {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.project-card-cta {
margin-top: auto;
font-size: 14px;
font-weight: 500;
color: var(--accent);
}
@media (max-width: 768px) {
.projects-grid {
grid-template-columns: 1fr;
}
}
/* ===== Philosophy ===== */
.philosophy-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
margin-top: 32px;
}
.philosophy-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 24px;
transition: border-color var(--transition-normal);
}
.philosophy-card:hover {
border-color: var(--accent);
}
.philosophy-card h3 {
font-size: 18px;
2026-10-16 21:14:59 +07:00
line-height: 1.25;
color: var(--accent);
margin-bottom: 8px;
}
.philosophy-card p {
2026-10-16 21:14:59 +07:00
font-size: var(--text-meta);
line-height: var(--leading-body);
}
.philosophy-keywords {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 12px;
}
.interests-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 24px;
}
@media (max-width: 1024px) {
.philosophy-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.philosophy-grid {
grid-template-columns: 1fr;
}
}
/* ===== Contact ===== */
.contact-links {
2026-10-19 18:51:27 +07:00
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 32px;
margin-top: 32px;
}
.contact-link {
display: flex;
align-items: center;
gap: 12px;
font-size: 16px;
2026-10-16 21:14:59 +07:00
line-height: 1.4;
color: var(--text-secondary);
text-decoration: none;
padding: 16px 24px;
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
transition: border-color var(--transition-fast), color var(--transition-fast);
}
.contact-link:hover {
border-color: var(--accent);
color: var(--accent);
}
.contact-link svg {
width: 24px;
height: 24px;
}
2026-10-16 21:14:59 +07:00
.contact-link-sub {
font-size: var(--text-meta);
line-height: 1.5;
color: var(--text-muted);
2026-10-19 18:51:27 +07:00
overflow-wrap: anywhere;
2026-10-16 21:14:59 +07:00
}
2026-10-19 18:51:27 +07:00
@media (max-width: 1024px) {
.contact-links {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.contact-links {
2026-10-19 18:51:27 +07:00
grid-template-columns: 1fr;
}
}
/* ===== Footer ===== */
.footer {
border-top: 1px solid var(--border);
padding: 32px 0;
margin-top: auto;
}
.footer-container {
max-width: var(--max-wide);
margin: 0 auto;
padding: 0 24px;
display: flex;
justify-content: space-between;
align-items: center;
}
.footer-text {
font-size: 14px;
color: var(--text-muted);
}
.footer-links {
display: flex;
gap: 24px;
list-style: none;
}
.footer-link {
font-size: 14px;
color: var(--text-muted);
text-decoration: none;
transition: color var(--transition-fast);
}
.footer-link:hover {
color: var(--accent);
}
@media (max-width: 768px) {
.footer-container {
flex-direction: column;
gap: 16px;
2026-10-04 09:34:55 +07:00
text-align: center;
}
.footer-links {
justify-content: center;
2026-10-04 09:34:55 +07:00
}
}
/* ===== Content prose ===== */
.prose {
2026-10-16 21:14:59 +07:00
max-width: var(--measure-prose);
}
.prose h2 {
margin-top: 48px;
margin-bottom: 16px;
font-size: 28px;
}
.prose h3 {
2026-10-16 21:14:59 +07:00
margin-top: 1.5em;
margin-bottom: 0.65em;
}
.prose h4 {
margin-top: 1.25em;
margin-bottom: 8px;
font-size: 16px;
line-height: 1.3;
}
.prose p {
2026-10-16 21:14:59 +07:00
margin-bottom: 1em;
}
.prose p:last-child {
margin-bottom: 0;
}
.prose ul,
.prose ol {
margin-bottom: 16px;
padding-left: 24px;
}
.prose li {
margin-bottom: 8px;
color: var(--text-secondary);
2026-10-16 21:14:59 +07:00
font-size: var(--text-body);
line-height: var(--leading-body);
}
.prose blockquote {
border-left: 4px solid var(--accent);
padding-left: 16px;
margin: 16px 0;
color: var(--text-secondary);
font-style: italic;
}
/* Wide reading column: same width as the page column. Body steps up to
--text-lede so a wider column keeps the 45-80 characters-per-line band. */
.prose-wide {
max-width: var(--measure-page);
}
.prose-wide p {
font-size: var(--text-lede);
line-height: 1.6;
}
2026-10-16 21:14:59 +07:00
/* Lead paragraph that stands outside a .prose column */
.prose-lede {
max-width: var(--measure-prose);
font-size: var(--text-lede);
line-height: 1.55;
}
/* A lede that sits next to a wide grid follows the page measure, not the prose measure */
.lede-wide {
max-width: var(--measure-page);
}
2026-10-16 21:14:59 +07:00
/* Column for blocks that are not prose (grids, tag lists, timelines) */
.page-body {
max-width: var(--measure-page);
2026-10-16 21:14:59 +07:00
}
.subheading {
margin-top: 32px;
margin-bottom: 12px;
}
.philosophy-quote p {
text-align: justify;
}
2026-10-16 21:14:59 +07:00
.philosophy-quote + .philosophy-quote {
margin-top: 48px;
}
.philosophy-quote h3 {
margin-top: 0;
}
.project-section {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 16px;
margin-bottom: 16px;
box-shadow: inset 0 1px 0 var(--inset-highlight);
}
.project-section h4 {
margin-top: 0;
}
.project-section p {
font-size: var(--text-meta);
line-height: var(--leading-body);
}
.back-link {
display: inline-block;
font-size: var(--text-meta);
font-weight: 500;
color: var(--accent);
margin-bottom: 32px;
}
.section-cta {
display: block;
font-size: var(--text-meta);
font-weight: 500;
color: var(--accent);
margin-bottom: 24px;
}
.link-label {
font-weight: 500;
color: var(--text-primary);
}
/* ===== Back to top ===== */
.back-to-top {
position: fixed;
bottom: 24px;
right: 24px;
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--accent);
2026-10-16 21:14:59 +07:00
color: var(--text-on-accent);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background var(--transition-fast);
z-index: 100;
}
.back-to-top:hover {
background: var(--accent-hover);
2026-10-04 09:34:55 +07:00
}
/* ── Edit mode (spec-v4 §5.5, §5.4) ─────────────────────────────────────
The Save bar and the JSON panel are chrome, not page content: they sit
fixed over the site, use the 13px chrome type step, and never participate
in the prose scale. The site underneath is untouched. ────────────────── */
.edit-bar {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 900;
background: var(--bg-elevated);
border-top: 1px solid var(--border-strong);
padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
font-size: 13px;
line-height: 1.5;
max-height: 45vh;
overflow-y: auto;
}
.edit-bar-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
}
.edit-bar-title {
color: var(--accent);
}
.edit-bar-count {
color: var(--text-secondary);
}
.edit-bar-branch {
color: var(--text-secondary);
font-size: 13px;
}
.edit-bar-branch code {
color: var(--accent);
}
.edit-bar-warn {
color: var(--warning);
}
.edit-bar-actions {
margin-left: auto;
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.edit-btn {
background: transparent;
color: var(--text-primary);
border: 1px solid var(--border-strong);
border-radius: 6px;
padding: 6px 12px;
font: inherit;
font-size: 13px;
cursor: pointer;
transition: border-color var(--transition-fast), background var(--transition-fast);
}
.edit-btn:hover:not(:disabled) {
border-color: var(--accent);
color: var(--accent);
}
.edit-btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.edit-btn:disabled {
opacity: 0.45;
cursor: default;
}
.edit-btn-primary {
background: var(--accent-solid);
border-color: var(--accent-solid);
color: var(--text-on-accent-solid);
}
.edit-btn-primary:hover:not(:disabled) {
background: var(--accent-solid-hover);
border-color: var(--accent-solid-hover);
color: var(--text-on-accent-solid);
}
.edit-bar-diff {
margin-top: 10px;
display: grid;
gap: 10px;
}
.edit-bar-doc {
border: 1px solid var(--border);
border-radius: 8px;
padding: 8px 10px;
}
.edit-bar-doc-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 6px;
}
.edit-bar-doc ul {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 4px;
}
.edit-bar-doc li {
display: flex;
align-items: baseline;
gap: 8px;
flex-wrap: wrap;
}
.edit-bar-path {
color: var(--accent);
font-size: 12px;
}
.edit-bar-value {
color: var(--text-secondary);
max-width: 34ch;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.edit-bar-appears {
color: var(--text-muted);
font-size: 12px;
}
.edit-bar-conflicts {
margin-top: 10px;
display: grid;
gap: 6px;
color: var(--warning);
}
.edit-bar-conflict {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.edit-bar-issues,
.edit-bar-save {
margin: 10px 0 0;
padding: 0;
list-style: none;
display: grid;
gap: 3px;
}
.edit-bar-issues {
color: var(--error);
}
.edit-bar-save code {
color: var(--text-secondary);
}
.edit-bar-note {
margin-top: 8px;
color: var(--success);
}
/* Inline editing affordances (§5.3): outline only — the element itself stays
the site's own, so the page keeps its exact rendering outside edit mode. */
.editable-text {
outline: 1px dashed transparent;
outline-offset: 2px;
border-radius: 2px;
}
.editable-text:hover {
outline-color: var(--border-strong);
}
.editable-text:focus-visible {
outline-color: var(--accent);
}
.edit-dirty {
outline-style: solid;
outline-color: var(--accent-soft);
box-shadow: inset 2px 0 0 var(--accent);
}
.edit-invalid {
outline-color: var(--error);
background: var(--accent-tint);
}
/* Field and record chrome (spec-v4-inline-editing E2/E4/E5): the controls are
edit-mode-only islands inside the site's own elements — one bordered icon
language (44px targets stay on the bar, 24px here), hover/focus in the
accent, delete in the error colour. */
.edit-field-controls {
display: inline-flex;
align-items: center;
gap: 4px;
margin-left: 8px;
vertical-align: middle;
}
.edit-pencil,
.edit-item-control,
.edit-record-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 3px;
border: 1px solid var(--border);
border-radius: 4px;
background: var(--bg-surface);
color: var(--text-muted);
cursor: pointer;
}
.edit-pencil:hover,
.edit-item-control:hover,
.edit-record-btn:hover:not(:disabled) {
color: var(--accent);
border-color: var(--accent);
}
.edit-pencil:focus-visible,
.edit-item-control:focus-visible,
.edit-record-btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.edit-item-control:disabled,
.edit-record-btn:disabled {
opacity: 0.35;
cursor: default;
}
.edit-item-remove:hover,
.edit-record-btn.edit-record-remove:hover {
color: var(--error);
border-color: var(--error);
}
.edit-provenance {
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
color: var(--text-muted);
border: 1px dashed var(--border);
border-radius: 4px;
background: none;
padding: 2px 6px;
cursor: pointer;
}
.edit-provenance:hover {
color: var(--accent);
border-color: var(--accent);
}
.edit-field-error {
display: block;
font-size: 12px;
color: var(--error);
margin-top: 2px;
}
.edit-add-inline,
.edit-add-ghost {
display: inline-flex;
align-items: center;
gap: 5px;
border: 1px dashed var(--border-strong);
border-radius: 6px;
background: transparent;
color: var(--text-muted);
padding: 6px 10px;
cursor: pointer;
}
.edit-add-inline:hover,
.edit-add-ghost:hover {
color: var(--accent);
border-color: var(--accent);
border-style: solid;
}
.edit-add-ghost-card {
justify-content: center;
width: 100%;
min-height: 160px;
border-radius: 12px;
}
/* A record whose box hosts the controls (cards, timeline entries, sections)
and a grid card whose body is a link (wrapped in a shell) both float the
controls at the top-right corner of the record. Elsewhere — the project
detail header — they stay in flow. */
.edit-record-host,
.edit-record-shell {
position: relative;
}
.edit-record-controls {
display: inline-flex;
gap: 4px;
}
.edit-record-host > .edit-record-controls,
.edit-record-shell > .edit-record-controls {
position: absolute;
top: 8px;
right: 8px;
z-index: 30;
}
/* Record settings dialog (E2): the structure fields of one record —
featured, section list, timeline variant, logo. */
.record-settings {
position: fixed;
top: 80px;
left: 50%;
transform: translateX(-50%);
z-index: 960;
width: min(560px, calc(100vw - 32px));
max-height: min(70vh, 640px);
overflow-y: auto;
background: var(--bg-elevated);
border: 1px solid var(--border-strong);
border-radius: 10px;
padding: 14px 16px;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.record-settings-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.record-settings-title {
font-weight: 600;
}
.record-settings-close {
border: 1px solid var(--border);
border-radius: 4px;
background: none;
color: var(--text-muted);
font-size: 16px;
line-height: 1;
padding: 2px 8px;
cursor: pointer;
}
.record-settings-close:hover {
color: var(--error);
border-color: var(--error);
}
.record-settings-group-title {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
margin: 12px 0 6px;
}
.record-settings-field {
display: flex;
align-items: center;
gap: 8px;
margin: 8px 0;
}
.record-settings-field input {
background: var(--bg-surface);
color: inherit;
border: 1px solid var(--border);
border-radius: 4px;
padding: 4px 8px;
min-width: 220px;
}
.record-settings-list {
list-style: none;
display: grid;
gap: 6px;
margin: 0;
padding: 0;
}
.record-settings-row {
display: flex;
align-items: center;
gap: 8px;
border: 1px solid var(--border);
border-radius: 6px;
padding: 6px 8px;
}
.record-settings-row select {
background: var(--bg-surface);
color: inherit;
border: 1px solid var(--border);
border-radius: 4px;
padding: 3px 6px;
}
.record-settings-id {
font-size: 12px;
color: var(--text-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 220px;
}
/* Field-by-field conflict view (E8). */
.edit-bar-conflict-fields {
list-style: none;
margin: 8px 0 0;
padding: 0;
display: grid;
gap: 6px;
}
.edit-bar-conflict-fields li {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}
.edit-bar-conflict-side {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-muted);
}
@media (max-width: 768px) {
.edit-bar-actions {
margin-left: 0;
}
}