/* Current design specimens. Source order preserves responsive and theme overrides. */

:root {
  color-scheme: dark;
  --bg: #101117;
  --surface: #191a23;
  --text: #e7e6ee;
  --muted: #acaab9;
  --border: #30313e;
  --accent: #aa93e8;
  --note: #ceb77a;
}

body.studio {
  --bg: #111110;
  --surface: #1b1a18;
  --text: #e8e5df;
  --muted: #b1aaa0;
  --border: #35322e;
  --accent: #c4aa8c;
  --note: #c4aa8c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration: underline;
  color: var(--text);
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}

button {
  font: inherit;
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 600;
}

h2 {
  line-height: 1.3;
  margin-bottom: 15px;
}

h3 {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 10px;
}

p+p {
  margin-top: 16px;
}

.reader {
  padding: 47px 28px 38px;
  max-width: 1000px;
  margin: auto;
}

.text {
  max-width: 688px;
  margin-left: 0;
  margin-right: auto;
}

.lead {
  color: var(--muted);
}

.navigation {
  margin: 29px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.languages {
  display: flex;
  align-items: stretch;
}

.navigation a {
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
  color: var(--muted);
  white-space: nowrap;
}

.navigation a[aria-current] {
  color: var(--accent);
}

.languages {
  gap: 5px;
}

.languages a {
  font-size: 12px;
  padding: 8px;
  min-width: 34px;
  justify-content: center;
}

.languages a[aria-current] {
  color: var(--text);
  font-weight: 700;
}

.section {
  margin-top: 35px;
  scroll-margin-top: 25px;
}

.section p {
  color: var(--text);
}

.contribution {
  margin-top: 24px;
}

.contribution h3 {
  font-size: 17px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 10px;
}

.contribution p {
  font-size: 15px;
  line-height: 1.7;
}

.caption {
  color: var(--muted);
}

.caption b {
  font-weight: 500;
  color: var(--text);
}

.product {
  background: #cbd3c5;
  border: 1px solid #4d584c;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1.42fr;
  color: #27362e;
  color-scheme: light;
  line-height: 1.5;
}

.product-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.product-art img {
  width: 100%;
  display: block;
}

.product-wordmark {
  position: absolute;
  bottom: 6px;
  left: 0;
  font-size: 21px;
  letter-spacing: 3px;
  font-weight: 600;
}

.booking {
  background: #f9faf4;
  padding: 24px;
  border-radius: 5px;
  box-shadow: 0 8px 28px #29382c0d;
}

.booking h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.7px;
  margin: 0;
}

.booking .sub {
  font-size: 12px;
  color: #637061;
  margin: 4px 0 21px;
}

.booking .month {
  font-size: 12px;
  font-weight: 600;
}

.days {
  display: flex;
  gap: 8px;
  margin: 10px 0 17px;
}

.day {
  flex: 1;
  border: 1px solid #c5ccbf;
  border-radius: 4px;
  text-align: center;
  font-size: 10px;
  padding: 7px;
}

.day strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.day.selected {
  background: #e3eadb;
  border-color: #436047;
  box-shadow: inset 0 0 0 1px #436047;
}

.time-row {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #d6dccf;
  padding: 11px 0;
}

.available {
  color: #38613d;
}

.demo-submit {
  margin-top: 10px;
  background: #37523f;
  color: #f7faef;
  padding: 11px;
  text-align: center;
  border-radius: 4px;
  font-size: 12px;
}

.effect {
  font-size: 15px;
}

.quiet-link {
  font-size: 14px;
  display: inline-block;
  margin-top: 13px;
  padding: 4px 0;
}

.outcome {
  margin-top: 38px;
}

.skip {
  position: absolute;
  left: 15px;
  top: -80px;
  background: var(--surface);
  padding: 8px 14px;
  z-index: 5;
}

.skip:focus {
  top: 8px;
}

