/* ============================================================
   Sari Pena — Penulis Novel & Blogger Sastra
   Palet: #3e2723 primer | #bcaaa4 aksen | #fdf8f5 bg
   ============================================================ */

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

:root {
  --dark:    #3e2723;
  --mid:     #5d4037;
  --accent:  #bcaaa4;
  --accent2: #8d6e63;
  --bg:      #fdf8f5;
  --bg2:     #f0e9e4;
  --white:   #fff;
  --text:    #2c1a16;
  --muted:   #7b5e57;
  --border:  #d4b8b2;
  --radius:  4px;
  --shadow:  0 2px 10px rgba(62,39,35,.10);
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

/* ── DEMO BAR ── */
.demo-bar {
  background: var(--dark);
  color: var(--accent);
  text-align: center;
  font-size: .78rem;
  padding: .4rem 1rem;
  letter-spacing: .03em;
}
.demo-bar a { color: #e8d5cf; text-decoration: underline; }
.demo-bar a:hover { color: var(--white); }

/* ── NAVIGATION ── */
nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.nav-inner {
  max-width: 1000px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.25rem;
  position: relative;
}
.nav-logo {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .04em;
}
.nav-logo span { color: var(--accent); }

/* checkbox-hack menu */
#menu-toggle { display: none; }
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .25s;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: .875rem;
  letter-spacing: .02em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

@media (max-width: 640px) {
  .menu-btn { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--dark);
    padding: .5rem 0 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
  }
  .nav-links a { display: block; padding: .65rem 1.5rem; }
  #menu-toggle:checked ~ .nav-links,
  #menu-toggle:checked ~ .nav-inner .nav-links { display: flex; }
}

/* ── PAGE HEADER (interior pages) ── */
.page-header {
  background: linear-gradient(160deg, var(--dark) 0%, var(--mid) 70%, #a1887f 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: .5rem 0 .75rem;
}
.page-header p {
  color: #e0d0cc;
  max-width: 580px;
  margin: 0 auto;
  font-size: .96rem;
}

/* ── HERO (homepage) ── */
.hero {
  background: linear-gradient(160deg, var(--dark) 0%, var(--mid) 55%, #a1887f 100%);
  color: var(--white);
  padding: 5rem 1.25rem 4rem;
}
.hero-inner {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 700px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-avatar { margin: 0 auto; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
}
.hero-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  overflow: hidden;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: .5rem;
}
.page-header .label { color: var(--accent); }
.hero .label { color: var(--accent); margin-bottom: .6rem; }
.hero-tagline {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: .9rem;
}
.hero-tagline em { color: var(--accent); font-style: italic; }
.hero-sub {
  color: #e0d0cc;
  font-size: .96rem;
  margin-bottom: 1.5rem;
  max-width: 520px;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.stat-item { }
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: .72rem; color: #c4a9a4; text-transform: uppercase; letter-spacing: .06em; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: .7rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  font-size: .9rem;
  border: 2px solid transparent;
  transition: .2s;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.btn-primary:hover { background: #d4b8b2; border-color: #d4b8b2; }
.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline:hover { background: var(--dark); color: var(--white); }
.hero .btn-outline { color: var(--white); border-color: var(--accent); }
.hero .btn-outline:hover { background: var(--accent); color: var(--dark); }
.btn-sm { padding: .45rem 1.1rem; font-size: .82rem; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
  font-weight: 700;
}
.btn-wa:hover { background: #1ebe59; border-color: #1ebe59; color: var(--white); }

/* ── SECTIONS ── */
.section { padding: 3.5rem 1.25rem; }
.section-sm { padding: 1.5rem 1.25rem; }
.container { max-width: 960px; margin: auto; }
.section-title { margin-bottom: 2rem; }
.section-title h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--dark);
  margin-top: .3rem;
  font-weight: 800;
}

/* ── BOOK CARDS (homepage) ── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}
.book-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.book-card:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(62,39,35,.15); }
.book-cover {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-info { padding: 1rem 1.1rem 1.25rem; }
.book-genre {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: .3rem;
}
.book-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .25rem;
}
.book-year {
  font-size: .78rem;
  color: var(--muted);
  background: var(--bg2);
  padding: .15rem .5rem;
  border-radius: 20px;
  display: inline-block;
}

/* ── ARTICLE GRID (homepage blog preview) ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s;
}
.article-card:hover { transform: translateY(-3px); }
.article-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-meta {
  display: flex;
  gap: .4rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: .75rem;
  color: var(--muted);
  padding: .75rem 1rem 0;
  margin-bottom: .3rem;
}
.article-card .article-meta { padding: .75rem 1rem 0; }
.article-title {
  padding: 0 1rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .35rem;
  line-height: 1.4;
}
.article-title a { text-decoration: none; color: inherit; }
.article-title a:hover { color: var(--accent2); }
.article-excerpt {
  padding: 0 1rem 1rem;
  font-size: .82rem;
  color: var(--muted);
}

/* ── PULL QUOTE ── */
.pullquote {
  border-left: 4px solid var(--accent2);
  padding: 1.25rem 1.75rem;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
}
.pullquote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.6;
}
.pullquote cite {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-top: .6rem;
  font-style: normal;
}

/* ── DIVIDER ── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── CTA STRIP ── */
.cta-strip {
  background: linear-gradient(135deg, var(--dark), var(--mid));
  color: var(--white);
  text-align: center;
  padding: 3.5rem 1.25rem;
}
.cta-strip h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .5rem; }
.cta-strip p { color: #e0d0cc; margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: #c4a9a4;
  text-align: center;
  padding: 2.5rem 1.25rem;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.footer-nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: .85rem;
}
.footer-nav a:hover { color: var(--white); }
footer p { font-size: .82rem; }

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-size: .7rem;
  padding: .18rem .55rem;
  border-radius: 20px;
  background: var(--bg2);
  color: var(--accent2);
  font-weight: 600;
  margin: .15rem .1rem;
  border: 1px solid var(--border);
}

/* ── KARYA PAGE — novel list ── */
.novel-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
@media (max-width: 480px) {
  .novel-item { grid-template-columns: 1fr; }
  .novel-thumb { height: 100px; width: 80px; }
}
.novel-thumb {
  height: 150px;
  border-radius: 3px 8px 8px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 10px rgba(0,0,0,.2);
  flex-shrink: 0;
}
.novel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-bottom: .5rem;
  font-size: .75rem;
  color: var(--muted);
}
.novel-meta .label { margin: 0; }
.novel-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .35rem;
  font-family: Georgia, "Times New Roman", serif;
}
.novel-body p { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.novel-pages { font-size: .78rem; color: var(--muted); font-style: italic; margin-bottom: .5rem; }

/* ── AWARDS GRID ── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
}
.award-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: flex-start;
}
.award-card h4 { font-size: .9rem; color: var(--dark); font-weight: 700; line-height: 1.4; }
.award-card p { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ── BLOG PAGE ── */
.blog-list { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-list-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.1rem;
  align-items: start;
  transition: box-shadow .2s;
}
.blog-list-item:hover { box-shadow: 0 4px 16px rgba(62,39,35,.14); }
@media (max-width: 480px) {
  .blog-list-item { grid-template-columns: 1fr; }
}
.blog-list-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blog-list-item .article-meta { padding: 0; margin-bottom: .4rem; }
.blog-list-item h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .35rem; line-height: 1.4; }
.blog-list-item h3 a { text-decoration: none; color: inherit; }
.blog-list-item h3 a:hover { color: var(--accent2); }
.blog-list-item p { font-size: .83rem; color: var(--muted); }

