* {
  box-sizing: border-box;
}

:root {
  --bg-color: #fff;
  --line-color: #000;
}

.adjective {
  font-family: pa, sans-serif;
  font-weight: 400;
  line-height: 1;
}

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  unicode-bidi: isolate;
  word-break: keep-all;
  /* text-wrap: pretty; */
}

body {
  width: 100vw;
  min-height: 100dvh;
  max-height: 100lvh;
  max-height: 100svh;
  font-family: pa, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures discretionary-ligatures contextual;
  font-feature-settings: "liga" 1, "dlig" 1, "calt" 1; /* 대체글리프 사용 */
  background: white;
}

a {
  color: black;
  text-decoration: none;
}
a:hover {
  color: gray;
}
a:active {
  color: black;
}
a.same {
  color: black;
}
a.external::after {
  content: "\2060↗";
  position: relative;
  top: -0.25rem;
  font-size: 0.7em;
  font-weight: 500;
}

p {
  display: block;
  /* margin-block-start: 1em;
  margin-block-end: 1em; */
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}
p a {
  text-decoration: none;
  border-bottom: 1px dashed black;
  color: black;
}
p a:hover {
  border-bottom: none;
}

input {
  display: inline-block;
  max-width: 64px;
  height: 1.1rem;
  field-sizing: content;
  padding: 0;
  border: none;
  border-radius: 0;
  font-family: pa, sans-serif;
  font-size: 1rem;
  line-height: 1;
  background-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
input:hover {
  outline: none;
}
input:focus {
  outline: none;
  /* border-bottom: 1px solid black; */
}
input::placeholder {
  position: relative;
  top: -0.05rem;
  vertical-align: middle;
  /* font-family: "JetBrains Mono", AG, sans-serif; */
  font-size: 0.97rem;
  line-height: 1;
  color: black;
}
input:hover::placeholder {
  color: gray;
}
input:focus::placeholder {
  color: transparent;
}
/* input:not(:placeholder-shown) {
  border-bottom: 1px solid black;
} */

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  padding: 0 1rem;
  overscroll-behavior-y: none;
}

.header {
  display: flex;
  justify-content: space-between;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background: linear-gradient(white, 60%, rgba(255, 255, 255, 0));
  z-index: 999999;
  line-height: 1;
}
.header a {
  background: #fff;
}

.info {
  padding: 3rem 0;
}
.info-row {
  display: flex;
  /* gap: 1rem; */
}
.info-col:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25%;
}
.info-col:last-child {
  width: 75%;
  display: grid;
  grid-template-columns: 1fr var(--side-width, 16em);
  gap: 0 1.6em;
}
.info-content:first-child {
  width: 100%;
  -webkit-column-width: 20em;
  -moz-column-width: 20em;
  column-width: 20em;
  -webkit-column-gap: 1.6em;
  -moz-column-gap: 1.6em;
  column-gap: 1.6em;
  /* -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid; */
}
.info-content:first-child p {
  padding-bottom: 1rem;
  /* -webkit-column-break-inside: avoid;
  break-inside: avoid;
  page-break-inside: avoid; */
}

.info-content:last-child {
  width: 100%;
}

.archive {
  display: flex;
  flex-direction: column;
  /* gap: 1rem; */
  /* border-top: 1px solid black; */
  /* padding: 0.5rem 0; */
}

.archive-row {
  display: flex;
  /* gap: 1rem; */
  width: 100%;
  margin-top: 1rem;
}

.archive-col {
  width: 100%;
}
.archive-col:first-child {
  width: 25%;
}
.archive-col:last-child {
  width: 75%;
  /* margin-top: -0.12rem; */
}
.archive-categories li {
  /* height: 1rem; */
  /* line-height: 1.9; */
  line-height: 1;
  margin-bottom: 1rem;
}
.archive-categories a.active {
  /* text-decoration-line: line-through;
  -webkit-text-decoration-line: line-through; */
  pointer-events: none;
  color: black;
}
.archive-categories a.active::after {
  content: "\2009\261E";
  /* content: "\2009•"; */
  pointer-events: none;
}

