@import url("./post-layout.css?v=20261012-1");

:root {
  --paper-000: #f7f3f0;
  --paper-900: #17140f;
  --paper-500: #7a7365;
  --paper-line: #11100b;

  --ink-950: #0b0f18;
  --ink-900: #e5e3e3;
  --ink-800: #161d2b;
  --ink-700: #1e2739;
  --line-600: #2a3348;

  --brass-400: #d8b578;
  --brass-500: #c9a15c;
  --brass-600: #a9803f;

  --parchment-100: #ede6d6;
  --parchment-300: #c7c2b4;
  --muted-500: #8b92a6;

  --font-display: "Pretendard Variable", Pretendard, sans-serif;
  --font-ui: "Pretendard Variable", Pretendard, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: var(--font-ui);
}

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea,
select,
code,
pre {
  font-family: inherit;
}

img {
  max-width: none;
}

body.app-body {
  height: 100vh;
  overflow: hidden;
}

.split {
  --left-width: 33.3333%;
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.panel {
  height: 100%;
  overflow: hidden;
}

.panel--left {
  flex: 0 0 var(--left-width);
  min-width: 20%;
  max-width: 80%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  color: var(--paper-900);
}

.panel--left::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--active-panel-bg, var(--paper-000));
  transition: background-color 0.25s var(--ease);
  content: "";
}

.panel--right {
  flex: 1 1 auto;
  position: relative;
  background: var(--ink-900);
}

.split--work .panel--left {
  flex-basis: 100%;
  width: 100%;
  min-width: 100%;
  max-width: none;
}

.split--work .panel--right,
.split--work .splitter {
  display: none;
}

.split--work .typo-overlay {
  z-index: 3;
}

.split--work .left-nav {
  z-index: 4;
}

.split--work .left-content {
  --content-gutter: 0px;
  padding: 0 0 72px;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

.splitter {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--left-width) - 12px);
  width: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: col-resize;
  touch-action: none;
}

.splitter__handle {
  width: 4px;
  height: 56px;
  border-radius: 3px;
  background: var(--paper-line);
  transition:
    background 0.15s var(--ease),
    height 0.15s var(--ease);
}

.splitter:hover .splitter__handle,
.splitter.is-dragging .splitter__handle {
  background: var(--brass-500);
  height: 88px;
}

.left-nav {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}

.left-nav__right {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 20px;
  row-gap: 10px;
  align-items: center;
  justify-items: end;
}

.left-nav__link {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--paper-900);
  transition: color 0.15s var(--ease);
}

.left-nav__link::before {
  content: "[";
  color: var(--paper-500);
  margin-right: 1px;
}
.left-nav__link::after {
  content: "]";
  color: var(--paper-500);
  margin-left: 1px;
}

.left-nav__link:hover,
.left-nav__link.is-active {
  color: var(--brass-600);
}

.left-nav__link--home::before,
.left-nav__link--home::after {
  content: none;
}

.left-nav__logo {
  display: block;
  height: 40px;
  width: 100px;
}

.left-nav__logo svg {
  display: block;
  height: 100%;
  width: 100%;
}

.left-content {
  --content-gutter: 32px;
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 0 var(--content-gutter) 72px;
}

.view {
  display: none;
}

.view--active {
  display: block;
  animation: view-in 0.35s var(--ease);
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 10px 0 32px;
  background: var(--paper-line);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper-500);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

.home-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}

.home-sub {
  margin: 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--paper-500);
}

.home-sub a {
  color: var(--brass-600);
  text-decoration: underline;
  text-decoration-color: var(--paper-line);
}

.section-title {
  margin: 10px 0 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
}

.body-text {
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper-900);
}

.work-list {
  --work-grid-columns: 5;
  --work-cell-height: 216px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--work-grid-columns), minmax(0, 1fr));
  grid-auto-rows: var(--work-cell-height);
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.work-list--lined {
  display: block;
  background: var(--paper-000);
  isolation: isolate;
}

.work-list--lined .work-item {
  position: absolute;
}

.work-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  list-style: none;
  pointer-events: none;
}

.work-grid-lines svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(25, 25, 20, 0.65);
  stroke-width: 1;
}

.work-status {
  grid-column: 1 / -1;
  list-style: none;
  padding: 22px 4px;
  border-bottom: 1px solid var(--paper-line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper-500);
}

.work-status--error {
  color: var(--paper-900);
}

.work-item {
  position: relative;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}

