/** biome-ignore-all lint/suspicious/noUnknownAtRules: Tailwind */
/** biome-ignore-all lint/style/noDescendingSpecificity: Component selectors intentionally share a single stylesheet */
@import "tailwindcss";
@import "@fontsource/work-sans/400.css";
@import "@fontsource/work-sans/500.css";
@import "@fontsource/work-sans/600.css";
@import "@fontsource/work-sans/700.css";
@import "@fontsource/work-sans/800.css";

@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("/98.css/fonts/converted/ms_sans_serif.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("/98.css/fonts/converted/ms_sans_serif_bold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --paper: #e9e9e4;
  --ink: #0b0b0b;
  --white: #fff;
  --gray: #c9c9c4;
  --muted: #666662;
  --line: 2px solid var(--ink);
  color: var(--ink);
  background: #b9b9b2;
  font-family: "Work Sans", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 5%) 1px, transparent 1px),
    linear-gradient(rgb(0 0 0 / 5%) 1px, transparent 1px),
    #b9b9b2;
  background-size: 24px 24px;
}

body,
a,
button {
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
button:hover {
  cursor: pointer;
}

::selection {
  color: var(--white);
  background: var(--ink);
}

.portfolio-page {
  padding: 34px clamp(16px, 4vw, 64px);
}

.site-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  width: min(100%, 1240px);
  margin: 0 auto;
  border: var(--line);
  background: var(--paper);
  box-shadow: 10px 10px 0 rgb(0 0 0 / 35%);
}

.site-rail {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: var(--line);
  background: var(--paper);
}

