:root { --dim: #6b6e75; --mid: #a4a7ae; }

body { font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace; font-size: 17px; }

.page { width: min(380px, calc(100vw - 48px)); }
.page h1 { font-size: 1.35rem; font-weight: 500; letter-spacing: 0; }
.page h2 { margin: 0; font-size: 17px; font-weight: 500; color: var(--fg); }
.page p { margin: 0; }

.tagline { margin-top: 6px !important; font-size: 15px; color: var(--dim); }
.head { margin-bottom: 72px; }

.list { display: grid; gap: 28px; }
.group { display: grid; gap: 14px; }
.group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--mid); }
.group small { display: block; margin-top: 2px; font-size: 14px; color: var(--dim); }

.menu { display: grid; gap: 28px; justify-items: start; }
.menu a { position: relative; isolation: isolate; }
.menu a::before { content: ""; position: absolute; z-index: -1; inset: -6px -20px -6px -17px; transform: skewX(-20deg) scaleX(0); transform-origin: left center; opacity: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .2s; border: 0; background: #06202f; box-shadow: inset 0 0 14px 1px rgba(56, 168, 232, .95), inset 0 0 3px rgba(120, 205, 255, .9); }
.menu a::after { content: ""; position: absolute; inset: -6px auto -6px -17px; width: 2px; background: linear-gradient(to bottom, transparent 2px, currentColor 2px calc(100% - 2px), transparent calc(100% - 2px)); transform: skewX(-20deg); transform-origin: left center; }
.menu a:hover::before, .menu a:focus-visible::before { transform: skewX(-20deg) scaleX(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .menu a::before { transition: opacity .15s; } }

a { color: var(--mid); text-decoration: none; transition: color .15s; }
a:hover, a:focus-visible { color: var(--fg); }

.foot { margin-top: 72px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; gap: 26px; font-size: 15px; align-items: center; justify-content: center; }
.foot a { color: var(--dim); }
.foot a:hover { color: var(--fg); }

.back { display: inline-block; margin-bottom: 28px; font-size: 15px; color: var(--dim); }
.page:not(.page--wide) > .back { margin-left: calc((min(380px, 100vw - 48px) - min(1000px, 100vw - 48px)) / 2); }

.page { margin-inline: auto; }

@media (max-width: 600px) {
  .page { text-align: center; }
  .menu, .group, .group ul { justify-items: center; }
  .foot { justify-content: center; }
  .head { margin-bottom: 56px; }
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(45% 50% at 50% 50%, rgba(0, 0, 0, .4), rgba(0, 0, 0, .34) 15%, rgba(0, 0, 0, .25) 30%, rgba(0, 0, 0, .15) 48%, rgba(0, 0, 0, .07) 66%, rgba(0, 0, 0, .02) 84%, transparent 100%);
}

.ico { display: inline-flex; align-items: center; gap: 12px; }
.ico svg { flex: none; }

.page--wide { width: min(1000px, calc(100vw - 48px)); padding: 48px 0; }
.head--center { text-align: center; margin-bottom: 48px; }
.head--center h1 { font-size: 2rem; }

.timeline { --gap: 44px; --step: 190px; --h: 290px; --cut: 24px; --line: rgba(255, 255, 255, .32); --blue: #3b82f6;
  --bg-l: linear-gradient(var(--line), var(--line)) var(--cut) 0 / calc(100% - var(--cut)) 2px no-repeat, linear-gradient(var(--line), var(--line)) 0 var(--cut) / 2px calc(100% - var(--cut)) no-repeat, linear-gradient(to bottom right, transparent calc(50% - 1px), var(--line) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / var(--cut) var(--cut) no-repeat;
  --bg-r: linear-gradient(var(--line), var(--line)) 0 0 / calc(100% - var(--cut)) 2px no-repeat, linear-gradient(var(--line), var(--line)) 100% var(--cut) / 2px calc(100% - var(--cut)) no-repeat, linear-gradient(to bottom left, transparent calc(50% - 1px), var(--line) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 100% 0 / var(--cut) var(--cut) no-repeat; position: relative; display: grid; padding-bottom: 40px; text-align: left; }
.timeline::before { content: ""; position: absolute; left: calc(50% - 1.5px); top: 0; bottom: 0; width: 3px; background: var(--blue); }

.entry { position: relative; box-sizing: border-box; display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-content: start; align-items: start; width: calc(50% - var(--gap)); height: var(--h); padding: 22px 0 0 22px; border-top: 2px solid transparent; border-left: 2px solid transparent; background: var(--bg-l); background-origin: border-box; margin-left: calc(50% + var(--gap)); }
.entry + .entry { margin-top: calc(var(--step) - var(--h)); }
.entry::before { content: ""; position: absolute; z-index: 1; top: -16px; left: calc(-1 * var(--gap) - 17px); width: 30px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 24 24'%3E%3Cpolygon points='3,1.5 14,8 3,14.5' fill='%23090a15' stroke='%23090a15' stroke-width='6' stroke-linejoin='round'/%3E%3Cpolygon points='3,1.5 14,8 3,14.5' fill='%233b82f6' stroke='%233b82f6' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.entry::after { content: ""; position: absolute; top: -2px; left: calc(-1 * var(--gap) + 14px); width: calc(var(--gap) + var(--cut) - 16px); border-top: 2px dashed var(--line); }

.entry:nth-child(even) { grid-template-columns: 1fr auto; margin-left: 0; text-align: right; padding: 22px 22px 0 0; border-left: 0; border-right: 2px solid transparent; background: var(--bg-r); background-origin: border-box; }
.entry:nth-child(even) .thumb { grid-column: 2; grid-row: 1; }
.entry:nth-child(even) .info { grid-column: 1; grid-row: 1; }
.entry:nth-child(even)::before { content: ""; position: absolute; z-index: 1; top: -16px; left: auto; right: calc(-1 * var(--gap) - 17px); width: 30px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 24 24'%3E%3Cpolygon points='13,1.5 2,8 13,14.5' fill='%23090a15' stroke='%23090a15' stroke-width='6' stroke-linejoin='round'/%3E%3Cpolygon points='13,1.5 2,8 13,14.5' fill='%233b82f6' stroke='%233b82f6' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.entry:nth-child(even)::after { left: auto; right: calc(-1 * var(--gap) + 14px); }

.thumb { flex: none; overflow: hidden; width: 170px; height: 170px; border-radius: 22px; border: 1px solid var(--dim); background: rgba(255, 255, 255, .03); display: block; transition: border-color .15s, transform .15s; }
.thumb:hover, .thumb:focus-visible { border-color: var(--fg); transform: translateY(-2px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info { display: grid; gap: 6px; }
.info h2 { font-size: 24px; line-height: 1.2; }
.info h2 a { color: var(--fg); }
.info h2 a:hover, .info h2 a:focus-visible { color: var(--mid); }
.info p { font-size: 17px; color: var(--mid); }
.entry > .desc { grid-column: 1 / -1; margin-top: 18px; font-size: 17px; color: var(--dim); }

@media (max-width: 700px) {
  .timeline { --gap: 22px; }
  .timeline::before { left: 6px; }
  .entry, .entry:nth-child(even) { grid-template-columns: auto 1fr; width: auto; height: auto; margin-left: calc(6px + var(--gap)); text-align: left; padding: 18px 0 0 16px; border-right: 0; border-left: 2px solid transparent; background: var(--bg-l); background-origin: border-box; column-gap: 16px; }
  .entry + .entry { margin-top: 28px; }
  .entry:nth-child(even) .thumb { grid-column: 1; }
  .entry:nth-child(even) .info { grid-column: 2; }
  .entry::before, .entry:nth-child(even)::before { left: calc(-1 * var(--gap) - 15.5px); right: auto; }
  .entry:nth-child(even)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 24 24'%3E%3Cpolygon points='3,1.5 14,8 3,14.5' fill='%23090a15' stroke='%23090a15' stroke-width='6' stroke-linejoin='round'/%3E%3Cpolygon points='3,1.5 14,8 3,14.5' fill='%233b82f6' stroke='%233b82f6' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .entry::after, .entry:nth-child(even)::after { left: calc(-1 * var(--gap) + 14px); right: auto; }
  .thumb { width: 96px; height: 96px; border-radius: 16px; }
  .info h2 { font-size: 20px; }
  .info p, .entry > .desc { font-size: 15px; }
  .head--center { text-align: center; }
}
.personal { --sky: #4a9fe0; --sky-bg: rgba(56, 140, 220, .18); --amber: #e08a2a; --amber-bg: rgba(184, 101, 15, .22); display: grid; gap: 72px; }
.psec { display: grid; gap: 36px; }
.psec > h2 { text-align: center; font-size: 1.2rem; font-weight: 500; color: var(--fg); }

.linkbox { justify-self: center; margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; font-size: 1.4rem; }
.linkbox svg { width: 26px; height: 26px; }
.linkbox .ico { gap: 18px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 22px 28px 26px; border: 1px solid rgba(74, 159, 224, .4); border-radius: 22px; background: rgba(9, 10, 21, .55); }
.card:not(:has(.card-icon)) { grid-template-columns: 1fr; }
.card-icon { align-self: start; margin-top: 34px; display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid var(--sky); border-radius: 16px; color: var(--sky); transition: border-color .15s, color .15s, transform .15s; }
.card-icon { overflow: hidden; }
.card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-icon:hover, .card-icon:focus-visible { color: var(--fg); border-color: var(--fg); transform: translateY(-2px); }
.card-body { display: flex; flex-direction: column; gap: 10px; }
.card-body p + .tags { margin-top: auto; }
.card-body h3 { margin: 0; font-size: 1.6rem; font-weight: 500; line-height: 1.2; }
.card-body h3 a { color: var(--fg); }
.card-body h3 a:hover, .card-body h3 a:focus-visible { color: var(--mid); }
.card-body p { font-size: 15px; color: var(--fg); opacity: .85; margin-bottom: 6px; }

.tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; justify-content: center; padding: 7px 14px 4px; font-size: 13px; line-height: 1; color: var(--sky); background: var(--sky-bg); border-radius: 5px; }
.tag--kind { color: var(--amber); background: var(--amber-bg); }

@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .card { text-align: left; }
  .linkbox { font-size: 1.15rem; }
  .card { grid-template-columns: 1fr; padding: 20px; }
  .card-icon { margin-top: 0; width: 64px; height: 64px; }
}

.info .links a { color: var(--mid); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); }
.info .links a:hover, .info .links a:focus-visible { color: var(--fg); }
