:root {
  --bg: #050505;
  --fg: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.68);
  --card: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.82), rgba(5, 5, 5, 0.96)),
    #050505;
}

body {
  padding-bottom: 2rem;
}

.profile-shell {
  width: min(92rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
}

.profile-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.back-link,
.folder-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.66rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--card);
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.profile-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr);
  gap: 1.3rem;
  align-items: center;
  padding: 1.35rem 1.4rem;
}

.profile-hero-media {
  position: relative;
  min-height: clamp(18rem, 42vw, 29rem);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.profile-hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.profile-hero-copy {
  display: grid;
  gap: 0.35rem;
}

.profile-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--muted);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.profile-hero h1 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-subtitle {
  margin: 0.45rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.profile-note {
  margin-top: 0.9rem;
  padding: 0.95rem 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.profile-note strong {
  color: #ffffff;
}

.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 1.15rem 0 0.8rem;
}

.feed-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-feed {
  display: grid;
  gap: 1rem;
}

.post-card {
  overflow: hidden;
  width: min(calc(100vw - 2rem), var(--post-card-width, 56rem));
  margin-inline: auto;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.post-media {
  aspect-ratio: var(--post-media-ratio, 16 / 9);
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.post-media img,
.post-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #050505;
  image-rendering: auto;
}

.post-body {
  padding: 1rem 1.1rem 1.1rem;
  background: rgba(8, 8, 8, 0.96);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36);
  border-color: rgba(255, 255, 255, 0.18);
}

.post-media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}

.post-body {
  padding: 1rem 1.1rem 1.1rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.post-date {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post-kind {
  display: none;
}

.post-title {
  margin: 0 0 0.45rem;
  font-family: "Sora", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
}

.post-description {
  margin: 0;
  color: rgba(245, 241, 232, 0.84);
  line-height: 1.72;
}

.post-card[data-media-shape="portrait"] {
  max-width: 52rem;
}

.post-card[data-media-shape="square"] {
  max-width: 58rem;
}

.post-card[data-media-shape="landscape"] {
  max-width: 74rem;
}

code {
  color: #ffffff;
  font-family: "Consolas", "Courier New", monospace;
}

.subpage-footer {
  width: min(92rem, calc(100vw - 2rem));
  margin: 1.15rem auto 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: rgba(8, 8, 8, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.subpage-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.subpage-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.56rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.subpage-footer-link:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.subpage-footer-copy {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .profile-shell {
    width: calc(100vw - 1rem);
    padding-top: 0.8rem;
  }

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

  .profile-hero-media {
    min-height: clamp(19rem, 68vw, 28rem);
  }

  .profile-topbar,
  .feed-head {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-card {
    border-radius: 24px;
  }

  .profile-hero,
  .post-body,
  .profile-note {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .subpage-footer {
    width: calc(100vw - 1rem);
    border-radius: 22px;
    padding: 0.9rem;
  }
}
