/*
Theme Name: Bincy Joseph
Theme URI: https://bincyjoseph.com
Author: Bincy Joseph
Description: A clean, minimal personal blog theme for Bincy Joseph — About, Opinion, Trading, Movie Review, Book Review, and Contact.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bincy
*/

:root {
  --bg: #FDFCFA;
  --text: #232220;
  --muted: #6B665F;
  --accent: #8A7355;
  --border: #E7E2D8;
  --max-width: 860px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 30px;
  letter-spacing: 0.02em;
  font-weight: normal;
}

.connect-link {
  font-size: 16px;
  color: #F78115;
}
.connect-link:hover { color: var(--text); }

/* Hero / About */
.hero {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 56px 0;
}

.hero-photo {
  width: 60%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--border);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-text {
  width: 40%;
  flex-shrink: 0;
  padding-top: 8px;
}

.hero-text h1 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 14px 0;
  font-weight: normal;
}

.hero-text p {
  font-size: 17px;
  margin: 0;
}

/* Category link row */
nav.category-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 17px;
}

nav.category-links a {
  color: #F78115;
  padding: 4px 2px;
}
nav.category-links a:hover { color: var(--text); }

nav.category-links .divider {
  color: var(--border);
}

/* Feed */
.feed {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.story-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.story-card img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.story-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.story-card h2 {
  font-size: 21px;
  margin: 0 0 8px 0;
  font-weight: normal;
}

.story-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 8px 0;
}

.story-date {
  font-size: 13px;
  color: var(--muted);
}

/* Footer / contact */
footer#contact {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px 0;
  text-align: center;
  font-size: 17px;
  color: var(--muted);
}

footer#contact a {
  margin: 0 10px;
  color: #F78115;
}
footer#contact a:hover { color: var(--text); }

/* Story page */
.story-page {
  padding: 48px 0;
}

.back-link {
  display: inline-block;
  font-size: 16px;
  color: #F78115;
  margin-bottom: 32px;
}
.back-link:hover { color: var(--text); }

.story-page h1 {
  font-size: 34px;
  font-weight: normal;
  margin: 8px 0 16px 0;
}

.story-page .story-cover {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 2px;
  margin: 24px 0;
}

.story-page .story-body {
  font-size: 18px;
}

.story-page .story-body p { margin: 0 0 20px 0; }

/* Comments (native WordPress comments, styled) */
.comments-section {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 32px;
}

.comments-section h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: normal;
  margin-bottom: 24px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  font-family: Georgia, serif;
}

.comment-form input,
.comment-form textarea {
  font-family: Georgia, serif;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  width: 100%;
}

.comment-form textarea { min-height: 90px; resize: vertical; }

.comment-form p { margin: 0; }

.comment-form .form-submit input,
.comment-form button {
  align-self: flex-start;
  width: auto;
  font-family: Georgia, serif;
  font-size: 14px;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 10px 22px;
  border-radius: 2px;
  cursor: pointer;
}
.comment-form .form-submit input:hover,
.comment-form button:hover { background: var(--accent); }

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: -4px;
}

.comment-list { display: flex; flex-direction: column; gap: 20px; }

.comment {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.comment .comment-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.comment .comment-meta strong { color: var(--text); }

/* 404 */
.not-found {
  padding: 96px 0;
  text-align: center;
}
.not-found h1 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: normal;
}
.not-found p { font-size: 18px; margin-top: 12px; }

.empty-state {
  color: var(--muted);
  font-size: 16px;
  padding: 24px 0;
}

@media (max-width: 640px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-photo { width: 100%; aspect-ratio: 4 / 3; }
  .hero-text { width: 100%; padding-top: 0; }
  .story-card { flex-direction: column; }
  .story-card img { width: 100%; height: 180px; }
}