/* ── TENTANG PAGE ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 680px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-sidebar-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.about-sidebar-card h3 { font-size: 1rem; margin-top: .75rem; color: var(--dark); }
.about-sidebar-card .role { font-size: .82rem; color: var(--muted); font-style: italic; margin-top: .2rem; }
.quick-facts {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.quick-facts h4 {
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  font-size: .83rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--bg2);
}
.fact-row:last-child { border-bottom: none; }
.fact-row span:first-child { color: var(--muted); }
.about-text h2 {
  font-size: 1.5rem;
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 1rem;
  margin-top: .4rem;
}
.about-text p { color: var(--muted); font-size: .93rem; margin-bottom: .9rem; }

/* ── TIMELINE ── */
.timeline { margin-top: 1.5rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding-bottom: 1.75rem;
  position: relative;
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 40px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}
.timeline-item:last-child::after { display: none; }
.timeline-dot {
  position: absolute;
  left: 35px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--accent);
  z-index: 1;
}
.timeline-year {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent2);
  text-align: right;
  padding-top: .05rem;
}
.timeline-body h3 { font-size: .95rem; color: var(--dark); font-weight: 700; }
.timeline-body p { font-size: .83rem; color: var(--muted); margin-top: .25rem; }

/* ── KONTAK PAGE ── */
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 720px) {
  .kontak-grid { grid-template-columns: 1fr; }
}
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-size: .83rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent2);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.cc-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cc-body h4 { font-size: .88rem; color: var(--dark); font-weight: 700; }
.cc-body p,
.cc-body a { font-size: .83rem; color: var(--muted); text-decoration: none; display: block; margin-top: .15rem; }
.cc-body a:hover { color: var(--dark); }

/* ── UTILS ── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