.archive-utils {
  width: 100%;
  display: flex;
  justify-content: space-between;
  /* line-height: 1; */
  line-height: 1;
  margin-bottom: 0.375rem;
}
.archive-utils:last-child {
  text-align: right;
}
.archive-utils a.active {
  color: black;
}
.archive-utils a.active.asc::after {
  font-size: 0.85em;
  line-height: 1;
  content: "↑";
}
.archive-utils a.active.desc::after {
  font-size: 0.85em;
  line-height: 1;
  content: "↓";
  color: black;
}
.archive-lists {
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 1rem; */
  -webkit-column-width: 16em;
  -moz-column-width: 16em;
  column-width: 16em;
  -webkit-column-gap: 1.6em;
  -moz-column-gap: 1.6em;
  column-gap: 1.6em;
  text-align: left;
}
.archive-lists li {
  display: flex;
  justify-content: space-between;
  break-inside: avoid;
  line-height: 1;
}
.archive-item {
  display: flex;
  gap: 1rem;
  border-top: dashed 1px black;
}
.archive-title {
  /* width: 65%; */
  padding: 0.25rem 0 0.36rem 0;
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.archive-date {
  font-variant-numeric: tabular-nums;
  padding: 0.25rem 0 0.36rem 0;
  white-space: nowrap;
  text-align: right;
}
.archive-item.is-col-top {
  border-top: solid 1px black;
}
.archive-item.is-dimmed {
  color: gray;
  pointer-events: none;
  user-select: none;
}
.archive-item.is-dimmed a {
  color: gray;
  text-decoration: none;
  cursor: default;
}

.item-container {
  /* display: flex;
  gap: 1rem; */
}
.item-header {
  width: 100%;
}
.item-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1rem;
}
.item-info {
  /* display: flex; */
  /* justify-content: space-between; */
  width: 100%;
}
.item-info-metadata {
  display: flex;
  justify-content: space-between;
  width: 100%;
  opacity: 0.5;
}
.item-info-title {
  /* font-family: Pretendard; */
  /* font-size: 1.4rem; */
  font-weight: 600;
}

/* 일지 스타일 */
.item-journal {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  /* border-top: 1px solid black; */
}
.item-left {
  width: 25%;
}
.item-lists {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.item-lists > li.dim {
  /* border-top: dashed 1.4px black; */
  color: gray;
}
.item-lists > li.dim a {
  color: gray;
}
.item-lists > li.dim a:hover {
  color: black;
}
.item-lists > li:not(.dim) {
  border-top: 1px solid black;
}
.item-list {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0.25rem 0;
}
.item-title {
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-date {
  white-space: nowrap;
  text-align: right;
}

.item-journal-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 50%;
}
.item-journal-content p,
h2,
figure {
  margin-bottom: 1rem;
}
figcaption {
  opacity: 0.5;
}

.item-right {
  width: 25%;
}

.footer {
  width: 100%;
  padding: 1rem 0;
  line-height: 1.6;
  /* text-align: right; */
}
.copy {
  line-height: 1;
}

/* .footer {
-webkit-column-width: 16em;
  -moz-column-width: 16em;
  column-width: 16em;
  -webkit-column-gap: 2em;
  -moz-column-gap: 2em;
  column-gap: 2em;
  text-align: left;
  display: block;
  white-space: nowrap;
} */

@media screen and (max-width: 1200px) {
  .info-col:last-child {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 75%;
  }
  .info-content:first-child {
    width: 100%;
  }
  .info-content:last-child {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .item-container {
    display: flex;
    flex-direction: column;
  }
  .item-info {
    width: 100%;
  }
  .item-journal-main {
    width: 100%;
  }
  .item-left {
    display: none;
  }
  .item-right {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 0.625rem;
  }
  .header {
    padding-top: 0.625rem;
    padding-bottom: 1.25rem;
  }
  .footer {
    padding-top: 1.25rem;
    padding-bottom: 0.625rem;
  }

  .info-col:first-child {
    display: none;
  }
  .info-col:last-child {
    width: 100%;
  }
  .info-content:first-child {
    width: 100%;
  }
  .info-content:first-child p {
    width: 100%;
    /* text-wrap: balance; */
  }
  .info-content:last-child ul li:last-child {
    /* background-color: yellow; */
    padding-left: 25%;
  }
}

::selection {
  background: black;
  color: white;
}
