/* Active site design. Historical styles are archived in backups/about/styles/. */

:root {
  color-scheme: dark;
  --display: 'Space Grotesk',Arial,sans-serif;
  --serif: 'Newsreader',Georgia,serif;
  --mono: 'DM Mono',monospace;
  --bg: #171525;
  --bg-soft: #201d32;
  --text: #f6f0e6;
  --muted: #bcb3cb;
  --line: #443d58;
  --subtle: #aa9fbf;
  --cyan: #a8e7c3;
  --violet: #b7a4f4;
  --heading: 'Chakra Petch', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 80% 30%, #30223e66, transparent 65%);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

::selection {
  background: var(--cyan);
  color: var(--bg);
}

.shell {
  margin-inline: auto;
  width: min(100% - 96px, 1180px);
}

.visually-hidden {
  position: absolute!important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  background: var(--cyan);
  color: var(--bg);
  padding: 12px 18px;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  height: 84px;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
}

.wordmark {
  justify-self: start;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  font-family: var(--heading);
  font-size: 23px;
  letter-spacing: -.025em;
}

.wordmark-dot {
  color: var(--cyan);
}

.wordmark-sub {
  font: 400 11px var(--mono);
  letter-spacing: 0;
  color: var(--violet);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.primary-nav a {
  position: relative;
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
  font-family: var(--display);
}

.primary-nav a:hover, .primary-nav a[aria-current=page] {
  color: var(--text);
}

.eyebrow, .section-number, .interior-count, .archive-date, .article-top, .article-end, .interior-end, .back-link {
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.slash {
  color: var(--violet);
  padding: 0 7px;
}

.signal {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 12px 1px 0;
  border-radius: 0;
  background: #f2c88d;
  box-shadow: 3px 3px 0 #6b553d;
}

.button-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  color: #09111c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s,transform .2s;
  padding: 13px 17px;
  gap: 24px;
  background: #f2c88d;
  box-shadow: 4px 4px 0 #665039;
}

.button-link:hover {
  transform: translateY(-2px);
  background: #ffdda7;
}

.button-link span {
  font-size: 18px;
  font-weight: 400;
}

.quiet-link, .inline-link {
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--subtle);
  padding-bottom: 8px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color .2s,border-color .2s;
}

.quiet-link:hover, .inline-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.quiet-link span, .inline-link span {
  font-size: 18px;
  line-height: 12px;
}

.section-number {
  color: var(--cyan);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-block: 30px 46px;
  color: var(--subtle);
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.footer-sep {
  color: var(--violet);
  padding: 0 8px;
}

.site-footer a {
  text-decoration: none;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--cyan);
}

.interior, .article-page {
  min-height: calc(100svh - 185px);
}

.interior-kicker, .article-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 31px 0;
}

.interior-count {
  color: var(--subtle);
}

.interior-header {
  padding: 56px 0 45px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 60px;
}

.interior-header h1 {
  line-height: .85;
  letter-spacing: -.095em;
  font-weight: 500;
  margin: 0;
  font-size: clamp(64px, 7vw, 100px);
}

.accent-period {
  color: var(--cyan);
}

