@import url('https://fonts.googleapis.com/css2?family=Fragment+Mono:ital@0;1&display=swap');

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #111;
  --line: #2a2a2a;
  --text: #e0e0e0;
  --muted: #a0a0a0;
  --accent: #4a9eff;
  font-family: 'Fragment Mono', monospace;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: #fff; line-height: 1.3; }
h1 { font-size: 38px; font-weight: 600; margin-bottom: 22px; }
h2 { font-size: 26px; font-weight: 600; margin-bottom: 0; }
h3 { font-size: 18px; }
p { margin-bottom: 20px; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #1a1a1a; }
.nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-weight: 600; font-size: 18px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav-links a { padding-block: 25px; position: relative; color: var(--muted); }
.nav-links a:hover, .nav-links [aria-current] { color: #fff; }
.nav-links [aria-current]:after { content: ''; position: absolute; bottom: 15px; left: 0; right: 0; height: 2px; background: var(--accent); }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 65px; align-items: start; padding: 65px 0; }
.hero-description { max-width: 530px; font-size: 16px; line-height: 1.8; }
.hero-description + .hero-description { color: var(--muted); }
.actions { display: flex; align-items: center; gap: 26px; margin-top: 28px; font-size: 14px; }
.button { display: inline-block; background: #e0e0e0; color: #0a0a0a; padding: 10px 18px; border: 1px solid #e0e0e0; }
.button:hover { color: #0a0a0a; background: #fff; border-color: #fff; }
.text-link { font-size: 13px; color: var(--accent); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.profile-summary { padding: 25px; border: 1px solid var(--line); background: var(--panel); }
.profile-summary h2 { font-size: 18px; margin-bottom: 22px; }
.profile-summary dl { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.5fr); gap: 16px 20px; margin: 0; font-size: 13px; }
.profile-summary dt { color: var(--muted); }
.profile-summary dd { margin: 0; }
.muted { color: var(--muted); }
.section { padding: 42px 0 48px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.section-description { color: var(--muted); font-size: 14px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); line-height: 1.6; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); }
.project-primary::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.project-primary:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.project-links a { position: relative; z-index: 2; }
.project-card:hover { border-color: #555; }
.art-link { display: block; border-bottom: 1px solid var(--line); }
.project-art { display: block; width: 100%; aspect-ratio: 360 / 190; color: #8abeb0; stroke: #608d7f; stroke-width: .7; fill: #a1c9bb; background: #0a0f0d; }
.project-art line { opacity: .35; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.card-body h3 { margin: 12px 0 14px; line-height: 1.4; }
.card-body h3 span { color: var(--muted); }
.card-body p { font-size: 13px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.card-body .tags { margin-top: auto; }
.tag { font-size: 11px; padding: 3px 7px; border: 1px solid #333; color: #b4b4b4; line-height: 1.4; }
.project-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--accent); }
.empty-state { padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.employment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.employment-card { min-width: 0; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); background: var(--panel); }
.employment-card header { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.employment-header-content { min-width: 0; }
.experience-logo { display: block; flex: 0 0 auto; width: 150px; height: 54px; object-fit: contain; object-position: center; background: #fff; padding: 6px 10px; }
.employment-card .eyebrow { margin-bottom: 14px; }
.employment-card h3 { margin-bottom: 12px; line-height: 1.45; }
.employment-organization { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.employment-identity { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.employment-identity .experience-logo { width: 110px; height: 44px; }
.employment-card > p { color: var(--muted); font-size: 14px; }
.employment-card .tags { margin-top: auto; padding-top: 24px; }
.employment-link { display: flex; flex-wrap: wrap; gap: 16px 22px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
@media (max-width: 800px) {
  .employment-grid { grid-template-columns: 1fr; }
  .employment-card { padding: 22px; }
  .employment-card header { gap: 14px; }
  .experience-logo { width: 110px; height: 46px; }
}
.empty-state p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.activity-grid { display: grid; grid-template-columns: 1fr; }
.activity-card { padding: 26px; border: 1px solid var(--line); background: var(--panel); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.card-heading h3 { font-size: 18px; margin: 0; }
.card-heading a { font-size: 12px; color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
.stats strong { font-weight: normal; font-size: 30px; display: block; color: #eee; line-height: 1.3; overflow-wrap: anywhere; }
.stats span { font-size: 12px; color: var(--muted); }
.status { font-size: 12px; color: var(--muted); margin: 20px 0 0; }
.activity-card > .muted { font-size: 13px; }
.about { padding-bottom: 55px; }
.about h2 { margin-bottom: 23px; }
.about > p { max-width: 880px; font-size: 14px; line-height: 1.9; }
.kieran-wrap { position: relative; display: inline-block; white-space: nowrap; }
.kieran { -webkit-appearance: none; appearance: none; display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #fff; -webkit-text-fill-color: currentColor; font: inherit; line-height: inherit; text-align: inherit; vertical-align: baseline; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.kieran::-moz-focus-inner { padding: 0; border: 0; }
.kieran.is-blushing { animation: kieran-blush 1.5s ease-out; }
.kieran-heart { position: absolute; z-index: 1; left: 50%; top: 30%; width: 10px; height: 10px; fill: #f28bb6; pointer-events: none; opacity: 0; animation: kieran-float 950ms ease-out forwards; }
@keyframes kieran-blush { from { color: #f28bb6; } to { color: #fff; } }
@keyframes kieran-float {
  0% { transform: translate(-50%, 0) scale(.5); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translate(calc(-50% + var(--heart-x)), var(--heart-y)) scale(1); opacity: 0; }
}
@keyframes kieran-heart-fade { from { opacity: .9; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .kieran-heart { transform: translate(calc(-50% + var(--heart-x)), var(--heart-y)); animation: kieran-heart-fade 950ms ease-out forwards; }
}
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 45px; margin-top: 30px; }
.experience-grid h3 { font-size: 16px; margin-bottom: 12px; }
.experience-grid p { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.footer { border-top: 1px solid var(--line); padding-block: 28px 38px; font-size: 12px; display: flex; justify-content: space-between; gap: 24px; }
.footer > div { display: flex; gap: 24px; align-items: flex-start; }
.page-intro { padding: 55px 0 30px; max-width: 780px; }
.page-intro > p:last-child { color: var(--muted); }
.portfolio-grid { row-gap: 26px; }
.archive-note { font-size: 13px; color: var(--muted); padding-block: 30px 40px; }
.blog-tools { display: flex; justify-content: space-between; gap: 25px; margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 6px; }
.filters button { border: 1px solid var(--line); color: var(--muted); background: var(--panel); padding: 8px 13px; font-size: 13px; }
.filters button[aria-pressed=true] { background: var(--text); color: var(--bg); border-color: var(--text); }
.search input { width: 230px; background: var(--panel); border: 1px solid #444; padding: 9px 12px; color: var(--text); font-size: 13px; border-radius: 0; }
.search input::placeholder { color: var(--muted); }
#post-list { min-height: 200px; margin-bottom: 25px; }
#no-results { margin-bottom: 50px; }
#filter-status { margin-bottom: 35px; }
.post-row { display: grid; grid-template-columns: 150px 1fr; gap: 25px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-row h3 { margin-bottom: 12px; }
.post-row p { color: var(--muted); font-size: 14px; }
.post-meta { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.post-meta time, .read-time { color: var(--muted); font-size: 12px; }
.import-label { display: block; color: #d7b46a; font-size: 10px; line-height: 1.45; text-transform: uppercase; letter-spacing: .7px; }
.read-time { margin-left: 6px; }
.article { max-width: 780px; margin: 50px auto 80px; }
.article-header { padding-block: 35px; border-bottom: 1px solid var(--line); margin-bottom: 35px; }
.article h1 { overflow-wrap: anywhere; }
.lede { color: var(--muted); }
.prose { line-height: 1.9; overflow-wrap: anywhere; }
.prose h2 { font-size: 25px; margin: 40px 0 20px; }
.prose h3 { margin-top: 30px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose img { max-width: 100%; height: auto; }
.prose pre { padding: 20px; background: #151515; border: 1px solid var(--line); overflow-x: auto; line-height: 1.6; font-size: 13px; }
.prose code { background: #191919; padding: 2px 4px; }
.prose pre code { padding: 0; }
.prose blockquote { border-left: 3px solid var(--accent); margin-left: 0; padding-left: 24px; color: var(--muted); }
.topology-figure { margin: 28px 0; }
.topology-scroll { overflow-x: auto; border: 1px solid var(--line); background: #0e0e0e; }
.topology-scroll img { display: block; width: 100%; min-width: 760px; height: auto; }
.topology-scroll .writeup-image { min-width: 0; }
.topology-scroll:focus-visible { outline-offset: 3px; }
.topology-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .85rem; }
.embedded-report { display: block; width: 100%; height: 760px; margin: 28px 0 12px; border: 1px solid var(--line); background: #111; }
.prose table { display: block; overflow: auto; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 14px; }
.skip { position: absolute; left: 20px; top: -100px; background: var(--text); color: var(--bg); padding: 10px; z-index: 5; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .hero { gap: 30px; grid-template-columns: 1fr 1fr; }
  .profile-summary { padding: 20px; }
  .profile-summary dl { display: block; }
  .profile-summary dt { margin-top: 16px; margin-bottom: 5px; }
  .profile-summary dt:first-child { margin-top: 0; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .nav { flex-direction: column; align-items: flex-start; padding-top: 18px; gap: 0; }
  .nav-links { gap: 8px; width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .nav-links a { padding-block: 18px; font-size: 12px; }
  .nav-links [aria-current]:after { bottom: 8px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero { grid-template-columns: 1fr; padding: 36px 0 40px; gap: 30px; }
  .hero-description { font-size: 15px; }
  .actions { gap: 16px 22px; font-size: 13px; flex-wrap: wrap; }
  .profile-summary dl { grid-template-columns: 80px 1fr; }
  .profile-summary dl { display: block; }
  .profile-summary dt { margin-top: 14px; }
  .profile-summary dt:first-child { margin-top: 0; }
  .profile-summary dd { margin-bottom: 10px; }
  .section { padding: 32px 0 38px; }
  .section-heading { gap: 12px; flex-wrap: wrap; }
  .section-heading > .text-link { font-size: 12px; white-space: nowrap; }
  .project-grid, .activity-grid, .experience-grid { grid-template-columns: 1fr; }
  .project-art { max-height: 180px; }
  .card-heading { flex-direction: row; flex-wrap: wrap; }
  .footer { flex-direction: column; gap: 20px; }
  .footer > div { gap: 22px; flex-wrap: wrap; }
  .page-intro { padding-top: 36px; }
  .blog-tools { flex-direction: column; gap: 16px; }
  .search input { width: 100%; }
  .filters button { flex: 1; padding-inline: 10px; }
  .post-row { grid-template-columns: 1fr; gap: 12px; }
  .post-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .post-meta .import-label { order: 3; flex-basis: 100%; max-width: 42ch; }
  .post-meta time { margin-left: auto; }
  .employment-card, .activity-card { padding: 20px; }
  .employment-identity { gap: 12px; }
  .employment-identity .experience-logo { width: 88px; height: 38px; padding: 4px 6px; }
  .embedded-report { height: 65vh; min-height: 360px; }
  .prose h2 { font-size: 22px; }
  .article-header h1 { font-size: clamp(25px, 7vw, 32px); }
  .filters { flex-wrap: wrap; }
  .filters button, .search input { min-height: 44px; }
  .footer a { padding-block: 8px; }
  .article { margin-top: 30px; }
  .article-header { padding-top: 30px; }
  .empty-state { padding: 22px; }
  .stats strong { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.contributions { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); min-width: 0; }
.contributions h3 { font-size: 16px; }
.activity-card { min-width: 0; }
.contribution-scroll { overflow-x: auto; padding: 12px; background: #0a0a0a; }
.contribution-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.contribution-scroll img { display: block; width: 100%; min-width: 663px; height: auto; filter: invert(1) hue-rotate(180deg); }

.project-date { display: block; margin: -4px 0 16px; color: var(--muted); font-size: 12px; }

.project-image { display: block; width: 100%; aspect-ratio: 360 / 190; object-fit: contain; background: #0a0f0d; }
.hero > *, .post-row > *, .card-body { min-width: 0; }
.card-body h3, .card-body p, .profile-summary dd { overflow-wrap: anywhere; }
