:root {
  --desk: #E9E7E1;
  --paper: #FDFDFB;
  --dot: #C9C9C2;
  --ink: #161616;
  --ink-soft: #4C4C4C;
  --ink-meta: #8A8A85;
  --hair: #D8D8D2;
  --red: #C0322C;
  --hl: #FBEBA8;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: "IBM Plex Sans KR", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 24px 14px 56px;
}

.tabs {
  display: flex;
  gap: 6px;
  padding-left: 20px;
  position: relative;
  z-index: 2;
}

.tab {
  display: block;
  padding: 11px 15px 14px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.tab:hover,
.tab.is-on {
  background: var(--hl);
}

.page {
  padding: 30px 22px;
  border: 2px solid var(--ink);
  border-radius: 0 3px 3px 3px;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-position: 8px 8px;
  background-size: 16px 16px;
}

.site-header {
  margin-bottom: 30px;
}

.mast {
  display: inline-block;
  margin: 0;
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
}

.sub {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.sub em {
  padding: 1px 3px;
  background: var(--hl);
  font-style: normal;
}

.intro {
  max-width: 42ch;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.block {
  margin: 0 0 24px;
  border: 2px solid var(--ink);
  background: rgba(253, 253, 251, .72);
}

.block:last-child {
  margin-bottom: 0;
}

.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px 10px;
  border-bottom: 2px solid var(--ink);
}

.head h2,
.head-title {
  margin: 0;
  font-family: "Space Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.head-title {
  margin: 0;
}

.cnt {
  color: var(--ink-meta);
  font-family: "Space Mono", monospace;
  font-size: 12.5px;
}

.note {
  margin: 0;
  padding: 10px 14px 2px;
  color: var(--ink-meta);
  font-size: 13.5px;
}

.log {
  margin: 0;
  padding: 4px 0 6px;
  list-style: none;
}

.log li + li,
.related-list li + li {
  border-top: 1px solid var(--hair);
}

.log a {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}

.log a:hover,
.related-list a:hover,
.text-link:hover {
  background: #F4F2EA;
}

.log a:focus-visible {
  outline-offset: -3px;
}

.mk {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.mk.done {
  background: var(--ink);
}

.mk.done::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.mk.wip {
  border-color: var(--ink-meta);
  border-style: dashed;
}

.txt {
  flex: 1;
  min-width: 0;
}

.ttl,
.dsc {
  display: block;
  overflow-wrap: anywhere;
}

.ttl {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.dsc {
  max-width: 42ch;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 14px;
}

.date {
  flex: none;
  margin-top: 5px;
  color: var(--ink-meta);
  font-family: "Space Mono", monospace;
  font-size: 12.5px;
}

.date.now {
  color: var(--red);
  font-family: "IBM Plex Sans KR", system-ui, sans-serif;
}

.about-summary,
.article {
  padding: 16px 14px;
}

.about-summary p {
  max-width: 42ch;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 15px;
}

.about-summary p:last-of-type {
  margin-bottom: 16px;
}

.text-link {
  display: inline-block;
  padding: 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-underline-offset: 3px;
}

.key {
  margin-top: 26px;
  padding: 14px;
  border: 2px solid var(--ink);
  background: rgba(253, 253, 251, .72);
  color: var(--ink-soft);
  font-size: 13.5px;
}

.key h2 {
  margin: 0 0 9px;
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.key ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.key li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.key .mk {
  width: 17px;
  height: 17px;
  margin-top: 0;
}

.key .mk.done::after {
  width: 6px;
  height: 6px;
}

.article-title {
  max-width: 42ch;
  margin: 0;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.article-meta {
  margin: 8px 0 20px;
  color: var(--ink-meta);
  font-family: "Space Mono", monospace;
  font-size: 13px;
}

.article-status {
  color: var(--red);
  font-family: "IBM Plex Sans KR", system-ui, sans-serif;
}

.article-body {
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 15px;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body h2 {
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.facts {
  margin: 0;
}

.facts div {
  padding: 12px 0;
  border-top: 1px solid var(--hair);
}

.facts div:last-child {
  border-bottom: 1px solid var(--hair);
}

.facts dt {
  color: var(--ink);
  font-weight: 500;
}

.facts dd {
  margin: 2px 0 0;
}

.related-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-list a {
  display: block;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.page-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}

@media (max-width: 520px) {
  .shell {
    padding: 16px 10px 40px;
  }

  .tabs {
    padding-left: 12px;
  }

  .tab {
    padding: 10px 12px 13px;
    font-size: 11.5px;
  }

  .page {
    padding: 24px 14px;
  }

  .mast,
  .article-title {
    font-size: 21px;
  }

  .date {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