.architecture {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.arch-node {
  flex: 1;
  font-size: 14px;
}

.arch-node small {
  font-size: 12px;
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.arrow {
  color: var(--accent);
}

.proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
}

.proof>div {
  padding: 24px;
}

.proof>div+div {
  border-left: 1px solid var(--border);
}

.proof pre {
  font: 13px/1.8 Consolas,monospace;
  white-space: pre-wrap;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.proof em {
  color: var(--accent);
  font-style: normal;
}

.criterion {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}

.criterion span:last-child {
  color: var(--accent);
}

.proof .fine {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

.card-stage {
  margin: auto;
  padding: 32px 28px 44px;
}

.composition-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.project-card {
  min-width: 0;
}

.card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card h2 {
  line-height: 1.35;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.project-card.horizontal {
  display: grid;
  grid-template-columns: minmax(0,42%) minmax(0,1fr);
}

.horizontal .card-copy {
  padding-top: 0;
}

.card-disclaimer {
  margin-top: 22px;
  font-size: 11px;
  color: var(--muted);
}

@media(max-width:650px) {
  .reader {
    padding: 28px 21px 30px;
  }

  .lead {
    margin-top: 14px;
  }

  .navigation {
    margin-top: 24px;
    margin-bottom: 27px;
  }

  .navigation a {
    font-size: 12px;
    min-height: 48px;
  }

  .languages {
    gap: 0;
  }

  .section {
    margin-top: 29px;
  }

  .contribution p {
    font-size: 14px;
  }

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

  .product-art {
    display: none;
  }

  .booking {
    padding: 21px 18px;
  }

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

  .proof>div+div {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .proof>div {
    padding: 21px;
  }

  .architecture {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px;
  }

  .arch-node {
    font-size: 14px;
  }

  .arrow {
    transform: rotate(90deg);
    text-align: center;
    line-height: 1;
  }

  .card-stage {
    padding: 26px 21px 32px;
  }

  .project-card.horizontal {
    display: block;
  }

  .horizontal .card-copy {
    padding-top: 18px;
  }
}

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

@font-face {
  font-family: Manrope;
  src: url('fonts/manrope-variable.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  font-family: Manrope,'Segoe UI',Arial,sans-serif;
}

.reader {
  padding-top: 0;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin-bottom: 35px;
}

.author-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.3px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  flex: none;
  border: 1px solid color-mix(in srgb,var(--accent) 30%,var(--border));
  border-radius: 8px;
  background: color-mix(in srgb,var(--accent) 7%,var(--bg));
  color: var(--accent);
  font: 600 15px/1 Consolas,monospace;
  letter-spacing: -1.2px;
}

h1 {
  font-size: 42px;
  font-weight: 750;
  letter-spacing: -1.65px;
  line-height: 1.2;
}

h2 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.85px;
}

h3 {
  font-weight: 700;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-top: 16px;
}

.navigation {
  margin-top: 25px;
  margin-bottom: 34px;
  align-items: center;
}

.aspects {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 100%;
}

.aspects a {
  position: relative;
  justify-content: center;
  min-height: 50px;
  padding: 10px 12px 14px;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: color-mix(in srgb,var(--surface) 70%,var(--bg));
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--muted);
  transition: color .16s,background .16s;
}

.aspects a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: transparent;
}

.aspects a:hover {
  color: var(--text);
  background: color-mix(in srgb,var(--text) 7%,var(--surface));
  text-decoration: none;
}

.aspects a[aria-current] {
  color: var(--text);
  background: color-mix(in srgb,var(--accent) 9%,var(--surface));
}

.aspects a[aria-current]:hover {
  background: color-mix(in srgb,var(--accent) 15%,var(--surface));
}

.aspects a[aria-current]::after {
  background: var(--accent);
}

.aspects a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}

.languages a {
  min-height: 44px;
}

.media {
  padding: 9px 9px 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  margin: 26px 0 24px;
}

.media>.product, .media>.architecture, .media>.proof {
  border: 0;
  border-radius: 5px;
}

.caption {
  display: block;
  max-width: none;
  padding: 14px 9px 16px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.media>.architecture {
  padding: 22px 16px;
}

.product {
  padding: 27px;
  gap: 28px;
}

.product-art img {
  max-width: 355px;
}

.proof .criterion {
  padding: 12px 0;
}

.card-image {
  border-radius: 10px;
  transition: border-color .18s,box-shadow .18s;
}

.card-image img {
  transition: transform .25s ease;
  transform-origin: 50% 55%;
}

.project-card {
  position: relative;
}

.project-card h2 {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -.75px;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.project-card:has(a:hover) h2, .project-card:has(a:focus-visible) h2 {
  text-decoration: underline;
}

.project-card:hover .card-image, .project-card:focus-within .card-image {
  border-color: var(--accent);
}

.project-card .quiet-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in srgb,var(--accent) 30%,var(--border));
  border-radius: 50%;
  background: color-mix(in srgb,var(--accent) 7%,var(--bg));
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
  transition: background .18s,color .18s,transform .18s;
}

.horizontal .card-image {
  aspect-ratio: 4/3;
}

.card-copy {
  padding-top: 17px;
}

.horizontal .quiet-link {
  max-width: 210px;
}

@media(max-width:650px) {
  .reader {
    padding-top: 0;
  }

  .masthead {
    padding: 18px 0;
    margin-bottom: 28px;
  }

  .author-brand {
    font-size: 12px;
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 6px;
  }

  h1 {
    font-size: 32px;
    letter-spacing: -1.2px;
  }

  h2 {
    font-size: 24px;
    letter-spacing: -.75px;
  }

  .lead {
    font-size: 15px;
  }

  .navigation {
    gap: 5px;
  }

  .aspects {
    gap: 4px;
  }

  .aspects a {
    font-size: 14px;
    padding: 10px 10px 14px;
  }

  .aspects a::after {
    left: 10px;
    right: 10px;
  }

  .languages a {
    font-size: 10px;
    min-width: 25px;
    padding: 8px 4px;
  }

  .media {
    padding: 6px 6px 0;
    border-radius: 9px;
    margin-left: -5px;
    margin-right: -5px;
  }

  .product {
    padding: 13px;
    gap: 0;
  }

  .caption {
    padding: 12px 7px 14px;
    font-size: 12px;
  }

  .project-card h2 {
    font-size: 23px;
  }

  .horizontal .card-image {
    aspect-ratio: 3/2;
  }

  .horizontal .quiet-link {
    max-width: none;
  }

  .card-image {
    border-radius: 9px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .aspects a, .card-image, .card-image img, .card-arrow {
    transition: none;
  }

  .project-card:hover .card-image img, .project-card .quiet-link:hover .card-arrow, .project-card .quiet-link:focus-visible .card-arrow {
    transform: none;
  }
}

.reader .media {
  max-width: 688px;
}

@media(max-width:650px) {
  .reader .media {
    margin-left: 0;
    margin-right: 0;
  }
}

.masthead .languages {
  border-left: 1px solid var(--border);
  padding-left: 14px;
}

.masthead .languages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media(max-width:650px) {
  .masthead {
    display: grid;
  }

  .author-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .masthead .languages {
    grid-column: 2;
    grid-row: 1;
    border: 0;
    padding: 0;
    gap: 0;
  }
}

.personal .author-brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.55px;
  gap: 7px;
  color: var(--text);
  line-height: 1.3;
}

.personal .brand-mark {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: 800 23px/1 Consolas,monospace;
  letter-spacing: -2px;
}

@media(max-width:650px) {
  .personal .author-brand {
    font-size: 14px;
    letter-spacing: -.4px;
    gap: 6px;
  }

  .personal .brand-mark {
    font-size: 19px;
    letter-spacing: -1.8px;
  }
}

.reader-intro {
  padding-bottom: 0;
}

.project-document {
  margin-top: 30px;
}

.project-document .navigation {
  margin: 0;
  align-items: stretch;
}

.reading-surface {
  background: color-mix(in srgb,var(--surface) 70%,var(--bg));
}

.tab-content {
  padding-top: 32px;
  padding-bottom: 38px;
}

@media(max-width:650px) {
  .reader-intro {
    padding-bottom: 0;
  }

  .project-document {
    margin-top: 28px;
  }

  .tab-content {
    padding-top: 28px;
    padding-bottom: 30px;
  }
}

.project-cover {
  max-width: 688px;
  height: 220px;
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 8px;
  background: #cfd8c2;
  color: #2e4635;
  padding-left: 32px;
}

.cover-wordmark {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: 3px;
  line-height: 1;
  flex: none;
}

.project-cover img {
  display: block;
  height: 100%;
  width: 60%;
  object-fit: contain;
}

@media(max-width:650px) {
  .project-cover {
    height: 144px;
    padding-left: 18px;
    margin-bottom: 22px;
    border-radius: 6px;
  }

  .cover-wordmark {
    font-size: 23px;
    letter-spacing: 2px;
  }

  .project-cover img {
    width: 62%;
  }
}

body.personal {
  --bg: #101117;
  --surface: #191a23;
  --accent: #ad80ff;
  --note: #f1c735;
}

.personal .reading-surface {
  background: #0b0d12;
}

.personal .aspects a[aria-current]::after {
  background: var(--note);
}

.personal .masthead {
  position: relative;
  border-bottom-color: transparent;
}

.personal .masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.personal .masthead .languages {
  position: relative;
  border-left-color: transparent;
}

.personal .masthead .languages::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  pointer-events: none;
}

