/* -------- GLOBAL -------- */
body {
  margin: 0;
  position: relative;
  background: #bdaa8c;
  color: #1a1a1a;
  overflow-x: hidden;
}

.banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  overflow: hidden;
  opacity: 0.6;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reading-time {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 2rem;
  margin-top: -2rem;
  font-family: "Spectral", serif;
}
.reading-time svg {
  width: 14px;
  height: 14px;
  display: inline;
  margin-right: 0.3rem;
  vertical-align: -2px;
}

    article h1 {
      font-family: "Libre Baskerville", serif;
      font-size: 2.2rem;
      margin-bottom: -1.5rem;
      margin-top: 0;
      text-align: center;
        padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    }

/* -------- LAYOUT -------- */
.layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  overflow: visible;
}

/* -------- SIDEBAR -------- */
.sidebar {
  padding: 3rem 1rem;
  width: 35%;
  margin-left: -30px;
  position: sticky;
  top: 1rem;
  height: fit-content;
  box-sizing: border-box;
  margin-bottom: 210px;
}

.desc-flex {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin-right: 60px;
}

/* floating divider */
.sidebar::after {
  content: "";
  position: absolute;
  top: 15%;
  right: 20px;
  width: 1px;
  height: 120%;
  background: rgba(0, 0, 0, 0.12);
}

.sidebar h1 {
  font-family: "Libre Baskerville", serif;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  margin-top: 0;
}

.sidebar p,
.meta {
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.75;
}

.sidebar .meta {
  margin-top: 1.9rem;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 10.0;
}


/* -------- CONTENT -------- */
.content {
  position: relative;
  width: 65%;
  padding: 5rem 3rem;
  box-sizing: border-box;
}

.post {
  margin-bottom: 3rem;
  padding: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.post:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 2px solid #1a1a1a;
}

.post h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

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

.post p {
  font-family: "Spectral", serif;
  line-height: 1.7;
  opacity: 0.85;
  margin: 0;
}

.view-all {
  position: absolute;
  bottom: 2rem;
  left: 4.12rem;

  font-family: "Spectral", serif;
  font-size: 0.9rem;
  opacity: 0.7;
}

.view-all a {
  position: relative;
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
}

/* fake underline */
.view-all a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease-out;
}

/* arrow (hidden by default) */
.view-all a::before {
  content: "→";
  position: absolute;
  right: -10px;
  bottom: -7px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

/* hover effect */
.view-all a:hover {
  opacity: 0.9;
}

.view-all a:hover::after {
  width: calc(100% - 8px);
}

.view-all a:hover::before {
  opacity: 1;
}


/* -------- FOOTER -------- */
.site-footer {
  margin-top: 4rem;
  padding: 2.1rem 1.5rem;
  background: #efe4cf;
  border-top: 1px solid rgba(0,0,0,0.15);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  align-items: start;
}

.footer-col {
  position: relative;
}

.footer-col:nth-child(1)::after,
.footer-col:nth-child(2)::after {
  content: "";
  position: absolute;
  top: 20%;
  right: -1.5rem;
  width: 1px;
  height: 60%;
  background: rgba(0, 0, 0, 0.15);
}

.footer-col h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col li {
  font-family: "Spectral", serif;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
}

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

.footer-col a:hover {
  text-decoration: underline;
}

/* subscribe row */
.subscribe-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.subscribe-row input {
  flex: 1;
  padding: 0.35rem;
  background: transparent;
  border: 1px solid #999;
}

.subscribe-row button {
  padding: 0.3rem 0.6rem;
  background: none;
  border: 1px solid #999;
  opacity: 0.5;
  cursor: pointer;
}

.subscribe-row button:hover {
  opacity: 0.8;
}

/* -------- MOBILE -------- */
@media (max-width: 800px) {
  .layout {
    flex-direction: column;
    text-align: center;
  }

.sidebar {
  width: 100%;
  position: relative;
  margin: 0 auto;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.18);
  padding-bottom: 20px;
}

  .sidebar::after {
  display: none;
}

  .desc-flex {
  padding: 0 1rem;
  text-align: center;
  margin: 0 auto;
  max-width: 100%;
  margin-right: 0;
}

.sidebar h1 {
  text-align: center;
  font-size: 2rem;
}
  .sidebar p{
    text-align: center;
  }

  .content {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-col::after {
    display: none;
  }
}
