* {
  box-sizing: border-box;
}

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

.adjective {
  font-family: love, 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: love, 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.15em;
  font-size: 0.75em;
  font-weight: 500;
  vertical-align: super;
} */

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: 128px;
  height: 1.1rem;
  field-sizing: content;
  padding: 0;
  border: none;
  border-radius: 0;
  font-family: love, 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 {
  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: 2rem 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;
}
.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; */
  line-height: 1.9;
}
.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";
  pointer-events: none;
}

.archive-utils {
  width: 100%;
  display: flex;
  justify-content: space-between;
  /* line-height: 1; */
  line-height: 1.8;
  /* margin-bottom: 0.4rem; */
}
.archive-utils:last-child {
  text-align: right;
}
.archive-utils a.active {
  color: black;
}
.archive-utils a.active.asc::after {
  font-size: 0.8em;
  line-height: 1;
  content: "↑";
  /* font-weight: 700; */
}
.archive-utils a.active.desc::after {
  font-size: 0.8em;
  line-height: 1;
  content: "↓";
  color: black;
  /* font-weight: 700; */
}
.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.8;
}
.archive-item {
  border-top: dashed 1px black;
}
.archive-title {
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.archive-date {
  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%;
}
.item-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* 일지 스타일 */
.item-journal {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  margin-top: 0.5rem;
  /* 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-content {
  width: 50%;
}
.item-journal-content h2 {
  margin-top: -0.35rem;
  font-size: 1.2rem;
  line-height: 1.4;
}
.item-journal-content p {
  margin-top: 1rem;
}
.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%;
  }

  .item-container {
    display: flex;
    flex-direction: column;
  }
  .item-info {
    width: 100%;
  }
  .item-journal-content {
    width: 100%;
  }
  .item-right {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }
  .header {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
  }
  .footer {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
  }

  .item-right {
    display: none;
  }
  .item-left {
    display: none;
  }
  .item-journal-content h2 {
    margin-top: 2em;
  }

  /* .archive-links {
    position: fixed;
    bottom: 1.5rem;
    left: 0.5rem;
  }
  .archive-links a {
    background-color: white;
  } */
}

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