.personal .proof em, .personal .criterion span:last-child {
  color: var(--text);
}

.personal .arrow {
  color: var(--muted);
}

.proof h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text);
}

.author-brand {
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.author-brand:hover, .author-brand:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.personal .author-brand:hover, .personal .author-brand:focus-visible, .studio .author-brand:hover, .studio .author-brand:focus-visible {
  color: #fff;
}

.personal .author-brand:focus-visible, .studio .author-brand:focus-visible {
  outline-color: var(--text);
}

@media(max-width:650px) {
  .masthead {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px;
  }

  .masthead .languages {
    padding-left: 12px;
  }

  .personal .masthead .languages::before {
    display: block;
    top: 7px;
    bottom: 7px;
  }
}

@media(max-width:360px) {
  .masthead {
    gap: 8px;
  }

  .personal .author-brand {
    font-size: 12px;
    gap: 4px;
  }

  .personal .brand-mark {
    font-size: 17px;
  }

  .masthead .languages {
    padding-left: 9px;
  }

  .masthead .languages a {
    min-width: 28px;
    padding: 8px 4px;
  }
}

.masthead .languages {
  gap: 4px;
}

.masthead .languages a {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
}

.masthead .languages a[aria-current] {
  background: color-mix(in srgb,var(--text) 7%,var(--bg));
  border-color: color-mix(in srgb,var(--text) 10%,var(--bg));
  color: var(--text);
  font-weight: 750;
}

.masthead .languages a:hover {
  background: color-mix(in srgb,var(--text) 5%,var(--bg));
  color: var(--text);
  text-decoration: none;
}

.masthead .languages a[aria-current]:hover {
  background: color-mix(in srgb,var(--text) 10%,var(--bg));
}

.masthead .languages a:focus-visible {
  outline-color: var(--text);
  outline-offset: 3px;
}

@media(max-width:650px) {
  .masthead .languages a {
    min-width: 40px;
    padding: 8px;
    font-size: 12px;
  }
}

.studio .reading-surface {
  background: #0b0b0a;
}

.studio .masthead {
  position: relative;
  border-bottom-color: transparent;
}

.studio .masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}

