﻿:root{
  --bg: #121212;
  --text: #f0f0f0;
  --muted: #a0a0a0;
  --accent: #3b82f6;
  --accent-dark: #60a5fa;
  --accent2: #f59e0b;
  --card: #1e1e1e;
  --border: #2e2e2e;
}

#projects > .card{
  margin-bottom:2rem;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}

.container{max-width:900px;margin:0 auto;padding:1.25rem}

.site-header{border-bottom:1px solid var(--border);background:#000000}

.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.site-name{
  font-weight:700;
  letter-spacing:-0.3px;
  color:var(--text);
}

.nav{
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1rem;
}

.nav a{
  padding:0.25rem 0;
  color:var(--text);
  text-decoration:none;
  transition:color 0.2s ease;
  font-size:0.95rem;
  font-weight:500;
}

.nav a:hover{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:3px;
}

.hero{
  padding:4rem 0 3rem;
  margin-bottom:1rem;
}

.about-container{
  display:flex;
  align-items:center;
  gap:3rem;
  justify-content:space-between;
}

.about-text{
  flex:1;
  max-width:500px;
}

.headline{
  margin:0 0 0.5rem 0;
  font-size:2.5rem;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-1px;
  color:var(--text);
}

.subtitle{
  font-size:1.25rem;
  color:var(--accent);
  font-weight:600;
  margin:0 0 1rem 0;
}

.hero p{
  font-size:1.05rem;
  color:var(--muted);
  line-height:1.7;
  margin-bottom:1.5rem;
}

.profile-pic{
  width:240px;
  height:240px;
  border-radius:12px;
  object-fit:cover;
  box-shadow:0 20px 40px rgba(0, 0, 0, 0.1);
  flex-shrink:0;
  border:3px solid var(--border);
}

#projects{
  margin:4rem 0 3rem;
}

#projects h2{
  font-size:2rem;
  font-weight:700;
  margin-bottom:2.5rem;
  text-align:center;
  letter-spacing:-0.5px;
}

.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:2rem;
  max-width:1200px;
  margin:0 auto;
}

.card{
  background:var(--card);
  padding:2rem;
  border-radius:10px;
  border:1px solid var(--border);
  text-align:left;
  color:var(--text);
  transition:border-color 0.2s ease;
  position:relative;
}

.card:hover{
  border-color:var(--accent);
}

.card.featured{
  grid-column:1 / -1;
}

.older-projects{
  max-width:1200px;
  margin:2rem auto 0;
}

.older-projects summary{
  cursor:pointer;
  font-weight:700;
  color:var(--text);
  padding:0.75rem 0;
  list-style:none;
}

.older-projects summary::-webkit-details-marker{
  display:none;
}

.older-projects summary::before{
  content:"▸ ";
  color:var(--accent);
}

.older-projects[open] summary::before{
  content:"▾ ";
}

.older-projects .projects-grid{
  margin-top:1.5rem;
}

.featured-badge{
  display:inline-block;
  background:transparent;
  color:var(--muted);
  padding:0;
  border-radius:0;
  font-size:0.75rem;
  font-weight:700;
  letter-spacing:0.6px;
  text-transform:uppercase;
  margin-bottom:1rem;
}

.card h3{
  margin-top:0;
  margin-bottom:1rem;
  font-size:1.3rem;
  font-weight:700;
  line-height:1.4;
  color:var(--text);
}

