:root{
  --coral: #FA5A50;
  --coral-deep: #E14538;
  --ink: #171310;
  --paper: #FFFDFB;
  --line: rgba(23,19,16,0.14);
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family:'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img{ display:block; max-width:100%; }
a{ color:inherit; }
.wrap{ max-width: 900px; margin:0 auto; padding: 0 32px; }
:focus-visible{ outline: 2px solid var(--coral-deep); outline-offset: 3px; }

.kicker{
  font-family:'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.62;
  display:flex;
  align-items:center;
  gap: 10px;
}
.kicker::before{
  content:"";
  width: 16px; height: 1.5px;
  background: currentColor;
  display:inline-block;
}

h1, h2{
  font-family:'Bricolage Grotesque', sans-serif;
  margin:0;
  letter-spacing: -0.01em;
}

/* ---------- Fixed CV button ---------- */
.cv-btn{
  position: fixed;
  top: 22px; right: 22px;
  z-index: 60;
  display:flex; align-items:center; gap:8px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px 10px 15px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration:none;
  color: var(--ink);
  box-shadow: 0 3px 14px rgba(23,19,16,0.12);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.cv-btn svg{ width:14px; height:14px; flex:0 0 auto; }
.cv-btn:hover{
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}
.cv-btn:focus-visible{
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero{
  background: var(--coral);
  color: var(--ink);
  position: relative;
  overflow:hidden;
  padding: 96px 0 66px;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  z-index: 0;
  background-image: url("assets/hero-grain.jpg");
  background-size: 180px;
  opacity: 0.06;
  pointer-events:none;
}
.hero .wrap{
  position:relative;
  z-index: 1;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.hero .mark{
  width: min(380px, 70vw);
  margin-bottom: 4px;
}
.byline{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-top: 4px;
}
.avatar{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  object-fit: cover;
}
.name-caption{
  font-family:'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.hero p.bio{
  font-size: 18px;
  line-height: 1.6;
  max-width: 46ch;
  margin: 24px 0 0;
  color: var(--ink);
}
.wave-wrap{
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
}
.wave{
  display:block;
  width: 130%;
  height: auto;
  animation: drift 9s ease-in-out infinite alternate;
}

@keyframes drift{
  from{ transform: translateX(0); }
  to{ transform: translateX(-13%); }
}
@media (prefers-reduced-motion: reduce){
  .wave{ animation:none; }
}

/* ---------- Projects (index list) ---------- */
.projects{ padding: 92px 0 40px; }
.projects .head{ margin-bottom: 54px; }
.projects h2{
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 600;
  margin-top: 14px;
}

.index-list{
  border-top: 1.5px solid var(--line);
}
.index-row{
  display:flex;
  align-items:center;
  gap: 26px;
  padding: 30px 4px;
  border-bottom: 1.5px solid var(--line);
  text-decoration:none;
  color: var(--ink);
  transition: padding-left .25s ease, border-color .25s ease, background .25s ease;
}
.index-row:hover{
  padding-left: 14px;
  background: rgba(250,90,80,0.05);
  border-bottom-color: var(--coral);
}
.index-row:focus-visible{
  padding-left: 14px;
  background: rgba(250,90,80,0.05);
  border-bottom-color: var(--coral);
}
.badge{
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  flex: 0 0 auto;
  display:flex; align-items:center; justify-content:center;
  background: var(--paper);
  overflow:hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.index-row:hover .badge{
  border-color: var(--coral-deep);
  transform: scale(1.06);
}
.index-row:focus-visible .badge{
  border-color: var(--coral-deep);
  transform: scale(1.06);
}
.badge img{ width:auto; height:auto; max-width: 64%; max-height: 64%; object-fit: contain; }
.badge svg{ width: 26px; height:26px; }

.row-text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.row-text .title{
  font-family:'Bricolage Grotesque', sans-serif;
  font-size: 23px;
  font-weight: 600;
}
.row-text .desc{
  font-size: 14.5px;
  color: #5C534B;
  line-height:1.5;
}
.row-tag{
  font-family:'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: #5C534B;
  white-space:nowrap;
  flex: 0 0 auto;
}
.arrow{
  flex: 0 0 auto;
  font-size: 22px;
  transform: translateX(0);
  transition: transform .25s ease;
  opacity: 0.55;
}
.index-row:hover .arrow{ transform: translateX(6px); opacity:1; color: var(--coral-deep); }
.index-row:focus-visible .arrow{ transform: translateX(6px); opacity:1; color: var(--coral-deep); }

/* ---------- Footer ---------- */
footer{
  padding: 70px 0 46px;
  text-align:center;
}
footer .mark-small{
  width: 130px;
  margin: 0 auto 18px;
  opacity: 0.9;
}
footer p{
  font-family:'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #6B6259;
  margin:0;
}

@media (max-width: 640px){
  .hero{ padding: 84px 0 50px; }
  .cv-btn{ display:none; } /* redundant with the CV row below on small screens; avoids overlapping tap targets */
  .index-row{ gap: 16px; padding: 24px 2px; }
  .badge{ width:46px; height:46px; }
  .row-text .title{ font-size: 19px; }
  .row-tag{ display:none; }
  .hero p.bio{ font-size:16px; }
}
