:root {
  color-scheme: dark;
  --paper: #1b1816;
  --ink: #f1e8df;
  --quiet: #c0afa2;
  --rule: #463c35;
  --rust: #efa276;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--mono); }
.frame { width: min(91%, 65rem); margin: auto; display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); column-gap: 3rem; min-height: 100svh; grid-template-rows: 1fr auto; }
header { grid-row: 1/3; border-right: 1px solid var(--rule); padding: 3.4rem 2rem 0 0; }
.mark { font-size: 2rem; line-height: 1; letter-spacing: -.12em; }
.mark span, h1 span, nav [aria-current], a { color: var(--rust); }
nav { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; margin-top: 2.25rem; font-size: .92rem; }
nav a, nav [aria-current] { padding-block: .3rem; }
nav a { text-decoration: none; color: var(--quiet); }
nav a:hover, a:hover { color: var(--ink); text-decoration: underline; }
nav [aria-current]::before { content: '['; }
nav [aria-current]::after { content: ']'; }
a { text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.skip { position: absolute; top: 0; left: 0; padding: .5rem; transform: translateY(-130%); background: var(--paper); }
.skip:focus { transform: none; }
main { min-width: 0; }
h1, h2, h3, p, ul { margin: 0; }
h1 { font-size: clamp(2.9rem, 5.6vw, 4.75rem); line-height: 1.12; font-weight: 500; letter-spacing: -.08em; }
.hero, .page-title { padding: 4rem 0 2.6rem; }
.intro { margin-top: 1.4rem; max-width: 37rem; }
.email { margin-top: 1.15rem; color: var(--quiet); font-size: .93rem; overflow-wrap: anywhere; }
.contacts { display: flex; flex-wrap: wrap; gap: .55rem 1.45rem; margin-top: .6rem; }
.contacts, article a { font-size: .92rem; }
.listing + .listing { margin-top: 1.9rem; }
.listing h2 { font-size: .92rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; padding-bottom: .8rem; border-bottom: 1px solid var(--quiet); }
.listing ul { list-style: none; padding: 0; }
.listing li { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
li strong { font-size: .98rem; font-weight: 500; }
li span, .meta, .stack, footer { color: var(--quiet); font-size: .85rem; }
li span { text-align: right; }
article { display: grid; grid-template-columns: .87fr 1.25fr; gap: 1.8rem; border-top: 1px solid var(--rule); padding: 2rem 0; }
article h2 { margin-top: .35rem; font-size: 1.65rem; line-height: 1.25; letter-spacing: -.055em; font-weight: 500; }
article h3 { font-size: 1rem; }
article p + p, article h3 + p { margin-top: .7rem; }
article .stack { margin: 1rem 0 .5rem; }
footer { grid-column: 2; border-top: 1px solid var(--rule); margin-top: 3.5rem; padding: 1.3rem 0 2rem; }
::selection { background: #974d2d; color: #fff; }
@media (max-width: 740px) {
  .frame { display: block; width: calc(100% - 2.75rem); }
  header { padding: 0; height: 4.8rem; border: 0; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; }
  nav { flex-direction: row; margin: 0; gap: 1.1rem; }
  .hero, .page-title { padding: 2.8rem 0 2.2rem; }
}
@media (max-width: 540px) {
  article { display: block; padding: 1.6rem 0; }
  article > div + div { margin-top: 1rem; }
  .listing li { align-items: flex-start; }
  nav { gap: .85rem; }
}