.card h3 .year{
  font-family:"IBM Plex Mono", monospace;
  font-size:0.85rem;
  font-weight:500;
  color:var(--muted, #6b7280);
}

.card p{
  margin:1rem 0;
  color:var(--muted);
  font-size:0.95rem;
  line-height:1.6;
}

.card p.lead{
  margin-bottom:0.5rem;
  color:var(--text);
  font-weight:600;
}

.tech-stack{
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  margin:1.2rem 0;
}

.tech-tag{
  display:inline-block;
  background:var(--border);
  color:var(--muted);
  padding:0.35rem 0.75rem;
  border-radius:16px;
  font-size:0.8rem;
  font-weight:500;
}

.small{
  color:var(--accent);
  text-decoration:none;
  font-weight:500;
  transition:color 0.2s ease;
}

.small:hover{
  color:var(--accent-dark);
  text-decoration:underline;
}

.links{
  display:flex;
  gap:0.5rem;
  flex-wrap:wrap;
  margin:1.2rem 0 0 0;
  align-items:center;
}

.links a{
  color:var(--accent);
  text-decoration:none;
  font-size:0.9rem;
  font-weight:600;
  padding:0.4rem 0;
  border-bottom:2px solid var(--accent);
  transition:color 0.2s ease;
  display:inline-block;
}

.links a:hover{
  color:var(--accent-dark);
}

.site-footer{
  border-top:1px solid var(--border);
  padding:2rem 1rem;
  margin-top:4rem;
  color:var(--muted);
  background:#000000;
  font-size:0.9rem;
}

.site-footer .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.footer-links{
  display:flex;
  gap:1rem;
}

.footer-links a{
  color:var(--muted);
  text-decoration:none;
  transition:color 0.2s ease;
}

.footer-links a:hover{
  color:var(--accent-dark);
}

@media (max-width:768px){
  .headline{
    font-size:2rem;
  }

  .subtitle{
    font-size:1.1rem;
    white-space:normal;
  }

  .about-container{
    flex-direction:column-reverse;
    gap:2rem;
    text-align:center;
  }

  .profile-pic{
    width:160px;
    height:160px;
  }

  .nav{
    gap:1.25rem;
  }

  .nav a{
    padding:0.5rem 0;
  }

  .hero{
    padding:2rem 0 1rem;
  }

  .hero p{
    text-align:left;
  }

  .hero .subtitle{
    text-align:center;
  }

  .card{
    padding:1.25rem;
  }

  .more summary{
    padding:0.5rem 0;
  }

  .links{
    gap:1rem;
  }

  video.card-img.portrait{
    height:min(520px,65vh);
  }

  .projects-grid{
    grid-template-columns:1fr;
  }

  .links{
    justify-content:flex-start;
  }

  .site-header .container{
    flex-direction:column;
    gap:0.75rem;
  }

  .site-footer .container{
    flex-direction:column;
    gap:0.75rem;
    text-align:center;
  }
}

/* Resume and other page styles */
.card strong{
  display:block;
  font-size:1.1rem;
  font-weight:700;
  margin-bottom:0.25rem;
  color:var(--text);
}

.card ul{
  margin:1rem 0 0 0;
  padding-left:1.5rem;
  color:var(--muted);
}

.card ul li{
  margin-bottom:0.5rem;
  line-height:1.6;
}

section{
  margin-bottom:3rem;
}

section:last-of-type{
  margin-bottom:2rem;
}
.card h3 .status-tag{
  display:inline-block;
  margin-left:6px;
  padding:2px 8px;
  border:1px solid var(--muted, #6b7280);
  border-radius:999px;
  font-family:"IBM Plex Mono", monospace;
  font-size:0.7rem;
  font-weight:500;
  color:var(--muted, #6b7280);
  vertical-align:middle;
}

.card-img{
  width:100%;
  height:auto;
  margin:16px 0;
  border-radius:8px;
}
video.card-img{ display:block; aspect-ratio:1200/750; object-fit:cover; background:#eee; }video.card-img.portrait{ aspect-ratio:430/860; width:auto; max-width:100%; height:min(640px,80vh); margin-left:auto; margin-right:auto; object-fit:contain; background:transparent; }

.more summary{cursor:pointer;color:var(--accent);font-size:0.9rem;font-weight:600;list-style:none;margin-top:0.5rem}
.more summary::-webkit-details-marker{display:none}
.more summary::after{content:" ▸"}
.more[open] summary::after{content:" ▾"}

.card .sub{
  margin-top:1.25rem;
  padding-top:1rem;
  border-top:1px solid rgba(128,128,128,.3);
}
.card .sub h4{
  margin:0 0 .5rem;
  font-size:1.05rem;
}
.card .sub .sub-img{
  float:right;
  width:38%;
  max-width:200px;
  margin:0 0 .5rem 1rem;
  border-radius:6px;
  border:1px solid rgba(128,128,128,.3);
}
.card .sub::after{ content:""; display:block; clear:both; }

/* Editorial theme */
:root{--bg:#000;--text:#f2ede4;--muted:#a39d92;--card:transparent;--border:#f2ede4;--accent:#8ab4f8;--accent-dark:#8ab4f8;--accent2:#8ab4f8}
body{font-family:"Newsreader",Georgia,serif;font-size:18px;background:var(--bg)}
.site-header{background:var(--bg);border-bottom:3px double #f2ede4}
.site-name,.nav a{color:#f2ede4;font-family:"Newsreader",serif;font-style:italic}
.container{max-width:1000px}
.headline{font-family:"DM Serif Display",serif;font-weight:400;font-size:clamp(3.2rem,10vw,6.5rem);letter-spacing:-2px;line-height:.9;color:#f2ede4}
.subtitle{color:#8ab4f8;font-style:italic}
.hero p{color:#f2ede4;text-wrap:pretty}
.profile-pic{border-radius:0!important;border:1px solid #f2ede4!important;padding:6px;background:#111}
h2{font-family:"Fraunces",serif;font-weight:900;font-size:2.6rem;border-bottom:1px solid #f2ede4;padding:.4rem 0;text-align:center;font-style:italic}
.projects-grid{gap:2.5rem 3rem}
.card{background:#141414;border:1px solid #3a3a3a!important;border-top:4px solid #8ab4f8!important;border-radius:6px!important;box-shadow:0 8px 24px rgba(0,0,0,.6);padding:1.5rem}
.card h3{font-family:"Fraunces",serif;font-weight:800;font-size:1.7rem;color:#f2ede4;text-wrap:balance}
.card p,.card p.lead,.card summary{color:#f2ede4!important;text-wrap:pretty}
.status-tag{background:transparent!important;color:#8ab4f8!important;border:0!important;font-style:italic;font-family:"Newsreader",serif}
.tech-tag{background:transparent!important;color:#a39d92!important;border:0!important;border-bottom:1px solid #a39d92!important;border-radius:0!important;padding:0 .2rem}
.links a,.small{color:#8ab4f8!important;text-decoration:underline;text-underline-offset:4px;font-style:italic}
.card-img{border:1px solid #f2ede4!important;border-radius:0!important;filter:grayscale(.25) sepia(.15)}
.card .sub{border-top:1px solid #f2ede4}


/* Review pass */
.site-header{border-bottom:1px solid #f2ede4}
.links a,.small{border-bottom:0!important;text-decoration-thickness:1px}
.subtitle{font-weight:400}
h2{font-weight:400;letter-spacing:0}
.card h3 .status-tag{font-family:"Newsreader",serif;font-size:.95rem;font-weight:400;padding:0;margin-left:.5rem;text-transform:none;letter-spacing:0}
.card h3 .status-tag,.card h4 .status-tag{background:transparent;border:0}
.projects-grid>.card:last-child:nth-child(odd){grid-column:1/-1}
.about-container{align-items:flex-start}
.profile-pic{margin-top:1rem}
#projects{margin-top:2.5rem}
.headline{letter-spacing:-.02em}
.card-img{filter:brightness(.88) contrast(1.05);}
video.card-img{background:#141414}
.card p.lead{font-weight:400;font-size:1.1rem}
.card h3{font-weight:600;font-variation-settings:"SOFT" 50,"WONK" 0}
.site-footer,.site-footer a{font-style:italic;color:#a39d92}
.tech-tag{border:0!important;padding:0 .1rem!important;background:transparent!important}
.tech-tag+.tech-tag::before{content:"\00b7  ";color:#666}
.tech-stack{gap:.15rem .5rem}
.more summary::after{content:" +";font-style:italic}
.more[open] summary::after{content:" \2212"}
.card{box-shadow:none}
@media(max-width:768px){
.card h3{font-size:1.4rem}
.card h3 .status-tag{display:block;margin:.25rem 0 0}
.site-header .container{flex-direction:row;justify-content:space-between}
.nav{gap:.9rem}
video.card-img:not(.portrait){object-position:left top;aspect-ratio:4/3}
}
@media(max-width:600px){
.card .sub .sub-img{float:none;width:100%;max-width:none;margin:.5rem 0}
}
.tech-tag,.status-tag{font-family:"Newsreader",serif!important}
.tech-tag{font-size:.95rem}
.card h3 .year{font-family:"Newsreader",serif;font-style:italic;font-size:.95rem;border:0;padding:0;margin-left:.5rem}
.card .more summary{color:#8ab4f8!important}
.card .status-tag,.card h3 .status-tag,.card h4 .status-tag{color:#7fd99a!important}
.card .sub .sub-img{width:48%;max-width:400px}
@media(max-width:600px){.card .sub .sub-img{width:100%;max-width:none}}
.card-img,.card .sub .sub-img{border:0!important}

.card h3 a.title-link,.card h4 a.title-link{color:inherit;text-decoration:underline;text-decoration-color:#8ab4f8;text-decoration-thickness:2px;text-underline-offset:5px}
.card h3 a.title-link:hover,.card h4 a.title-link:hover{color:#8ab4f8}
.source-list{list-style:none;margin:1.5rem auto 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.75rem}
.source-list a{color:#8ab4f8;font-style:italic;text-decoration:underline;text-underline-offset:4px}

.card h3 a.title-link,.card h4 a.title-link{color:inherit;text-decoration:underline;text-decoration-color:#8ab4f8;text-decoration-thickness:2px;text-underline-offset:5px}
.card h3 a.title-link:hover,.card h4 a.title-link:hover{color:#8ab4f8}
.source-list{list-style:none;margin:1.5rem auto 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.75rem}
.source-list a{color:#8ab4f8;font-style:italic;text-decoration:underline;text-underline-offset:4px}
@media(min-width:601px){
.card .sub{display:grid;grid-template-columns:1fr 1.15fr;column-gap:1.75rem;align-items:center}
.card .sub h4{grid-column:1/-1}
.card .sub .sub-img{float:none;grid-column:2;grid-row:2/span 6;width:100%;max-width:none;margin:0}
.card .sub>p{grid-column:1}
.card .sub::after{display:none}
}
@media(min-width:601px){
.card .sub{grid-template-columns:1fr 1fr}
.card .sub>p{margin:0 0 .9rem}
}
.card p.lead{margin-bottom:1.25rem}

.card .sub{display:block}
.card .sub .sub-body{display:grid;grid-template-columns:1fr;gap:1rem}
.card .sub .sub-text p{margin:0 0 .9rem}
.card .sub .sub-media{position:relative;min-height:220px;border-radius:8px;overflow:hidden}
.card .sub .sub-media .sub-img{position:absolute;inset:0;width:100%;height:100%;max-width:none;float:none;margin:0;object-fit:cover;object-position:top left}
@media(min-width:601px){
.card .sub .sub-body{grid-template-columns:1fr 1fr;gap:1.75rem;align-items:stretch}
}
@media(min-width:769px){
.projects-grid>.card:not(.featured){display:flex;flex-direction:column}
.projects-grid>.card:not(.featured) .card-img{flex:1 1 auto;min-height:0;width:100%;aspect-ratio:auto!important;object-fit:cover;object-position:left top}
}
.profile-pic{width:340px;height:340px;object-fit:cover;object-position:center 20%}
@media(max-width:768px){.profile-pic{width:240px;height:240px}}

@media(min-width:769px){
.projects-grid>.card:nth-child(3) .card-img,.projects-grid>.card:nth-child(4) .card-img{flex:none;aspect-ratio:1200/750!important;height:auto;object-fit:cover;object-position:center}
}
.card .sub .sub-media video.sub-img{object-fit:cover;object-position:center top}
.profile-pic{border:2px solid #8ab4f8!important}
@media(min-width:601px){.card .sub .sub-body{grid-template-columns:1fr;gap:1rem}}
.card .sub .sub-media{min-height:0;aspect-ratio:1200/750}
@media(min-width:601px){.card .sub .sub-body{grid-template-columns:1fr minmax(0,.85fr);gap:1.75rem;align-items:center}}
@media(max-width:768px){.about-container{align-items:center}.profile-pic{margin-left:auto;margin-right:auto}}

img.card-img{display:block;height:auto!important;aspect-ratio:auto!important;object-fit:fill!important;background:#141414}
.card.wide{grid-column:1/-1}
.projects-grid>.card:not(.featured) img.card-img{flex:none;aspect-ratio:auto!important;height:auto!important;object-fit:fill!important}
.card .sub .sub-media:has(img){aspect-ratio:auto;overflow:visible}
.card .sub .sub-media img.sub-img{position:static;height:auto;width:100%;border-radius:8px;border:1px solid rgba(128,128,128,.25)!important}
.card .sub .sub-media img.sub-img{aspect-ratio:1240/900;height:auto;object-fit:cover;object-position:top center;-webkit-mask-image:linear-gradient(#000 82%,transparent);mask-image:linear-gradient(#000 82%,transparent)}
@media(min-width:601px){.card .sub .sub-body{align-items:center}}
.card .sub .sub-media img.sub-img{aspect-ratio:1240/620;-webkit-mask-image:linear-gradient(#000 78%,transparent);mask-image:linear-gradient(#000 78%,transparent)}
@media(min-width:601px){.card .sub .sub-body{grid-template-columns:1fr minmax(0,.75fr)}}
/* wide two-panel screenshots: stack text above, show the full image */
.card .sub .sub-body{grid-template-columns:1fr!important;gap:.75rem}
.card .sub .sub-media img.sub-img{aspect-ratio:auto;object-fit:fill;-webkit-mask-image:none;mask-image:none}
.card .sub .sub-media img.sub-img{max-width:700px;margin:0 auto;display:block}
