/* ---------- Base / Reset-ish ---------- */
* { box-sizing: border-box; }

:root{
  --ink: #2b1b24;
  --accent: #b0003a;   /* red-ish */
  --line: #e6a66b;     /* warm orange divider */
  --bg: #ffffff;
  --max: 980px;        /* centered page width */
}

body{
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
}

/* Accessibility helpers */
.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: #ffd24d;
  color: #000;
  padding: 10px 12px;
  border-radius: 6px;
  z-index: 999;
}
.skip-link:focus{ left: 12px; top: 12px; }

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header{
  border: 2px solid #000;
  margin: 18px auto 0;
  width: min(100%, var(--max));
  background: #fff;
}

.site-header h1{
  margin: 0;
  padding: 18px 10px 10px;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
}

.site-header nav{
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.nav-list{
  list-style: none;
  padding: 10px 16px;
  margin: 0;
  display: flex;
  justify-content: center;   /* ✅ centered nav links */
  gap: 28px;
}

.nav-list a{
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-list a:hover,
.nav-list a:focus-visible{
  text-decoration: underline;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Layout wrapper ---------- */
.page{
  width: min(100%, var(--max));
  margin: 0 auto;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  background: #fff;
}

/* Container holding multiple posts */
#posts{
  display: block;
}

/* ---------- Post (MOBILE FIRST) ---------- */
.post{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 30px 18px 34px;
  border-top: 2px solid var(--line);
}

/* first post shouldn't have top divider */
#posts .post:first-child{
  border-top: none;
}

.meta{
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.9;
}

.meta-item{ margin: 0; }

.rating{
  color: #d8a300; /* gold-ish stars */
  letter-spacing: 1px;
}

/* Content */
.content{
  text-align: center; /* centers title/image/description like the screenshot */
}

.content h2{
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 700;
}

.cover{
  display: block;
  width: 230px;
  max-width: 100%;
  margin: 0 auto 14px;
  height: auto;
}

.desc{
  margin: 0 auto;
  font-size: 0.95rem;
  max-width: 520px;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer{
  width: min(100%, var(--max));
  margin: 0 auto 22px;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  border-top: 2px solid var(--line);
  text-align: center;
  padding: 14px;
  background: #fff;
}

/* ---------- Larger device layout ---------- */
@media (min-width: 700px){
  .post{
    grid-template-columns: 170px 1fr; /* meta | content */
    align-items: start;
    gap: 26px;
    padding: 34px 20px 40px;
  }

  .meta{
    padding-right: 18px;
    border-right: 2px solid var(--line); /* vertical divider */
  }

  .content{
    padding-left: 10px;
    text-align: center;
  }

  .cover{
    width: 260px;
    margin: 10px auto 16px;
  }
}