.work-item__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-list--lined img.work-item__thumb {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.work-item__thumb--empty {
  background: transparent;
}

.work-item--temporary {
  cursor: default;
  background: var(--active-panel-bg, var(--paper-000));
}

.work-item__temp-label {
  position: absolute;
  right: 7px;
  bottom: 5px;
  z-index: 1;
  padding: 2px 5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  pointer-events: none;
}

@media (max-width: 1199px) {
  .work-list {
    --work-grid-columns: 4;
  }
}

@media (max-width: 959px) {
  .work-list {
    --work-grid-columns: 3;
  }
}

@media (max-width: 719px) {
  .work-list {
    --work-grid-columns: 2;
  }
}

@media (max-width: 479px) {
  .work-list {
    --work-grid-columns: 1;
  }
}

.post-modal[hidden] {
  display: none;
}

.post-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(255, 255, 255, 0.55) transparent;
  scrollbar-width: thin;
}

.post-modal::-webkit-scrollbar {
  width: 12px;
}

.post-modal::-webkit-scrollbar-track {
  background: transparent;
}

.post-modal::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  background-clip: content-box;
}

.post-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(7px);
}

.post-modal__dialog {
  position: relative;
  z-index: 1;
  width: var(--post-panel-width);
  min-height: calc(100vh - 96px);
  margin: 48px auto;
  background: var(--paper-000);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}

.post-modal--revealing .post-modal__dialog {
  background: transparent;
  box-shadow: none;
}

.post-modal--revealing .post-modal__content {
  will-change: transform, clip-path;
}

.post-modal__close {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 1002;
  width: 42px;
  height: 42px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 15, 15, 0.78);
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.post-modal__close:hover {
  background: #111;
}

.post-modal__content {
  min-height: inherit;
}

.post-detail {
  --content-gutter: var(--post-content-gutter);
  min-height: inherit;
  padding: clamp(48px, 7vw, 96px) var(--content-gutter) 96px;
  color: var(--post-text-color);
  background: var(--active-panel-bg, var(--paper-000));
}

.post-detail[hidden] {
  display: none;
}

body.post-modal-open {
  overflow: hidden;
}

.post-detail__title {
  margin: 20px 0 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.post-detail__date {
  margin: -12px 0 24px;
  font-size: 12px;
  color: var(--paper-500);
}

.post-detail__body {
  padding-bottom: 40px;
}

.post-detail__body-text,
.post-detail__body-heading,
.post-detail__body-quote,
.post-detail__body-list {
  width: 100%;
  max-width: none;
  font-family: var(--post-font-family);
  letter-spacing: normal;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-detail__align--left {
  text-align: left;
}

.post-detail__align--center {
  text-align: center;
}

.post-detail__align--right {
  text-align: right;
}

.post-detail__font--sizeSmall {
  font-size: 13px;
  line-height: 1.75;
}

.post-detail__font--normal {
  font-size: 15px;
  line-height: 1.75;
}

.post-detail__font--sizeLarge {
  font-size: 20px;
  line-height: 1.55;
}

.post-detail__font--sizeXLarge {
  font-size: 28px;
  line-height: 1.4;
}

.post-detail__font--sizeDisplay {
  font-size: 36px;
  line-height: 1.3;
}

.post-text-weight strong {
  font-weight: inherit;
}

.post-detail__body-text,
.post-detail__body-list {
  margin: 0 0 20px;
}

.post-detail__body-heading {
  margin: 36px 0 16px;
  line-height: 1.3;
}

.post-detail__body-quote {
  margin: 28px 0;
  padding-left: 18px;
  border-left: 2px solid var(--paper-line);
  color: var(--paper-500);
  line-height: 1.75;
}

.post-block {
  margin: 0 0 24px;
}

.post-block--default {
  width: min(100%, var(--post-media-default-width));
}

.post-block--wide {
  width: 100%;
}

.post-block--full {
  width: calc(100% + var(--content-gutter) * 2);
  margin-left: calc(var(--content-gutter) * -1);
  margin-right: calc(var(--content-gutter) * -1);
}

.post-block--align-center:not(.post-block--full) {
  margin-right: auto;
  margin-left: auto;
}

.post-block--align-right:not(.post-block--full) {
  margin-right: 0;
  margin-left: auto;
}

.post-block__image {
  display: block;
  width: 100%;
  height: auto;
}

.post-detail__body .post-text-color a {
  color: inherit;
}

.post-block__video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-line);
}

.post-block__video-frame iframe,
.post-block__video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-block__video-frame video {
  object-fit: contain;
}

.post-block__caption {
  margin: 8px var(--content-gutter) 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--paper-500);
}

.post-block:not(.post-block--full) .post-block__caption {
  margin-inline: 0;
}

.post-file {
  width: min(100%, 720px);
  margin: 28px 0;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}

