/* Homepage layout; shared typography is defined in style.css. */
.home { padding:0; background:var(--paper); }
.home::before { display:none; }
.home-layout { display:grid; grid-template-columns:44% 56%; min-height:100svh; }
.home-hero { position:relative; isolation:isolate; color:#fffdf7; min-width:0; }
.home-photo { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:46% center; opacity:0; transition:opacity 1s ease; }
.home-photo.is-active { opacity:1; }
@media (prefers-reduced-motion:reduce) {
    .home-photo { transition:none; }
}
.home-hero::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(15,35,51,.64),rgba(15,35,51,.57) 60%,rgba(15,35,51,.06) 85%); }
.home-nav { position:relative; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:38px clamp(28px,4vw,64px); }
.home-nav a { text-decoration:none; }
.home-brand { font-size:24px; white-space:nowrap; }
.home-menu { display:flex; gap:36px; list-style:none; }
.home-menu a { display:block; padding:8px 0; font-family:var(--serif); font-size:var(--nav-size); font-weight:400; }
.home-nav a:hover { text-decoration:underline; text-underline-offset:5px; }
.home-intro { padding:clamp(60px,9vh,120px) clamp(28px,4.5vw,72px) 240px; }
.home-intro h1 { margin-bottom:18px; }
.home-intro p { font-size:clamp(22px,2.15vw,32px); line-height:1.35; max-width:460px; }
.home-intro a { text-decoration:underline; text-decoration-thickness:1px; text-decoration-color:rgba(255,253,247,.55); text-underline-offset:4px; }
.home-intro a:hover { text-decoration:underline; text-underline-offset:4px; }
.home-hero a:focus-visible,.home-menu-toggle:focus-visible { outline:2px solid #fffdf7; outline-offset:5px; }
.home-content { display:flex; flex-direction:column; min-width:0; }
.home-writing,.home-projects { flex:1; padding:clamp(60px,11vh,120px) clamp(32px,4vw,72px) 60px; }
.home-projects { border-top:1px solid var(--rule); padding-top:40px; }
.home-projects .project-list { margin-top:28px; }
.home-label { display:block; font:400 var(--label-size) var(--mono); text-transform:uppercase; letter-spacing:.08em; color:#546578; }
.home-posts { margin-top:48px; }
.home-post { display:grid; grid-template-columns:112px minmax(0,1fr) 20px; gap:24px; padding:32px 0; text-decoration:none; }
.home-post + .home-post { border-top:1px solid var(--rule); }
.home-post time { padding-top:5px; font:10px var(--mono); text-transform:uppercase; color:#546578; }
.home-post h3 { font-family:var(--serif); font-size:var(--entry-title-size); font-weight:400; line-height:1.25; }
.home-post p { margin-top:9px; font:15px/1.6 var(--serif); color:#626c77; }
.home-arrow { font-size:25px; line-height:1; }
.home-post:hover h3,.home-post:hover .home-arrow { color:#ad4b2e; }
.home-view-all { display:inline-flex; align-items:center; gap:12px; margin-top:25px; color:#ad4b2e; text-decoration:none; font-size:19px; }
.home-view-all:hover { text-decoration:underline; text-underline-offset:5px; }
.home-footer { display:grid; grid-template-columns:45% 55%; border-top:1px solid var(--rule); }
.home-location,.home-elsewhere { padding:30px clamp(28px,3vw,56px) 38px; }
.home-elsewhere { border-left:1px solid var(--rule); }
.home-location p { margin-top:17px; font-size:20px; white-space:nowrap; }
.home-socials { display:flex; align-items:center; gap:24px; margin-top:17px; }
.home-socials a { display:flex; align-items:center; gap:10px; min-height:28px; text-decoration:none; font-size:15px; }
.home-socials a:hover { color:#ad4b2e; }
.social-icon { width:20px; height:20px; flex-shrink:0; }
.home-menu-toggle { display:none; }
@media (min-width:761px) and (max-width:1200px) {
    .home-nav { padding-inline:28px; }
    .home-menu { gap:24px; }
    .home-post { grid-template-columns:1fr 20px; gap:10px 16px; }
    .home-post time { grid-column:1 / -1; }
    .home-footer { grid-template-columns:1fr 1fr; }
    .home-location,.home-elsewhere { padding-inline:24px; }
    .home-socials { gap:20px; }
    .home-socials a span { display:none; }
}
@media (max-width:760px) {
    .home-layout { grid-template-columns:1fr; }
    .home-hero { min-height:420px; }
    .home-nav { padding:22px 28px; flex-wrap:wrap; }
    .home-brand { font-size:23px; }
    .home-menu { gap:28px; }
    .home-menu-toggle:not([hidden]) { display:flex; flex-direction:column; justify-content:center; gap:5px; width:44px; height:44px; margin-right:-10px; border:0; background:none; color:inherit; cursor:pointer; }
    .home-menu-toggle span { display:block; width:21px; height:1px; margin-inline:auto; background:currentColor; }
    .home-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
    .home-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
    .home-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
    .home-menu-toggle:not([hidden]) + .home-menu { display:none; flex-basis:100%; flex-direction:column; gap:0; padding-top:8px; border-top:1px solid rgba(255,255,255,.3); }
    .home-menu-toggle:not([hidden]) + .home-menu a { display:flex; align-items:center; min-height:44px; }
    .home-menu-toggle[aria-expanded="true"] + .home-menu { display:flex; }
    .home-intro { padding:32px 28px 90px; }
    .home-intro h1 { margin-bottom:8px; }
    .home-intro p { max-width:350px; font-size:21px; line-height:1.3; }
    .home-writing,.home-projects { padding:32px 28px 30px; }
    .home-posts { margin-top:20px; }
    .home-post { grid-template-columns:1fr 18px; gap:6px 12px; padding:23px 0; }
    .home-post time { grid-column:1 / -1; font-size:9px; }
    .home-post p { margin-top:5px; font-size:14px; }
    .home-arrow { font-size:23px; }
    .home-view-all { font-size:18px; margin-top:12px; }
    .home-footer { display:flex; align-items:center; justify-content:space-between; padding:18px 28px; gap:18px; }
    .home-location,.home-elsewhere { padding:0; }
    .home-footer .home-label,.home-socials a span { display:none; }
    .home-location p { font-size:16px; margin:0; }
    .home-elsewhere { padding-left:22px; }
    .home-socials { gap:22px; margin:0; }
}
@media (max-width:360px) {
    .home-nav,.home-writing,.home-projects { padding-inline:22px; }
    .home-intro { padding-inline:22px; }
    .home-footer { padding-inline:22px; gap:12px; }
    .home-elsewhere { padding-left:14px; }
    .home-socials { gap:16px; }
}
