/*
Theme Name: Thyandi Blog
Theme URI: https://thyandi.com
Author: Thyandi
Author URI: https://thyandi.com
Description: Tema WordPress kustom untuk Thyandi.com — Writer, Engineer, Backpacker. Dibangun ulang berdasarkan desain HTML asli (hero split, featured grid ala majalah, 3 kategori: Literasi, Backpacker, Engineer, about section, dan newsletter signup).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thyandi
*/

:root{
  --ink:#202124;
  --muted:#70757a;
  --paper:#fff;
  --soft:#f2f9fc;
  --line:#e1edf2;
  --accent:#3fa9d1;
  --accent2:#1c7fa6;
  --accent3:#7fd0e6;
  --accent4:#0e5a78;
  --gold:#3fa9d1;
  --maroon:#1c7fa6;
  --green:#0e3b52;
  --sky-pale:#d7effa;
  --max:1180px;
  --serif:'Roboto Slab', Georgia, serif;
  --sans:'Roboto', Arial, Helvetica, sans-serif;
  --hand:'Baloo 2', var(--sans);
  --script:'Caveat', cursive;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{max-width:100%;overflow-x:hidden}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);line-height:1.7}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(calc(100% - 40px),var(--max));margin:auto}

h1,h2,h3,.section-title,.feature-content h2,.mini-card h3,
.category-box h3,.article-card h3,.about-copy h2,.newsletter h2,footer h3{
  font-family:var(--serif);
}

