* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #2d3748;
  background-color: #edf3ee;
  background-image:
    repeating-linear-gradient(0deg, rgba(93, 120, 102, 0.075), rgba(93, 120, 102, 0.075) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(90deg, rgba(93, 120, 102, 0.06), rgba(93, 120, 102, 0.06) 1px, transparent 1px, transparent 10px),
    radial-gradient(circle at 1px 1px, rgba(93, 120, 102, 0.05) 1px, transparent 0),
    linear-gradient(180deg, rgba(255,255,255,0.36), rgba(255,255,255,0.10));
  background-size: auto, auto, 12px 12px, auto;
}

.page {
  padding: 28px 0;
}

.site-shell {
  width: 70vw;
  margin-left: 15vw;
  margin-right: 15vw;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 4px;
  margin-bottom: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.58)),
    repeating-linear-gradient(0deg, rgba(70, 86, 74, 0.012), rgba(70, 86, 74, 0.012) 1px, transparent 1px, transparent 8px);
  position: relative;
  overflow: hidden;
}

.topbar.has-image {
  min-height: 140px;
  padding: 18px 18px;
  background-size: cover;
  background-position: center;
  color: #1f2a24;
}

.topbar.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.65)),
    repeating-linear-gradient(0deg, rgba(70, 86, 74, 0.02), rgba(70, 86, 74, 0.02) 1px, transparent 1px, transparent 8px);
  pointer-events: none;
}

.topbar.has-image > * {
  position: relative;
  z-index: 1;
  max-width: 100px;
}

.brand {
  min-width: 0;
}

.site-title {
  margin: 0;
  font-size: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-title a,
.post-title a,
.topnav a,
.widget a {
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: 0 0 auto;
}

.logo-mark svg,
.site-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.site-logo .custom-logo-link {
  display: inline-flex;
}

.brand .tagline {
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.78;
  letter-spacing: 0.02em;
}

.topnav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.topnav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.88;
}

.topnav a:hover,
.widget a:hover,
.post-title a:hover {
  text-decoration: underline;
}

.layout {
  display: grid;
  grid-template-columns: 50fr 20fr;
  gap: 2.5vw;
  align-items: start;
}

.posts {
  display: grid;
  gap: 18px;
}

.sidebar {
  display: grid;
  gap: 14px;
}

.post-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.card {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.90), rgba(255,255,255,0.82)),
    repeating-linear-gradient(0deg, rgba(70, 86, 74, 0.018), rgba(70, 86, 74, 0.018) 1px, transparent 1px, transparent 7px),
    repeating-linear-gradient(90deg, rgba(70, 86, 74, 0.014), rgba(70, 86, 74, 0.014) 1px, transparent 1px, transparent 7px);
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.04);
  color: #31453a;
}

.post-userpic,
.userpic {
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(93, 120, 102, 0.20);
}

.post-userpic {
  width: 92px;
  min-height: 92px;
}

.userpic {
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}

.post-content {
  min-width: 0;
}

.post-title {
  margin: 0 0 5px 0;
  font-size: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
}

.meta {
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  opacity: 0.76;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 6px;
}

.moodline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  margin-bottom: 12px;
  opacity: 0.86;
}

.post-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.68;
  margin-bottom: 14px;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  opacity: 0.86;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 10px;
}

.profile {
  text-align: left;
}

.username {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.status {
  font-size: 12px;
  opacity: 0.78;
  margin-bottom: 10px;
}

.bio {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.widget-title {
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 0.8;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 5px;
}

.widget ul {
  margin: 0;
  padding-left: 18px;
}

.widget li,
.widget p {
  font-size: 13px;
  line-height: 1.55;
}

.widget a {
  color: inherit;
  text-decoration: none;
}

.site-footer {
  margin-top: 24px;
  opacity: 0.75;
  font-size: 12px;
}

.comments-area .comment-list {
  padding-left: 20px;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* -----------------------------------------------------------------------
   Currently Reading sidebar widget
----------------------------------------------------------------------- */

.currently-reading-widget .cr-book-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.currently-reading-widget .cr-book {
  display: block;
  text-decoration: none;
  transition: opacity 0.15s;
}

.currently-reading-widget .cr-book:hover {
  opacity: 0.75;
}

.currently-reading-widget .cr-book-cover {
  display: block;
  width: 70%;
  height: auto;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 2px 3px 10px rgba(0,0,0,0.22);
  background: #e8e4df;
}

.currently-reading-widget .cr-book-cover-placeholder {
  width: 70%;
  aspect-ratio: 2/3;
  border-radius: 3px;
  background: #e8e4df;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.currently-reading-widget .cr-empty {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
}

.currently-reading-widget .cr-storygraph-link {
  display: block;
  margin-top: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: none;
}

.currently-reading-widget .cr-storygraph-link:hover {
  color: #555;
}

/* -----------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------- */

@media (max-width: 900px) {
  .site-shell {
    width: auto;
    margin: 0 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-userpic {
    width: 72px;
    min-height: 72px;
  }
}
