*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } :root { --font: system-ui, -apple-system, sans-serif; --mono: ui-monospace, 'SF Mono', monospace; --fs-s: 11px; --fs: 13px; --fs-l: 16px; --lh: 1.4; --sp: 4px; --sp-2: 8px; --sp-3: 16px; --sp-4: 32px; /* palette — deep slate blues inspired by RoR */ --bg: #171c2b; --fg: #b8bfcf; --fg-2: #5e6785; --border: #2a3150; --accent: #5ec4d4; --accent-2: #d4a843; --surface: #1e2438; --surface-2: #252c42; /* shapes */ --r: 2px; --notch: 8px; --border-w: 1px; color-scheme: dark; } @media (prefers-color-scheme: light) { :root { --bg: #dde1eb; --fg: #1a1e2e; --fg-2: #5e6785; --border: #b0b8cf; --accent: #2a7a8a; --accent-2: #9a7820; --surface: #ccd2e0; --surface-2: #c0c8d8; color-scheme: light; } } html { font-family: var(--font); font-size: var(--fs); line-height: var(--lh); color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; } body { max-width: 700px; margin: 0 auto; padding: var(--sp-4) var(--sp-3); } body.wide { max-width: none; } .container { max-width: 700px; margin: 0 auto; } a { color: var(--accent); text-decoration: none; } a:hover { color: var(--accent-2); } code, pre { font-family: var(--mono); font-size: var(--fs-s); } pre { background: var(--surface); padding: var(--sp-2) var(--sp-3); overflow-x: auto; border: var(--border-w) solid var(--border); border-radius: var(--r); } h1 { font-size: var(--fs-l); font-weight: 600; letter-spacing: 0.02em; } h2, h3, h4, h5, h6 { font-size: var(--fs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; } img { max-width: 100%; height: auto; display: block; } hr { border: none; border-top: var(--border-w) solid var(--border); margin: var(--sp-3) 0; } /* === Panels === */ .panel { background: var(--surface); border: var(--border-w) solid var(--border); padding: var(--sp-3); position: relative; clip-path: polygon( 0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)) ); } .panel::after { content: ''; position: absolute; inset: 3px; border: var(--border-w) solid color-mix(in oklch, var(--border) 50%, transparent); pointer-events: none; clip-path: polygon( 0 0, calc(100% - calc(var(--notch) - 3px)) 0, 100% calc(var(--notch) - 3px), 100% 100%, calc(var(--notch) - 3px) 100%, 0 calc(100% - calc(var(--notch) - 3px)) ); } .panel-sm { background: var(--surface-2); border: var(--border-w) solid var(--border); padding: var(--sp-2) var(--sp-3); clip-path: polygon( 0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px) ); } .panel-accent { border-top: 2px solid var(--accent); } /* === Header stats === */ .header-stats { color: var(--fg-2); font-size: var(--fs-s); margin-top: var(--sp); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; display: flex; gap: var(--sp); } .sep { color: var(--border); } /* === Hero === */ .hero { display: block; position: relative; height: 280px; margin-bottom: var(--sp-3); overflow: hidden; border: var(--border-w) solid var(--border); border-top: 2px solid var(--accent-2); clip-path: polygon( 0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)) ); } .hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.4s ease; } .hero:hover img { transform: scale(1.03); filter: brightness(1.1); } .hero-scanlines { position: absolute; inset: 0; background: repeating-linear-gradient( 0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.05) 2px, rgba(0, 0, 0, 0.05) 4px ); pointer-events: none; z-index: 1; } .hero-corners { position: absolute; inset: 0; pointer-events: none; z-index: 3; } .hc { position: absolute; width: 16px; height: 16px; border-color: var(--accent); border-style: solid; border-width: 0; } .hc-tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; } .hc-tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; } .hc-bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; } .hc-br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; } .hero-info { position: absolute; bottom: 0; left: 0; right: 0; padding: var(--sp-3); background: linear-gradient(transparent, var(--bg)); z-index: 2; } .hero-tag { font-family: var(--mono); font-size: var(--fs-s); text-transform: uppercase; letter-spacing: 0.1em; } .hero-info h2 { font-size: var(--fs-l); color: var(--fg); margin-top: var(--sp); } /* === Divider === */ .divider { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-3) 0; color: var(--fg-2); font-size: var(--fs-s); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; } .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); } /* === Mosaic grid === */ .mosaic { display: grid; display: grid-lanes; /* progressive enhancement — Safari TP 234+ */ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: 180px; /* grid fallback: fixed rows */ grid-auto-flow: dense; /* grid fallback: fill gaps */ gap: var(--sp-2); margin-bottom: var(--sp-3); } .tile { display: block; position: relative; overflow: hidden; border: var(--border-w) solid var(--border); transition: transform 0.15s ease; clip-path: polygon( 0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px) ); } .tile:hover { transform: translateY(-2px); z-index: 1; } /* Shot tiles */ .tile-shot { background: var(--surface); } .tile-shot img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.2s ease; } .tile-shot:hover img { filter: brightness(1.15); } .tile-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: var(--sp) var(--sp-2); background: linear-gradient(transparent, var(--bg)); display: flex; gap: var(--sp); align-items: baseline; font-size: var(--fs-s); font-family: var(--mono); color: var(--fg); } .tile-id { color: var(--accent-2); } .tile-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tile-w { grid-column: span 2; } .tile-t { grid-row: span 2; } /* Hero tiles — 2-col feature in mosaic */ .tile-hero { grid-column: span 2; grid-row: span 2; border-top: 2px solid var(--accent-2); clip-path: polygon( 0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)) ); } /* Text tiles — posts & lists */ .tile-text { background: var(--surface-2); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3); display: flex; flex-direction: column; gap: var(--sp); color: var(--fg); border-left: 2px solid var(--tile-accent, var(--accent)); } .tile-text:hover { color: var(--fg); } .tile-watermark { position: absolute; top: -4px; right: 6px; font-family: var(--mono); font-size: 56px; font-weight: 700; line-height: 1; color: var(--border); opacity: 0.4; pointer-events: none; } .tile-tag { font-family: var(--mono); font-size: var(--fs-s); text-transform: uppercase; letter-spacing: 0.05em; } .tile-text h3 { font-size: var(--fs); font-weight: 500; line-height: var(--lh); flex: 1; } .tile-excerpt { color: var(--fg-2); font-size: var(--fs-s); line-height: var(--lh); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .tile-text time { color: var(--fg-2); font-family: var(--mono); font-size: var(--fs-s); } /* type-specific colors */ .type-post { color: var(--accent); } .type-shot { color: var(--accent-2); } .type-list { color: #7b8adf; } /* === Log === */ .log { background: var(--surface); border: var(--border-w) solid var(--border); padding: var(--sp) 0; margin-bottom: var(--sp-4); clip-path: polygon( 0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)) ); } .log-row { display: flex; gap: var(--sp-2); align-items: baseline; padding: 3px var(--sp-2); color: var(--fg); font-size: var(--fs-s); font-family: var(--mono); transition: background 0.1s; } .log-row:hover { background: var(--surface-2); text-decoration: none; color: var(--accent); } .log-id { color: var(--fg-2); min-width: 3ch; text-align: right; } .log-type { text-transform: uppercase; min-width: 4ch; letter-spacing: 0.05em; } .log-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .log-date { color: var(--fg-2); } /* === Fragment detail header === */ .frag-header { margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 2px solid var(--accent); } .frag-meta { color: var(--fg-2); font-size: var(--fs-s); margin-top: var(--sp); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; } /* === Gallery — shot detail images === */ .gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin-bottom: var(--sp-3); } .gallery-full { grid-column: 1 / -1; } .gallery-item { position: relative; overflow: hidden; border: var(--border-w) solid var(--border); clip-path: polygon( 0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px) ); } .gallery-item img { width: 100%; height: auto; display: block; } .gallery-idx { position: absolute; top: var(--sp); right: var(--sp-2); font-family: var(--mono); font-size: var(--fs-s); color: var(--fg); background: color-mix(in srgb, var(--bg) 80%, transparent); padding: 2px 6px; } /* scrollbar */ :root { scrollbar-color: var(--surface-2) var(--bg); scrollbar-width: thin; } /* === Responsive === */ @media (max-width: 480px) { .tile-w, .tile-hero { grid-column: span 1; } .gallery { grid-template-columns: 1fr; } .hero { height: 200px; } }