/* TOP BAR */
.topbar{background:linear-gradient(90deg,var(--accent4),var(--accent2));color:#fff;border:0;border-bottom:1px solid var(--line);font-size:12px}
.topbar-inner{height:34px;display:flex;align-items:center;justify-content:space-between}
.social{display:flex;gap:14px}
.topbar .social a{color:#fff;opacity:.9}
.topbar .social a:hover{color:var(--sky-pale)}

/* HEADER */
header{background:#fff;position:sticky;top:0;z-index:50;border-bottom:1px solid var(--line);box-shadow:0 2px 12px rgba(0,0,0,.035)}
.header-main{min-height:104px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.brand{display:flex;align-items:center}
.brand-name{display:block;font-family:var(--hand);font-weight:800;font-size:32px;color:var(--ink);letter-spacing:-.5px;line-height:1}
.brand-tag{position:relative;display:inline-block;margin-top:6px;font-family:var(--script);font-weight:700;font-size:17px;color:var(--accent2);padding:1px 6px}
.brand-tag:before{content:"";position:absolute;left:-3px;right:-3px;bottom:1px;height:52%;background:var(--sky-pale);border-radius:2px 8px 3px 9px/8px 3px 9px 2px;transform:rotate(-1.2deg);z-index:-1}
.nav{display:flex;align-items:center;gap:30px;font-size:13px;font-weight:bold;text-transform:uppercase;letter-spacing:.8px;font-family:var(--sans);list-style:none;margin:0;padding:0}
.nav li{list-style:none}
.nav a{position:relative;padding:38px 0;display:inline-block}
.nav a:after{content:"";position:absolute;left:0;bottom:27px;width:0;height:2px;background:linear-gradient(90deg,var(--accent),var(--accent2));transition:.25s}
.nav a:hover:after,.nav a.current-menu-item:after{width:100%}
.menu-btn{display:none;background:none;border:0;font-size:28px;cursor:pointer}

/* HERO */
.hero{background:
  radial-gradient(circle at 82% 12%,rgba(127,208,230,.28),transparent 24%),
  radial-gradient(circle at 60% 90%,rgba(28,127,166,.14),transparent 25%),
  var(--soft);border-bottom:1px solid var(--line)}
.hero-grid{display:grid;grid-template-columns:1.08fr .92fr;min-height:480px}
.hero-copy{padding:72px 55px 70px 0;display:flex;flex-direction:column;justify-content:center}
.kicker{font-size:12px;text-transform:uppercase;letter-spacing:3px;color:var(--accent);font-weight:bold;margin-bottom:16px}
.hero h1{font-family:var(--serif);font-size:clamp(42px,6vw,74px);line-height:1.03;margin:0 0 22px;font-weight:400;letter-spacing:-2px}
.hero p{font-size:17px;color:#5f5f5f;max-width:590px;margin:0 0 28px}
.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--maroon);border-radius:2px;color:#fff;padding:12px 21px;font-size:12px;text-transform:uppercase;letter-spacing:1.2px;font-weight:bold;width:max-content;transition:.2s}
.btn:hover{background:var(--accent)}
.hero-photo{min-height:480px;background-image:linear-gradient(90deg,rgba(245,244,239,.2),transparent 35%),var(--hero-photo-url);background-size:cover;background-position:center}

/* INTRO STRIP */
.intro{padding:34px 0;border-bottom:1px solid var(--line)}
.intro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.intro-item{padding:8px 22px;border-left:3px solid var(--accent)}
.intro-item:nth-child(1){border-left-color:var(--accent)}
.intro-item:nth-child(2){border-left-color:var(--accent2)}
.intro-item:nth-child(3){border-left-color:var(--accent3)}
.intro-item h3{font-family:var(--serif);margin:0 0 3px;font-size:22px;font-weight:500}
.intro-item p{margin:0;color:#777;font-size:13px}

/* SECTION */
.section{padding:74px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:32px}
.section-title{font-family:var(--serif);font-size:42px;font-weight:500;margin:0;letter-spacing:-1px}
.section-note{font-size:12px;color:#888;text-transform:uppercase;letter-spacing:1.5px}

/* FEATURED */
.featured{display:grid;grid-template-columns:1.15fr .85fr;gap:34px}
.feature-card{position:relative;min-height:500px;background:#222;overflow:hidden;color:#fff}
.feature-card img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .5s}
.feature-card:hover img{transform:scale(1.035)}
.feature-overlay{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.8),rgba(0,0,0,.05) 65%)}
.feature-content{position:absolute;left:34px;right:34px;bottom:32px}
.category{font-size:11px;text-transform:uppercase;letter-spacing:2px;color:var(--accent);font-weight:bold}
.feature-content h2{font-family:var(--serif);font-size:36px;line-height:1.12;font-weight:500;margin:10px 0;color:#fff}
.meta{font-size:12px;color:#999}
.side-feature{display:grid;gap:20px}
.mini-card{display:grid;grid-template-columns:145px 1fr;gap:18px;border-bottom:1px solid var(--line);padding-bottom:20px}
.mini-card:last-child{border-bottom:0}
.mini-card img{height:120px;width:145px;object-fit:cover}
.mini-card h3{font-family:var(--serif);font-size:22px;line-height:1.18;margin:7px 0}
.mini-card p{font-size:13px;color:#777;margin:0}

/* CATEGORY */
.category-section{background:
  linear-gradient(135deg,rgba(63,169,209,.06),transparent 30%),
  linear-gradient(315deg,rgba(14,90,120,.05),transparent 35%),
  var(--soft);padding:70px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}
.category-box{background:#fff;padding:30px;border:1px solid var(--line);transition:.25s}
.category-box:hover{transform:translateY(-4px);box-shadow:0 10px 30px rgba(0,0,0,.07)}
.category-box:nth-child(1){border-top:4px solid var(--accent)}
.category-box:nth-child(2){border-top:4px solid var(--accent2)}
.category-box:nth-child(3){border-top:4px solid var(--accent4)}
.category-box:nth-child(1) .category-number{color:var(--accent)}
.category-box:nth-child(2) .category-number{color:var(--accent2)}
.category-box:nth-child(3) .category-number{color:var(--accent4)}
.category-number{font-family:var(--serif);font-size:18px;color:var(--accent)}
.category-box h3{font-family:var(--serif);font-size:30px;font-weight:500;margin:6px 0}
.category-box p{font-size:13px;color:#777;margin-bottom:20px}

/* ARTICLES */
.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.article-card{border-bottom:1px solid var(--line);padding-bottom:24px}
.article-image{height:225px;overflow:hidden;margin-bottom:18px;background:#ddd}
.article-image img{width:100%;height:100%;object-fit:cover;transition:.4s}
.article-card:hover .article-image img{transform:scale(1.04)}
.article-card h3{font-family:var(--serif);font-size:25px;line-height:1.18;font-weight:500;margin:8px 0}
.article-card p{font-size:14px;color:#777;margin:8px 0 14px;text-align:justify;text-justify:inter-word}
.read{font-size:11px;text-transform:uppercase;letter-spacing:1.3px;font-weight:bold;color:var(--accent)}

/* ABOUT */
.about{background:
  radial-gradient(circle at 15% 20%,rgba(127,208,230,.22),transparent 28%),
  radial-gradient(circle at 80% 70%,rgba(63,169,209,.20),transparent 30%),
  linear-gradient(135deg,#123044,#0a1f2e);color:#fff}
.about-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:center}
.about-photo{height:430px;background-size:cover;background-position:center 18%;border-radius:6px;box-shadow:0 18px 45px rgba(10,31,46,.35);background-image:var(--about-photo-url)}
.about-copy .kicker{color:var(--accent3)}
.about-copy h2{font-family:var(--serif);font-size:48px;font-weight:500;line-height:1.1;margin:0 0 20px}
.about-copy p{color:#d8dfda;max-width:650px}
.about-copy .btn{background:#fff;color:var(--ink);margin-top:12px}

/* NEWSLETTER */
.newsletter{background:#fff;padding:65px 0;text-align:center;border-bottom:1px solid var(--line)}
.newsletter h2{font-family:var(--serif);font-size:38px;font-weight:500;margin:0 0 8px}
.newsletter p{color:#777;margin:0 auto 22px}
.form{display:flex;max-width:530px;margin:auto}
.form input{flex:1;border:1px solid #ccc;padding:14px 15px;font:inherit;outline:none}
.form button{border:0;background:var(--accent);color:#fff;padding:0 22px;text-transform:uppercase;font-size:11px;font-weight:bold;letter-spacing:1px;cursor:pointer}
.form button:hover{background:var(--maroon)}
.newsletter-msg{margin-top:14px;font-size:13px}

/* FOOTER */
footer{background:#0d2733;color:#a9c3cf;padding:45px 0 25px}
.footer-grid{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:50px}
footer h3{font-family:var(--serif);font-size:23px;color:#fff;font-weight:500;margin:0 0 12px}
footer p{font-size:13px;line-height:1.8}
.footer-links a{display:block;font-size:12px;margin:6px 0}
.footer-links a:hover{color:#fff}
.copyright{border-top:1px solid #333;margin-top:35px;padding-top:18px;font-size:11px;display:flex;justify-content:space-between}

@media(min-width:851px){
  .header-main{min-height:112px}
  .hero-grid{min-height:545px}
  .hero-copy{padding-right:70px}
  .hero-photo{min-height:545px}
}

@media(max-width:850px){
  .topbar{display:none}
  .header-main{min-height:75px}
  .menu-btn{display:block}
  .nav{display:none;position:absolute;left:0;right:0;top:75px;background:#fff;border-bottom:1px solid var(--line);padding:10px 20px;flex-direction:column;align-items:stretch;gap:0}
  .nav.open{display:flex}
  .nav a{padding:14px 0}
  .nav a:after{bottom:7px}
  .hero-grid,.featured,.about-grid{grid-template-columns:1fr}
  .hero-copy{padding:55px 0}
  .hero-photo{min-height:340px}
  .intro-grid,.category-grid,.article-grid{grid-template-columns:1fr}
  .intro-grid{gap:18px}
  .section{padding:55px 0}
  .section-head{align-items:start;flex-direction:column}
  .section-title{font-size:36px}
  .feature-card{min-height:420px}
  .about-photo{height:330px}
  .about-copy{padding-bottom:20px}
  .about-copy h2{font-size:39px}
  .footer-grid{grid-template-columns:1fr;gap:25px}
  .copyright{display:block}
  .copyright span{display:block;margin-top:8px}
}
