/* Print-first, grayscale portfolio */
:root{
  --bg: #fbfbfb;
  --ink: #111111;
  --muted: #4b4b4b;
  --hair: #d7d7d7;
  --card: #ffffff;
  --btn: #111111;
  --btnText: #ffffff;
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.container{
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px;
}

.header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  border-bottom: 1px solid var(--hair);
}

.name{
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.role{
  margin-top: 2px;
  color: var(--muted);
  font-weight: 600;
}

.header__right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap: 10px;
  text-align:right;
}
.links{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
  color: var(--muted);
  font-size: 0.95rem;
}
.links a{ color: inherit; }
.dot{ opacity: .6; }

a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}
a:hover{ border-bottom-color: rgba(0,0,0,0.6); }

.btn{
  display:inline-block;
  background: var(--btn);
  color: var(--btnText);
  border: 1px solid var(--btn);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}
.btn:hover{ filter: brightness(0.95); }

.section{ padding: 26px 0; }
.headline{
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
}
.subhead{
  margin: 0 0 18px 0;
  color: var(--muted);
  max-width: 70ch;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 760px){
  .header{ flex-direction: column; align-items: flex-start; }
  .header__right{ align-items: flex-start; text-align:left; }
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 14px 14px;
}
.card h2{
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.card.compact{ padding: 14px 14px; }

.section__title{
  margin: 0 0 12px 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.stack{ display:flex; flex-direction:column; gap: 12px; }

.project{
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 14px 14px;
}
.project__top{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.project h3{
  margin: 0;
  font-size: 1.12rem;
}
.tag{
  border: 1px solid var(--hair);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.bullets{
  margin: 10px 0 0 0;
  padding-left: 18px;
}
.bullets li{ margin: 6px 0; }

.row{
  display:flex;
  justify-content: space-between;
  gap: 12px;
}
.item__title{ font-weight: 700; }
.item__meta{ color: var(--muted); font-weight: 600; margin-top: 2px; }

.muted{ color: var(--muted); }

.footer{
  border-top: 1px solid var(--hair);
  padding-top: 18px;
  padding-bottom: 36px;
}

/* Print: remove borders under links, keep layout clean */
@media print{
  :root{ --bg:#ffffff; --card:#ffffff; }
  a{ border-bottom: none; }
  .btn{ border: 1px solid #111; background:#111; color:#fff; }
  .container{ padding: 18px 10px; }
  .header{ border-bottom: 1px solid #aaa; }
  .footer{ border-top: 1px solid #aaa; }
}
