/* style.css — shared across all pages of this portal */

:root{
  --bg:#0A0A0A;
  --surface:#161616;
  --orange:#FF6A1A;
  --orange-dim:#B84E14;
  --text:#F3F1EC;
  --muted:#9A9A9A;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(255,106,26,0.10), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(255,106,26,0.06), transparent 40%);
  color:var(--text);
  font-family:'IBM Plex Sans', sans-serif;
  padding:56px 20px;
}
.wrap{max-width:760px;margin:0 auto;}

.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-size:12px;
  color:var(--orange);
  margin-bottom:12px;
}

h1{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:clamp(32px,5vw,48px);
  margin:0 0 14px;
  line-height:1.05;
  color:var(--text);
}
p.lead{
  max-width:560px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
  margin:0 0 40px;
}

.links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:48px;
}
.links a{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  color:var(--text);
  text-decoration:none;
  border:1px solid rgba(255,106,26,0.35);
  border-radius:20px;
  padding:6px 14px;
}
.links a:hover{border-color:var(--orange);color:var(--orange);}

h2{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:20px;
  margin:0 0 16px;
  color:var(--text);
}
section{scroll-margin-top:24px;}
section + section{margin-top:52px;}

.view-all{
  display:inline-block;
  margin-top:14px;
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  color:var(--orange);
  text-decoration:none;
}
.view-all:hover{color:var(--text);}

/* --- hero with photo --- */
.hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  flex-wrap:wrap;
}
.hero-text{flex:1 1 380px;min-width:0;}
.hero-photo{
  flex:0 0 132px;
  width:132px;
  height:132px;
  border-radius:50%;
  overflow:hidden;
  margin-top:2px;
}
.hero-photo img{width:100%;height:100%;object-fit:cover;display:block;}

/* --- Latest: tiles (image on top, tag, title, one-liner) --- */
.tiles{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.tile{
  display:block;
  background:var(--surface);
  border:1px solid rgba(255,106,26,0.18);
  border-radius:2px;
  text-decoration:none;
  color:var(--text);
  overflow:hidden;
  transition:transform .12s ease, border-color .12s ease;
}
.tile:hover{transform:translateY(-1px);border-color:rgba(255,106,26,0.5);}
.tile-img{
  width:100%;
  height:150px;
  object-fit:contain;
  display:block;
  background:var(--bg);
  padding:10px 0;
}
.tile-body{padding:16px 18px;}
.tile-body .tag{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--orange);
}
.tile-body h3{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:16.5px;
  margin:6px 0 6px;
  line-height:1.25;
}
.tile-body p{
  font-size:13px;
  color:var(--muted);
  margin:0;
  line-height:1.5;
}
@media (max-width:600px){
  .tiles{grid-template-columns:1fr;}
  .hero{flex-direction:column-reverse;align-items:center;text-align:center;}
  .hero-text{text-align:left;}
}

.page-title{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:6px;
}
.back-home{
  display:inline-block;
  margin-bottom:32px;
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  color:var(--muted);
  text-decoration:none;
}
.back-home:hover{color:var(--orange);}

/* --- Projects: tool cards --- */
.tools{display:grid;gap:14px;}
.tool-card{
  display:block;
  background:var(--surface);
  color:var(--text);
  text-decoration:none;
  border-radius:2px;
  border:1px solid rgba(255,106,26,0.18);
  padding:20px 22px;
  position:relative;
  overflow:hidden;
  transition:transform .12s ease, border-color .12s ease;
}
.tool-card::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:3px;
  background:linear-gradient(90deg, var(--orange), transparent 65%);
}
.tool-card:hover{transform:translateY(-1px);border-color:rgba(255,106,26,0.5);}
.tool-card .tag{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--orange);
}
.tool-card h3{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:19px;
  margin:6px 0 6px;
  color:var(--text);
}
.tool-card p{
  font-size:13.5px;
  color:var(--muted);
  margin:0;
  line-height:1.5;
}

footer{
  margin-top:56px;
  padding-top:20px;
  border-top:1px solid rgba(255,106,26,0.18);
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--muted);
}

/* --- hamburger menu --- */
.menu-toggle{
  position:fixed;
  top:20px;
  right:20px;
  z-index:20;
  width:42px;
  height:42px;
  border-radius:50%;
  background:var(--surface);
  border:1px solid rgba(255,106,26,0.35);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  cursor:pointer;
}
.menu-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:var(--orange);
}
.menu-panel{
  position:fixed;
  top:70px;
  right:20px;
  z-index:20;
  background:var(--surface);
  border:1px solid rgba(255,106,26,0.3);
  border-radius:4px;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:160px;
  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
}
.menu-panel.open{opacity:1;transform:translateY(0);pointer-events:auto;}
.menu-panel a{
  font-family:'IBM Plex Mono', monospace;
  font-size:13px;
  color:var(--text);
  text-decoration:none;
  padding:8px 10px;
  border-radius:3px;
}
.menu-panel a:hover{background:rgba(255,106,26,0.12);color:var(--orange);}
.menu-panel a.current{color:var(--orange);}

/* --- Writing: publication-style cards --- */
.pubs{display:grid;gap:16px;}
.pub-card{
  display:flex;
  gap:16px;
  background:var(--surface);
  border:1px solid rgba(255,106,26,0.18);
  border-radius:2px;
  padding:18px;
}
.pub-thumb{
  flex:0 0 88px;
  width:88px;
  height:88px;
  border-radius:2px;
  border:1px dashed rgba(255,106,26,0.4);
  background:rgba(255,106,26,0.05);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'IBM Plex Mono', monospace;
  font-size:10px;
  color:var(--muted);
  text-align:center;
  overflow:hidden;
}
.pub-thumb img{width:100%;height:100%;object-fit:contain;}
.pub-body h3{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:17px;
  margin:0 0 6px;
}
.pub-body h3 a{color:var(--text);text-decoration:none;}
.pub-body h3 a:hover{color:var(--orange);}
.pub-body .abstract{
  font-size:13.5px;
  color:var(--muted);
  line-height:1.55;
  margin:0;
}
.pub-body .pub-meta{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  color:var(--orange-dim);
  margin:0 0 6px;
  letter-spacing:0.04em;
}

/* --- About Me --- */
.about-block{
  display:flex;
  gap:22px;
  align-items:flex-start;
}
.about-photo{
  flex:0 0 120px;
  width:120px;
  height:120px;
  border-radius:50%;
  border:1px dashed rgba(255,106,26,0.4);
  background:rgba(255,106,26,0.05);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  color:var(--muted);
  text-align:center;
  overflow:hidden;
}
.about-photo img{width:100%;height:100%;object-fit:cover;}
.about-block p{
  font-size:14.5px;
  color:var(--muted);
  line-height:1.65;
  margin:0;
}

@media (max-width:520px){
  .pub-card{flex-direction:column;}
  .pub-thumb{width:100%;height:140px;}
  .about-block{flex-direction:column;align-items:center;text-align:center;}
}
