body {
    font-family: 'Source Serif 4', serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f7f3ef;
    font-size: 1.15rem;
    font-weight: 300;
}

pre {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
}

code {
    font-family: monospace;
    color: #333;
    font-size: 1rem;
    font-weight: 300;
}

pre code {
    line-height: 1.6;
    display: block;
    white-space: pre;
}

code:not(pre > code) {
  	background-color: #dcd4c9;
  	color: #3c3c3c;
  	padding: 2px 6px;
  	border-radius: 4px;
  	font-size: 0.95em;
  	white-space: nowrap;
    font-weight: 600;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 200px 2rem;
}

.post-list {
    margin-top: 2rem;
}

.post-item {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #ccc;
    transition: background-color 0.3s;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.post-item:hover {
    background-color: #fff;
}

.post-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
}

.post-date {
    color: #666;
    font-size: 1.15rem;
    align-content: center;
}

.post-title {
    font-weight: 400;
    width: 80%;
}

.post-header {
    margin-bottom: 2rem;
    position: relative;
}

.post-content {
    line-height: 1.8;
}

.single-post .post-title {
    width: 100%;
}

blockquote {
    border-left: 4px solid #7e7e7e;
    padding-left: 40px;
    margin-left: 0;
}

h1 {
    font-weight: 400;
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

.back-button {
    position: absolute;
    top: -50px;
    left: 0;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.back-button:hover {
    color: #666;
}

.back-arrow {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    body {
        font-size: 1.1rem;
    }

    .container {
        padding: 100px 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 80px 1rem;
    }

    .post-item a {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="date"] {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input[type="date"] {
    width: fit-content;
}

button[type="submit"] {
    padding: 0.75rem 1.5rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #444;
} 

/* Javascript Button */
.js-menu-link {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 0.95rem;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.js-menu-link:hover {
    border-color: #333;
}

/* table design */
table {
  border-collapse: collapse;
  width: 100%;
}

table th,
table td {
  border: 1px solid #dee2e6;
  padding: 0.25rem;
  vertical-align: top;
  text-align: left;
  line-height: 1.75rem;
}

table thead th {
  background-color: #f8f9fa;
  font-weight: bold;
}

input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    background-color: #f9f9f9;
    color: #333;
    transition: all 0.3s ease;
}
  
input[type="date"]:hover {
    border-color: #999;
    background-color: #f0f0f0;
}

input[type="date"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
  