.interior-header p {
  max-width: 355px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.archive-list {
  border-bottom: 1px solid var(--line);
}

.archive-entry a {
  display: grid;
  grid-template-columns: 160px minmax(0,1fr) 28px;
  gap: 30px;
  align-items: start;
  padding: 29px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.archive-entry a:hover .archive-title {
  color: var(--cyan);
}

.archive-date {
  padding-top: 11px;
  color: var(--subtle);
}

.archive-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.archive-title {
  font: 400 clamp(30px,3vw,44px)/1.1 var(--serif);
  transition: color .2s;
}

.archive-summary {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.archive-arrow {
  font-size: 22px;
  color: var(--cyan);
}

.interior-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 48px 0 70px;
}

.interior-end .inline-link {
  text-transform: uppercase;
}

.article-top .back-link {
  text-decoration: none;
  color: var(--muted);
}

.back-link:hover {
  color: var(--cyan);
}

.article-top .section-number {
  color: var(--subtle);
}

.article-layout {
  max-width: 840px;
  margin: auto;
}

.article-header {
  border-bottom: 1px solid var(--line);
  padding: 52px 0 35px;
}

.article-header .eyebrow {
  color: var(--cyan);
  margin: 0 0 22px;
}

.article-header h1 {
  font: 500 clamp(58px,7.2vw,98px)/.98 var(--display);
  margin: 0;
  font-size: clamp(38px, 4.2vw, 62px);
  letter-spacing: -.05em;
  line-height: 1.08;
}

.article-deck {
  line-height: 1.5;
  color: var(--muted);
  margin: 25px 0 0;
  max-width: 680px;
  font-size: 19px;
}

.article-body {
  max-width: 670px;
  margin: 36px auto 100px;
  font: 400 21px/1.7 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
}

.article-body p {
  margin: 0 0 1.4em;
}

.article-body h2 {
  font: 500 36px/1.15 var(--display);
  letter-spacing: -.05em;
  color: var(--text);
  margin: 1.9em 0 .65em;
}

.article-body a {
  color: var(--cyan);
  text-underline-offset: 4px;
}

.article-body blockquote {
  margin: 2em 0;
  padding-left: 22px;
  border-left: 2px solid var(--violet);
  color: var(--muted);
}

.article-body code {
  font: 14px var(--mono);
  color: var(--cyan);
}

.article-body pre {
  overflow-x: auto;
  background: var(--bg-soft);
  padding: 22px;
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.article-end {
  border-top: 1px solid var(--line);
  padding: 29px 0 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 65px;
}

.article-end>span span {
  color: var(--violet);
  margin-left: 8px;
}

.not-found {
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.not-found h1 {
  font-size: clamp(70px,10vw,130px);
  letter-spacing: -.08em;
  font-weight: 500;
  margin: 20px 0;
}

.not-found p {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 35px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 36px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.github-link:hover, .github-link:focus-visible {
  color: var(--cyan);
}

.language-nav {
  display: flex;
  gap: 4px;
  font: 11px var(--mono);
}

.language-nav a {
  padding: 8px 5px;
  text-decoration: none;
  color: var(--muted);
}

.language-nav a[aria-current], .language-nav a:hover {
  color: var(--cyan);
}

.language-nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.primary-nav a:hover::after, .primary-nav a:focus-visible::after, .primary-nav a[aria-current=page]::after {
  content: '';
  position: absolute;
  left: calc(50% - 2.5px);
  bottom: -13px;
  width: 5px;
  height: 5px;
  border-radius: 0;
  background: var(--cyan);
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding-block: 80px 88px;
  border-bottom: 1px solid var(--line);
}

.home-hero::before, .home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.home-hero::before {
  background: url('images/pixel-gaming-room.svg') center / cover no-repeat;
  image-rendering: pixelated;
}

.home-hero::after {
  background: linear-gradient(90deg, #171525f5 0%, #171525d9 36%, #17152566 70%, #17152526 100%), linear-gradient(0deg, var(--bg) 0%, #17152500 28%, #17152500 80%, #17152566 100%);
}

.home-intro .eyebrow {
  margin: 0 0 28px;
  font-size: 12px;
}

.home-intro h1 {
  margin: 0 0 25px;
  font-family: var(--heading);
  font-size: clamp(48px, 5.3vw, 76px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.home-intro h1 em {
  font: normal 600 1em var(--heading);
  color: var(--cyan);
  letter-spacing: -.035em;
  text-shadow: none;
}

.home-lead {
  max-width: 540px;
  font-size: 19px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 29px;
  flex-wrap: wrap;
}

.home-section {
  padding-block: 50px 58px;
  border-bottom: 1px solid var(--line);
}

.home-section-head {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: end;
  margin-bottom: 28px;
}

.home-section-head .eyebrow {
  margin: 0 0 13px;
  color: var(--violet);
  font-size: 12px;
}

.home-section h2 {
  font-family: var(--heading);
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0;
  font-weight: 600;
}

.project-grid {
  display: grid;
  gap: 24px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.note-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  box-shadow: 4px 4px 0 #100e1c;
}

.note-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px;
  text-decoration: none;
  position: relative;
}

.note-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 10px var(--mono);
  color: var(--subtle);
  text-transform: uppercase;
}

.note-card h3 {
  font: 400 clamp(26px, 2.3vw, 33px)/1.13 var(--serif);
  letter-spacing: -.02em;
  margin: 24px 0 15px;
  max-width: 440px;
}

.note-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 26px;
}

.note-action {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font: 11px var(--mono);
  color: var(--cyan);
}

.note-action > span:last-child {
  margin-left: auto;
  font-size: 17px;
}

.selection-cursor {
  opacity: 0;
  transition: opacity .15s;
}

.note-card:has(a:hover), .note-card:has(a:focus-visible) {
  border-color: var(--cyan);
  background: #2a253e;
}

.note-card a:hover .selection-cursor, .note-card a:focus-visible .selection-cursor {
  opacity: 1;
}

.work-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 30px;
  padding: 34px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #242035;
  box-shadow: 4px 4px 0 #100e1c;
}

.work-tool {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.work-tool:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.work-card:has(.work-tool:hover), .work-card:has(.work-tool:focus-visible) {
  border-color: var(--cyan);
  background: #2a253e;
}

.work-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid #6c5b84;
  border-radius: 0;
  background: #322b49;
  color: #f2c88d;
}

.work-icon svg {
  width: 42px;
  height: 42px;
  shape-rendering: crispEdges;
}

.work-source {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 18px;
  align-items: center;
  align-self: end;
  padding: 12px 16px;
  border: 1px solid #6c5b84;
  color: var(--cyan);
  text-decoration: none;
  font: 11px var(--mono);
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.work-source span:last-child {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.work-source .github-icon {
  width: 20px;
  height: 20px;
}

.work-source:hover, .work-source:focus-visible {
  background: var(--cyan);
  color: var(--bg);
}

.work-source:hover span:first-child {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.work-info .eyebrow {
  color: var(--violet);
  font-size: 12px;
  margin: 0 0 15px;
}

.work-info h3 {
  font-family: var(--heading);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.025em;
  margin: 0 0 15px;
}

.work-info > p:not(.eyebrow) {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 22px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-tags li {
  font: 10px var(--mono);
  color: var(--muted);
  padding: 7px 9px;
  border: 1px solid #554867;
  background: #302840;
}

.home-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
}

.home-contact h2 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.03em;
  margin: 0 0 9px;
}

.home-contact p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.home-contact .inline-link {
  flex: none;
  color: var(--cyan);
}

h1, h2, h3 {
  font-family: var(--heading);
}

.button-link:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #665039;
}

.eyebrow {
  font-family: var(--mono);
  letter-spacing: .06em;
}

.menu-trigger, .menu-close {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.menu-trigger {
  display: none;
}

.menu-trigger:hover, .menu-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(340px, 88vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: max(20px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu[open] {
  display: flex;
  flex-direction: column;
  animation: menu-enter .2s ease-out;
}

.mobile-menu:not([open]) {
  display: none;
}

.mobile-menu::backdrop {
  background: #100e1cb3;
  backdrop-filter: blur(4px);
}

.menu-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font: 600 22px var(--heading);
}

.menu-close {
  flex-shrink: 0;
  font-size: 30px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 28px;
}

.drawer-nav a {
  display: block;
  padding: 14px 16px;
  font: 500 22px var(--display);
  text-decoration: none;
  border-left: 2px solid transparent;
  color: var(--muted);
}

.drawer-nav a:hover, .drawer-nav a[aria-current=page] {
  color: var(--cyan);
  background: #a8e7c30a;
  border-left-color: var(--cyan);
}

.drawer-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.drawer-controls .language-nav {
  font-size: 13px;
  gap: 8px;
}

.drawer-controls .language-nav a, .drawer-controls .github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

@keyframes menu-enter {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (max-width:1000px) {

  .wordmark-sub {
    display: none;
  }

  .shell {
    width: calc(100% - 56px);
  }

  .home-intro h1 {
    font-size: 57px;
  }

  .work-card {
    gap: 28px;
  }
}

@media (max-width:800px) {
  .menu-ready .site-header {
    height: 72px;
    padding-block: 0;
  }

  .site-header .primary-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .site-header .header-controls {
    display: flex;
  }
  .primary-nav {
    grid-column: 1/-1;
    grid-row: 2;
    padding: 0 0 19px;
  }

  .site-header {
    height: auto;
    padding-block: 14px;
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .menu-ready .site-header .header-controls, .menu-ready .site-header .primary-nav {
    display: none;
  }

  .wordmark {
    font-size: clamp(18px, 4.8vw, 23px);
  }

  .home-hero {
    min-height: 520px;
    padding-block: 64px;
  }

  .home-hero::before {
    background-position: 78% center;
  }

  .home-hero::after {
    background: linear-gradient(90deg, #171525eb, #171525a6), linear-gradient(0deg, var(--bg), #17152500 40%);
  }

  .home-intro h1 {
    font-size: clamp(43px, 7.5vw, 62px);
  }

  .home-lead {
    font-size: 17px;
  }

  .home-section {
    padding-block: 38px 44px;
  }

  .work-card {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 24px;
    padding: 28px;
  }

  .work-icon {
    width: 60px;
    height: 60px;
  }

  .work-source {
    grid-column: 2;
    justify-self: start;
  }

  .menu-ready .menu-trigger {
    display: inline-flex;
  }
}

@media (max-width:600px) {

  html {
    scroll-padding-top: 25px;
  }

  .site-header {
    min-height: 72px;
  }

  .wordmark-sub {
    display: none;
  }

  .primary-nav a {
    font-size: 12px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    font-size: 10px;
    padding-block: 26px 35px;
  }

  .interior-kicker, .article-top {
    padding: 25px 0;
  }

  .interior-header {
    display: block;
    padding: 42px 0 35px;
  }

  .interior-header p {
    font-size: 16px;
    margin-top: 25px;
  }

  .archive-entry a {
    grid-template-columns: 1fr 24px;
    gap: 8px;
    padding: 26px 0;
  }

  .archive-date {
    grid-column: 1/-1;
    padding: 0;
  }

  .archive-title {
    font-size: 32px;
  }

  .archive-summary {
    font-size: 14px;
  }

  .interior-end {
    align-items: start;
    flex-direction: column;
    padding: 40px 0 70px;
  }

  .article-top .section-number {
    font-size: 9px;
  }

  .article-body {
    font-size: 19px;
    line-height: 1.65;
    margin: 45px auto 75px;
    margin-top: 30px;
  }

  .article-body h2 {
    font-size: 29px;
  }

  .header-controls {
    gap: 6px;
  }

  .home-section-head {
    flex-wrap: wrap;
    gap: 16px;
    align-items: start;
  }

  .shell {
    width: calc(100% - 40px);
  }

  .home-hero {
    min-height: 500px;
    padding-block: 48px 56px;
  }

  .home-intro .eyebrow {
    font-size: 11px;
    margin-bottom: 24px;
  }

  .home-intro h1 {
    margin-bottom: 22px;
  }

  .home-actions {
    gap: 20px;
    margin-top: 24px;
  }

  .home-actions .quiet-link {
    font-size: 10px;
    gap: 12px;
  }

  .home-section-head .inline-link {
    font-size: 10px;
    gap: 10px;
    margin-top: 27px;
    white-space: nowrap;
  }

  .home-section h2 {
    font-size: 30px;
  }

  .note-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .note-card a {
    padding: 22px;
  }

  .note-card h3 {
    font-size: 29px;
    margin-top: 20px;
  }

  .work-info h3 {
    font-size: 30px;
  }

  .work-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }

  .work-source {
    grid-column: 1;
  }

  .home-contact {
    flex-direction: column;
    align-items: start;
    gap: 22px;
  }

  .article-header {
    padding-block: 38px 30px;
  }

  .article-header h1 {
    font-size: clamp(36px, 9vw, 48px);
  }

  .article-deck {
    font-size: 17px;
    margin-top: 22px;
  }
}

@media (max-width:370px) {

  .wordmark-sub {
    display: none;
  }

  .quiet-link {
    gap: 9px;
  }
}

@media (prefers-reduced-motion:reduce) {

  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms!important;
    transition-duration: .01ms!important;
  }
}
