@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: #fcfcfa;
  font-family: 'Poppins', sans-serif;
  font-weight: 200;
  color: #000;
  -webkit-font-smoothing: antialiased;
}

/* ── Card layout ── */

.hero {
  padding: 24px 0;
}

.inner {
  width: 92%;
  max-width: 652px;
  margin: 0 auto;
  background: #f0f2f7;
  border-radius: 8px;
  padding: 24px 20px 64px;
  position: relative;
}

.inner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'><path d='M0,30 C50,10 150,50 200,30 L200,60 L0,60 Z' fill='%23fcfcfa'/></svg>") no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

/* ── Name heading ── */

h1 {
  font-size: 1.75em;
  font-weight: 200;
  line-height: 1.2;
  margin: 0 0 12px;
  display: inline-block;
  position: relative;
}

h1 .swoosh {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 16px;
}

h1 .swoosh path {
  fill: none;
  stroke: #3cceaf;
  stroke-width: 3;
  stroke-linecap: round;
}

/* ── Navigation ── */

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 0.75em;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
}

nav ul li a {
  text-decoration: none;
  color: #481ac2;
  font-size: 0.65em;
  font-weight: 400;
  text-transform: lowercase;
  white-space: nowrap;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M0,12 C40,2 160,18 200,12' stroke='%23481ac2' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 0 6px;
  padding-bottom: 4px;
}

nav ul li a:hover {
  background-size: 100% 6px;
}

nav ul li.active a {
  color: #3cceaf;
  pointer-events: none;
}

/* ── Profile image ── */

.profile {
  display: none;
}

/* ── Body text ── */

p {
  margin: 0 0 1em;
  line-height: 1.6;
}

/* ── Inline links ── */

a.inline-link {
  color: #481ac2;
  text-decoration: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M0,12 C40,2 160,18 200,12' stroke='%23481ac2' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 0 5px;
  padding-bottom: 3px;
}

a.inline-link:hover {
  background-size: 100% 5px;
}

/* ── Dash lists ── */

ul.dash {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

ul.dash li {
  padding-left: 1.25em;
  margin-bottom: 0.5em;
  position: relative;
}

ul.dash li::before {
  content: "\2013";
  position: absolute;
  left: 0;
}

/* ── Papers ── */

.papers {
  margin-top: 1.5em;
}

.paper {
  margin: 0 0 1em;
}

.paper a {
  color: #481ac2;
  text-decoration: none;
  font-weight: 200;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M0,12 C40,2 160,18 200,12' stroke='%23481ac2' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 0 5px;
  padding-bottom: 3px;
}

.paper a:hover {
  background-size: 100% 5px;
}

.paper .meta {
  color: #333;
}

/* ── Section titles ── */

.section-title {
  font-size: 1em;
  font-weight: 500;
  margin: 1.5em 0 0.5em;
  display: inline-block;
  position: relative;
}

.section-title:first-child {
  margin-top: 0;
}

.section-title .swoosh {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 12px;
}

.section-title .swoosh path {
  fill: none;
  stroke: #3cceaf;
  stroke-width: 3;
}

/* ── Desktop (640px+) ── */

@media (min-width: 640px) {
  .hero {
    padding: 60px 0;
  }

  .inner {
    padding: 40px 40px 64px;
  }

  h1 {
    font-size: 2.5em;
  }

  h1 .swoosh {
    bottom: -8px;
    height: 20px;
  }

  nav ul {
    justify-content: space-between;
  }

  nav ul li a {
    font-size: 1em;
  }

  .profile {
    display: block;
    float: right;
    width: 200px;
    height: 200px;
    margin: 0 0 1em 1.25em;
    border-radius: 50%;
    object-fit: cover;
    shape-outside: circle(50%);
    -webkit-shape-outside: circle(50%);
    transform: scale(0.95);
    transform-origin: center;
  }
}
