:root{
  --ink:#1a1a1a;
  --ink-soft:#444444;
  --paper:#ffffff;
  --frame:#eeeeec;
  --font-serif:'Playfair Display', serif;
  --font-sans:'Poppins', sans-serif;
  --accent:hsl(26, 84%, 57%);
  --accent-dark:hsl(30, 84%, 57%);
  --paper-warm:#f4efe6;
  --font-mono:'Space Mono', 'Courier New', monospace;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  font-family:var(--font-sans);
  color:var(--ink);
  background:var(--paper);
  line-height:1.5;
}

a{ color:inherit; text-decoration:none; }

img{ max-width:100%; display:block; }

/* ---------- Layout wrapper ---------- */
.page{
  max-width:1400px;
  margin:0 auto;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.main{
  flex:1;
}

/* ---------- Header / Nav ---------- */
.site-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
  padding:28px 6%;
  border-bottom:1px solid var(--frame);
}

.brand{
  font-family:var(--font-serif);
  font-weight:600;
  font-size:1.3rem;
}

.nav-links{
  display:flex;
  gap:2.2rem;
  font-size:0.95rem;
  flex-wrap:wrap;
}

.nav-links a{
  padding-bottom:4px;
  border-bottom:2px solid transparent;
  transition:border-color .15s ease;
}

.nav-links a:hover{
  border-color:var(--frame);
}

.nav-links a.active{
  border-color:var(--ink);
}

/* ---------- Hero (grid layout, used inside .page) ---------- */
.hero{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:20px;
  align-items:center;
  padding:64px 6% 48px;
}

.hero-text .headline{
  font-family:var(--font-serif);
  font-weight:600;
  font-size:clamp(2rem, 4.2vw, 3.6rem);
  line-height:1.08;
  letter-spacing:-0.5px;
  margin-bottom:24px;
}

.hero-text .tagline{
  font-weight:300;
  font-size:clamp(1rem, 1.4vw, 1.25rem);
  max-width:46ch;
  line-height:1.6;
  color:var(--ink-soft);
  margin-bottom: 20px;
}

.social-row{
  display:flex;
  gap:18px;
}

.social-row a{
  width:46px;
  height:46px;
  border-radius:50%;
  background:var(--ink);
  color:var(--paper);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .15s ease, background .15s ease;
}

.social-row a:hover{
  background:#444;
  transform:translateY(-2px);
}

.social-row a svg{
  width:50%;
  height:50%;
  fill:currentColor;
}

.hero-photo{
  display:flex;
  justify-content:center;
  align-items:flex-end;
}

.hero-photo img{
  width:100%;
  max-width:340px;
  height:auto;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,0.08));
}

/* ---------- Section headings (About / Projects) ---------- */
.section{
  padding:56px 6% 72px;
}

.section-title{
  font-family:var(--font-serif);
  font-weight:600;
  font-size:clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom:12px;
}

.section-intro{
  max-width:62ch;
  color:var(--ink-soft);
  font-weight:300;
  margin-bottom:44px;
  line-height:1.65;
}

/* ---------- Card grid (used for skills + projects) ---------- */
.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:24px;
}

.card{
  border:1px solid var(--frame);
  padding:28px;
  background:var(--paper);
  transition:border-color .15s ease, transform .15s ease;
}

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

.card h3{
  font-family:var(--font-serif);
  font-weight:600;
  font-size:1.15rem;
  margin-bottom:10px;
}

.card p{
  font-size:0.95rem;
  color:var(--ink-soft);
  line-height:1.6;
}

.card .tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}

.tag{
  font-size:0.75rem;
  padding:4px 12px;
  border:1px solid var(--ink);
  border-radius:20px;
  color:var(--ink);
}

.card .link-out{
  display:inline-block;
  margin-top:18px;
  font-size:0.9rem;
  border-bottom:1px solid var(--ink);
}

/* ---------- About page specifics ---------- */
.about-grid{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:48px;
  align-items:start;
  margin-bottom:56px;
}

.about-bio p{
  color:var(--ink-soft);
  font-weight:300;
  line-height:1.75;
  margin-bottom:18px;
}

.about-photo img{
  width:100%;
  max-width:280px;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,0.08));
}

/* ---------- Experience & Education lists ---------- */
.list-block{
  margin-top:56px;
}

.exp-item{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:24px;
  flex-wrap:wrap;
  padding:20px 0;
  border-top:1px solid var(--frame);
}

.exp-item:last-child{
  border-bottom:1px solid var(--frame);
}

