@font-face {
  font-family: Caveat;
  src: url('../../assets/caveat.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}
.menubar nav .brand {
  font-family: Caveat, cursive;
  font-size: 32px;
  font-weight: 600;
  color: #474747;
  line-height: 1;
  padding: 0 5px;
  letter-spacing: -1px;
}
.status #spotify-top {
  font-size: 13px;
  color: #35794a;
  border: 1px solid #c3cec2;
  border-radius: 16px;
  padding: 5px 9px;
  min-width: 48px;
}
.status #layout-toggle {
  width: 26px;
  height: 26px;
  font-size: 17px;
  border: 1px solid #acb8c7;
  border-radius: 50%;
  background: #e4effa;
  color: #34649a;
}
.status #layout-toggle[aria-pressed='false'] {
  color: #888;
  background: #eee;
  border-color: #ccc;
}
.object:hover,
.object:focus-within {
  outline: 1px dashed #a1afbd;
  outline-offset: 5px;
}
.object.center:hover,
.object.center:focus-within {
  outline: 0;
}
.rotate-handle,
.resize-handle {
  position: absolute;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
}
.object:hover > .rotate-handle,
.object:hover > .resize-handle,
.object:focus-within > .rotate-handle,
.object:focus-within > .resize-handle {
  opacity: 1;
  pointer-events: auto;
}
.rotate-handle {
  right: -19px;
  bottom: -23px;
  height: 23px;
  width: 23px;
  padding: 0;
  border: 1px solid #a3b3c2;
  border-radius: 50%;
  background: #fff;
  color: #527698;
  font-size: 18px;
  cursor: grab;
  box-shadow: 0 2px 5px #0002;
}
.resize-handle {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid #6888a8;
  border-radius: 2px;
  background: #fff;
}
.resize-n {
  top: -7px;
  left: calc(50% - 4px);
  cursor: ns-resize;
}
.resize-s {
  bottom: -7px;
  left: calc(50% - 4px);
  cursor: ns-resize;
}
.resize-e {
  right: -7px;
  top: calc(50% - 4px);
  cursor: ew-resize;
}
.resize-w {
  left: -7px;
  top: calc(50% - 4px);
  cursor: ew-resize;
}
.resize-ne {
  right: -7px;
  top: -7px;
  cursor: nesw-resize;
}
.resize-nw {
  left: -7px;
  top: -7px;
  cursor: nwse-resize;
}
.resize-se {
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
}
.resize-sw {
  left: -7px;
  bottom: -7px;
  cursor: nesw-resize;
}
.layout-locked .object {
  cursor: default;
}
.layout-locked .object:hover,
.layout-locked .object:focus-within {
  outline: 0;
}
.layout-locked .rotate-handle,
.layout-locked .resize-handle {
  display: none;
}
.video-screen video[src*='assets/diary'] {
  object-fit: contain;
}
.sticker video[src*='assets/diary'] {
  object-fit: contain;
  background: #252525;
  border-radius: 3px;
}
.projects-section {
  background: #f5f5f5;
  border-bottom: 1px solid #ccc;
  padding: 28px 5vw 80px;
}
.projects-inner {
  max-width: 1440px;
  margin: auto;
}
.real-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}
.real-project {
  border: 1px solid #d3d3ce;
  border-radius: 9px;
  overflow: hidden;
  background: #fafafa;
  cursor: pointer;
  box-shadow: 0 4px 10px #00000006;
}
.real-project:focus-visible {
  outline: 3px solid #3671b8;
  outline-offset: 5px;
}
.project-cover {
  height: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: #e1e9e5;
  color: #476358;
}
.project-cover strong {
  font-size: clamp(38px, 5vw, 72px);
  letter-spacing: -3px;
  font-weight: 400;
}
.cover-tag,
.cover-language {
  font: 11px monospace;
  letter-spacing: 0.5px;
}
.card-0 .project-cover {
  background: #d9e6ef;
  color: #345468;
}
.card-1 .project-cover {
  background: #e7e5d8;
  color: #696044;
}
.card-2 .project-cover {
  background: #e9dfd6;
  color: #8e5945;
}
.project-details {
  padding: 25px 28px;
}
.project-details h3 {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.7px;
  margin: 0;
}
.project-details p {
  font-size: 13px;
  color: #8a8a84;
  line-height: 1.7;
}
.project-links {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  font-size: 12px;
  color: #697a85;
}
.project-links a {
  text-decoration: none;
}
.project-links a:hover {
  text-decoration: underline;
}
.project-hover-hint {
  display: none;
  position: absolute;
  inset: auto 14px 14px;
  background: #fafafaee;
  border: 1px solid #b6c6d0;
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  color: #3f6077;
  box-shadow: 0 4px 12px #0001;
}
.real-project:hover .project-hover-hint,
.real-project:focus-within .project-hover-hint {
  display: block;
}
.more-projects {
  margin-top: 35px;
  border-top: 1px solid #ccc;
  padding-top: 24px;
  color: #73736e;
}
.more-projects summary {
  cursor: pointer;
  font-size: 15px;
}
.more-projects p {
  font-size: 12px;
  line-height: 1.7;
}
.repository-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.repository-grid a {
  font: 12px monospace;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.repository-grid a:hover {
  background: #e9eef0;
}
.modal .real-project-grid {
  gap: 12px;
}
.modal .project-cover {
  height: 160px;
  padding: 18px;
}
.modal .project-cover strong {
  font-size: 35px;
  letter-spacing: -1px;
}
.modal .project-details {
  padding: 16px;
}
.modal .project-details h3 {
  font-size: 20px;
}
.modal .project-details p {
  font-size: 12px;
}
.modal .project-links {
  font-size: 10px;
  gap: 10px;
}
.modal .project-hover-hint {
  font-size: 10px;
  padding: 7px;
}
.modal .repository-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.diary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.diary-card {
  text-align: left;
  padding: 0;
}
.diary-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 5px;
}
.diary-card span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #777;
}
.diary-card:hover img {
  outline: 2px solid #719fc4;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .projects-section {
    padding: 24px 20px 48px;
  }
  .real-project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-cover {
    height: 210px;
    padding: 23px;
  }
  .project-cover strong {
    font-size: 52px;
  }
  .project-details {
    padding: 22px;
  }
  .repository-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rotate-handle {
    height: 34px;
    width: 34px;
    font-size: 25px;
    right: -30px;
    bottom: -35px;
  }
  .resize-handle {
    width: 13px;
    height: 13px;
  }
  .diary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .edit-link {
    font-size: 0;
  }
  .edit-link span {
    font-size: 18px;
  }
  .status {
    gap: 7px;
  }
  .status #spotify-top {
    padding: 5px 7px;
    min-width: 43px;
  }
}
.object:hover,
.object:focus-within,
.object.selected:after {
  outline: 0;
  border: 0;
}
.resize-handle,
.object:hover > .resize-handle,
.object:focus-within > .resize-handle {
  opacity: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  pointer-events: auto;
}
.resize-n,
.resize-s {
  left: 12px;
  right: 12px;
  width: auto;
  height: 10px;
  transform: none;
}
.resize-n {
  top: -5px;
}
.resize-s {
  bottom: -5px;
}
.resize-e,
.resize-w {
  top: 12px;
  bottom: 12px;
  height: auto;
  width: 10px;
  transform: none;
}
.resize-e {
  right: -5px;
}
.resize-w {
  left: -5px;
}
.resize-ne,
.resize-nw,
.resize-se,
.resize-sw {
  width: 14px;
  height: 14px;
}
.rotate-handle {
  bottom: -36px;
  right: -16px;
}
.layout-locked .resize-handle {
  pointer-events: none;
}
.video-screen video[src*='assets/diary'] {
  object-fit: cover;
}
.hero-video .video-screen {
  aspect-ratio: var(--ratio, 9/16);
}
.instagram-video {
  padding-bottom: 25px;
}
.instagram-screen {
  background: #e5e5df;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid #bbb;
  box-shadow: 0 8px 22px #0001;
}
.instagram-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}
.reel-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: linear-gradient(165deg, #e2e5dd, #c6cbbb);
  color: #56634e;
}
.reel-cover span {
  font: 11px monospace;
  letter-spacing: 2px;
}
.reel-cover strong {
  font:
    52px Caveat,
    cursive;
  text-align: center;
  line-height: 1.1;
}
.reel-cover .play-cta {
  position: static;
  transform: none;
  color: #536346;
  text-shadow: none;
}
.reel-link {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #77816d;
  margin-top: 10px;
}
.project-cover.preview-cover {
  padding: 0;
  display: block;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 16/10;
  height: auto;
}
.project-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s;
}
.real-project:hover .project-preview {
  transform: scale(1.025);
}
.preview-caption {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fffffff0;
  border-radius: 4px;
  font: 10px monospace;
  color: #777;
  padding: 7px 9px;
}
.status #spotify-top {
  background: linear-gradient(#f7fff8, #d1edda);
  border: 1px solid #93ba9e;
  box-shadow:
    inset 0 1px 2px white,
    0 2px 4px #0001;
  border-radius: 30px;
  padding: 7px 15px;
}
.music-popover {
  position: fixed;
  right: 20px;
  top: 59px;
  z-index: 290;
  background: #f8f8f5;
  border: 1px solid #bac7bd;
  border-radius: 15px;
  box-shadow: 0 10px 40px #0002;
  padding: 14px;
  width: 330px;
  max-width: calc(100vw - 24px);
}
.music-popover-header {
  display: flex;
  justify-content: space-between;
  font:
    14px Caveat,
    cursive;
  margin-bottom: 10px;
}
.music-popover iframe {
  border: 0;
  width: 100%;
  height: 152px;
  border-radius: 10px;
}
.music-popover small {
  font-size: 10px;
  color: #888;
  display: block;
  margin-top: 7px;
}
.object {
  transform-origin: center center;
}
.being-shredded {
  transform-origin: top left;
}
.game-launch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 270;
  background: linear-gradient(#fafcff, #d7e4e9);
  border: 1px solid #c0ccd1;
  border-radius: 30px;
  box-shadow:
    inset 0 1px 2px white,
    0 3px 8px #0001;
  padding: 11px 20px;
  color: #65757b;
  font-size: 13px;
}
.game-launch span {
  display: inline-block;
  background: #00cddd;
  color: #00cddd;
  width: 22px;
  height: 7px;
  border-radius: 7px;
  margin-right: 7px;
}
.arcade {
  width: min(500px, 86vw);
  background: #030918;
  color: #b6c0d1;
}
.arcade-heading {
  padding: 20px 24px 0;
}
.arcade-heading span {
  font: 10px monospace;
  letter-spacing: 1px;
  color: #6f8399;
}
.arcade-heading h2 {
  font:
    30px Caveat,
    cursive;
  margin: 5px 0;
  color: white;
}
.arcade-heading p {
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}
.arcade-field {
  position: relative;
}
.arcade canvas {
  width: 100%;
  display: block;
  touch-action: none;
}
.arcade-result {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #030918d9;
  text-align: center;
}
.arcade-result[hidden] {
  display: none;
}
.arcade-result strong {
  font:
    60px Caveat,
    cursive;
  color: #fff;
}
.arcade-result span {
  font-size: 12px;
}
.arcade-result p {
  font:
    24px Caveat,
    cursive;
  color: #00dae7;
  line-height: 1.4;
}
.arcade-result .pill {
  font-size: 15px;
  height: 34px;
  padding: 0 20px;
}
.arcade-footer {
  padding: 12px 20px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
}
.arcade-footer .pill {
  height: 32px;
  font-size: 12px;
  padding: 0 12px;
}
.arcade-footer [data-again] {
  color: #aebacf;
  font-size: 11px;
}
.arcade-footer [data-count] {
  width: 100%;
}
.arcade canvas:focus-visible {
  outline: 1px solid #00dde9;
  outline-offset: -2px;
}
@media (max-width: 700px) {
  .status #spotify-top {
    padding: 6px 10px;
  }
  .game-launch {
    right: 15px;
    bottom: 15px;
    padding: 10px 15px;
  }
  .rotate-handle {
    bottom: -38px;
  }
  .arcade-heading {
    padding: 12px 16px 0;
  }
}
.video-window.minimized {
  height: auto !important;
}
.arcade-footer .pill,
.arcade-result .pill {
  color: #384753;
  text-shadow: none;
}
.arcade {
  background: #10132b;
  color: #d1cbee;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.arcade-heading {
  padding: 20px 24px 12px;
  background: #171b38;
}
.arcade-marquee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.arcade-heading .arcade-marquee span {
  font:
    14px Caveat,
    cursive;
  letter-spacing: 0.3px;
  color: #ffe397;
}
.arcade-marquee button {
  color: #bfb9dd;
  border: 1px solid #6e679455;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 10px;
  background: #292947;
}
.arcade-heading h2 {
  font:
    48px/0.88 Caveat,
    cursive;
  color: #fff4cb;
  margin: 15px 0 12px;
  letter-spacing: -1px;
}
.arcade-heading p {
  color: #a9a2ca;
  font-size: 11px;
}
.arcade-footer {
  background: #171b38;
  justify-content: space-between;
  padding: 14px 20px;
}
.arcade-footer [data-status] {
  color: #bfb9dd;
  max-width: 220px;
}
.arcade-footer .pill,
.arcade-result .pill {
  background: #ffe397;
  border: none;
  box-shadow: 0 3px 0 #a78345;
  color: #29213c;
  font-weight: 600;
  height: 36px;
}
.arcade-result {
  background: #10132be8;
  backdrop-filter: blur(4px);
  gap: 12px;
}
.arcade-result strong {
  font:
    76px/0.95 Caveat,
    cursive;
  color: #ffe397;
  transform: rotate(-5deg);
}
.arcade-result .arcade-stamp {
  border: 1px solid #ff91c5;
  color: #ff91c5;
  border-radius: 6px;
  transform: rotate(5deg);
  padding: 7px 15px;
  font-size: 12px;
}
.arcade-result p {
  font:
    21px/1.5 Caveat,
    cursive;
  padding: 0 20px;
  color: #ded5ff;
}
.arcade-result p b {
  display: inline-block;
  font-size: 32px;
  color: #76fce2;
  margin-top: 12px;
}
.arcade button:focus-visible {
  outline: 2px solid #76fce2;
  outline-offset: 4px;
}
@media (max-height: 820px) {
  .arcade {
    width: min(440px, 86vw);
  }
  .arcade-heading {
    padding: 12px 20px 8px;
  }
  .arcade-heading h2 {
    font-size: 40px;
    margin: 9px 0;
  }
  .arcade-footer {
    padding: 10px 16px;
  }
}
@media (max-height: 660px) {
  .arcade {
    width: min(350px, 86vw);
  }
  .arcade-heading h2 {
    font-size: 30px;
  }
  .arcade-heading p {
    font-size: 10px;
  }
  .arcade-footer {
    font-size: 10px;
  }
  .arcade-footer [data-status] {
    max-width: 160px;
  }
}
