@import url(//fonts.googleapis.com/css?family=Ubuntu:500&subset=latin,latin-ext);
@import url('https://fonts.googleapis.com/css?family=Oswald|Kulim+Park|Nanum+Myeongjo|Nanum+Gothic|Noto+Sans|Noto+Sans+KR|Roboto&display=swap');

:root {
  --paper-bg: #fdf7e3;
  --paper-edge: #d5c7a5;
  --headline: #4b2c82;
  --subheadline: #7d629e;
  --link: #0000ff;
  --vlink: #aa0000;
  --rule: #b00000;
  --sidebar-bg: #f8efd2;
  --sidebar-border: #c49c56;
  --text-main: #222222;
  --muted: #6b6250;
  --accent: #ffe066;
  --brand: #6f4bff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Nanum Myeongjo", "Times New Roman", serif;
  background-color: var(--paper-bg);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.02) 0,
    rgba(0,0,0,0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: var(--link);
}

a:visited {
  color: var(--vlink);
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  padding: 12px 20px 12px 20px;
  border-left: 1px solid var(--paper-edge);
  border-right: 1px solid var(--paper-edge);
}

.sidebar {
  flex: 0 0 140px;
  border: 1px solid var(--sidebar-border);
  font-size: 0.78rem;
  line-height: 1.5;
  background-color: var(--sidebar-bg);
  padding: 25px 20px;
  margin-right: 25px;
}

.sidebar ul {
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
}

.sidebar li {
  margin-bottom: 2px;
}

.sidebar-brand {
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.sidebar-brand a {
  font-family: "Oswald", "Roboto", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--brand);
}

.nav-title {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--paper-edge);
  margin: 12px 0 4px 0;
  padding-bottom: 2px;
}

.nav-item {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.75rem;
  color: var(--text-main);
}

.nav-item:hover {
  color: var(--brand);
}

.sidebar-footer {
  margin-top: 16px;
  font-size: 0.7rem;
  color: var(--muted);
}

.sidebar-footer a {
  color: var(--brand);
}

.content {
  flex: 1 1 auto;
  padding-left: 16px;
}

header.post-header {
  border-bottom: 1px solid var(--rule);
  padding: 6px 0 10px 0;
  margin-bottom: 12px;
}

.post-title {
  font-family: "Nanum Myeongjo", "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--headline);
}

.post-meta {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.post-date {
  color: var(--vlink);
}

article {
  font-size: 0.95rem;
  line-height: 1.8;
}

article p {
  margin: 0 0 0.7em 0;
}

article p:first-of-type {
  text-indent: 0;
}

article h1,
article h2,
article h3 {
  font-family: "Nanum Myeongjo", "Times New Roman", serif;
  color: var(--headline);
  margin: 0 0 0.3em 0;
}

article h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subheadline);
}

blockquote {
  margin: 0 0 0.9em 0;
  padding-left: 8px;
  border-left: 3px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 18px 0;
}

footer {
  border-top: 1px solid var(--rule);
  margin-top: 18px;
  padding-top: 6px;
  font-family: "Ubuntu", sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

footer a {
  color: var(--brand);
}

@media (max-width: 720px) {
  .container {
    flex-direction: column;
    padding: 8px;
  }
  .sidebar {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid var(--sidebar-border);
    padding-bottom: 8px;
    margin-bottom: 10px;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    column-gap: 12px;
  }
  .sidebar-brand {
    width: 100%;
  }
  .content {
    padding-left: 0;
  }
}