.studio .masthead .languages {
  position: relative;
  border-left-color: transparent;
}

.studio .masthead .languages::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  pointer-events: none;
}

@media(max-width:650px) {
  .studio .masthead .languages::before {
    top: 7px;
    bottom: 7px;
  }
}

.studio .author-brand {
  gap: 10px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.4px;
}

.studio .brand-mark {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: none;
}

.studio .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media(max-width:650px) {
  .studio .author-brand {
    gap: 8px;
    font-size: 17px;
  }

  .studio .brand-mark {
    width: 38px;
    height: 38px;
  }
}

@media(max-width:360px) {
  .studio .author-brand {
    gap: 6px;
    font-size: 16px;
  }

  .studio .brand-mark {
    width: 34px;
    height: 34px;
  }
}

.project-card {
  --card-surface: #191a1e;
  background: var(--card-surface);
  border: 1px solid #ffffff14;
  border-radius: 12px;
  padding: 18px;
}

.studio .project-card {
  --card-surface: #1c1b19;
}

.project-card .card-image {
  border: 0;
  border-radius: 7px;
  box-shadow: none;
}

.project-card .card-copy {
  padding: 20px 4px 2px;
}

.project-card.horizontal {
  gap: 24px;
  align-items: center;
}

.project-card.horizontal .card-copy {
  padding: 4px 4px 4px 0;
}

