@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f1e8;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 25px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #d85a3e;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #d85a3e;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Main Content - Home Page */
.main-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    padding-top: 80px;
    max-width: 100%;
}

.left-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-title {
    font-size: clamp(35px, 5.5vw, 90px);
    font-weight: 900;
    line-height: 0.95;
    color: #2c2c2c;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.right-section {
    padding-left: 20px;
    max-width: 100%;
    overflow-wrap: break-word;
}

.bio-text {
    font-size: 18px;
    line-height: 1.7;
    color: #2c2c2c;
    margin-bottom: 30px;
    font-weight: 400;
}

.bio-text:last-of-type {
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-link {
    font-size: 16px;
    color: #2c2c2c;
    font-weight: 400;
    line-height: 1.6;
}

.social-link a {
    color: #d85a3e;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-link a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Writings Page Specific Styles */
.writings-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
}

.writings-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 48px;
    font-weight: 900;
    color: #2c2c2c;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 18px;
    color: #2c2c2c;
    font-weight: 400;
}

.blog-posts {
    width: 100%;
    max-width: 800px;
}

.blog-preview {
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(216, 90, 62, 0.2);
}

.blog-preview:last-child {
    border-bottom: none;
}

.blog-preview:hover .blog-title a {
    opacity: 0.7;
}

.blog-title {
    margin-bottom: 8px;
}

.blog-title a {
    color: #d85a3e;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.blog-title a:hover {
    opacity: 0.7;
}

.blog-date {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-description {
    color: #2c2c2c;
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container, .writings-container {
        padding: 0 25px;
    }
    
    .main-content {
        gap: 50px;
        grid-template-columns: 1.1fr 1fr;
    }
    
    .right-section {
        padding-left: 0;
    }
    
    .main-title {
        font-size: clamp(32px, 6vw, 70px);
    }
}

@media (max-width: 768px) {
    .container, .writings-container {
        padding: 0 20px;
    }

    nav {
        padding: 0 20px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .right-section {
        padding-left: 0;
    }

    .main-title {
        font-size: clamp(32px, 8vw, 50px);
        margin-bottom: 30px;
        line-height: 1.1;
    }

    .nav-links {
        gap: 20px;
    }
    
    .bio-text {
        font-size: 16px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .container, .writings-container {
        padding: 0 15px;
    }
    
    .main-content {
        gap: 30px;
        padding-top: 60px;
    }
    
    .main-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 25px;
    }
    
    .bio-text {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        font-size: 14px;
    }
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content > * {
    animation: fadeInUp 0.8s ease-out;
}

/* Blog Post Page Styles */
.blog-post {
    max-width: 700px;
    width: 100%;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(216, 90, 62, 0.2);
}

.post-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 10px;
    line-height: 1.2;
}

.post-date {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.back-link {
    color: #d85a3e;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.7;
}

.post-content {
    line-height: 1.8;
    color: #2c2c2c;
}

.post-content p {
    margin-bottom: 20px;
    font-size: 17px;
}

.post-content h2 {
    color: #2c2c2c;
    font-size: 24px;
    font-weight: 600;
    margin: 40px 0 20px 0;
}
/* Comments Section Styles */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(216, 90, 62, 0.2);
}

.comments-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 30px;
}

.comments-list {
    margin-bottom: 40px;
}

.comment {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 3px solid #d85a3e;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    color: #d85a3e;
    font-size: 16px;
}

.comment-date {
    color: #666;
    font-size: 14px;
}

.comment-text {
    color: #2c2c2c;
    line-height: 1.6;
    margin: 0;
}

.no-comments {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Comment Form Styles */
.comment-form {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(216, 90, 62, 0.1);
}

.comment-form h4 {
    color: #2c2c2c;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #2c2c2c;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(216, 90, 62, 0.2);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d85a3e;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-form button {
    background: #d85a3e;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form button:hover {
    background: #c74a2e;
    transform: translateY(-1px);
}

/* Responsive adjustments for comments */
@media (max-width: 768px) {
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .comment-form {
        padding: 20px;
    }
}
/* Reply-specific styles */
.reply-button {
    background: transparent;
    color: #d85a3e;
    border: 1px solid #d85a3e;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.reply-button:hover {
    background: #d85a3e;
    color: white;
}

.reply-form {
    margin-top: 15px;
    padding: 15px;
    background: rgba(216, 90, 62, 0.05);
    border-radius: 6px;
    border-left: 2px solid #d85a3e;
}

.reply-form .form-group {
    margin-bottom: 10px;
}

.reply-form input,
.reply-form textarea {
    font-size: 14px;
    padding: 8px;
}

.reply-form button {
    font-size: 14px;
    padding: 6px 12px;
    margin-right: 8px;
}

.reply-form button[type="button"] {
    background: #666;
}

.reply-form button[type="button"]:hover {
    background: #555;
}

/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 40px 40px;
}

.admin-login {
    max-width: 400px;
    margin: 150px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #d85a3e;
}

.admin-header h1 {
    color: #2c2c2c;
    font-size: 32px;
}

.new-post-btn {
    background: #d85a3e;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.new-post-btn:hover {
    background: #c74a2e;
}

.admin-post {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid #d85a3e;
}

.admin-post h3 {
    margin-bottom: 8px;
    color: #2c2c2c;
}

.admin-post h3 a {
    color: #d85a3e;
    text-decoration: none;
}

.admin-post h3 a:hover {
    text-decoration: underline;
}

.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-description {
    color: #2c2c2c;
    margin-bottom: 15px;
    line-height: 1.5;
}

.post-actions {
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.edit-btn {
    background: #4CAF50;
    color: white;
}

.delete-btn {
    background: #f44336;
    color: white;
}

.edit-btn:hover {
    background: #45a049;
}

.delete-btn:hover {
    background: #da190b;
}

.post-form {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
}

.post-form textarea {
    min-height: 200px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary {
    background: #d85a3e;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #c74a2e;
}

.btn-secondary {
    background: #666;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #555;
    text-decoration: none;
}

/* Admin Comment Management Styles */
.admin-comment {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 3px solid #d85a3e;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.comment-meta strong {
    color: #d85a3e;
}

.comment-meta a {
    color: #d85a3e;
    text-decoration: none;
}

.comment-meta a:hover {
    text-decoration: underline;
}

.comment-date {
    color: #999;
    font-size: 13px;
}

.comment-text {
    color: #2c2c2c;
    line-height: 1.5;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 8px;
}

/* Responsive admin styles */
@media (max-width: 768px) {
    .admin-container {
        padding: 80px 20px 20px 20px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .post-form {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        text-align: center;
    }
    
    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Media Items Styles */
.media-list {
    width: 100%;
    max-width: 800px;
}

.media-item {
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(216, 90, 62, 0.2);
}

.media-item:last-child {
    border-bottom: none;
}

.media-title {
    margin-bottom: 8px;
}

.media-title a {
    color: #d85a3e;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.media-title a:hover {
    opacity: 0.7;
}

.media-date {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-description {
    color: #2c2c2c;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.no-items {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* big-title wrapping */
.page-title,
.main-title{
  word-break:break-word;
  overflow-wrap:anywhere;
  hyphens:auto;
}

@media(max-width:768px){
  nav{
    flex-direction:column;
    align-items:center;
    padding:0 12px;
    gap:6px;
  }
  .nav-links{
    flex-wrap:wrap;
    justify-content:center;
    gap:10px 18px;
    margin-top:0;
  }
  .nav-links a{font-size:15px;}
  .container,
  .writings-container{padding-top:120px;}
  .page-title{font-size:30px;line-height:1.1;}
}