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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.8;
    font-size: 18px;
    padding: 0 1rem;
}

a {
    color: #256d1b;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid #eaeaea;
    padding: 1rem 0;
    margin-bottom: 2rem;
}
.nav-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    font-weight: 600;
    font-size: 1.2rem;
}
.nav-links a {
    margin-left: 1rem;
    font-size: 1rem;
}

/* Page Content */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* Post Listing */
.post-preview {
    margin-bottom: 3rem;  /* 48px spacing between posts */
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.post-preview h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.post-preview p {
    color: #555;
    margin-top: 0.2rem;
}
.post-preview time {
    color: #aaa;
    font-size: 0.9rem;
}

/* Single Post Page */
.article-title {
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.article-meta {
    color: #888;
    margin-bottom: 2rem;
}
.markdown-body img,
.markdown-body iframe {
    max-width: 100%;
    display: block;
    margin: 2rem auto;
}
.markdown-body {
    line-height: 1.8;
    font-size: 1.1rem;
}
.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: #fafafa;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.04);
}

.form-container h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #256d1b;
    box-shadow: 0 0 0 2px rgba(37, 109, 27, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
}

/* Shared base button styles */
button, .btn-primary, .btn-secondary {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    font-family: inherit;
    display: inline-block;
    text-align: center;
}

/* Primary: filled */
.btn-primary {
    background: #256d1b;
    color: white;
    border: 1px solid #256d1b;
}

.btn-primary:hover {
    background: #1c5314;
    border-color: #1c5314;
}

/* Secondary: matching size, with outline */
.btn-secondary {
    background: transparent;
    color: #256d1b;
    border: 1px solid #256d1b;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(37, 109, 27, 0.05);
}

.navbar-brand img {
  vertical-align: middle;
  border-radius: 4px; /* optional, looks nice for PNGs */
}

.review-score-box {
  display: flex;
  align-items: center;
  background-color: #1e2430;
  color: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.review-badge {
  width: 80px;
  height: 80px;
  background-color: #d62828;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  font-family: 'Arial Black', sans-serif;
}

.review-score {
  font-size: 2rem;
  color: white;
}

.review-summary h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.review-summary p {
  margin: 0.5rem 0 0;
  font-size: 1rem;
}

.btn-danger {
  background-color: #d62828;
  border: 1px solid #d62828;
  color: white;
}
.btn-danger:hover {
  background-color: #a31c1c;
  border-color: #a31c1c;
}