.site-mark {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: var(--line);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.site-mark > span:first-child {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-size: 17px;
  letter-spacing: -1px;
}

.site-rail nav {
  padding: 24px 0;
}

.site-rail nav p {
  margin: 0 18px 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-rail nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-block: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-rail nav a span {
  color: var(--muted);
  font-family: "Pixelated MS Sans Serif", monospace;
  font-size: 10px;
}

.site-rail nav a:hover {
  background: rgb(255 255 255 / 55%);
}

.site-rail nav a.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.site-rail nav a.is-active span {
  color: var(--white);
}

.site-rail__meta {
  margin-top: auto;
  padding: 18px;
  border-top: var(--line);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.site-rail__meta small {
  display: block;
  margin: 6px 0 0 13px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.availability-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #078b43;
  box-shadow: 0 0 0 2px rgb(7 139 67 / 18%);
}

.site-content {
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: var(--line);
  background: rgb(233 233 228 / 94%);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header p {
  margin: 0;
}

.site-header p span {
  color: var(--muted);
}

.site-header > a {
  border-bottom: 1px solid currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  min-height: 510px;
  border-bottom: var(--line);
}

.hero__intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(38px, 6vw, 70px);
  border-right: var(--line);
}

.hero__kicker,
.section-heading__eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 26px 0 22px;
  font-size: clamp(52px, 6.5vw, 88px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.86;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--ink);
}

.hero__summary {
  max-width: 590px;
  margin: 0 0 30px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.brutal-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: var(--line);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.brutal-button svg {
  width: 15px;
}

.brutal-button:hover,
.brutal-button:focus-visible {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}

.hero__status {
  display: flex;
  align-items: center;
  padding: clamp(22px, 3vw, 38px);
  overflow: hidden;
  background:
    radial-gradient(circle, var(--ink) 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--gray);
}

.win98-host {
  position: relative;
  width: 100%;
  max-width: 350px;
  min-width: 0;
  margin: auto;
  filter: drop-shadow(7px 7px 0 rgb(0 0 0 / 75%));
}

.win98-window {
  width: 100%;
  padding: 3px;
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #dfdfdf,
    inset -2px -2px #808080,
    inset 2px 2px #fff;
  color: #111;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  -webkit-font-smoothing: none;
  font-size: 11px;
}

.win98-title-bar {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 3px 2px 3px 3px;
  background: linear-gradient(90deg, #111, #666);
}

.win98-title-bar__text {
  overflow: hidden;
  color: #fff;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win98-title-bar__controls {
  display: flex;
  gap: 2px;
}

.win98-control {
  display: block;
  width: 16px;
  height: 14px;
  background-color: #c0c0c0;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #fff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
}

.win98-control--minimize { background-image: url("/98.css/icon/minimize.svg"); }
.win98-control--maximize { background-image: url("/98.css/icon/maximize.svg"); }
.win98-control--close { background-image: url("/98.css/icon/close.svg"); }

.win98-body {
  margin: 14px 11px 11px;
}

.win98-copy {
  font-size: 12px;
  line-height: 1.4;
}

.win98-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

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

.win98-status-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.win98-status-list span:last-child {
  font-weight: 700;
}

.win98-status-bar {
  display: flex;
  gap: 2px;
}

.win98-status-bar p {
  flex: 1;
  margin: 0;
  padding: 3px 5px;
  box-shadow: inset -1px -1px #dfdfdf, inset 1px 1px #808080;
}

.capability-strip {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  border-bottom: var(--line);
  background: var(--ink);
  color: var(--white);
  list-style: none;
}

.capability-strip li {
  padding: 11px 15px;
  border-right: 1px solid #555;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-section,
.upcoming-section,
.repo-section {
  padding: clamp(48px, 6vw, 76px) clamp(24px, 5vw, 64px);
  border-bottom: var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin: 0 0 34px;
}

.section-heading__eyebrow {
  padding-top: 8px;
  border-top: var(--line);
}

.section-heading__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr);
  gap: 24px;
  align-items: end;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-transform: uppercase;
}

.section-heading__body > p {
  max-width: 320px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.project-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: var(--line);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.project-card:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.project-card--dark {
  background: var(--ink);
  box-shadow: 4px 4px 0 #777;
  color: var(--white);
}

.project-card--outline {
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, rgb(0 0 0 / 4%) 10px 20px),
    var(--paper);
}

.project-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid currentColor;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__body {
  margin: 34px 0;
}

.project-card h3 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.project-card__body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.project-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 4px 6px;
  border: 1px solid currentColor;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-card__link,
.project-card__status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-card__link {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.project-card__link svg {
  width: 12px;
}

.upcoming-section {
  background: var(--gray);
}

.upcoming-section .project-card {
  min-height: 280px;
}

.about-section {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  border-bottom: var(--line);
}

.about-section__label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 22px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.about-section__label span:first-child {
  font-size: 70px;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.about-section__copy {
  padding: clamp(44px, 6vw, 72px);
}

.about-section__lead {
  max-width: 720px;
  margin: 0 0 36px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.about-section__columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 760px;
}

.about-section__columns p {
  margin: 0;
  padding-top: 12px;
  border-top: var(--line);
  font-size: 13px;
  line-height: 1.55;
}

.repo-section {
  background: var(--white);
}

.repo-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.repo-links > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: clamp(13px, 1.7vw, 18px);
  font-weight: 700;
}

.repo-links > a:hover {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.repo-links svg {
  width: 18px;
  height: 18px;
}

.repo-links span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.repo-links small {
  display: block;
  margin-bottom: 2px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  min-height: 190px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 38px;
  background: var(--ink);
  color: var(--white);
}

.site-footer > p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.88;
  text-transform: uppercase;
}

.site-footer > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer a {
  border-bottom: 1px solid currentColor;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .portfolio-page {
    padding: 0;
  }

  .site-shell {
    width: 100%;
    border: 0;
    box-shadow: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__intro {
    border-right: 0;
    border-bottom: var(--line);
  }

  .hero__status {
    min-height: 350px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 92px;
  }

  .site-shell {
    display: block;
  }

  .site-rail {
    position: sticky;
    top: 0;
    z-index: 10;
    display: block;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: var(--line);
  }

  .site-mark,
  .site-rail__meta,
  .site-rail nav p,
  .site-rail nav a span,
  .site-header {
    display: none;
  }

  .site-rail nav {
    display: flex;
    padding: 0;
    overflow-x: auto;
  }

  .site-rail nav a {
    display: block;
    min-width: max-content;
    min-height: 42px;
    padding: 14px 13px 0;
    border: 0;
    border-right: 1px solid var(--ink);
    font-size: 9px;
  }

  .hero {
    min-height: auto;
  }

  .hero__intro {
    padding: 48px 24px;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .hero h1 span {
    -webkit-text-stroke-width: 1.5px;
  }

  .capability-strip li {
    flex: 1 0 auto;
    text-align: center;
  }

  .work-section,
  .upcoming-section,
  .repo-section {
    padding: 46px 20px;
  }

  .section-heading,
  .section-heading__body,
  .about-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 22px;
  }

  .section-heading__body {
    gap: 14px;
  }

  .upcoming-grid,
  .about-section__columns,
  .repo-links {
    grid-template-columns: 1fr;
  }

  .project-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-section__label {
    min-height: 100px;
    flex-direction: row;
    align-items: flex-end;
  }

  .about-section__copy {
    padding: 44px 22px;
  }

  .site-footer {
    min-height: 280px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer > div {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brutal-button,
  .project-card,
  .repo-links > a {
    transition: none;
  }
}
