:root{
  --bg:#f6f2ee;
  --paper:#ffffff;
  --ink:#1f1f1f;
  --muted:#8b8b8b;
  --line:#e6dfd8;
  --accent:#d8cfc6;
}

@font-face {
  font-family: "ayuma";
  src: url("https://file.garden/Z1LmxrbjjD-R7xuV/AYUMA___.TTF") format("truetype"),
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "rainyhearts";
  src: url("https://file.garden/Z1LmxrbjjD-R7xuV/rainyhearts.ttf") format("truetype"),
  font-weight: normal;
  font-style: normal;
}

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

body{
  background:var(--bg);
  background:url("https://i.pinimg.com/1200x/71/9c/04/719c041f482ab4e2027727d67278db1b.jpg") center/cover no-repeat;
  font-family:Inter, sans-serif;
  line-height:1.7;
}

.wrapper{
  max-width:1300px;
  margin:0 auto;
  padding:40px 20px;
}

/* Header */
header{
  margin-bottom:50px;
  text-align:center;
}

.header-image{
  width:100%;
  height:300px;
  background:url("https://i.pinimg.com/736x/df/08/50/df0850bf17b33e70b7668b1bbfeb8881.jpg") center/cover no-repeat;
  margin-bottom:40px;
}

.site-title{
  font-family:"ayuma", serif;
  font-size:42px;
  text-align:center;
  margin-bottom:8px;
}

.site-tagline{
    font-family:"rainyhearts", serif;
  text-align:center;
  font-size:18px;
  color: black;
  letter-spacing:1px;
  text-transform:uppercase;
}

nav{
  text-align:center;
  margin-top:28px;
}

nav a{
  margin:0 12px;
  text-decoration:none;
  font-size:13px;
  color:var(--ink);
  text-transform:uppercase;
  letter-spacing:1px;
}

/* Main layout */
.main{
  display:grid;
  grid-template-columns:3fr 1fr;
  gap:50px;
}

/* Posts grid — THREE COLUMNS */
.posts{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:40px;
}

/* Post card */
.post{
  
  background:#9cb2d9cf; /* change this color */
  border:1px solid var(--line);
}

.posts > .post:nth-last-child(-n + 3){
  background:#84997eed; /* change the color of the bottom row of cards */
}

.post img{
  width:100%;
  height:300px;
  object-fit:cover;
}

.post-content{
  padding:22px;
}

.post-title{
  font-family:"Playfair Display", serif;
  font-size:20px;
  margin-bottom:8px;
}

.post-title a{
  color:var(--ink);
  text-decoration:none;
}

.post-meta{
  font-size:12px;
  color:var(--muted);
  margin-bottom:12px;
}

.post-excerpt{
  font-size:14px;
}

/* Sidebar */
.sidebar{
  
  background:#9cb2d9cf; /* change this color */
  border:1px solid var(--line);
  padding:24px;
  height:fit-content;
}

.sidebar-section{
  margin-bottom:36px;
}

.sidebar-title{
  font-size:13px;
  letter-spacing:1px;
  text-transform:uppercase;
  margin-bottom:14px;
  color:var(--muted);
}

.profile-img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  margin-bottom:14px;
}

.profile-text{
  font-size:14px;
  color:#444;
}

.subscribe-btn{
  display:block;
  width:100%;
  text-align:center;
  padding:12px;
  background:var(--accent);
  color:var(--ink);
  text-decoration:none;
  font-size:13px;
  letter-spacing:1px;
  text-transform:uppercase;
}

.categories ul{
  list-style:none;
}

.categories li{
  margin-bottom:10px;
}

.categories a{
  text-decoration:none;
  color:var(--ink);
  font-size:14px;
}

/* Footer */
footer{
  text-align:center;
  margin-top:90px;
  font-size:13px;
  color:white;
}

footer a:link {
    color: white;      /* unvisited link */
}

footer a:visited {
    color: white;   /* visited link */
}


.title-box{
    box-shadow:0 8px 20px rgba(0,0,0,0.04);
  display:inline-block;
  background:#7a9cd94d; /* change this color */
  padding:20px 36px;
  margin:0 auto;
  text-align:center;
  border:1px solid var(--line);
  width:100%;
}

/* Responsive */
@media (max-width:1100px){
  .posts{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width:700px){
  .main{
    grid-template-columns:1fr;
  }

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