.exp-main .role{
  color:var(--ink-soft);
  font-weight:300;
  line-height:1.5;
  text-align: justify;
}

.exp-main .org{
  color:var(--ink-soft);
  font-size:0.95rem;
}

.exp-dates{
  font-size:0.9rem;
  color:var(--ink-soft);
  white-space:nowrap;
}

.edu-item{
  padding:20px 0;
  border-top:1px solid var(--frame);
}

.edu-item:last-child{
  border-bottom:1px solid var(--frame);
}

.edu-item .school{
  font-weight:500;
}

.edu-item .location{
  font-size:0.9rem;
  color:var(--ink-soft);
  margin-top:2px;
}

.edu-item .degree{
  font-size:0.95rem;
  color:var(--ink-soft);
  margin-top:2px;
}

/* =========================================================
   Line-design resume components (Bio / Skills / Experience /
   Education / Projects / Contact)
   ========================================================= */

.info-section{
  display:grid;
  min-height:90vh;
  grid-template-columns:150px 1fr;
  column-gap:40px;
  padding:48px 6%;
}

.info-label-col{
  display:flex;
  flex-direction:column;
}

.info-label{
  font-size:1.5rem;
  font-weight:500;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin-bottom:18px;
}

.info-rule{
  flex:1;
  width:1px;
  min-height:40px;
  background:var(--ink);
  bottom:0;
}

.info-content p{
  color:var(--ink-soft);
  font-weight:300;
  line-height:1.7;
  margin-bottom:18px;
  text-align: justify;
}

.info-content p:last-child{
  margin-bottom:0;
}

/* ---- Skills ---- */
.skills-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(140px, 200px)); 
  justify-content:space-between;  
  gap:32px;
}
@media (max-width: 760px){ .skills-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px){ .skills-grid{ grid-template-columns:1fr; } }

.skills-col h4{
  font-size:0.95rem;
  font-weight:500;
  margin-bottom:14px;
}

.skills-col ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.skills-col li{
  color:var(--ink-soft);
  font-size:0.95rem;
  font-weight:300;
}

/* ---- Experience ---- */
.exp-list,
.edu-list{
  display:flex;
  flex-direction:column;
}

.exp-item{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:24px;
  flex-wrap:wrap;
  padding:18px 0;
}

.exp-item + .exp-item{
  border-top:1px solid var(--frame);
}

.exp-main .org{
  font-weight:500;
}

.exp-main .role{
  color:var(--ink-soft);
  font-size:0.95rem;
  margin-top:2px;
}

.exp-dates{
  font-size:0.9rem;
  color:var(--ink-soft);
  white-space:nowrap;
}

/* ---- Education ---- */
.edu-item{
  padding:18px 0;
}

.edu-item + .edu-item{
  border-top:1px solid var(--frame);
}

.edu-item .school{
  font-weight:500;
}

.edu-item .location{
  font-size:0.9rem;
  color:var(--ink-soft);
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:4px;
}

.edu-item .location svg{
  width:12px;
  height:12px;
  fill:currentColor;
}

.edu-item .degree{
  font-size:0.95rem;
  color:var(--ink-soft);
  margin-top:2px;
}

/* ---- Projects (line style) ---- */
.project-list{
  display:flex;
  flex-direction:column;
}

.project-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:28px 0;
}

.project-item + .project-item{
  border-top:1px solid var(--frame);
}

.project-main{
  flex:1;
  min-width:0;
}

.project-main .title{
  font-weight:500;
  text-decoration:underline;
  text-underline-offset:3px;
}

.project-main .desc{
  color:var(--ink-soft);
  font-weight:300;
  line-height:1.6;
  max-width:64ch;
  margin:8px 0 14px;
}

.tag-solid-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.tag-solid{
  background:var(--ink);
  color:var(--paper);
  font-size:0.7rem;
  font-weight:600;
  letter-spacing:0.04em;
  padding:5px 10px;
  border-radius:4px;
  text-transform:uppercase;
}

.project-arrow{
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid var(--frame);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}

.project-arrow:hover{
  background:var(--ink);
  border-color:var(--ink);
  color:var(--paper);
}

