:root {
  --bg: #f1e6d6;
  --ink: #0b0b0b;
  --ink-rgb: 11, 11, 11;
  --muted: rgba(var(--ink-rgb), 0.65);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "JetBrains Mono", "Consolas", "Menlo", monospace;
  font-weight: bold;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6vw 6vh;
  gap: 28px;
}

.canvas-wrap {
  position: relative;
  height: min(38vh, 380px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

#dust {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  justify-self: center;
  margin-top: 6px;
  width: 100%;
}

.page > .logo-wrap {
  margin-top: -34px;
}

.logo-picture {
  display: block;
  line-height: 0;
}

.logo-svg {
  display: block;
  width: min(78vw, 380px);
  height: auto;
}

.mark {
  display: grid;
  grid-template-columns: repeat(3, 10px);
  grid-template-rows: repeat(3, 10px);
  gap: 1px;
}

.sq {
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 1px;
}

.sq.hollow {
  background: transparent;
  border: none;
}

.wordmark {
  display: inline-flex;
  gap: 0;
  align-items: center;
  font-variant-caps: normal;
  text-transform: lowercase;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 0.95;
  transform: translateY(-2px);
}

.name {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.labs {
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(var(--ink-rgb), 0.55);
  margin-left: -0.03em;
}

.blog-link {
  justify-self: center;
  margin: 6px 0 0;
  font-size: clamp(12px, 1.6vw, 16px);
  font-weight: normal;
  letter-spacing: 0.08em;
  color: rgba(var(--ink-rgb), 0.55);
  text-transform: lowercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, filter 0.6s ease;
}

.blog-link:hover,
.blog-link:focus-visible {
  border-bottom-color: transparent;
  filter: blur(2px);
}

.landing-links {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-top: 20px;
}

.landing-motto {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(var(--ink-rgb), 0.6);
  justify-self: center;
}

.blog-body {
  background: var(--bg);
}

.blog-page {
  min-height: 100vh;
  padding: 4vh 10vw 10vh;
}

.blog-hero {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin-bottom: 3vh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.blog-canvas {
  width: 100%;
  margin-left: 0;
  height: min(12vh, 100px);
}

.blog-canvas #dust {
  width: 100%;
  height: 100%;
  display: block;
}

.blog-logo {
  margin-top: -4px;
  text-decoration: none;
  color: inherit;
  transition: filter 0.6s ease;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  justify-content: center;
}

.blog-logo .logo-svg {
  width: min(62vw, 320px);
}

.blog-logo:hover,
.blog-logo:focus-visible {
  filter: blur(3px);
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.post-item {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.1);
  padding-bottom: 14px;
}

.post-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.post-link:hover,
.post-link:focus-visible {
  text-decoration: none;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.post-date {
  color: rgba(var(--ink-rgb), 0.45);
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: normal;
}

.post-tags {
  display: flex;
  gap: 6px;
}

.post-tag {
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.06em;
  color: rgba(var(--ink-rgb), 0.4);
  text-transform: lowercase;
  border: 1px solid rgba(var(--ink-rgb), 0.2);
  padding: 1px 6px;
  border-radius: 2px;
}

.blog-content {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.about-page {
  min-height: 100vh;
}

.about-page .blog-hero {
  margin-bottom: 2vh;
}

.about-page .blog-content {
  display: grid;
  justify-items: center;
}

.about-wrap {
  max-width: min(720px, 86vw);
  margin: 0 auto;
  text-align: center;
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: normal;
  line-height: 1.7;
  padding: 0 4vw;
  overflow-wrap: break-word;
}

.about-wrap p {
  margin: 0 0 18px;
}

.about-signature {
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.about-contact {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.about-contact a {
  color: rgba(var(--ink-rgb), 0.55);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.about-contact a:hover,
.about-contact a:focus-visible {
  border-bottom-color: rgba(var(--ink-rgb), 0.3);
}

.projects-page .blog-content {
  max-width: 700px;
}

.projects-single {
  width: 100%;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  border-top: 1px solid rgba(var(--ink-rgb), 0.12);
  padding-top: 28px;
}

.projects-title {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  font-size: clamp(18px, 2.4vw, 22px);
  transition: filter 0.6s ease;
}

.projects-title:hover,
.projects-title:focus-visible {
  filter: blur(2px);
}

.projects-desc {
  margin: 0;
  color: rgba(var(--ink-rgb), 0.55);
  letter-spacing: 0.04em;
  font-size: clamp(12px, 1.6vw, 15px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: rgb(48 48 46);
    --ink: rgb(215 213 205);
    --ink-rgb: 215, 213, 205;
    --muted: rgba(215, 213, 205, 0.65);
  }

  .blog-page:not(.blog-index):not(.about-page):not(.projects-page) .blog-content {
    background: rgba(255, 255, 255, 0.88);
    color: rgb(40, 40, 38);
  }
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(var(--ink-rgb), 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--ink);
}

.post-title {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 0.02em;
}

.post-timestamp {
  display: block;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.05em;
  color: rgba(var(--ink-rgb), 0.45);
}

.blog-content {
  font-family: "JetBrains Mono", "Consolas", "Menlo", monospace;
  font-weight: normal;
  font-size: clamp(14px, 1.5vw, 17px);
}

.blog-page:not(.blog-index):not(.about-page):not(.projects-page) .blog-content {
  background: rgba(255, 255, 255, 0.5);
  padding: 32px clamp(20px, 4vw, 40px);
  border-radius: 3px;
}

.blog-content a {
  color: inherit;
  text-decoration: underline;
}

.blog-content .post-link {
  text-decoration: none;
}

.blog-content a:visited {
  color: inherit;
}

.blog-content h2 {
  font-size: clamp(17px, 2vw, 21px);
  margin: 40px 0 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(var(--ink-rgb), 0.12);
}

.blog-content h3 {
  font-size: clamp(15px, 1.7vw, 18px);
  margin: 30px 0 10px;
}

.blog-content p {
  line-height: 1.8;
  margin: 0 0 20px;
}

@media (max-width: 640px) {
  .blog-page {
    padding: 5vh 7vw 8vh;
  }

  .blog-canvas {
    height: min(10vh, 90px);
  }

  .post-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-wrap {
    font-size: 15px;
    padding: 0 6vw;
  }

  .projects-single {
    padding-top: 22px;
  }
}

@media (max-width: 900px) {
  .post-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 2vh 7vw 5vh;
    gap: 20px;
  }

  .canvas-wrap {
    height: 32vh;
  }

  .logo-svg {
    width: min(84vw, 340px);
  }

  .blog-logo .logo-svg {
    width: min(70vw, 280px);
  }
}
