/* ==========================================================================
   Cerivitas — gaya utama (landing + halaman isi)
   ========================================================================== */

:root {
    --orange: #ff7a2f;
    --orange-dark: #e8621a;
    --gold: #ffd67a;
    --darkgrey: #3a3a3a;
    --darkgrey-light: #555555;
    --white: #ffffff;
    --cream: #fffaf4;
    --coral: #ff7f66;
    --yellow: #ffc93c;
    --navy: #3a3a3a; /* dipakai di body; sebelumnya tidak terdefinisi */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Nunito', sans-serif;
    color: var(--navy);
    background: var(--cream);
    line-height: 1.6;
}
h1, h2, h3, .brand { font-family: 'Baloo 2', cursive; }

/* Header */
header {
    background: var(--darkgrey);
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.brand .dot { color: var(--gold); }
nav a {
    color: #cfd9e4;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s;
}
nav a:hover { color: var(--gold); }
nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
nav li { display: inline-block; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 50%, #ffb35c 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 2rem 4.5rem;
}
.hero .star {
    font-size: 2.5rem;
    color: var(--yellow);
    display: block;
    margin-bottom: 1rem;
    animation: floaty 3s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
}
.hero .divider {
    width: 80px; height: 5px;
    background: var(--gold);
    border-radius: 5px;
    margin: 1.2rem auto;
}
.hero p {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    max-width: 640px;
    margin: 0 auto;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.hero .btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.9rem 2.2rem;
    background: var(--darkgrey);
    color: var(--gold);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.hero .btn:hover {
    background: #000;
    transform: translateY(-2px);
}

/* Sections */
section { padding: 3.5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--darkgrey);
}
.section-sub {
    text-align: center;
    color: #8a8a8a;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

/* About */
.about { background: var(--darkgrey); border-radius: 20px; padding: 2.5rem 2rem; box-shadow: 0 6px 24px rgba(58,58,58,0.15); color: #fff; }
.about p { max-width: 720px; margin: 0 auto 1rem; text-align: center; font-size: 1.05rem; color: #e6e6e6; }
.about strong a { color: var(--gold); }
.about strong a:hover { color: var(--orange); }

/* Projects grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}
.card {
    background: #fff7e0;
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(58,58,58,0.07);
    border-top: 5px solid var(--orange);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:nth-child(3n+2) { border-top-color: var(--coral); }
.card:nth-child(3n+3) { border-top-color: var(--yellow); }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(58,58,58,0.12); }
.card .icon { font-size: 2rem; margin-bottom: 0.6rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--darkgrey); }
.card p { font-size: 0.9rem; color: #8a8a8a; }
.card-feature { border-top-color: var(--gold); background: var(--darkgrey); }
.card-feature h3 { color: #fff; }
.card-feature p { color: #cfd9e4; }
.card-feature a {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.5rem 1.2rem;
    background: var(--orange);
    color: #fff;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.85rem;
}

/* CTA */
.cta {
    background: var(--orange);
    color: #fff;
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: 20px;
    margin: 2rem auto;
    box-shadow: 0 8px 28px rgba(255,122,47,0.3);
}
.cta h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 0.8rem; }
.cta p { margin-bottom: 1.5rem; color: #fff4ea; font-weight: 600; }
.cta .btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--white);
    color: var(--orange-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.cta .btn:hover { transform: translateY(-2px); }

/* Footer */
footer {
    background: var(--darkgrey);
    color: #b9b9b9;
    text-align: center;
    padding: 2rem 1rem 2.5rem;
    font-size: 0.9rem;
}
footer .socials { margin-bottom: 1rem; }
footer .socials a {
    display: inline-block;
    color: #fff;
    background: var(--darkgrey-light);
    width: 42px; height: 42px;
    line-height: 42px;
    border-radius: 50%;
    margin: 0 0.4rem;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.2s;
}
footer .socials a:hover { background: var(--orange); }
footer .copy { color: #9a9a9a; margin-top: 0.6rem; }

/* ==========================================================================
   Halaman isi: page, single, arsip, pencarian, 404
   ========================================================================== */
.site-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}
.site-main .section-sub { margin-bottom: 2rem; }
.site-main a { color: var(--orange-dark); font-weight: 700; }

.entry-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--darkgrey);
    text-align: center;
    margin-bottom: 0.4rem;
}
.entry-meta {
    text-align: center;
    color: #8a8a8a;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.entry-content {
    background: var(--white);
    border-radius: 18px;
    padding: 2rem 1.8rem;
    box-shadow: 0 4px 18px rgba(58,58,58,0.07);
}
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2, .entry-content h3 { color: var(--darkgrey); margin-top: 1.8rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content blockquote {
    border-left: 5px solid var(--gold);
    background: #fff7e0;
    padding: 1rem 1.2rem;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}
.page-links { margin-top: 1.5rem; font-weight: 700; }

/* Daftar tulisan (arsip / blog / pencarian) */
.post-list { display: grid; gap: 1.1rem; }
.entry-card { text-align: left; }
.entry-card .entry-card-title { font-size: 1.2rem; margin-bottom: 0.3rem; }
.entry-card .entry-card-title a { color: var(--darkgrey); text-decoration: none; }
.entry-card .entry-card-title a:hover { color: var(--orange); }
.entry-card .entry-summary { color: #6f6f6f; font-size: 0.95rem; }
.entry-card .read-more { display: inline-block; margin-top: 0.7rem; font-size: 0.9rem; font-weight: 800; }
.entry-card .entry-meta { text-align: left; margin-bottom: 0.4rem; }

.pagination { margin-top: 2rem; text-align: center; }
.pagination .page-numbers {
    display: inline-block;
    min-width: 40px;
    padding: 0.4rem 0.7rem;
    margin: 0 0.15rem;
    border-radius: 50px;
    background: var(--white);
    color: var(--darkgrey);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(58,58,58,0.08);
}
.pagination .page-numbers.current { background: var(--orange); color: #fff; }

/* Navigasi antar tulisan */
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0; font-size: 0.95rem; }
.post-nav .next { text-align: right; }

/* Form pencarian */
.search-form { display: flex; gap: 0.5rem; max-width: 460px; margin: 0 auto; }
.search-form input[type="search"] {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid #eee0cc;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
}
.search-form input[type="submit"], .search-form button {
    padding: 0.7rem 1.4rem;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}
.search-form input[type="submit"]:hover, .search-form button:hover { background: var(--orange-dark); }

/* Responsive nav */
@media (max-width: 600px) {
    header { flex-direction: column; gap: 0.6rem; }
    nav a { margin: 0 0.7rem; }
    .hero { padding: 3.5rem 1.2rem; }
    section { padding: 2.5rem 1.2rem; }
    .entry-content { padding: 1.5rem 1.2rem; }
    .post-nav { flex-direction: column; }
    .post-nav .next { text-align: left; }
}
