/* ====================================================
   BIO-PAGE CSS — Elegant Book-Style Reading Layout
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Lora:wght@400;500;600&family=Playfair+Display:wght@600&display=swap');

:root {
  --bg: #f2ede7; /* soft paper tone */
  --paper: #ffffff; /* clean inner card */
  --ink: #2b2b2b; /* dark ink-like text */
  --subtle-ink: #555;
  --accent: #b4936c; /* warm gold accent */
  --accent-dark: #946f42;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --max-width: 900px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: 'Lora', serif;
  color: var(--ink);
  line-height: 1.85;
  font-size: 1.08rem;
}

/* ====================================================
   HEADER (clean + book-style simplicity)
==================================================== */
header {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 28px 15px;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 600;
}

header p {
  margin-top: 6px;
  opacity: 0.85;
}

/* ====================================================
   NAVIGATION (subtle + warm)
==================================================== */
nav {
  background: var(--accent-dark);
  padding: 12px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
nav a:hover {
  text-decoration: underline;
}

/* ====================================================
   MAIN CONTAINER — reading comfort
==================================================== */
.container {
  max-width: var(--max-width);
  margin: 35px auto;
  padding: 0 20px;
}

/* ====================================================
   BOOK-STYLE ARTICLE CARD
==================================================== */
.card {
  background: var(--paper);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
}

/* decorative left spine */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  background: linear-gradient(to bottom, #c7b199, #a89374);
  border-radius: 10px 0 0 10px;
}

.card h1 {
  margin-top: 0;
  font-size: 2.1rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 8px;
}

.category {
  color: var(--subtle-ink);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

/* Profile image for biography pages */
.profile-img {
    max-width: 250px; /* ubah sesuai kebutuhan */
    width: 100%;       /* responsif di mobile */
    height: auto;      /* menjaga rasio gambar */
    border-radius: 10px; /* optional: efek lembut seperti buku */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* elegan */
    display: block;
    margin: 15px auto; /* center di halaman */
}


/* ====================================================
   SECTION HEADERS
==================================================== */
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--accent-dark);
  margin-top: 40px;
  margin-bottom: 14px;
  border-left: 5px solid var(--accent-dark);
  padding-left: 12px;
}

ul {
  padding-left: 20px;
}

/* subtle li spacing */
ul li {
  margin-bottom: 10px;
}

/* ====================================================
   FOOTER
==================================================== */
footer {
  background: var(--accent);
  color: white;
  padding: 22px;
  text-align: center;
  margin-top: 50px;
  font-family: 'Inter', sans-serif;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

/* ====================================================
   RESPONSIVE
==================================================== */
@media (max-width: 650px) {
  .card {
    padding: 25px;
  }
  h2 {
    font-size: 1.4rem;
  }
  header h1 {
    font-size: 1.8rem;
  }
}
