/*
Theme Name: Chairunnisa
Theme URI: https://chairunnisairianto.com
Author: Chairunnisa Irianto
Author URI: https://chairunnisairianto.com
Description: Custom WordPress theme for Chairunnisa Irianto personal blog, matched to chairunnisairianto.com brand (DM Sans + Manrope, navy + orange).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chairunnisa
Tags: blog, one-column, custom-logo, custom-menu, featured-images, threaded-comments
*/

:root{
  --ink:#1a3568;
  --ink-deep:#0f1f3d;
  --muted:#68697a;
  --orange:#ff914d;
  --red:#ff3131;
  --cream:#faf8f4;
  --mint:#efeffb;
  --lilac:#c9c2f4;
  --peach:#ffd4bb;
  --white:#fff;
  --line:#e1e0e8;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font-family:"DM Sans",system-ui,sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none;transition:.17s}
button,input,select,textarea{font:inherit}
img{max-width:100%;height:auto;display:block}

h1,h2,h3,h4,h5,h6{font-family:Manrope,system-ui,sans-serif;line-height:1.15;letter-spacing:-.035em;margin:0 0 .5em;color:var(--ink)}
h1{font-size:clamp(36px,5vw,60px);letter-spacing:-.045em}
h2{font-size:clamp(28px,3.8vw,44px);letter-spacing:-.04em}
h3{font-size:clamp(22px,2.6vw,28px)}
h4{font-size:20px}
p{margin:0 0 1.2em}
strong{font-weight:700;color:var(--ink-deep)}
.grad-text{background:linear-gradient(90deg,#ff3131,#ff914d);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}

.wrap{width:min(1140px,calc(100% - 40px));margin:auto}
.wrap-narrow{width:min(720px,calc(100% - 40px));margin:auto}

/* NAV */
.site-nav{position:sticky;top:0;z-index:50;background:rgba(250,248,244,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.site-nav .nav-inner{height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.logo{font:800 24px Manrope,sans-serif;letter-spacing:-.055em;line-height:1;color:var(--ink)}
.logo i{font-style:normal;color:var(--orange)}
.logo small{display:block;font:600 9px "DM Sans",sans-serif;letter-spacing:.13em;color:var(--muted);text-transform:uppercase;margin-top:3px}
.nav-links{display:flex;align-items:center;gap:24px;font-size:14px;font-weight:600}
.nav-links a{color:var(--ink);opacity:.65}
.nav-links a:hover{opacity:1;color:var(--orange)}
.nav-links a.active{opacity:1;color:var(--orange)}

.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;border:2px solid var(--ink);border-radius:10px;background:#fff;color:var(--ink);font-weight:800;cursor:pointer;transition:.18s ease;white-space:nowrap;box-shadow:3px 3px 0 var(--ink);letter-spacing:-.005em;font-family:"DM Sans",sans-serif;font-size:14px}
.button:hover{transform:translateY(-2px);background:linear-gradient(90deg,#ff3131,#ff914d);color:#fff;border-color:var(--ink);box-shadow:5px 5px 0 var(--ink)}
.button.outline{background:transparent}

/* NAV MOBILE */
.nav-toggle{display:none;background:none;border:0;font-size:24px;cursor:pointer;color:var(--ink);padding:8px}
@media(max-width:820px){
  .nav-toggle{display:block}
  .nav-links{position:absolute;top:76px;left:0;right:0;flex-direction:column;background:var(--cream);padding:20px;gap:16px;border-bottom:1px solid var(--line);display:none}
  .nav-links.open{display:flex}
}

/* HERO / PAGE HEADER */
.page-hero{padding:60px 0 40px;text-align:center}
.page-hero .eyebrow{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.16em;color:var(--orange);text-transform:uppercase;margin-bottom:16px}
.page-hero h1{max-width:800px;margin:0 auto 20px;text-wrap:balance}
.page-hero p.lede{max-width:640px;margin:0 auto;color:var(--muted);font-size:18px;line-height:1.6}

/* ARTICLE (single post) */
.article{padding:40px 0 80px}
.article-header{max-width:780px;margin:0 auto 40px;text-align:center}
.article-header .eyebrow{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.16em;color:var(--orange);text-transform:uppercase;margin-bottom:16px}
.article-header h1{font-size:clamp(32px,4.4vw,52px);margin-bottom:20px;text-wrap:balance;letter-spacing:-.04em}
.article-meta{display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;color:var(--muted);flex-wrap:wrap}
.article-meta .dot{width:3px;height:3px;border-radius:50%;background:rgba(15,31,61,.30);display:inline-block}
.article-cover{max-width:900px;margin:0 auto 48px;border-radius:16px;overflow:hidden;box-shadow:0 20px 48px rgba(15,31,61,.10)}
.article-cover img{width:100%;height:auto;display:block}

.article-body{max-width:720px;margin:0 auto;font-size:18px;line-height:1.75;color:var(--ink)}
.article-body p{margin:0 0 1.4em}
.article-body h2{font-size:clamp(24px,2.8vw,34px);margin:2em 0 .6em;letter-spacing:-.03em}
.article-body h3{font-size:clamp(20px,2.2vw,26px);margin:1.8em 0 .5em}
.article-body h4{font-size:19px;margin:1.6em 0 .5em}
.article-body a{color:var(--orange);border-bottom:1.5px solid rgba(255,145,77,.35);transition:.17s}
.article-body a:hover{color:var(--red);border-color:var(--red)}
.article-body ul,.article-body ol{padding-left:1.4em;margin:0 0 1.4em}
.article-body li{margin-bottom:.5em}
.article-body blockquote{border-left:4px solid var(--orange);margin:1.6em 0;padding:.6em 0 .6em 1.3em;font-family:"Manrope",sans-serif;font-size:22px;line-height:1.4;color:var(--ink-deep);font-weight:600;font-style:normal}
.article-body blockquote p{margin:0}
.article-body code{background:var(--mint);color:var(--ink-deep);padding:2px 8px;border-radius:5px;font-size:.9em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.article-body pre{background:var(--ink-deep);color:#e7e9ff;padding:20px;border-radius:12px;overflow-x:auto;margin:1.6em 0;font-size:14px;line-height:1.6}
.article-body pre code{background:transparent;color:inherit;padding:0}
.article-body img{border-radius:12px;margin:1.6em auto;box-shadow:0 12px 32px rgba(15,31,61,.08)}
.article-body hr{border:0;border-top:1px solid var(--line);margin:2.4em 0}
.article-body table{width:100%;border-collapse:collapse;margin:1.6em 0}
.article-body th,.article-body td{padding:12px 16px;border-bottom:1px solid var(--line);text-align:left}
.article-body th{font-family:Manrope,sans-serif;font-weight:700;color:var(--ink-deep);background:var(--mint)}

.article-tags{max-width:720px;margin:48px auto 0;display:flex;flex-wrap:wrap;gap:8px;padding-top:24px;border-top:1px solid var(--line)}
.article-tags .tag-label{font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-right:6px;align-self:center}
.article-tags a{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--orange);background:#fff4ee;border-radius:5px;padding:5px 10px;transition:.17s}
.article-tags a:hover{background:var(--orange);color:#fff}

.article-back{max-width:720px;margin:32px auto 0;text-align:center}
.article-back a{font-size:14px;font-weight:700;color:var(--muted);border-bottom:1.5px solid transparent;padding-bottom:2px;transition:.17s}
.article-back a:hover{color:var(--orange);border-color:var(--orange)}

/* ARCHIVE / BLOG INDEX */
.archive{padding:20px 0 80px}
.archive-head{text-align:center;margin-bottom:56px;padding:20px 0}
.archive-head .eyebrow{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.16em;color:var(--orange);text-transform:uppercase;margin-bottom:16px}
.archive-head h1{max-width:720px;margin:0 auto 16px;text-wrap:balance}
.archive-head p{max-width:560px;margin:0 auto;color:var(--muted);font-size:17px}

.articles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
@media(max-width:900px){.articles-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.articles-grid{grid-template-columns:1fr}}

.article-card{display:flex;flex-direction:column;background:#fff;border:1.5px solid rgba(15,31,61,.10);border-radius:14px;overflow:hidden;box-shadow:0 2px 8px rgba(15,31,61,.04);transition:.25s ease}
.article-card:hover{transform:translateY(-6px);box-shadow:0 16px 36px rgba(15,31,61,.12);border-color:rgba(15,31,61,.25)}
.article-card .cover{width:100%;height:200px;object-fit:cover;background:var(--mint)}
.article-card .body{padding:22px 22px 26px;display:flex;flex-direction:column;flex:1}
.article-card .tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.article-card .tags span{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--orange);background:#fff4ee;border-radius:4px;padding:3px 8px}
.article-card h3{font-family:Manrope,sans-serif;font-size:1.2rem;color:var(--ink);line-height:1.3;margin-bottom:10px;letter-spacing:-.02em}
.article-card p{font-size:.9rem;color:var(--muted);line-height:1.6;flex:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:16px}
.article-card .meta{display:flex;align-items:center;gap:8px;margin-top:auto;font-size:.78rem;color:rgba(15,31,61,.55)}
.article-card .meta .dot{width:3px;height:3px;border-radius:50%;background:rgba(15,31,61,.30);flex-shrink:0;display:inline-block}

/* PAGINATION */
.pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:56px;flex-wrap:wrap}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border-radius:10px;font-weight:700;font-size:14px;color:var(--ink);background:#fff;border:1.5px solid var(--line);transition:.17s}
.pagination a:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.pagination .current{background:var(--ink);color:#fff;border-color:var(--ink)}
.pagination .dots{border:0;background:transparent}

/* STATIC PAGE */
.page{padding:40px 0 80px}
.page-body{max-width:720px;margin:0 auto;font-size:17px;line-height:1.75}
.page-body h2{font-size:clamp(22px,2.6vw,30px);margin:1.8em 0 .5em}
.page-body h3{font-size:20px;margin:1.6em 0 .5em}
.page-body a{color:var(--orange);border-bottom:1.5px solid rgba(255,145,77,.35)}
.page-body a:hover{color:var(--red);border-color:var(--red)}

/* 404 */
.not-found{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:60px 20px}
.not-found .code{font-family:Manrope,sans-serif;font-weight:800;font-size:clamp(80px,14vw,180px);line-height:1;background:linear-gradient(90deg,#ff3131,#ff914d);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:-.06em}
.not-found h1{margin:.4em 0 .6em}
.not-found p{color:var(--muted);max-width:460px;margin:0 auto 32px}

/* FOOTER */
.site-footer{background:var(--ink-deep);color:#cfd6e8;padding:64px 0 40px;margin-top:80px}
.site-footer a{color:#cfd6e8;transition:.17s}
.site-footer a:hover{color:var(--orange)}
.footer-inner{display:flex;flex-direction:column;gap:32px;align-items:center;text-align:center}
.footer-inner .logo{color:#fff}
.footer-inner .logo small{color:#8291b3}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:20px;font-size:14px;font-weight:600}
.footer-social{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;font-size:13px;color:#8291b3}
.footer-copy{font-size:12px;color:#6c7a99;padding-top:24px;border-top:1px solid rgba(255,255,255,.08);width:100%}

@media(min-width:768px){
  .footer-inner{flex-direction:row;justify-content:space-between;text-align:left;align-items:flex-start}
  .footer-copy{text-align:center}
}

/* COMMENTS (basic) */
.comments{max-width:720px;margin:64px auto 0;padding-top:40px;border-top:1px solid var(--line)}
.comments h3{font-size:24px;margin-bottom:24px}
.comment-list{list-style:none;padding:0;margin:0}
.comment-list li{padding:20px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:16px}
.comment-meta{font-size:13px;color:var(--muted);margin-bottom:8px}
.comment-form input,.comment-form textarea{width:100%;padding:12px 14px;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);margin-bottom:12px;font-size:15px}
.comment-form input:focus,.comment-form textarea:focus{outline:0;border-color:var(--orange)}
.comment-form textarea{min-height:120px;resize:vertical}
.comment-form .submit{cursor:pointer}

/* WP CORE ALIGNMENT CLASSES */
.aligncenter{margin-left:auto;margin-right:auto;display:block}
.alignleft{float:left;margin-right:1.5em;margin-bottom:1em}
.alignright{float:right;margin-left:1.5em;margin-bottom:1em}
.alignwide{width:min(1000px,100%);margin-left:auto;margin-right:auto}
.alignfull{width:100vw;margin-left:calc(50% - 50vw);max-width:none}
.wp-caption{max-width:100%}
.wp-caption-text{font-size:13px;color:var(--muted);text-align:center;margin-top:8px}
.screen-reader-text{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

/* GUTENBERG BLOCKS */
.wp-block-image{margin:1.6em 0}
.wp-block-image img{border-radius:12px;box-shadow:0 12px 32px rgba(15,31,61,.08)}
.wp-block-quote{border-left:4px solid var(--orange);padding:.6em 0 .6em 1.3em;margin:1.6em 0;font-family:Manrope,sans-serif;font-size:22px;line-height:1.4;color:var(--ink-deep);font-weight:600}
.wp-block-quote cite{display:block;font-size:14px;color:var(--muted);font-family:"DM Sans",sans-serif;font-weight:500;font-style:normal;margin-top:.6em}
.wp-block-code{background:var(--ink-deep);color:#e7e9ff;padding:20px;border-radius:12px;overflow-x:auto;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px}
.wp-block-separator{border:0;border-top:1px solid var(--line);margin:2.4em 0}
