@charset "UTF-8";
.card--sand {
  --card-color: #b9b4a8;
}

.card--gray {
  --card-color: #e8e8e6;
}

.card--paper {
  --card-color: #f3eee4;
}

.card--black {
  --card-color: #070707;
  --card-ink: #ffffff;
}

.card--graphite {
  --card-color: #2b2d31;
  --card-ink: #f1f1f2;
}

.card--indigo {
  --card-color: #2d2f6b;
  --card-ink: #ffffff;
}

.card--blue {
  --card-color: #2f5bd3;
  --card-ink: #ffffff;
}

.card--red {
  --card-color: #c4362c;
  --card-ink: #ffffff;
}

.card--green {
  --card-color: #1e6b47;
  --card-ink: #ffffff;
}

.card--yellow {
  --card-color: oklch(0.926 0.196 104.6);
  --card-ink: #2e2600;
}

.card--keepset-yellow {
  --card-color: #e4c539;
  --card-ink: #2e2600;
}

@font-face {
  font-family: "CoFo Sans";
  src: url("/assets/fonts/CoFoSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "CoFo Sans";
  src: url("/assets/fonts/CoFoSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

h1,
h2,
h3 {
  font: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.site {
  max-width: 1024px;
  margin-inline: auto;
  padding-inline: 20px;
  background: #fff url("/assets/bg.png");
  background-size: 75px;
  color: #000;
  font: 400 18px/1.35 "CoFo Sans", system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

.site__main {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.link {
  margin: 0 -2px;
  padding: 2px 2px;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)) 2px 100%/calc(100% - 4px) 1.5px no-repeat, linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)) 2px 100%/calc(100% - 4px) 0 no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 180ms, background-position 180ms, border-radius 180ms;
}
.link:hover {
  border-radius: 6px;
  background-position: 2px 100%, 0 100%;
  background-size: calc(100% - 4px) 0, 100% 100%;
}
.link {
  color: inherit;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 52px;
  font: 500 15px/1.36 "CoFo Sans", system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}

.header__home,
.header__link {
  margin: 0 -2px;
  padding: 2px 2px;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)) 2px 100%/calc(100% - 4px) 0 no-repeat, linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)) 2px 100%/calc(100% - 4px) 0 no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 180ms, background-position 180ms, border-radius 180ms;
}
.header__home:hover,
.header__link:hover {
  border-radius: 6px;
  background-position: 2px 100%, 0 100%;
  background-size: calc(100% - 4px) 0, 100% 100%;
}

.header__home {
  display: flex;
}

.header__arrow {
  width: 14px;
}
.site--home .header__arrow {
  display: none;
}

.header__nav {
  display: flex;
  gap: 16px;
}

.about {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.about__photo {
  margin-bottom: 60px;
}

.about__text {
  max-width: 640px;
}

.photo {
  width: 180px;
}

.photo__image {
  width: 100%;
  aspect-ratio: 180/255;
  border-radius: 4px;
  background: #d9d9d9;
  object-fit: cover;
  filter: brightness(calc(1 - 0.6 * var(--night, 0))) saturate(calc(1 - 0.35 * var(--night, 0)));
  transition: filter 1s;
}

.photo__caption {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.19;
  letter-spacing: 0;
}

.photo__time {
  font-variant-numeric: tabular-nums;
}

.project {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 80px;
}
@media (min-width: 768px) {
  .project {
    margin-top: 140px;
  }
}

.project__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
}

.project__meta {
  color: rgba(0, 0, 0, 0.4);
}

.project__text {
  max-width: 640px;
}

.project__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 2px;
  font-size: 16px;
  letter-spacing: 0;
}
.project__links .link[href^=http] {
  position: relative;
  margin-right: calc(1.05em - 2px);
}
.project__links .link[href^=http]::after {
  content: "↗";
  position: absolute;
  left: 100%;
  margin-left: calc(0.25em - 2px);
  color: rgba(0, 0, 0, 0.3);
}

.project__card {
  margin-top: 26px;
}
.project__card + .project__card {
  margin-top: 30px;
}

.card {
  justify-self: stretch;
}