.project-card .quiet-link {
  color: var(--text);
  font-size: 13px;
  margin-top: 18px;
}

.project-card .card-arrow {
  border: 0;
  background: none;
  color: var(--text);
  width: 28px;
  height: 28px;
  border-radius: 0;
}

.project-card:hover .card-image, .project-card:focus-within .card-image {
  box-shadow: none;
  border: 0;
}

.project-card:hover .card-image img {
  transform: none;
}

.project-card:has(a:hover) h2, .project-card:has(a:focus-visible) h2 {
  text-decoration-color: var(--text);
}

.project-card .quiet-link:hover .card-arrow, .project-card .quiet-link:focus-visible .card-arrow {
  background: none;
  color: var(--text);
  transform: none;
}

.project-card .quiet-link:focus-visible {
  outline-color: var(--text);
}

@media(max-width:650px) {
  .project-card {
    padding: 14px;
    border-radius: 10px;
  }

  .project-card .card-copy, .project-card.horizontal .card-copy {
    padding: 18px 4px 2px;
  }
}

.card-stage {
  max-width: 1280px;
}

.card-example+.card-example {
  margin-top: 40px;
}

.portfolio-grid, .portfolio-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.portfolio-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.portfolio-grid>li, .portfolio-list>li {
  min-width: 0;
  display: flex;
}

.portfolio-grid .project-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.portfolio-grid .card-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 2px 2px;
}

.portfolio-grid h2 {
  font-size: 20px;
  letter-spacing: -.5px;
}

.portfolio-grid .quiet-link {
  margin-top: auto;
  padding-top: 20px;
}

.portfolio-list .project-card {
  width: 100%;
  grid-template-columns: 240px minmax(0,1fr);
}

.portfolio-list .card-image {
  aspect-ratio: 3/2;
}

.portfolio-list .quiet-link {
  max-width: none;
}

@media(min-width:651px) and (max-width:1050px) {
  .portfolio-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media(max-width:650px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-list .project-card {
    display: block;
  }

  .portfolio-grid, .portfolio-list {
    gap: 16px;
  }
}

.project-ending {
  margin-top: 20px;
}

.ending-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}

.ending-resources a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}

.all-projects {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 68px;
  margin-top: 40px;
  padding: 18px 20px;
  border: 0;
  border-top: 1px solid color-mix(in srgb,var(--text) 14%,var(--bg));
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  text-decoration: none;
  transition: background .16s;
}

.all-projects:hover {
  color: var(--text);
  background: color-mix(in srgb,var(--text) 2.5%,transparent);
  text-decoration: none;
}

.all-projects-label {
  text-decoration: none;
}

.all-projects-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.all-projects:focus-visible {
  outline-color: var(--text);
  outline-offset: 5px;
  border-radius: 0;
}

@media(prefers-reduced-motion:reduce) {
  .all-projects {
    transition: none;
  }
}

@media(max-width:650px) {
  .ending-resources {
    gap: 2px 20px;
  }

  .all-projects {
    margin-top: 32px;
    min-height: 64px;
    padding: 16px;
  }
}

.ending-resources a {
  gap: 0;
  font-weight: 500;
  text-decoration: none;
}

.ending-resources a>span {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

html.embedded-preview {
  overflow: hidden;
}

.site-footer {
  background: var(--bg);
  color: var(--muted);
}

.site-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 26px 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  font-size: 12px;
  line-height: 1.6;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

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

.site-footer a:hover .contact-label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer a:focus-visible {
  outline-color: var(--text);
}

@media(max-width:650px) {
  .site-footer-inner {
    padding: 20px 21px 24px;
    flex-wrap: wrap;
    gap: 4px 20px;
  }

  .site-footer-inner>span {
    font-size: 11px;
  }
}

.personal .masthead {
  --neon-core: #b17aff;
  --neon-glow: #9747ff;
  --neon-halo: #873aff80;
}

.studio .masthead {
  --neon-core: #dfc4a5;
  --neon-glow: #c4aa8c;
  --neon-halo: #c4aa8c80;
}

.masthead::after, .masthead .languages::before {
  background: var(--neon-core);
  box-shadow: 0 0 5px var(--neon-glow),0 0 14px var(--neon-halo);
  opacity: 1;
}
