@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#050505;color:#ededed;font-family:'Manrope',Arial,sans-serif;font-weight:400;line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{color:#fff}
h1,h2,h3{font-weight:500;letter-spacing:-.04em;line-height:1.15}

/* One global header */
.site-header{max-width:1536px;margin:0 auto 8px;height:76px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative;z-index:10;border-bottom:1px solid #171717}
.brand{font-size:28px;font-weight:800;letter-spacing:-.05em;white-space:nowrap}
.site-header nav{display:flex;align-items:center;gap:28px}
.site-header nav a{font-size:20px;color:#777;white-space:nowrap;transition:color .2s}
.site-header nav a:hover,.site-header nav a:first-child,.site-header nav .selected{color:#eee}
.dot{width:6px;height:6px;background:#999;border-radius:50%;flex-shrink:0}

/* Card grid */
.layout{max-width:1536px;margin:auto;padding:12px 24px 0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));column-gap:22px;row-gap:20px}
.cell{grid-column:span 2;min-width:0}
.cell:nth-child(-n+2){grid-column:span 3}
.cell>.outside{display:none}
.screen{position:relative;overflow:hidden;border:1px solid #343434;border-radius:7px;background:#050505}
.home,.about{height:474px}
.sub{height:426px}

/* Hero */
.hero-copy{position:absolute;top:72px;left:6%;z-index:2}
.hero-copy small,.sub-content>small,.about-copy>small{color:#777;font-size:10px}
.hero-copy h1{font-size:39px;line-height:1.1;font-weight:400;letter-spacing:-1.8px;margin:20px 0 29px;white-space:nowrap}
.hero-copy h1 em{font-style:normal;color:#858585}
.hero-copy p{color:#999;font-size:12px;line-height:1.7;margin:0 0 25px}
.next{display:flex;align-items:center;gap:12px;color:#aaa;font-size:10px}
.next b{width:36px;height:36px;border:1px solid #333;border-radius:50%;display:grid;place-items:center;font-size:17px;font-weight:400;color:#eee}
.planet{position:absolute;right:-1px;top:0;width:38%;height:100%;background:url('assets/planet.png') center/cover no-repeat;opacity:.94;pointer-events:none}

/* About */
.about-inner{display:grid;grid-template-columns:1fr 42%;gap:6%;padding:48px 3.2% 0 5%;height:100%}
.about-copy{display:flex;flex-direction:column;align-items:flex-start}
.about-copy h2{font-size:32px;font-weight:400;letter-spacing:-1.1px;line-height:1.12;margin:20px 0}
.about-copy p{font-size:11px;color:#a4a4a4;line-height:1.6;max-width:300px;margin:0 0 16px}
.contact{font-size:10px;border:1px solid #303030;border-radius:20px;padding:11px 15px;margin-top:10px}
.socials{display:flex;gap:22px;margin-top:auto;padding-bottom:10px}
.socials a{font-size:10px;color:#c4c4c4}
.portrait{background:url('assets/portrait.png') center/cover no-repeat;border-radius:9px;height:360px;align-self:start}

/* Shared small cards */
.sub-content{padding:38px 6% 0}
.sub-content h2{font-size:30px;font-weight:400;letter-spacing:-1px;margin:16px 0 13px}
.intro{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:19px}
.intro p{font-size:10px;color:#a4a4a4;line-height:1.5;margin:0}
.intro>a{font-size:9px;color:#bdbdbd;white-space:nowrap}

/* Articles */
.articles a{display:flex;gap:16px;align-items:center;min-height:82px;border-bottom:1px solid #181818}
.articles a img{width:103px;height:62px;object-fit:cover;border-radius:5px}
.articles a span{font-size:11px;line-height:1.35;flex:1}
.articles a small{display:block;color:#777;font-size:8px;margin-top:6px}
.articles a b{font-size:11px;font-weight:400}

/* Projects */
.featured{display:block;height:132px;position:relative;border:1px solid #282828;border-radius:7px;padding:14px;background:linear-gradient(90deg,#0b0b0b 42%,transparent),url('assets/project.png') right center/cover no-repeat}
.featured small,.minis small{color:#888;font-size:9px}
.featured h3,.minis h3{font-size:15px;font-weight:400;margin:10px 0 7px}
.featured p,.minis p{font-size:9px;color:#aaa;line-height:1.4;margin:0}
.featured span,.minis span{position:absolute;bottom:12px;left:14px;font-size:12px}
.minis{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.minis a{position:relative;display:block;border:1px solid #191919;border-radius:7px;padding:14px;height:113px}
.minis h3{font-size:12px}
.minis span{left:auto;right:12px}

/* Gallery and footer */
.gallery{display:grid;grid-template-columns:1.6fr 1fr .75fr;grid-template-rows:118px 118px;gap:7px}
.gallery img{width:100%;height:100%;object-fit:cover;border-radius:5px}
footer{max-width:1536px;margin:35px auto;padding:0 24px 24px;font-size:11px;color:#666;display:flex;justify-content:space-between}

/* Tablet */
@media(max-width:1100px){
 .layout{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cell,.cell:nth-child(-n+2){grid-column:span 1}
 .cell:last-child{grid-column:span 2}
 .hero-copy h1{font-size:clamp(27px,3.6vw,39px)}
 .planet{width:44%}
}

/* Mobile */
@media(max-width:700px){
 .site-header{height:auto;min-height:74px;padding:16px 14px;flex-wrap:wrap;gap:14px}
 .site-header nav{order:3;width:100%;gap:18px;overflow-x:auto;padding-bottom:4px}
 .site-header nav a{font-size:11px}
 .site-header .dot{display:block;margin-left:auto}
 .layout{display:block;padding:8px 14px 0}
 .cell{margin-bottom:20px}
 .home,.about{height:480px}
 .sub{height:425px}
 .hero-copy{top:95px}
 .hero-copy h1{font-size:clamp(30px,8vw,44px)}
 .hero-copy p{font-size:11px}
 .planet{width:50%;opacity:.45;top:100px}
 .about-inner{grid-template-columns:1fr 38%;gap:3%;padding:42px 4% 0 5%}
 .about-copy h2{font-size:26px}
 .about-copy p{font-size:10px}
 .portrait{height:285px}
 .socials{flex-wrap:wrap;gap:12px}
 .sub-content{padding-top:36px}
 .gallery{grid-template-rows:112px 112px}
}
@media(max-width:400px){
 .hero-copy h1{font-size:31px}
 .portrait{height:245px}
 .about-copy h2{font-size:23px}
}

/* Personal site refinements */
.hero-copy{top:54px}.hero-copy h1{font-size:clamp(28px,2.45vw,39px);line-height:1.13;margin:19px 0 24px;white-space:normal}.hero-copy p{max-width:390px}
.thoughts-feature .portrait{background-position:center top;filter:grayscale(100%);opacity:.88}
.thoughts-feature .about-copy h2{font-size:39px}
.thoughts-feature .socials{color:#858585;font-size:10px;flex-wrap:wrap}
.muted-link{font-size:9px;color:#888;white-space:nowrap}
.minis .mini-card{position:relative;display:block;border:1px solid #191919;border-radius:7px;padding:14px;height:113px}
.explore-list{margin-top:8px;border-top:1px solid #252525}
.explore-item{display:grid;grid-template-columns:25px 1fr 26px;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #252525}
.explore-num{font-size:9px;color:#777}.explore-item h3{font-size:14px;font-weight:500;margin:0 0 4px}.explore-item p{font-size:9px;color:#888;margin:0}.explore-symbol{font-size:20px;color:#aaa;text-align:center}
.explore-foot{font-size:9px;color:#777;margin-top:15px}
@media(max-width:1100px){.hero-copy h1{font-size:clamp(27px,3.3vw,39px)}}
@media(max-width:700px){.hero-copy{top:62px}.hero-copy h1{font-size:clamp(27px,6.5vw,38px)}.hero-copy p{max-width:270px}.thoughts-feature .about-copy h2{font-size:30px}.explore-item{padding:12px 0}}
@media(max-width:400px){.hero-copy h1{font-size:27px}.hero-copy p{font-size:10px}}