.card__frame {
  overflow: hidden;
  border-radius: 8px;
  background: var(--card-color, #d9d9d9);
  color: var(--card-ink, #000);
}

.card__file {
  width: 100%;
}

.card__caption {
  max-width: 860px;
  margin-top: 10px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: 0;
}

.video {
  position: relative;
}

.video__toggle {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  color: #fff;
  cursor: pointer;
}
.video__toggle:focus-visible {
  outline-offset: -2px;
}
.video__toggle svg {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 40px;
  height: 40px;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.25));
  transition: opacity 100ms linear;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
@media (hover: none) {
  .video__toggle svg {
    opacity: 1;
  }
}
.video:hover .video__toggle svg, .video__toggle:focus-visible svg {
  opacity: 1;
}
.video__toggle[aria-pressed=true] .video__pause, .video__toggle[aria-pressed=false] .video__play {
  display: none;
}

.video__track {
  opacity: 0.1;
}

.video__progress {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.video__play {
  fill: currentColor;
}

.tabs {
  --tabs-ink: var(--card-ink, #000);
  --tabs-line: color-mix(in srgb, var(--tabs-ink) 14%, transparent);
  display: flex;
  flex-direction: column;
  padding: 24px 8px;
}
@media (min-width: 768px) {
  .tabs {
    padding: 40px;
  }
}

.tabs__switch {
  align-self: center;
  display: flex;
  margin-bottom: 24px;
  padding: 2px;
  border: 0;
  border-radius: 9px;
  background: var(--tabs-line);
}
@media (min-width: 768px) {
  .tabs__switch {
    margin-bottom: 32px;
  }
}
.tabs__switch:has(:focus-visible) {
  outline: 2px solid var(--tabs-ink);
  outline-offset: 2px;
}

.tabs__option {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 28px;
  padding-inline: 8px;
  border-radius: 7px;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}
@media (min-width: 768px) {
  .tabs__option {
    min-width: 80px;
    padding-inline: 12px;
    font-size: 13px;
  }
}
.tabs__option:has(:checked) {
  background: var(--tabs-ink);
  color: var(--card-color, #d9d9d9);
}

.tabs__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: inherit;
}

.tabs__panel {
  display: none;
}
.tabs:has(.tabs__option:nth-of-type(1) :checked) .tabs__panel:nth-of-type(1) {
  display: block;
}
.tabs:has(.tabs__option:nth-of-type(2) :checked) .tabs__panel:nth-of-type(2) {
  display: block;
}
.tabs:has(.tabs__option:nth-of-type(3) :checked) .tabs__panel:nth-of-type(3) {
  display: block;
}
.tabs:has(.tabs__option:nth-of-type(4) :checked) .tabs__panel:nth-of-type(4) {
  display: block;
}
.tabs:has(.tabs__option:nth-of-type(5) :checked) .tabs__panel:nth-of-type(5) {
  display: block;
}
.tabs:has(.tabs__option:nth-of-type(6) :checked) .tabs__panel:nth-of-type(6) {
  display: block;
}

.phone {
  text-align: center;
}

.phone__body {
  position: relative;
  width: 240px;
  max-width: 100%;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .phone__body {
    width: 300px;
  }
}

.phone__screen {
  aspect-ratio: 9/19.5;
  overflow-y: auto;
  border: 4px solid #111;
  border-radius: 38px;
  background: #111;
  scrollbar-width: none;
}
@media (min-width: 768px) {
  .phone__screen {
    border-radius: 48px;
  }
}
.phone__screen::-webkit-scrollbar {
  display: none;
}

.phone__image {
  width: 100%;
}

.phone__scrollbar {
  position: absolute;
  top: 44px;
  bottom: 44px;
  left: calc(100% + 14px);
  width: 4px;
  border-radius: 2px;
  background: var(--tabs-line);
}
@media (min-width: 768px) {
  .phone__scrollbar {
    top: 56px;
    bottom: 56px;
    left: calc(100% + 20px);
  }
}

.phone__thumb {
  position: relative;
  border-radius: inherit;
  background: color-mix(in srgb, var(--tabs-ink) 70%, transparent);
  cursor: grab;
  touch-action: none;
}
.phone__thumb::before {
  content: "";
  position: absolute;
  inset: 0 -10px;
}
.phone__thumb:hover, .phone__thumb:active {
  background: var(--tabs-ink);
}
.phone__thumb:active {
  cursor: grabbing;
}

.phone__caption {
  margin-top: 12px;
  color: color-mix(in srgb, var(--tabs-ink) 70%, transparent);
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: 0;
}

.page {
  padding-top: 40px;
}
@media (min-width: 768px) {
  .page {
    padding-top: 71px;
  }
}
.page > * {
  max-width: 640px;
  margin-left: 14px;
}
.page > * + * {
  margin-top: 21px;
}
.page h2 {
  margin-top: 52px;
  font-weight: 400;
  font-size: 19px;
  opacity: 0.5;
}
.page h2 + * {
  margin-top: 10px;
}
.page a {
  margin: 0 -2px;
  padding: 2px 2px;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)) 2px 100%/calc(100% - 4px) 1.5px no-repeat, linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)) 2px 100%/calc(100% - 4px) 0 no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 180ms, background-position 180ms, border-radius 180ms;
}
.page a:hover {
  border-radius: 6px;
  background-position: 2px 100%, 0 100%;
  background-size: calc(100% - 4px) 0, 100% 100%;
}
.page a {
  color: inherit;
}
.page ul,
.page ol {
  margin-bottom: 0;
  padding-left: 1.2em;
}
.page li + li {
  margin-top: 6px;
}
.page blockquote {
  padding-left: 16px;
  border-left: 2px solid rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.6);
}