.post-file__information {
  min-width: 0;
}

.post-file__title {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.post-file__meta {
  margin: 5px 0 0;
  color: var(--paper-500);
  font-size: 11px;
  line-height: 1.5;
}

.post-file__button {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--paper-900);
  color: var(--paper-900) !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}

.post-file__button::after {
  margin-left: 20px;
  content: "↓";
}

.post-file__button:hover {
  background: var(--paper-900);
  color: var(--active-panel-bg, var(--paper-000)) !important;
}

@media (max-width: 520px) {
  .post-file {
    align-items: stretch;
    flex-direction: column;
  }

  .post-file__button {
    justify-content: space-between;
  }
}

.post-detail__body a {
  color: var(--brass-600);
  text-decoration: underline;
}

.viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink-900);
  cursor: grab;
  touch-action: none;
}

.viewport.is-dragging {
  cursor: grabbing;
}

.skin-layer {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;

  user-select: none;
}

.skin-image {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.acne {
  position: absolute;
  width: 546px;
  height: 546px;
  transform: translate(-50%, -50%);
  padding: 0;
  z-index: 1;
  transition: opacity 0.3s var(--ease);
}

.acne:hover,
.acne:focus-visible,
.acne--hover {
  z-index: 2;
}

.acne--opening {
  pointer-events: none;
}

.acne__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.acne__tooltip {
  position: absolute;
  left: calc(50% + var(--acne-tooltip-shift, 0px));
  top: calc(100% + var(--acne-tooltip-gap, 18px));
  display: flex;
  align-items: center;
  gap: 9.6px;
  width: max-content;
  max-width: 216px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line-600);
  border-radius: 7.2px;
  background: rgba(14, 20, 32, 0.92);
  transform: translateX(-50%) scale(var(--map-tooltip-scale, 1));
  transform-origin: top center;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
  pointer-events: none;
}

.acne__tooltip:empty {
  display: none;
}

.acne--tooltip-above .acne__tooltip {
  top: auto;
  bottom: calc(100% + var(--acne-tooltip-gap, 18px));
  transform-origin: bottom center;
}
.acne:hover .acne__tooltip,
.acne:focus-visible .acne__tooltip,
.acne--hover .acne__tooltip {
  opacity: 1;
}
.acne--opening .acne__tooltip {
  opacity: 0;
}

.acne__tooltip-thumb {
  display: block;
  width: 38.4px;
  height: 38.4px;
  object-fit: cover;
  border-radius: 3.6px;
  flex: 0 0 auto;
}

.acne__tooltip-text {
  display: flex;
  flex-direction: column;
  gap: 1.2px;
  min-width: 0;
  text-align: left;
}
.acne__tooltip-date {
  font-size: 12px;
  color: var(--muted-500);
  white-space: nowrap;
}
.acne__tooltip-title {
  font-size: 14.4px;
  font-weight: 600;
  color: var(--parchment-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acne__img--bounce {
  animation: acne-bounce 0.4s var(--ease);
}
@keyframes acne-bounce {
  from {
    transform: scale(0.7);
  }
  to {
    transform: scale(1);
  }
}

.typo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  opacity: 1;

  pointer-events: none;
}

.typo-overlay__canvas {
  position: absolute;
  inset: 0;
}

.typo-overlay__canvas canvas {
  display: block;
  touch-action: none;
  pointer-events: none;
}

.typo-reset-btn {
  grid-column: 2;
  padding: 0;
  border: 0;
  color: var(--paper-500);
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 0.15s var(--ease);
}

.typo-reset-btn:hover {
  color: var(--brass-600);
}

.acne-controls {
  position: absolute;
  top: 20px;
  right: 20px;

  z-index: 2;
  display: flex;
  pointer-events: auto;
}

.acne-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--parchment-100);
  background: rgba(14, 20, 32, 0.85);
  border: 1px solid var(--line-600);
  padding: 10px 18px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    transform 0.15s var(--ease);
}

.acne-btn:hover {
  background: var(--ink-700);
  border-color: var(--brass-600);
  transform: translateY(-1px);
}

::view-transition-old(root) {
  animation: view-fade-out 0.35s var(--ease) both;
}
::view-transition-new(root) {
  animation: view-fade-in 0.35s var(--ease) both;
}
@keyframes view-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes view-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acne__tooltip,
  .left-nav__link,
  .work-item,
  .view--active,
  .typo-overlay,
  .typo-reset-btn,
  .acne-btn,
  .acne,
  .acne__img--bounce {
    transition: none !important;
    animation: none !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

:focus-visible {
  outline: 2px solid var(--brass-400);
  outline-offset: 2px;
}
