/*
Theme Name: Eroll Maxhuni
Theme URI: https://erollmaxhuni.com
Author: Eroll Maxhuni
Description: Services site and blog for a full stack and mobile developer. Includes Services and Projects post types, a blog with reading time and SEO tags, and Customizer fields for the home page.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eroll
*/
:root{--paper:#F2F4F7;--panel:#E5EAF2;--ink:#18233A;--muted:#505D75;--line:#C5CEDC;--red:#B3202A;
--display:'Bricolage Grotesque','Helvetica Neue',Arial,sans-serif;--body:'Literata',Georgia,'Times New Roman',serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:1.0625rem;line-height:1.65}
a{color:inherit}
img{max-width:100%;height:auto}
:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.wrap{max-width:1060px;margin:0 auto;padding:0 1.5rem}
.narrow{max-width:720px}
h1,h2,h3{font-family:var(--display);line-height:1.1;margin:0;letter-spacing:-0.02em}
.screen-reader-text{position:absolute;left:-9999px}
.skip-link:focus{left:1rem;top:1rem;background:var(--ink);color:#fff;padding:.6rem 1rem;z-index:99}
/* header */
.top{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 0;gap:1rem;flex-wrap:wrap}
.top .name{font-family:var(--display);font-weight:700;font-size:1.1rem;text-decoration:none}
.top .menu{display:flex;gap:1.5rem;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.top .menu a{font-family:var(--display);font-weight:500;text-decoration:none;border-bottom:2px solid transparent}
.top .menu a:hover,.top .menu .current-menu-item a{border-color:var(--red)}
/* hero */
.hero{padding:4.5rem 0 5rem}
.hero h1{font-size:clamp(2.6rem,7.2vw,5.6rem);font-weight:700;max-width:15ch}
.hero h1 span{display:block;color:var(--red)}
.hero p{max-width:34rem;margin:2rem 0 0;font-size:1.2rem;color:var(--muted)}
.cta{display:inline-block;margin-top:2.25rem;background:var(--ink);color:var(--paper);font-family:var(--display);font-weight:700;padding:.95rem 1.6rem;text-decoration:none;border-radius:3px}
.cta:hover{background:var(--red)}
/* sections */
section.block{padding:4.5rem 0;border-top:1px solid var(--line)}
.split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,8fr);gap:3rem}
.split>div>h2{font-size:clamp(1.9rem,3.6vw,2.6rem);position:sticky;top:1.5rem}
.lead{margin:1rem 0 0;color:var(--muted);max-width:26rem;font-size:1rem}
.stack{font-family:var(--display);font-weight:500;font-size:.95rem;color:var(--muted);margin:0}
.services details{border-bottom:1px solid var(--line)}
.services details:first-child{border-top:1px solid var(--line)}
.services summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:1rem;align-items:baseline;padding:1.2rem 0;font-family:var(--display);font-weight:700;font-size:1.4rem}
.services summary::-webkit-details-marker{display:none}
.services summary::after{content:"+";font-weight:500;font-size:1.6rem;color:var(--red);transition:transform .2s}
.services details[open] summary::after{transform:rotate(45deg)}
.services .body{padding:0 0 1.6rem;max-width:36rem}
.services .body p{margin:0 0 .9rem}
.work article,.post-row{padding:1.6rem 0;border-bottom:1px solid var(--line)}
.work article:first-child,.post-list .post-row:first-child{border-top:1px solid var(--line)}
.work h3{font-size:1.35rem;margin-bottom:.5rem}
.work p{margin:0 0 .6rem;max-width:38rem}
.more{font-family:var(--display);font-weight:700}
.contact{background:var(--ink);color:var(--paper);padding:4.5rem 0}
.contact h2{font-size:clamp(2rem,5vw,3.6rem);max-width:16ch}
.contact p{max-width:32rem;color:#C9D2E3;margin:1.4rem 0 0}
.contact .links{display:flex;flex-wrap:wrap;gap:1rem 2rem;margin-top:2rem;font-family:var(--display);font-weight:700;font-size:1.15rem}
.contact .links a{border-bottom:2px solid var(--red);text-decoration:none;padding-bottom:2px}
.contact :focus-visible{outline-color:#fff}
.site-footer{padding:1.5rem 0;color:var(--muted);font-size:.92rem}
.site-footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
/* blog */
.page-head{padding:3rem 0 2rem}
.page-head h1{font-size:clamp(2.2rem,5vw,3.6rem)}
.page-head .meta,.post-row .meta{font-family:var(--display);font-weight:500;font-size:.92rem;color:var(--muted);margin-top:.8rem}
.post-row h2{font-size:1.6rem}
.post-row h2 a{text-decoration:none}
.post-row h2 a:hover{color:var(--red)}
.post-row p{margin:.6rem 0 0;max-width:40rem}
.entry-content{font-size:1.125rem;line-height:1.75}
.entry-content h2{font-size:1.9rem;margin:2.4rem 0 .8rem}
.entry-content h3{font-size:1.4rem;margin:2rem 0 .6rem}
.entry-content a{color:var(--red)}
.entry-content blockquote{margin:1.8rem 0;padding-left:1.2rem;border-left:4px solid var(--red);color:var(--muted)}
.entry-content pre{background:var(--ink);color:#E8EDF6;padding:1.1rem;overflow:auto;border-radius:3px;font-size:.92rem;line-height:1.5}
.entry-content code{background:var(--panel);padding:.1em .35em;border-radius:3px;font-size:.92em}
.entry-content pre code{background:none;padding:0}
.entry-content figure{margin:1.8rem 0}
.entry-content figcaption,.wp-caption-text{font-size:.9rem;color:var(--muted)}
.aligncenter{display:block;margin:0 auto}.alignleft{float:left;margin:0 1.2rem 1rem 0}.alignright{float:right;margin:0 0 1rem 1.2rem}
.featured img{width:100%;border-radius:3px;margin:1.5rem 0 0}
.post-nav{display:flex;justify-content:space-between;gap:1rem;padding:2rem 0;margin-top:2.5rem;border-top:1px solid var(--line);font-family:var(--display);font-weight:500}
.post-nav a{text-decoration:none}.post-nav a:hover{color:var(--red)}
.tags a{display:inline-block;margin:0 .6rem .4rem 0;font-family:var(--display);font-size:.92rem;color:var(--muted)}
.navigation.pagination{padding:2rem 0;font-family:var(--display);font-weight:700}
.navigation.pagination .page-numbers{display:inline-block;padding:.3rem .7rem;text-decoration:none}
.navigation.pagination .current{border-bottom:2px solid var(--red)}
.comments{margin-top:3rem}
.comments h2{font-size:1.5rem}
.comment-list{list-style:none;padding:0}
.comment-list .comment{padding:1.2rem 0;border-bottom:1px solid var(--line)}
.comment-list .children{list-style:none;padding-left:1.5rem}
input[type=text],input[type=email],input[type=url],input[type=search],textarea{width:100%;padding:.7rem .8rem;border:1px solid var(--line);background:#fff;font:inherit;border-radius:3px}
input[type=submit],.search-submit{background:var(--ink);color:var(--paper);border:0;padding:.8rem 1.4rem;font-family:var(--display);font-weight:700;border-radius:3px;cursor:pointer}
input[type=submit]:hover,.search-submit:hover{background:var(--red)}
.search-form{display:flex;gap:.6rem;max-width:26rem;margin-top:1.2rem}
@media (max-width:760px){.split{grid-template-columns:1fr;gap:1.5rem}.split>div>h2{position:static}.hero{padding:3rem 0 3.5rem}section.block{padding:3rem 0}}