.page__title {
  font-weight: 500;
  font-size: 28px;
}
@media (min-width: 768px) {
  .page__title {
    font-size: 34px;
  }
}
.page__title + * {
  margin-top: 20px;
}

.page__figure {
  margin-block: 41px 60px;
}

.page__figure--wide {
  max-width: none;
  margin-left: 0;
}
.page__figure--wide .page__caption {
  max-width: 860px;
  margin-left: 14px;
}

.page__file,
.page__figure .video {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #d9d9d9;
}

.page__caption {
  margin-top: 10px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: 0;
}

.page__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 20px;
  max-width: none;
  margin-block: 41px 60px;
  margin-left: 0;
}
.page__grid .page__figure {
  margin: 0;
}

.sandbox {
  display: grid;
  gap: 32px;
  max-width: none;
  margin-top: 41px;
  margin-left: 0;
}
@media (min-width: 768px) {
  .sandbox {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 40px;
  }
}

.sandbox__settings {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 14px;
}

.sandbox__block {
  min-width: 0;
  padding: 0;
  border: 0;
}
.sandbox__block[data-disabled] {
  opacity: 0.4;
}
.sandbox__block legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 15px;
}

.sandbox__note {
  margin-top: 6px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0;
}
.sandbox__note:empty {
  display: none;
}

.sandbox__segmented {
  display: flex;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}
.sandbox__segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.sandbox__segmented label {
  flex: 1 1 auto;
  padding: 7px 8px;
  background: #fff;
  font-size: 14px;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.sandbox__segmented input:checked + label {
  background: #000;
  color: #fff;
}
.sandbox__segmented input:focus-visible + label {
  outline: 2px solid #000;
  outline-offset: -4px;
  box-shadow: inset 0 0 0 4px #fff;
}
.sandbox__segmented input:disabled + label {
  color: rgba(0, 0, 0, 0.4);
  cursor: not-allowed;
}

.sandbox__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.sandbox__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.sandbox__toggle[data-disabled] {
  opacity: 0.4;
}
.sandbox__toggle input {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  margin: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  appearance: none;
  transition: background 150ms;
}
.sandbox__toggle input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 150ms;
}
.sandbox__toggle input:checked {
  background: #000;
}
.sandbox__toggle input:checked::before {
  transform: translateX(16px);
}
.sandbox__toggle input:disabled {
  cursor: not-allowed;
}
.sandbox__toggle label {
  cursor: pointer;
  user-select: none;
}

.sandbox__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
}

.sandbox__preview {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.sandbox__code-box {
  position: relative;
}

.sandbox__code {
  margin: 0;
  padding: 16px 120px 16px 16px;
  overflow-x: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.08);
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
  tab-size: 2;
}

.sandbox__tag {
  color: #1f6f43;
}

.sandbox__attr {
  color: #8a4b00;
}

.sandbox__val {
  color: #1d4ed8;
}

.sandbox__copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  letter-spacing: 0;
  cursor: pointer;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  min-height: 52px;
  margin-top: 80px;
  padding-block: 12px;
  font-size: 15px;
  line-height: 1.36;
  letter-spacing: 0;
}
@media (min-width: 768px) {
  .footer {
    margin-top: 140px;
  }
}