:root {
  color-scheme: dark;
  --bg: #292a2b;
  --bg-deep: #202122;
  --ink: #17191b;
  --paper: #f7f2e8;
  --muted: #a9aaa8;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.045), transparent 28rem),
    linear-gradient(145deg, var(--bg), var(--bg-deep));
  color: var(--paper);
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.45;
}

button,
a {
  font: inherit;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 760px);
  gap: clamp(1.25rem, 3vw, 3rem);
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 3rem) 0 2rem;
  align-items: start;
}

.profile-card {
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  background: #343536;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-photo {
  width: min(100%, 220px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.profile-kicker,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.profile-card h1 {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(2.2rem, 3.7vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.feed-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.profile-card p {
  margin: 0;
  max-width: 29ch;
  font-size: 1.15rem;
  font-weight: 600;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.2rem;
}

.profile-links span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #f2eee4;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.95rem;
  font-weight: 800;
}

.feed-panel {
  min-width: 0;
}

.feed-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.6rem 0 0.15rem;
}

.posts {
  display: grid;
  gap: 1rem;
}

.post-pinned {
  outline: 2px solid rgba(255, 255, 255, 0.62);
  outline-offset: 5px;
}

.post {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.16), 0 26px 48px rgba(0, 0, 0, 0.18);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.post-link {
  cursor: pointer;
}

.post-link:hover,
.post-link:focus-visible {
  filter: saturate(1.06);
  box-shadow: 0 18px 0 rgba(0, 0, 0, 0.13), 0 34px 58px rgba(0, 0, 0, 0.28);
  transform: translateY(-7px) rotate(calc(var(--tilt, 0deg) * -1));
  outline: none;
}

.post-link:active {
  transform: translateY(-2px) rotate(0deg) scale(0.99);
}

.post-detail {
  transform: rotate(0deg);
}

.post-emoji {
  display: grid;
  place-items: center;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  font-family: "OpenMoji", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 3.15rem;
  line-height: 1;
}

.post-emoji img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.ui-emoji {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  object-fit: contain;
  vertical-align: -0.18em;
}

.post-content {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
}

.handle {
  font-size: 1rem;
  font-weight: 900;
}

.pinned-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: rgba(23, 25, 27, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.post-body {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.post-body p {
  margin: 0;
}

.post-body p + p {
  margin-top: 0.85rem;
}

.read-more {
  display: inline-flex;
  margin-top: 0.85rem;
  color: rgba(23, 25, 27, 0.66);
  font-size: 1rem;
  font-weight: 900;
}

.post-body img,
.post-video,
.video-preview {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin-top: 0.8rem;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.post-videos {
  display: grid;
}

.video-preview {
  position: relative;
  overflow: hidden;
}

.video-preview img {
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.play-badge,
.video-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(23, 25, 27, 0.82);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 900;
}

.play-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
}

.video-placeholder {
  width: fit-content;
  margin-top: 0.8rem;
}

.link-previews {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.link-preview {
  display: grid;
  grid-template-columns: minmax(4.8rem, 7rem) minmax(0, 1fr);
  gap: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(23, 25, 27, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.34);
  color: inherit;
  text-decoration: none;
}

.link-preview-image {
  width: 100%;
  height: 100%;
  min-height: 5.2rem;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}

.link-preview-copy {
  display: grid;
  gap: 0.15rem;
  align-content: center;
  min-width: 0;
  padding: 0.65rem 0.75rem 0.65rem 0;
}

.link-preview-site,
.link-preview-description {
  color: rgba(23, 25, 27, 0.66);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
}

.link-preview-title {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
}

.date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(23, 25, 27, 0.72);
  font-size: 0.98rem;
  font-weight: 800;
}

.detail-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.detail-nav-left,
.detail-nav-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.detail-nav-right {
  justify-content: flex-end;
  margin-left: auto;
}

.detail-nav-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 900;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer a {
  color: #f8d66d;
  font-weight: 800;
}

@media (max-width: 820px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .profile-card {
    position: static;
    grid-template-columns: 7rem minmax(0, 1fr);
    align-items: center;
  }

  .profile-photo {
    width: 7rem;
    grid-row: span 4;
  }

  .profile-card h1 {
    font-size: clamp(2.1rem, 11vw, 3.6rem);
  }

  .profile-card p {
    max-width: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 18px;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    grid-row: auto;
    width: 8rem;
  }

  .post {
    grid-template-columns: 4.1rem minmax(0, 1fr);
    gap: 0.8rem;
    border-radius: 20px;
  }

  .post-emoji {
    width: 4.1rem;
    height: 4.1rem;
    border-radius: 16px;
    font-size: 2.55rem;
  }
}