.project-arrow svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* ---------- Contact page ---------- */
.contact-list{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.contact-wrap{
  padding:64px 6% 80px;
  display:flex;
  flex-direction:column;
  gap:22px;
  max-width:520px;
}

.contact-line{
  display:flex;
  align-items:center;
  gap:16px;
  font-size:1.05rem;
}

.icon-circle{
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--ink);
  color:var(--paper);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.icon-circle svg{
  width:50%;
  height:50%;
  fill:currentColor;
}

/* ---------- Footer ---------- */
.site-footer{
  padding:28px 6%;
  border-top:1px solid var(--frame);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  font-size:0.85rem;
  color:var(--ink-soft);
}

/* =========================================================
   Home hero — split panel design (used only by index.html)
   Everything below is scoped under body.card-page / .card
   so it can never collide with the .hero / .page layout
   used by the other pages.
   ========================================================= */

body.card-page{
  background:var(--paper-warm);
  min-height:100vh;
}

.hero-split{
  display:flex;
  min-height:100vh;  
}

.hero-split-left{
  flex:1 1 58%;
  background:var(--paper-warm);
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:6vh 6vw;
}

.hero-split .eyebrow{
  font-family:var(--font-mono);
  font-size:clamp(1rem, 1.5vw, 1.1rem);
  font-weight:700;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:28px;
}

.hero-split .headline{
  font-family:var(--font-serif);
  font-weight:500;
  font-size:clamp(2.4rem, 5.2vw, 4.6rem);
  line-height:1.08;
  letter-spacing:-0.5px;
  color:var(--ink);
  margin-bottom:28px;
}

.hero-split .headline em{
  font-style:italic;
  color:var(--accent);
  font-weight:500;
}

.hero-split .tagline{
  font-family:var(--font-sans);
  font-weight:300;
  font-size:clamp(1rem, 1.4vw, 1.25rem);
  line-height:1.6;
  color:var(--ink-soft);
  max-width:46ch;
  margin-bottom:20px;
}

.hero-split .nav-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:36px;
}

.hero-split .nav-buttons a{
  font-family:var(--font-mono);
  font-weight:700;
  font-size:clamp(0.75rem, 1vw, 0.85rem);
  letter-spacing:0.1em;
  text-transform:uppercase;
  text-decoration:none;
  border-radius:999px;
  padding:10px 26px;   
  border:2px solid var(--ink);
  color:var(--ink);
  background:transparent;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
  white-space:nowrap;
}

.hero-split .nav-buttons a:hover{
  background:var(--ink);
  color:var(--paper);
}

.hero-split .nav-buttons a.btn-solid{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}

.hero-split .nav-buttons a.btn-solid:hover{
  background:var(--accent-dark);
  border-color:var(--accent-dark);
}

.hero-split .link-row{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}

.hero-split .link-row .drop{
  width:2px;
  height:clamp(80px, 14vh, 180px);
  background:var(--ink);
  opacity:.35;
  margin-top:8px;
}

.hero-split .link-row a{
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--ink);
  color:var(--paper);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition:transform .15s ease, background .15s ease;
}

.hero-split .link-row a:hover{
  background:var(--accent);
  transform:translateY(-2px);
}

.hero-split .link-row a svg{
  width:50%;
  height:50%;
  fill:currentColor;
}

.hero-split-right{
  flex:0 0 40%;
  background:var(--accent);
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
  padding:40px;
}

.hero-split-right .photo{
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
}

.hero-split-right .photo img{
  max-height:78vh;
  width:auto;
  display:block;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,0.18));
}

.hero-split-right .side-email{
  position:absolute;
  right:24px;
  top:32px;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  font-family:var(--font-mono);
  font-size:clamp(0.75rem, 2vw, 0.95rem);
  letter-spacing:0.15em;
  color:#fff;
  white-space:nowrap;
}

@media (max-width: 900px){
  .hero-split{ flex-direction:column; }
  .hero-split-left{ padding:8vh 7vw 6vh; }
  .hero-split-right{ flex:0 0 auto; min-height:60vh; padding:24px; }
  .hero-split-right .side-email{
    writing-mode:horizontal-tb;
    transform:none;
    position:static;
    order:2;
    margin-top:16px;
  }
  .hero-split-right{ flex-direction:column; align-items:center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px){
  .hero{
    grid-template-columns:1fr;
    padding:40px 7% 32px;
  }
  .hero-photo{
    order:-1;
    max-width:240px;
    margin:0 auto;
  }
  .about-grid{
    grid-template-columns:1fr;
  }
  .about-photo{
    order:-1;
    display:flex;
    justify-content:center;
  }
  .site-header{
    justify-content:center;
    text-align:center;
  }
  .info-section{
    grid-template-columns:1fr;
    row-gap:20px;
    padding:36px 7%;
  }
  .info-label-col{
    flex-direction:row;
    align-items:center;
    gap:16px;
  }
  .info-rule{
    width:auto;
    height:1px;
    min-height:0;
    flex:1;
  }
  .project-item{
    align-items:flex-start;
  }
}