/* lukaslau.com — 1:1 replica of the original Bubble design */

:root {
  --black: #000;
  --gray: rgb(155, 154, 154);
  --divider: rgb(216, 215, 216);
  --card-border: rgb(239, 239, 238);
}

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

html,
body {
  background: #fff;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Floating header: avatar card + pill nav, fixed top-left */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.avatar {
  width: 112px;
  height: 112px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 100px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 20px 0px;
  cursor: pointer;
  flex-shrink: 0;
  display: block;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 100px;
  display: block;
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 10px 20px;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 100px;
  box-shadow: rgba(103, 103, 102, 0.1) 0px 0px 15px 0px;
}

.site-nav a {
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--gray);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--black);
}

/* Feed */

.feed {
  width: min(450px, calc(100% - 48px));
  margin: 0 auto 200px;
  padding-top: 300px;
}

.post {
  padding: 30px 0 24px;
  border-bottom: 1px solid var(--divider);
  color: var(--gray);
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.post p {
  max-width: 96%;
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

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

.post a:hover {
  text-decoration: underline;
}

.post time {
  display: block;
  font-size: 14px;
  line-height: 17.5px;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--gray);
}

.post--latest {
  padding-top: 0;
  padding-bottom: 30px;
  color: var(--black);
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.5px;
}

.post--latest p {
  max-width: 90%;
}

.post--pinned {
  padding-top: 35px;
}

.pin-label {
  margin-bottom: 14px;
}

.pin-label svg {
  width: 17px;
  height: 17px;
  fill: var(--gray);
  display: block;
}

/* About */

.about {
  width: min(340px, calc(100% - 48px));
  margin: 0 auto 120px;
  padding-top: 130px;
  color: var(--gray);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.about p {
  margin-bottom: 28px;
  overflow-wrap: break-word;
}

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

.about a:hover {
  text-decoration: underline;
}

/* Below ~1024px the centered about column would collide with the
   fixed header, so it drops below it (matches the original). */
@media (max-width: 1024px) {
  .about {
    padding-top: 205px;
  }
}

/* Phones: same hierarchy, one notch smaller */
@media (max-width: 480px) {
  .post {
    font-size: 18px;
    line-height: 24px;
  }

  .post--latest {
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -1.2px;
  }

  .about {
    font-size: 18px;
    line-height: 25px;
    letter-spacing: -0.5px;
  }
}
